Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputs
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
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2016Layer Normalizationcited by 5,669
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2020Learning to summarize from human feedbackcited by 2,588
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
34 more
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,077
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 550
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
- 2023Understanding the Effects of RLHF on LLM Generalisation and Diversitycited by 396
- 2024Semantic Entropy Probes: Robust and Cheap Hallucination Detection in LLMscited by 259
- 2024Chain-of-Thought Reasoning Without Promptingcited by 210
- 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
- 2024Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputscited by 150
- 2023Controlled Decoding from Language Modelscited by 135
- 2019Unifying Human and Statistical Evaluation for Natural Language Generationcited by 127
- 2022Truncation Sampling as Language Model Desmoothingcited by 123
- 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 114
- 2021High Quality Rather than High Model Probability: Minimum Bayes Risk Decoding with Neural Metricscited by 104
- 2020Trading Off Diversity and Quality in Natural Language Generationcited by 96
- 2024Perplexed by Perplexity: Perplexity-Based Data Pruning With Small Reference Modelscited by 84
- 2023Reward-Augmented Decoding: Efficient Controlled Text Generation With a Unidirectional Reward Modelcited by 79
- 2022Looking for a Needle in a Haystack: A Comprehensive Study of Hallucinations in Neural Machine Translationcited by 61
- 2024Factual Confidence of LLMs: on Reliability and Robustness of Current Estimatorscited by 61
- 2022Follow the Wisdom of the Crowd: Effective Text Generation via Minimum Bayes Risk Decodingcited by 54
- 2024Do LLMs Know about Hallucination? An Empirical Investigation of LLM's Hidden Statescited by 52
- 2023What Comes Next? Evaluating Uncertainty in Neural Text Generators Against Human Production Variabilitycited by 51
- 2024In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigationcited by 45
- 2024EDT: Improving Large Language Models' Generation by Entropy-based Dynamic Temperature Samplingcited by 45
- 2024Hallucination Detection: Robustly Discerning Reliable Answers in Large Language Modelscited by 44
- 2024Exploring Precision and Recall to assess the quality and diversity of LLMscited by 29
- 2024Better Instruction-Following Through Minimum Bayes Riskcited by 19
- 2023On the Efficacy of Sampling Adapterscited by 17
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 16
- 2023MinPrompt: Graph-based Minimal Prompt Data Augmentation for Few-shot Question Answeringcited by 12
- 2024Generating Diverse and High-Quality Texts by Minimum Bayes Risk Decodingcited by 11
- 2024How to Learn in a Noisy World? Self-Correcting the Real-World Data Noise in Machine Translationcited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 14.
15 papers.
Sort:
By area:
- 2025Sherlock: Reliable and Efficient Agentic Workflow Executioncited by 11
- 2026Provably Efficient Regularized Online RLHF with Generalized Bilinear Preferencescited by 5
- 2026Diversity in Large Language Models under Supervised Fine-Tuningcited by 4
- 2026Whose Name Comes Up? II: Benchmarking and Intervention-Based Auditing of LLM-Based Scholar Recommendationcited by 2
- 2026Sampling More, Getting Less: Calibration is the Diversity Bottleneck in LLMscited by 2
- 2026AutoCRAT: Within-trajectory Joint Control of Stochasticity and Compute for LLM Reasoningcited by 2
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoningcited by 1
- 2026Beyond Temperature: Hyperfitting as a Late-Stage Geometric Expansioncited by 1
- 2026Fork-Think with Confidencecited by 1
- 2026DORA Explorer: Improving the Exploration Ability of LLMs Without Trainingcited by 0
- 2026From Natural Language to Verified Code: Toward AI Assisted Problem-to-Code Generation with Dafny-Based Formal Verificationcited by 0
- 2026LLMs in Qualitative Research: Opportunities, Limitations, and Practical Considerationscited by 0
- 2026Explore Broadly, Reason Sharply: Push Small Models toward the Frontier via Sampling29 Sep 2026
- 2026Temperature Fragility and the Conditional Benefits of Truncation Sampling14 Sep 2026
- 2026AutoCRAT: Within-trajectory Joint Control of Stochasticity and Compute for LLM Reasoning30 Aug 2026
- 2026Fork-Think with Confidence30 Jun 2026
- 2026Elias in the Lighthouse, Again? Diagnosing Low Diversity in LLM Stories26 May 2026
- 2026Beyond Temperature: Hyperfitting as a Late-Stage Geometric Expansion21 May 2026
- 2026LLMs in Qualitative Research: Opportunities, Limitations, and Practical Considerations15 May 2026
- 2026Sampling More, Getting Less: Calibration is the Diversity Bottleneck in LLMs11 May 2026
- 2026Diversity in Large Language Models under Supervised Fine-Tuning30 Apr 2026
- 2026From Natural Language to Verified Code: Toward AI Assisted Problem-to-Code Generation with Dafny-Based Formal Verification24 Apr 2026
- 2026DORA Explorer: Improving the Exploration Ability of LLMs Without Training19 Apr 2026
- 2026Provably Efficient Regularized Online RLHF with Generalized Bilinear Preferences26 Feb 2026
- 2025Sherlock: Reliable and Efficient Agentic Workflow Executioncited by 11
- 2026AutoCRAT: Within-trajectory Joint Control of Stochasticity and Compute for LLM Reasoningcited by 2
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoningcited by 1
- 2026Fork-Think with Confidencecited by 1
- 2026Explore Broadly, Reason Sharply: Push Small Models toward the Frontier via Samplingcited by 0
- 2026Explore Broadly, Reason Sharply: Push Small Models toward the Frontier via Sampling29 Sep 2026
- 2026AutoCRAT: Within-trajectory Joint Control of Stochasticity and Compute for LLM Reasoning30 Aug 2026
- 2026Fork-Think with Confidence30 Jun 2026
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoning30 Jan 2026
- 2025Sherlock: Reliable and Efficient Agentic Workflow Execution1 Nov 2025
- 2026Whose Name Comes Up? II: Benchmarking and Intervention-Based Auditing of LLM-Based Scholar Recommendationcited by 2
- 2026Sampling More, Getting Less: Calibration is the Diversity Bottleneck in LLMscited by 2
- 2026Beyond Temperature: Hyperfitting as a Late-Stage Geometric Expansioncited by 1
- 2026DORA Explorer: Improving the Exploration Ability of LLMs Without Trainingcited by 0
- 2026From Natural Language to Verified Code: Toward AI Assisted Problem-to-Code Generation with Dafny-Based Formal Verificationcited by 0
- 2026LLMs in Qualitative Research: Opportunities, Limitations, and Practical Considerationscited by 0
- 2026Elias in the Lighthouse, Again? Diagnosing Low Diversity in LLM Storiescited by 0
- 2026Temperature Fragility and the Conditional Benefits of Truncation Samplingcited by 0
- 2026Temperature Fragility and the Conditional Benefits of Truncation Sampling14 Sep 2026
- 2026Elias in the Lighthouse, Again? Diagnosing Low Diversity in LLM Stories26 May 2026
- 2026Beyond Temperature: Hyperfitting as a Late-Stage Geometric Expansion21 May 2026
- 2026LLMs in Qualitative Research: Opportunities, Limitations, and Practical Considerations15 May 2026
- 2026Sampling More, Getting Less: Calibration is the Diversity Bottleneck in LLMs11 May 2026
- 2026From Natural Language to Verified Code: Toward AI Assisted Problem-to-Code Generation with Dafny-Based Formal Verification24 Apr 2026
- 2026DORA Explorer: Improving the Exploration Ability of LLMs Without Training19 Apr 2026
- 2026Whose Name Comes Up? II: Benchmarking and Intervention-Based Auditing of LLM-Based Scholar Recommendation9 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMs
- 2025On the Role of Temperature Sampling in Test-Time Scaling
- 2025p-less Sampling: A Robust Hyperparameter-Free Approach for LLM Decoding
- 2026Adaptive Power Sampling for LLM Reasoning
- 2026Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoning
- 2025Less is More: Improving LLM Reasoning with Minimal Test-Time Intervention
- 2025CarBoN: Calibrated Best-of-N Sampling Improves Test-time Reasoning
- 2026Think Twice Before You Write -- an Entropy-based Decoding Strategy to Enhance LLM Reasoning