Temperature Fragility and the Conditional Benefits of Truncation Sampling
Abstract
Large language models generate text by sampling each token from a predicted distribution, and a temperature parameter sets how far the draw strays from the most probable tokens. Truncation samplers such as top-p and min-p discard the least probable tokens before the draw, so that sampling at high temperature stays coherent. Their reported accuracy gains come from temperatures of 1.5 to 3, while the defaults of deployed systems cluster between 0.6 and 1.0. Whether they change accuracy at those defaults, and for which models, has not been measured. We test thirteen open-weight models on GSM8K and MMLU-Pro at temperatures 0.7, 1.0, and 1.3 in one controlled pipeline, ten of them under eight decoding configurations. Six of the thirteen models lose 17 to 38 accuracy points on MMLU-Pro between 0.7 and 1.3, and the other seven lose at most 10. The lost accuracy comes from generations that run to the token limit or never state an answer. These results suggest that truncation samplers improve accuracy primarily when higher temperatures substantially degrade model performance. Where accuracy remains stable across temperatures, none of the tested truncation samplers improves on plain temperature sampling.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG
- Comments
- 20 pages, 8 figures, 16 tables. Code and data: https://github.com/larosafrancesco289/decoding-robustness
Related papers
SALSA: Sampling Adversarial Suffixes from Learned Distributions for LLM Safety Assessment
Shared title terminologycs.CLShivank Rajput, Himanshu Singh, A. V. Subramanyam
CondRelBench: A Mixed-Domain Benchmark for Condition-Scoped Relation Understanding
Shared title terminologycs.CLSydney Anuyah, Bofu Dong, Sudhasmita Swain et al.
TACTICS: Taxonomy-Aware Intelligent Corpus Sampling for Machine Translation
Shared title terminologycs.CLPrasanth Bathala, Anubhav Shrimal, Sukhdeep Singh Kharbanda et al.
Who Judges Matters: Measuring Family-Conditioned Preference in LLM-as-Judge Panels
Shared title terminologycs.CLDavid Ababio Awuni, Luke E. K. Achenie, Benjamin Tei Partey et al.
Deconstructing Stereotypes: Scope-Conditioned Generation for Effective Multilingual Counterspeech
Shared title terminologycs.CLGreta Damo, Elias Urios Alacreu, Elena Cabrio et al.
Early-Bird Decoding: Accelerating Diffusion LLMs with Learnable Block Sizes and Parallel Sampling
Shared title terminologycs.CLLixuan Wei, Wei Zhou, Jianwen Wu et al.