Local and Global Decoding in Text Generation
Not on the map. Why?
Abstract (arXiv)
Text generation, a key component in applications such as dialogue systems, relies on decoding algorithms that sample strings from a language model distribution. Traditional methods, such as top-k and top-π, apply local normalisation to the model's output distribution, which can distort it. In this paper, we investigate the effect of this distortion by introducing globally-normalised versions of these decoding methods. Additionally, we propose an independent Metropolis-Hastings algorithm to approximate sampling from globally-normalised distributions without explicitly computing them. Our empirical analysis compares the performance of local and global normalisation across two decoding algorithms (top-k and top-π) with various hyperparameters, using Pythia language models. Results show that, in most configurations, global decoding performs worse than the local decoding version of the same algorithms -- despite preserving the distribution's integrity. Our results suggest that distortion is an important feature of local decoding algorithms.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 13 of its 30 references that are in the map. First posted on arXiv 14 Oct 2024.
Builds on
13 of 30 references.
References · 13
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 470
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2022Truncation Sampling as Language Model Desmoothingcited by 123
- 2019On NMT Search Errors and Model Errors: Cat Got Your Tongue?cited by 114
- 2020Trading Off Diversity and Quality in Natural Language Generationcited by 96
- 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 94
- 2023Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programscited by 80
- 2023On the Efficacy of Sampling Adapterscited by 17
- 2019An Empirical Investigation of Global and Local Normalization for Recurrent Neural Sequence Models Using a Continuous Relaxation to Beam Searchcited by 12
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Samplingcited by 21
- 2025Constrained Discrete Diffusioncited by 17
- 2025Local Normalization Distortion and the Thermodynamic Formalism of Decoding Strategies for Large Language Modelscited by 4
- 2026Spectral Origins of the Self-Correction Blind Spot in Autoregressive Generationcited by 0
- 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
- 2026Spectral Origins of the Self-Correction Blind Spot in Autoregressive Generation9 Jul 2026
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling7 Apr 2025
- 2025Local Normalization Distortion and the Thermodynamic Formalism of Decoding Strategies for Large Language Models27 Mar 2025
- 2025Constrained Discrete Diffusion12 Mar 2025