Skip to content

Attention-Guided Layer Selection for Contrastive Decoding in Large Language Models

Jul 2026 · arXiv.org · Vol abs/2607.23067 · 0 citations · 23 references
Computer Science

TL;DR

Three attention-guided strategies are proposed: Attention-JSD, Attention-Entropy-Max, and Attention-Entropy-Min, which leverage structural information carried by internal self-attention mechanisms as a signal for layer selection and observe significant gains on multi-answer metrics.

Abstract

Contrastive decoding methods such as DoLa improve the factuality of Large Language Models (LLMs) by contrasting the output distributions of mature and premature layers. However, DoLa's dynamic layer selection relies solely on divergences in output vocabulary distributions. In this work, we propose three attention-guided strategies: Attention-JSD, Attention-Entropy-Max, and Attention-Entropy-Min, which leverage structural information carried by internal self-attention mechanisms as a signal for layer selection. Experimental results on TruthfulQA demonstrate that our strategies, particularly Attention-JSD and Attention-Entropy-Min, consistently outperform the original DoLa. We observe significant gains on multi-answer metrics (MC2 and MC3), suggesting that attention distributions can provide a more sensitive signal for resolving factual knowledge than output vocabulary distributions.

View source

Similar papers

Open access Sep 2026

Rethinking Attention: Entropy-Guided Iterative Refinement for Language Models

Standard Multi-Head Attention (MHA) computes contextual representations in a single forward pass, providing no mechanism to detect or correct diffuse or suboptimal attention distributions. Existing efforts to improve attention have primarily targeted computational efficiency or sequence length, leaving attention qualit...

R. Priyadarshini, Subham Divakar · 0 citations
#artificial intelligence Preprint Sep 2026

Multilinguality in Hybrid Attention LLMs

This work presents a first study of how hybrid attention impacts the multilinguality of LLMs, showing that cross-lingual representations in hybrid models develop in patterns tied to the ordering of recurrent and full-attention layers.

Lucas Bandarkar, Jun-Ling Hu, Chen-Yuan Yang et al. · 0 citations
Preprint Aug 2026

Generative vs. Encoder Large Language Models for ASR Evaluation: A Comparative Study

The results show that encoder-based metrics remain highly competitive, while generative LLMs perform strongly in hypothesis comparison and improve the interpretability of ASR evaluation.

Thibault Bañeras-Roux, Shashi Kumar, Driss Khalil et al. · 0 citations
Aug 2026

PopCD: Test-Time Behavior Enhancement via Polarity-Prompt Contrastive Decoding.

This work introduces Polarity-Prompt Contrastive Decoding (PopCD), a test-time behavior control method that generalizes contrastive decoding to broader enhancement settings and is applicable to both LLMs and Vision-Language Models without additional training.

Bao-Long Bi, Yuyao Ge, Sheng-Hua Liu et al. · 0 citations
Preprint Aug 2026

Visual Information-Guided Parallel Decoding for Diffusion Multimodal Large Language Models

The Visual Information-Guided Sampler (VIG-Sampler), which prioritizes tokens based on their attention to image tokens, and imposes a constraint that penalizes candidate tokens whose image-attention distributions are similar to those of previously selected tokens, thereby increasing the information gain of the decoded...

Insu Lee, Woo-Soon Park, Wonseok Shin et al. · 1 citation
Review Aug 2026

Not All Attention Is Equal: A Quantitative Survey of the EEI Trade-off

This survey traces attention from Bahdanau-Luong alignment through the Transformer and into vision architectures, and reviews fixed and learned sparse attention, linear attention, IO-aware exact algorithms including FlashAttention, and state-space alternatives including Mamba.

Aditya Singh · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.