Lune

ACL2023Top-tier venue

On the Efficacy of Sampling Adapters

Clara Meister, Tiago Pimentel, Luca Malagutti, Ethan Wilcox, Ryan Cotterell

Abstract

Sampling-based decoding strategies are widely employed for generating text from probabilistic models, yet standard ancestral sampling often results in text that is degenerate or incoherent. To alleviate this issue, various modifications to a model’s sampling distribution, such as top-p or top-k sampling, have been introduced and are now ubiquitously used in language generation systems. We propose a unified framework for understanding these techniques, which we term sampling adapters. Sampling adapters often lead to qualitatively better text, which raises the question: From a formal perspective, how are they changing the token-level distributions of language generation models? And why do these local changes lead to higher-quality text? We argue that the shift they enforce can be viewed as a trade-off between precision and recall: while the model loses its ability to produce certain strings, its precision rate on desirable text increases. While this trade-off is not reflected in standard metrics of distribution quality (such as perplexity), we find that several precision-emphasizing measures indeed indicate that sampling adapters can lead to probability distributions more aligned with the true distribution. Further, these measures correlate with higher sequence-level quality scores, specifically, Mauve.

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.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Neural Text Generation With Unlikelihood Training cites The Curious Case of Neural Text Degeneration
  • The Curious Case of Neural Text Degeneration cites Neural Text Generation With Unlikelihood Training
  • Improving Open-Ended Text Generation via Adaptive Decoding cites Neural Text Generation With Unlikelihood Training
  • 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 Neural Text Generation With Unlikelihood Training
  • MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers cites The Curious Case of Neural Text Degeneration
  • Text Generation by Learning from Demonstrations cites Neural Text Generation With Unlikelihood Training
  • Text Generation by Learning from Demonstrations cites The Curious Case of Neural Text Degeneration
  • Emo: Earth Mover Distance Optimization for Auto-Regressive Language Modeling cites MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontiers
  • Emo: Earth Mover Distance Optimization for Auto-Regressive Language Modeling cites Text Generation by Learning from Demonstrations
  • Emo: Earth Mover Distance Optimization for Auto-Regressive Language Modeling cites The Curious Case of Neural Text Degeneration
  • A Probability-Quality Trade-off in Aligned Language Models and its Relation to Sampling Adaptors cites The Curious Case of Neural Text Degeneration
  • Reembedding and Reweighting are Needed for Tail Item Sequential Recommendation cites Emo: Earth Mover Distance Optimization for Auto-Regressive Language Modeling
  • Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMs cites Improving Open-Ended Text Generation via Adaptive Decoding
  • Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMs cites A Probability-Quality Trade-off in Aligned Language Models and its Relation to Sampling Adaptors
  • Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMs cites The Curious Case of Neural Text Degeneration
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Improving Open-Ended Text Generation via Adaptive DecodingWenhong Zhu, Hongkun Hao, Zhiwei He, Yiming Ai et al.ICML 2024 · 21 citations
  2. Emo: Earth Mover Distance Optimization for Auto-Regressive Language ModelingSiyu Ren, Zhiyong Wu, Kenny Q. ZhuICLR 2024 · 9 citations
  3. Reembedding and Reweighting are Needed for Tail Item Sequential RecommendationZihao Li, Yakun Chen, Tong Zhang, Xianzhi WangWWW 2025 · 5 citations
  4. Sample Smart, Not Hard: Correctness-First Decoding for Better Reasoning in LLMsXueyan Li, Guinan Su, Mrinmaya Sachan, Jonas GeipingICLR 2026 · 5 citations
  5. A Probability-Quality Trade-off in Aligned Language Models and its Relation to Sampling AdaptorsNaaman Tan, Josef Valvoda, Tianyu Liu, Anej Svete et al.EMNLP 2024

Builds on15

  1. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  2. Neural Text Generation With Unlikelihood TrainingSean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan et al.ICLR 2020 · 683 citations
  3. 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
  4. An empirical analysis of compute-optimal large language model trainingJordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya et al.NeurIPS 2022 · 566 citations
  5. Text Generation by Learning from DemonstrationsRichard Yuanzhe Pang, He HeICLR 2021 · 88 citations

Related papers

  1. Mirostat: a Neural Text decoding Algorithm that directly controls perplexitySourya Basu, Govardana Sachitanandam Ramachandran, Nitish Shirish Keskar, Lav R. VarshneyICLR 2021 · 13 citations
  2. kNN-LM Does Not Improve Open-ended Text GenerationShufan Wang, Yixiao Song, Andrew Drozdov, Aparna Garimella et al.EMNLP 2023 · 3 citations
  3. Local Normalization Distortion and the Thermodynamic Formalism of Decoding Strategies for Large Language ModelsTom Kempton, Stuart BurrellEMNLP Findings 2025
  4. Decoding Game: On Minimax Optimality of Heuristic Text Generation StrategiesSijin Chen, Omar Hagrass, Jason Matthew KlusowskiICLR 2025
  5. Adaptive Contrastive Search: Uncertainty-Guided Decoding for Open-Ended Text GenerationEsteban Garces Arias, Julian Rodemann, Meimingwei Li, Christian Heumann et al.EMNLP Findings 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines