mlsanityData to 14 Oct 2026

The Benefits of Bad Advice: Autocontrastive Decoding across Model Layers

arXiv 2305.01628 ↗First posted 2 May 2023cs.CL cs.LGcited by 29

Not on the map. Why?

Abstract (arXiv)

Applying language models to natural language processing tasks typically relies on the representations in the final model layer, as intermediate hidden layer representations are presumed to be less informative. In this work, we argue that due to the gradual improvement across model layers, additional information can be gleaned from the contrast between higher and lower layers during inference. Specifically, in choosing between the probable next token predictions of a generative model, the predictions of lower layers can be used to highlight which candidates are best avoided. We propose a novel approach that utilizes the contrast between layers to improve text generation outputs, and show that it mitigates degenerative behaviors of the model in open-ended generation, significantly improving the quality of generated texts. Furthermore, our results indicate that contrasting between model layers at inference time can yield substantial benefits to certain aspects of general language model capabilities, more effectively extracting knowledge during inference from a given set of model parameters.

Key facts. Cited by 29 papers in the map (data through 14 Oct 2026). Builds on 24 of its 34 references that are in the map. First posted on arXiv 2 May 2023.

Builds on

24 of 34 references.

References · 24

  1. 2017Attention Is All You Needcited by 60,361
  2. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
  3. 2016Pointer Sentinel Mixture Modelscited by 3,096
  4. 2019The Curious Case of Neural Text Degenerationcited by 2,916
  5. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  6. 2018Hierarchical Neural Story Generationcited by 1,193
  7. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
  8. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  9. 2020A Primer in BERTology: What we know about how BERT workscited by 815
  10. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
  11. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  12. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
12 more
  1. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
  2. 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 332
  3. 2022Confident Adaptive Language Modelingcited by 310
  4. 2019Depth-Adaptive Transformercited by 236
  5. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  6. 2022A Contrastive Framework for Neural Text Generationcited by 225
  7. 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 126
  8. 2023Jump to Conclusions: Short-Cutting Transformers With Linear Transformationscited by 90
  9. 2020Why should we add early exits to neural networks?cited by 70
  10. 2019How Does BERT Answer Questions? A Layer-Wise Analysis of Transformer Representationscited by 63
  11. 2021Towards Efficient NLP: A Standard Evaluation and A Strong Baselinecited by 44
  12. 2022A Simple Hash-Based Early Exiting Approach For Language Understanding and Generationcited by 32

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 12; 2025: 11; 2026: 4.

29 papers.

Sort:

By area:

  1. 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 376
  2. 2024HALC: Object Hallucination Reduction via Adaptive Focal-Contrast Decodingcited by 174
  3. 2024Tuning Language Models by Proxycited by 89
  4. 2026Verbalizable Representations Form a Global Workspace in Language Modelscited by 75
  5. 2023EE-LLM: Large-Scale Training and Inference of Early-Exit Large Language Models with 3D Parallelismcited by 69
  6. 2025When One LLM Drools, Multi-LLM Collaboration Rulescited by 28
  7. 2024Linear Alignment: A Closed-form Solution for Aligning Human Preferences without Tuning and Feedbackcited by 25
  8. 2024DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinationscited by 25
  9. 2024Selective Prompt Anchoring for Code Generationcited by 16
  10. 2024Pensieve: Retrospect-then-Compare Mitigates Visual Hallucinationcited by 14
  11. 2024EE-Tuning: An Economical yet Scalable Solution for Tuning Early-Exit Large Language Modelscited by 13
  12. 2024Learn from the Learnt: Source-Free Active Domain Adaptation via Contrastive Sampling and Visual Persistencecited by 8
17 more
  1. 2025Sampling from Your Language Model One Byte at a Timecited by 7
  2. 2025Distribution-Aligned Decoding for Efficient LLM Task Adaptationcited by 7
  3. 2025NeSyPr: Neurosymbolic Proceduralization For Efficient Embodied Reasoningcited by 5
  4. 2025Odysseus Navigates the Sirens' Song: Dynamic Focus Decoding for Factual and Diverse Open-Ended Text Generationcited by 4
  5. 2024CorrSynth -- A Correlated Sampling Method for Diverse Dataset Generation from LLMscited by 3
  6. 2025An Analysis of Decoding Methods for LLM-based Agents for Faithful Multi-Hop Question Answeringcited by 2
  7. 2025Delta Sampling: Data-Free Knowledge Transfer Across Diffusion Modelscited by 2
  8. 2026Knowledge Injection Exists in MoE? Exploring Expert-Aware Contrast Decoding in MoE for Mitigating LLMs'Hallucinationscited by 2
  9. 2024Contrastive Perplexity for Controlled Generation: An Application in Detoxifying Large Language Modelscited by 1
  10. 2024CPT: Consistent Proxy Tuning for Black-box Optimizationcited by 1
  11. 2024Tuning Language Models by Mixture-of-Depths Ensemblecited by 1
  12. 2025EnSToM: Enhancing Dialogue Systems with Entropy-Scaled Steering Vectors for Topic Maintenancecited by 1
  13. 2025Advanced Black-Box Tuning of Large Language Models with Limited API Callscited by 1
  14. 2026Hallucinations as Orthogonal Noise: Inference-Time Manifold Alignment via Dynamic Contextual Orthogonalizationcited by 1
  15. 2025Watermarking for Factuality: Guiding Vision-Language Models Toward Truth via Tri-layer Contrastive Decodingcited by 0
  16. 2025Enhancing Instruction-Following Capabilities in Seq2Seq Models: DoLA Adaptations for T5cited by 0
  17. 2026Temporal Guidance for Large Language Modelscited by 0