Local Normalization Distortion and the Thermodynamic Formalism of Decoding Strategies for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Advances in hardware and language model architecture have spurred a revolution in natural language generation. However, autoregressive models compute probability distributions over next-token choices, and sampling from these distributions, known as decoding, has received significantly less attention than other design choices. Existing decoding strategies are largely based on heuristics, resulting in methods that are difficult to apply or improve in a principled manner. We develop the theory of decoding strategies for language models by expressing popular decoding algorithms as equilibrium states in the language of ergodic theory and stating the objective functions they optimize. Using this, we analyze the effect of the local normalization step required to make probabilities sum to one in top-k, nucleus, and temperature sampling. We argue that local normalization distortion is a fundamental defect of decoding strategies and quantify the size of this distortion and its effect on mathematical proxies for the quality and diversity of generated text. This yields conclusions for the design of decoding algorithms and the detection of machine-generated text.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 19 of its 32 references that are in the map. First posted on arXiv 27 Mar 2025.
Builds on
19 of 32 references.
References · 19
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2021All That's 'Human' Is Not Gold: Evaluating Human Evaluation of Generated Textcited by 287
- 2022Truncation Sampling as Language Model Desmoothingcited by 123
- 2018Language GANs Falling Shortcited by 97
7 more
- 2020Trading Off Diversity and Quality in Natural Language Generationcited by 96
- 2022On Decoding Strategies for Neural Text Generatorscited by 90
- 2019Comparison of Diverse Decoding Methods from Conditional Language Modelscited by 78
- 2023Closing the Curious Case of Neural Text Degenerationcited by 32
- 2020A Systematic Characterization of Sampling Algorithms for Open-ended Language Generationcited by 28
- 2024Local and Global Decoding in Text Generationcited by 5
- 2025TempTest: Local Normalization Distortion and the Detection of Machine-generated Textcited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Samplingcited by 21
- 2026When are likely answers right? On Sequence Probability and Correctness in LLMscited by 4
- 2026DMAP: A Distribution Map for Textcited by 1
- 2026Truncation Samplers Are Nested: Comparing Decoding Rules Is a Measurement Problemcited by 0
- 2026Truncation Samplers Are Nested: Comparing Decoding Rules Is a Measurement Problem11 Oct 2026
- 2026When are likely answers right? On Sequence Probability and Correctness in LLMs25 Jun 2026
- 2026DMAP: A Distribution Map for Text12 Feb 2026
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling7 Apr 2025