Explaining and Improving Contrastive Decoding by Extrapolating the Probabilities of a Huge and Hypothetical LM
Not on the map. Why?
Abstract (arXiv)
Contrastive decoding (CD) (Li et al., 2023) improves the next-token distribution of a large expert language model (LM) using a small amateur LM. Although CD is applied to various LMs and domains to enhance open-ended text generation, it is still unclear why CD often works well, when it could fail, and how we can make it better. To deepen our understanding of CD, we first theoretically prove that CD could be viewed as linearly extrapolating the next-token logits from a huge and hypothetical LM. We also highlight that the linear extrapolation could make CD unable to output the most obvious answers that have already been assigned high probabilities by the amateur LM. To overcome CD's limitation, we propose a new unsupervised decoding method called Asymptotic Probability Decoding (APD). APD explicitly extrapolates the probability curves from the LMs of different sizes to infer the asymptotic probabilities from an infinitely large LM without inducing more inference costs than CD. In FactualityPrompts, an open-ended text generation benchmark, sampling using APD significantly boosts factuality in comparison to the CD sampling and its variants, and achieves state-of-the-art results for Pythia 6.9B and OPT 6.7B. Furthermore, in five commonsense QA datasets, APD is often significantly better than CD and achieves a similar effect of using a larger LLM. For example, the perplexity of APD on top of Pythia 6.9B is even lower than the perplexity of Pythia 12B in CommonsenseQA and LAMBADA.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 33 of its 48 references that are in the map. First posted on arXiv 3 Nov 2024.
Builds on
33 of 48 references.
References · 33
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
21 more
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
- 2018Hierarchical Neural Story Generationcited by 1,193
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,077
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2019Quantifying the Carbon Emissions of Machine Learningcited by 521
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 470
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 327
- 2019QASC: A Dataset for Question Answering via Sentence Compositioncited by 252
- 2018Plan-And-Write: Towards Better Automatic Storytellingcited by 234
- 2022Factuality Enhanced Language Models for Open-Ended Text Generationcited by 202
- 2017Controlling Linguistic Style Aspects in Neural Language Generationcited by 149
- 2024Observational Scaling Laws and the Predictability of Language Model Performancecited by 130
- 2023Stay on topic with Classifier-Free Guidancecited by 91
- 2023Alleviating Hallucinations of Large Language Models through Induced Hallucinationscited by 79
- 2024Contrastive Region Guidance: Improving Grounding in Vision-Language Models without Trainingcited by 64
- 2024Model Extrapolation Expedites Alignmentcited by 37
- 2017End-to-End Learning for Structured Prediction Energy Networkscited by 33
- 2023A Frustratingly Simple Decoding Method for Neural Text Generationcited by 16
- 2024REAL Sampling: Boosting Factuality and Diversity of Open-Ended Generation via Asymptotic Entropycited by 11
Built on by
Citing papers per year: 2025: 6; 2026: 5.
11 papers.
- 2025Understanding LLM Scientific Reasoning through Promptings and Model's Explanation on the Answerscited by 10
- 2025Advancing Decoding Strategies: Enhancements in Locally Typical Sampling for LLMscited by 4
- 2025DeLTa: A Decoding Strategy based on Logit Trajectory Prediction Improves Factuality and Reasoning Abilitycited by 3
- 2025LightReasoner: Can Small Language Models Teach Large Language Models Reasoning?cited by 3
- 2026A Practical Investigation of Training-free Relaxed Speculative Decodingcited by 3
- 2025EpiCoDe: Boosting Model Performance Beyond Training with Extrapolation and Contrastive Decodingcited by 1
- 2025Contrastive Decoding for Synthetic Data Generation in Low-Resource Language Modelingcited by 1
- 2026Generative Data Transformation: From Mixed to Unified Datacited by 0
- 2026Synthesizing Instruction-Tuning Datasets with Contrastive Decodingcited by 0
- 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Modelscited by 0
- 2026Beam Search as Test-Time Self-Distillation via Counterfactual Contextscited by 0
- 2026Beam Search as Test-Time Self-Distillation via Counterfactual Contexts29 Sep 2026
- 2026Beyond Tokens: A Survey on Decoding Methods for Large Language and Vision-Language Models14 Aug 2026
- 2026A Practical Investigation of Training-free Relaxed Speculative Decoding9 Jul 2026
- 2026Synthesizing Instruction-Tuning Datasets with Contrastive Decoding15 Apr 2026
- 2026Generative Data Transformation: From Mixed to Unified Data26 Feb 2026
- 2025Contrastive Decoding for Synthetic Data Generation in Low-Resource Language Modeling9 Oct 2025
- 2025LightReasoner: Can Small Language Models Teach Large Language Models Reasoning?9 Oct 2025
- 2025EpiCoDe: Boosting Model Performance Beyond Training with Extrapolation and Contrastive Decoding4 Jun 2025
- 2025Advancing Decoding Strategies: Enhancements in Locally Typical Sampling for LLMs3 Jun 2025
- 2025Understanding LLM Scientific Reasoning through Promptings and Model's Explanation on the Answers2 May 2025
- 2025DeLTa: A Decoding Strategy based on Logit Trajectory Prediction Improves Factuality and Reasoning Ability4 Mar 2025