Closing the Curious Case of Neural Text Degeneration
Matthew Finlayson, John Hewitt, Alexander Koller, Swabha Swayamdipta, Ashish Sabharwal
Abstract
Despite their ubiquity in language generation, it remains unknown why truncation sampling heuristics like nucleus sampling are so effective. We provide a theoretical explanation for the effectiveness of the truncation sampling by proving that truncation methods that discard tokens below some probability threshold (the most common type of truncation) can guarantee that all sampled tokens have nonzero true probability. However, thresholds are a coarse heuristic, and necessarily discard some tokens with nonzero true probability as well. In pursuit of a more precise sampling strategy, we show that we can leverage a known source of model errors, the softmax bottleneck, to prove that certain tokens have nonzero true probability, without relying on a threshold. Based on our findings, we develop an experimental truncation strategy and the present pilot studies demonstrating the promise of this type of algorithm. Our evaluations show that our method outperforms its threshold-based counterparts under automatic and human evaluation metrics for low-entropy (i.e., close to greedy) open-ended text generation. Our theoretical findings and pilot experiments provide both insight into why truncation sampling works, and make progress toward more expressive sampling algorithms that better surface the generative capabilities of large language models.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
14 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Contrastive Decoding: Open-ended Text Generation as Optimization cites MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers
- Contrastive Decoding: Open-ended Text Generation as Optimization cites The Curious Case of Neural Text Degeneration
- Improving Open-Ended Text Generation via Adaptive Decoding cites MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers
- Improving Open-Ended Text Generation via Adaptive Decoding cites The Curious Case of Neural Text Degeneration
- MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers cites The Curious Case of Neural Text Degeneration
- InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacy cites Improving Open-Ended Text Generation via Adaptive Decoding
- InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacy cites MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers
- InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacy cites The Curious Case of Neural Text Degeneration
- RankGen: Improving Text Generation with Large Ranking Models cites The Curious Case of Neural Text Degeneration
- Foundations of Top-k Decoding for Language Models cites The Curious Case of Neural Text Degeneration
Cited by top-tier papers14
- Towards Understanding Subliminal Learning: When and How Hidden Biases TransferSimon Schrodi, Elias Kempf, Fazl Barez, Thomas BroxICLR 2026 · 30 citations
- Improving Open-Ended Text Generation via Adaptive DecodingWenhong Zhu, Hongkun Hao, Zhiwei He, Yiming Ai et al.ICML 2024 · 21 citations
- Foundations of Top-k Decoding for Language ModelsGeorgy Noarov, Soham Mallick, Tao Wang, Sunay Joshi et al.NeurIPS 2025 · 14 citations
- Better Language Model Inversion by Compactly Representing Next-Token DistributionsMurtaza Nazir, Matthew Finlayson, John X. Morris, Xiang Ren et al.NeurIPS 2025 · 13 citations
- InvisibleInk: High-Utility and Low-Cost Text Generation with Differential PrivacyVishnu Vinod, Krishna Pillutla, Abhradeep Guha ThakurtaNeurIPS 2025 · 12 citations
Builds on10
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
- Pythia: A Suite for Analyzing Large Language Models Across Training and ScalingStella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley et al.ICML 2023 · 1,822 citations
- MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence FrontiersKrishna Pillutla, Swabha Swayamdipta, Rowan Zellers, John Thickstun et al.NeurIPS 2021 · 606 citations
- Contrastive Decoding: Open-ended Text Generation as OptimizationXiang Lisa Li, Ari Holtzman, Daniel Fried, Percy Liang et al.ACL 2023 · 78 citations
- RankGen: Improving Text Generation with Large Ranking ModelsKalpesh Krishna, Yapei Chang, John Wieting, Mohit IyyerEMNLP 2022 · 27 citations
Related papers
- Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM OutputsNguyen Nhat Minh, Andrew Baker, Clement Neo, Allen G. Roush et al.ICLR 2025
- Decoding Game: On Minimax Optimality of Heuristic Text Generation StrategiesSijin Chen, Omar Hagrass, Jason Matthew KlusowskiICLR 2025
- Truncation Sampling as Language Model DesmoothingJohn Hewitt, Christopher D. Manning, Percy LiangEMNLP Findings 2022 · 26 citations
- Automatic Detection of Generated Text is Easiest when Humans are FooledDaphne Ippolito, Daniel Duckworth, Chris Callison-Burch, Douglas EckACL 2020 · 21 citations
- Local Normalization Distortion and the Thermodynamic Formalism of Decoding Strategies for Large Language ModelsTom Kempton, Stuart BurrellEMNLP Findings 2025
