Decoding Game: On Minimax Optimality of Heuristic Text Generation Strategies
Not on the map. Why?
Abstract (arXiv)
Decoding strategies play a pivotal role in text generation for modern language models, yet a puzzling gap divides theory and practice. Surprisingly, strategies that should intuitively be optimal, such as Maximum a Posteriori (MAP), often perform poorly in practice. Meanwhile, popular heuristic approaches like Top-k and Nucleus sampling, which employ truncation and normalization of the conditional next-token probabilities, have achieved great empirical success but lack theoretical justifications. In this paper, we propose Decoding Game, a comprehensive theoretical framework which reimagines text generation as a two-player zero-sum game between Strategist, who seeks to produce text credible in the true distribution, and Nature, who distorts the true distribution adversarially. After discussing the decomposibility of multi-step generation, we derive the optimal strategy in closed form for one-step Decoding Game. It is shown that the adversarial Nature imposes an implicit regularization on likelihood maximization, and truncation-normalization methods are first-order approximations to the optimal strategy under this regularization. Additionally, by generalizing the objective and parameters of Decoding Game, near-optimal strategies encompass diverse methods such as greedy search, temperature scaling, and hybrids thereof. Numerical experiments are conducted to complement our theoretical analysis.
Key facts. Cited by 7 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 4 Oct 2024.
Builds on
19 of 32 references.
References · 19
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2021Convex optimizationcited by 2,515
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 470
- 2022A Contrastive Framework for Neural Text Generationcited by 225
- 2017Breaking the Softmax Bottleneck: A High-Rank RNN Language Modelcited by 152
- 2022Offline RL for Natural Language Generation with Implicit Language Q Learningcited by 138
- 2019Unifying Human and Statistical Evaluation for Natural Language Generationcited by 127
- 2020If beam search is the answer, what was the question?cited by 116
- 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 114
7 more
- 2022Locally Typical Samplingcited by 111
- 2022On Decoding Strategies for Neural Text Generatorscited by 90
- 2021Twice regularized MDPs and the equivalence between robustness and regularizationcited by 47
- 2022Critic-Guided Decoding for Controlled Text Generationcited by 45
- 2023The Consensus Game: Language Model Generation via Equilibrium Searchcited by 36
- 2015Understanding Adversarial Training: Increasing Local Stability of Neural Nets through Robust Optimizationcited by 32
- 2023Closing the Curious Case of Neural Text Degenerationcited by 32
Built on by
Citing papers per year: 2025: 5; 2026: 2.
7 papers.
- 2025Game Theory Meets Large Language Models: A Systematic Survey with Taxonomy and New Frontierscited by 16
- 2025Foundations of Top-k Decoding For Language Modelscited by 10
- 2025GUARD: Glocal Uncertainty-Aware Robust Decoding for Effective and Efficient Open-Ended Text Generationcited by 10
- 2025Incentivizing Truthful Language Models via Peer Elicitation Gamescited by 9
- 2025Tokenized Bandit for LLM Decoding and Alignmentcited by 2
- 2026Composable Decoding on the Probability Simplex: Theory and Implementationcited 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
- 2026Composable Decoding on the Probability Simplex: Theory and Implementation28 Sep 2026
- 2025GUARD: Glocal Uncertainty-Aware Robust Decoding for Effective and Efficient Open-Ended Text Generation28 Aug 2025
- 2025Tokenized Bandit for LLM Decoding and Alignment8 Jun 2025
- 2025Foundations of Top-k Decoding For Language Models25 May 2025
- 2025Incentivizing Truthful Language Models via Peer Elicitation Games19 May 2025
- 2025Game Theory Meets Large Language Models: A Systematic Survey with Taxonomy and New Frontiers13 Feb 2025