Language Model Decoding as Direct Metrics Optimization
Not on the map. Why?
Abstract (arXiv)
Despite the remarkable advances in language modeling, current mainstream decoding methods still struggle to generate texts that align with human texts across different aspects. In particular, sampling-based methods produce less-repetitive texts which are often disjunctive in discourse, while search-based methods maintain topic coherence at the cost of increased repetition. Overall, these methods fall short in achieving holistic alignment across a broad range of aspects. In this work, we frame decoding from a language model as an optimization problem with the goal of strictly matching the expected performance with human texts measured by multiple metrics of desired aspects simultaneously. The resulting decoding distribution enjoys an analytical solution that scales the input language model distribution via a sequence-level energy function defined by these metrics. And most importantly, we prove that this induced distribution is guaranteed to improve the perplexity on human texts, which suggests a better approximation to the underlying distribution of human texts. To facilitate tractable sampling from this globally normalized distribution, we adopt the Sampling-Importance-Resampling technique. Experiments on various domains and model scales demonstrate the superiority of our method in metrics alignment with human texts and human evaluation over strong baselines.
Key facts. Cited by 8 papers in the map (data through 13 Oct 2026). Builds on 46 of its 73 references that are in the map. First posted on arXiv 2 Oct 2023.
Builds on
46 of 73 references.
References · 46
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2022Training language models to follow instructions with human feedbackcited by 15,856
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,500
- 2016Pointer Sentinel Mixture Modelscited by 3,047
- 2019The Curious Case of Neural Text Degenerationcited by 2,893
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,170
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,139
- 2018Hierarchical Neural Story Generationcited by 1,186
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 757
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 600
- 2015Sequence Level Training with Recurrent Neural Networkscited by 573
34 more
- 2019Neural Text Generation with Unlikelihood Trainingcited by 494
- 2016SeqGAN: Sequence Generative Adversarial Nets with Policy Gradientcited by 376
- 2019Way Off-Policy Batch Deep Reinforcement Learning of Implicit Human Preferences in Dialogcited by 284
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2020A Distributional Approach to Controlled Text Generationcited by 118
- 2015Minimum Risk Training for Neural Machine Translationcited by 115
- 2022Why Exposure Bias Matters: An Imitation Learning Perspective of Error Accumulation in Language Generationcited by 107
- 2019Reverse KL-Divergence Training of Prior Networks: Improved Uncertainty and Adversarial Robustnesscited by 104
- 2021High Quality Rather than High Model Probability: Minimum Bayes Risk Decoding with Neural Metricscited by 104
- 2018Noise Contrastive Estimation and Negative Sampling for Conditional Models: Consistency and Statistical Efficiencycited by 103
- 2017Long Text Generation via Adversarial Training with Leaked Informationcited by 100
- 2018Language GANs Falling Shortcited by 97
- 2020Residual Energy-Based Models for Text Generationcited by 95
- 2020Trading Off Diversity and Quality in Natural Language Generationcited by 94
- 2022Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generationcited by 92
- 2021Is GPT-3 Text Indistinguishable from Human Text? Scarecrow: A Framework for Scrutinizing Machine Textcited by 89
- 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 83
- 2015How (not) to Train your Generative Model: Scheduled Sampling, Likelihood, Adversary?cited by 78
- 2018An elementary introduction to information geometrycited by 76
- 2020Text Generation by Learning from Demonstrationscited by 64
- 2020Limitations of Autoregressive Models and Their Alternativescited by 54
- 2022Quality-Aware Decoding for Neural Machine Translationcited by 49
- 2020Energy-Based Reranking: Improving Neural Machine Translation Using Energy-Based Modelscited by 44
- 2018Toward Diverse Text Generation with Inverse Reinforcement Learningcited by 41
- 2021Greedification Operators for Policy Optimization: Investigating Forward and Reverse KL Divergencescited by 41
- 2019Calibration, Entropy Rates, and Memory in Language Modelscited by 32
- 2023Tailoring Language Generation Models under Total Variation Distancecited by 27
- 2020Sparse Text Generationcited by 24
- 2021Straight to the Gradient: Learning to Use Novel Tokens for Neural Text Generationcited by 19
- 2021Relating Neural Text Degeneration to Exposure Biascited by 19
- 2019Distributional Reinforcement Learning for Energy-Based Sequential Modelscited by 17
- 2019Global Autoregressive Models for Data-Efficient Sequence Learningcited by 15
- 2021DiscoDVT: Generating Long Text with Discourse-Aware Discrete Variational Transformercited by 14
- 2022An Empirical Study On Contrastive Search And Contrastive Decoding For Open-ended Text Generationcited by 14
Built on by
Citing papers per year: 2024: 4; 2025: 2; 2026: 2.
8 papers.
- 2024Towards Efficient Exact Optimization of Language Model Alignmentcited by 37
- 2024Non-myopic Generation of Language Models for Reasoning and Planningcited by 25
- 2025Antidistillation Samplingcited by 24
- 2024MAP: Multi-Human-Value Alignment Palettecited by 20
- 2026Fast Rates for Offline Contextual Bandits with Forward-KL Regularization under Single-Policy Concentrabilitycited by 1
- 2024Synthesize, Partition, then Adapt: Eliciting Diverse Samples from Foundation Modelscited by 0
- 2025Waste Not, Want Not; Recycled Gumbel Noise Improves Consistency in Natural Language Generationcited by 0
- 2026Composable Decoding on the Probability Simplex: Theory and Implementationcited by 0
- 2026Composable Decoding on the Probability Simplex: Theory and Implementation28 Sep 2026
- 2026Fast Rates for Offline Contextual Bandits with Forward-KL Regularization under Single-Policy Concentrability9 May 2026
- 2025Antidistillation Sampling17 Apr 2025
- 2025Waste Not, Want Not; Recycled Gumbel Noise Improves Consistency in Natural Language Generation2 Mar 2025
- 2024Synthesize, Partition, then Adapt: Eliciting Diverse Samples from Foundation Models11 Nov 2024
- 2024MAP: Multi-Human-Value Alignment Palette24 Oct 2024
- 2024Non-myopic Generation of Language Models for Reasoning and Planning22 Oct 2024
- 2024Towards Efficient Exact Optimization of Language Model Alignment1 Feb 2024