EMNLP Findings2024
The Effect of Sampling Temperature on Problem Solving in Large Language Models
Matthew Renze
Abstract
In this research study, we empirically investigate the effect of sampling temperature on the performance of Large Language Models (LLMs) on various problem-solving tasks.We created a multiple-choice question-and-answer (MCQA) exam by randomly sampling problems from standard LLM benchmarks.Then, we used nine popular LLMs with five promptengineering techniques to solve the MCQA problems while increasing the sampling temperature from 0.0 to 1.6.Despite anecdotal reports to the contrary, our empirical results indicate that changes in temperature from 0.0 to 1.0 do not have a statistically significant impact on LLM performance for problem-solving tasks.In addition, these results appear to generalize across LLMs, prompt-engineering techniques, and problem domains.All code, data, and supplemental materials are available on GitHub at: https://github.com/ matthewrenze/jhu-llm-temperature.
Ask Lune
Ask anything. The answer quotes the paper.
Lune reads all of it and the papers around it, then shows you the passages behind every answer.
Lune answers from
the full paper · 34 top-tier papers that cite it · related work
Free to start. No credit card required.
Cited by top-tier papers34
- SimpleVLA-RL: Scaling VLA Training via Reinforcement LearningHaozhan Li, Yuxin Zuo, Jiale Yu, Yuhao Zhang et al.ICLR 2026 · 170 citations
- AdaReasoner: Adaptive Reasoning Enables More Flexible ThinkingXiangqi Wang, Yue Huang, Yanbo Wang, Xiaonan Luo et al.NeurIPS 2025 · 21 citations
- Learn-to-Distance: Distance Learning for Detecting LLM-Generated TextHongyi Zhou, Jin Zhu, Kai Ye, Ying Yang et al.ICLR 2026 · 10 citations
- Semantic-guided Diverse Decoding for Large Language ModelWeijie Shi, Yue Cui, Yaguang Wu, Jingzhi Fang et al.NeurIPS 2025 · 8 citations
- SmartSight: Mitigating Hallucination in Video-LLMs Without Compromising Video Understanding via Temporal Attention CollapseYiming Sun, Mi Zhang, Feifei Li, Geng Hong et al.AAAI 2026 · 5 citations
Builds on3
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo et al.NeurIPS 2022 · 8,168 citations
- Recitation-Augmented Language ModelsZhiqing Sun, Xuezhi Wang, Yi Tay, Yiming Yang et al.ICLR 2023 · 30 citations
Related papers
- Are LLMs Aware that Some Questions are not Open-ended?Dongjie Yang, Hai ZhaoEMNLP Findings 2024 · 1 citation
- UBench: Benchmarking Uncertainty in Large Language Models with Multiple Choice QuestionsXunzhi Wang, Zhuowei Zhang, Gaonan Chen, Qiongyu Li et al.ACL Findings 2025 · 2 citations
- S2LPP: Small-to-Large Prompt Prediction across LLMsLiang Cheng, Tianyi Li, Zhaowei Wang, Mark SteedmanEMNLP Findings 2025 · 1 citation
- POSIX: A Prompt Sensitivity Index For Large Language ModelsAnwoy Chatterjee, H. S. V. N. S. Kowndinya Renduchintala, Sumit Bhatia, Tanmoy ChakrabortyEMNLP Findings 2024 · 36 citations
- Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language ModelsYuqi Zhu, Jia Li, Ge Li, Yunfei Zhao et al.AAAI 2024 · 68 citations
