mlsanityData to 14 Oct 2026

Local and Global Decoding in Text Generation

arXiv 2410.10810 ↗First posted 14 Oct 2024cs.CLcited by 5

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

  1. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  2. 2018Hierarchical Neural Story Generationcited by 1,193
  3. 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
  4. 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 470
  5. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
  6. 2022Truncation Sampling as Language Model Desmoothingcited by 123
  7. 2019On NMT Search Errors and Model Errors: Cat Got Your Tongue?cited by 114
  8. 2020Trading Off Diversity and Quality in Natural Language Generationcited by 96
  9. 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 94
  10. 2023Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programscited by 80
  11. 2023On the Efficacy of Sampling Adapterscited by 17
  12. 2019An Empirical Investigation of Global and Local Normalization for Recurrent Neural Sequence Models Using a Continuous Relaxation to Beam Searchcited by 12
1 more
  1. 2023A Block Metropolis-Hastings Sampler for Controllable Energy-based Text Generationcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 2.

5 papers.