mlsanityData to 14 Oct 2026

Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputs

arXiv 2510.01218 ↗First posted 20 Sep 2025cs.LG cs.AI cs.CLcited by 15

Not on the map. Why?

Abstract (arXiv)

Diversity is an essential metric for evaluating the creativity of outputs generated by language models. Temperature-based sampling is a common strategy to increase diversity. However, for tasks that require high precision, e.g., mathematical reasoning, uncontrolled high temperature sampling, e.g., min-p or top-p, degrades reasoning quality. We demonstrate that the loss of accuracy is caused by sampling incorrect continuations in sensitive decoding positions. To address this, in this paper, we propose selective sampling, a method that dynamically switches between greedy and high-temperature sampling based on a sampling risk metric. This risk metric estimates the likelihood of output errors when applying high-temperature sampling on the current token position. To predict sampling risk, we train a lightweight classifier on a small subset of verifiable problems. The trained classifier can be integrated with the base language model with minimal latency overhead. Experiments on mathematical reasoning tasks demonstrate that selective sampling enhances the quality-diversity trade-off, even in high-temperature settings.

Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). Builds on 46 of its 58 references that are in the map. First posted on arXiv 20 Sep 2025.

Builds on

46 of 58 references.

References · 46

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  4. 2016Layer Normalizationcited by 5,669
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  6. 2024Qwen2.5 Technical Reportcited by 4,942
  7. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  8. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  9. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  10. 2020Learning to summarize from human feedbackcited by 2,588
  11. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
  12. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
34 more
  1. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
  2. 2018Hierarchical Neural Story Generationcited by 1,193
  3. 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,077
  4. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  5. 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 550
  6. 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
  7. 2023Understanding the Effects of RLHF on LLM Generalisation and Diversitycited by 396
  8. 2024Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMscited by 259
  9. 2024Chain-of-Thought Reasoning Without Promptingcited by 210
  10. 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
  11. 2024Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputscited by 150
  12. 2023Controlled Decoding from Language Modelscited by 135
  13. 2019Unifying Human and Statistical Evaluation for Natural Language Generationcited by 127
  14. 2022Truncation Sampling as Language Model Desmoothingcited by 123
  15. 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 114
  16. 2021High Quality Rather than High Model Probability: Minimum Bayes Risk Decoding with Neural Metricscited by 104
  17. 2020Trading Off Diversity and Quality in Natural Language Generationcited by 96
  18. 2024Perplexed by Perplexity: Perplexity-Based Data Pruning With Small Reference Modelscited by 84
  19. 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Modelcited by 79
  20. 2022Looking for a Needle in a Haystack: A Comprehensive Study of Hallucinations in Neural Machine Translationcited by 61
  21. 2024Factual Confidence of LLMs: on Reliability and Robustness of Current Estimatorscited by 61
  22. 2022Follow the Wisdom of the Crowd: Effective Text Generation via Minimum Bayes Risk Decodingcited by 54
  23. 2024Do LLMs Know about Hallucination? An Empirical Investigation of LLM's Hidden Statescited by 52
  24. 2023What Comes Next? Evaluating Uncertainty in Neural Text Generators Against Human Production Variabilitycited by 51
  25. 2024In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigationcited by 45
  26. 2024EDT: Improving Large Language Models' Generation by Entropy-based Dynamic Temperature Samplingcited by 45
  27. 2024Hallucination Detection: Robustly Discerning Reliable Answers in Large Language Modelscited by 44
  28. 2024Exploring Precision and Recall to assess the quality and diversity of LLMscited by 29
  29. 2024Better Instruction-Following Through Minimum Bayes Riskcited by 19
  30. 2023On the Efficacy of Sampling Adapterscited by 17
  31. 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 16
  32. 2023MinPrompt: Graph-based Minimal Prompt Data Augmentation for Few-shot Question Answeringcited by 12
  33. 2024Generating Diverse and High-Quality Texts by Minimum Bayes Risk Decodingcited by 11
  34. 2024How to Learn in a Noisy World? Self-Correcting the Real-World Data Noise in Machine Translationcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 14.

15 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMs
  2. 2025On the Role of Temperature Sampling in Test-Time Scaling
  3. 2025p-less Sampling: A Robust Hyperparameter-Free Approach for LLM Decoding
  4. 2026Adaptive Power Sampling for LLM Reasoning
  5. 2026Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoning
  6. 2025Less is More: Improving LLM Reasoning with Minimal Test-Time Intervention
  7. 2025CarBoN: Calibrated Best-of-N Sampling Improves Test-time Reasoning
  8. 2026Think Twice Before You Write -- an Entropy-based Decoding Strategy to Enhance LLM Reasoning