Attention-Guided Layer Selection for Contrastive Decoding in Large Language Models
Summary
Proposes three attention-guided strategies for layer selection in contrastive decoding for large language models, improving factuality on TruthfulQA over the DoLa baseline.
View Cached Full Text
Cached at: 07/28/26, 06:27 AM
# Attention-Guided Layer Selection for Contrastive Decoding in Large Language Models
Source: [https://arxiv.org/html/2607.23067](https://arxiv.org/html/2607.23067)
Yusuke Sakai, Natthawut Kertkeidkachorn, Kiyoaki Shirai Japan Advanced Institute of Science and Technology \{yusuke\.sakai,natt,kshirai\}@jaist\.ac\.jp
###### 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—that 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\.
Attention\-Guided Layer Selection for Contrastive Decoding in Large Language Models
Yusuke Sakai, Natthawut Kertkeidkachorn, Kiyoaki ShiraiJapan Advanced Institute of Science and Technology\{yusuke\.sakai,natt,kshirai\}@jaist\.ac\.jp
## 1Introduction
Large language models \(LLMs\) have achieved strong performance across a wide range of natural language processing tasks, yet they remain prone to hallucination, i\.e\., generating plausible but factually incorrect content\(Huang et al\.,[2025](https://arxiv.org/html/2607.23067#bib.bib6)\)\. This issue is particularly problematic in tasks such as open\-domain question answering and long\-form generation, where producing unsupported claims that are not grounded in the training data poses a major obstacle to real\-world deployment\.
One inference\-time approach to mitigating this issue is contrastive decoding\(Li et al\.,[2023b](https://arxiv.org/html/2607.23067#bib.bib12)\)\. Contrastive decoding is a framework that does not rely solely on the output distribution of a single model; instead, it contrasts multiple distributions to relatively suppress undesirable generation tendencies and to prefer more desirable candidates\. For instance, Li et al\.\(Li et al\.,[2023b](https://arxiv.org/html/2607.23067#bib.bib12)\)define an objective based on the difference between the log\-probabilities of a large model \(expert\) and a small model \(amateur\), and introduce a plausibility constraint based on the expert model’s confidence, aiming to reduce degradations in open\-ended generation such as repetition and topic drift while maintaining fluency and coherence\.
DoLa \(Decoding by Contrasting Layers\)\(Chuang et al\.,[2024b](https://arxiv.org/html/2607.23067#bib.bib2)\)extends this contrastive idea within a single model by contrasting the logits of the final \(mature\) layer and an early \(premature\) layer, thereby improving factuality without additional training\. Given a set of candidate premature layers, DoLa dynamically selects, at each token, the layer that maximizes the Jensen–Shannon divergence \(JSD\) from the final layer, and demonstrates effectiveness on benchmarks such as TruthfulQA\(Lin et al\.,[2022](https://arxiv.org/html/2607.23067#bib.bib13)\)and FACTOR\(Muhlgay et al\.,[2024](https://arxiv.org/html/2607.23067#bib.bib17)\)\. Moreover, DoLa is self\-contained within a single model, requiring neither an auxiliary model nor external signals, which makes it a practical plug\-in method for inference\-time adoption\. However, DoLa’s layer selection is driven by differences in output distributions \(logits\) and does not directly leverage information carried by the model’s internal attention mechanisms as a selection signal\.
Transformers provide diverse internal signals beyond output distributions, including self\-attention mechanisms and intermediate representations\. Recent work has explored leveraging such signals, for example, using cross\-layer entropy changes of hidden states\(Wu et al\.,[2025](https://arxiv.org/html/2607.23067#bib.bib23)\), adaptively tuning contrast strength in retrieval\-augmented generation based on context\(Kim et al\.,[2024](https://arxiv.org/html/2607.23067#bib.bib9); Shi et al\.,[2024](https://arxiv.org/html/2607.23067#bib.bib19)\), and detecting hallucinations from attention patterns\(Chuang et al\.,[2024a](https://arxiv.org/html/2607.23067#bib.bib1)\)\. Nevertheless, contrastive decoding methods still often rely on scalar statistics derived from logits or hidden states, and systematic attempts to use the structural information in attention distributions as token\-level signals for layer selection remain limited\.
In this study, we hypothesize that attention mechanisms can serve as a signal for identifying layers where factual knowledge emerges\. Specifically, while keeping the DoLa framework intact, we introduce three strategies for selecting premature layers based on internal attention distributions\.
Our contributions are as follows:
- •We propose three attention\-guided strategies—Attention\-JSD, Attention\-Entropy\-Max, and Attention\-Entropy\-Min—that leverage structural information derived from self\-attention mechanisms as dynamic signals for layer selection, moving beyond the conventional reliance on output vocabulary distributions\.
- •TruthfulQA evaluations show that our proposed methods \(especially Attention\-JSD and Attention\-Entropy\-Min\) outperform existing approaches, achieving substantial gains particularly on the multiple\-correct\-answer metrics \(MC2/MC3\)\. In addition, on FACTOR, our methods improve over the baseline in many settings and achieve performance comparable to, or in some cases better than, DoLa\.
- •Through visualization of layer selection patterns and head\-wise analysis, we identify that specific attention heads carry distinct signals conducive to factuality discrimination, thereby revealing potential avenues for further optimization in contrastive decoding design\.
## 2Related Work
##### Hallucinations in Large Language Models\.
LLM hallucinations can be broadly categorized into factuality hallucinations, which generate content that contradicts verifiable facts, and faithfulness hallucinations, which deviate from the given context or instructions\. Both forms pose serious challenges across a wide range of applications, including dialogue systems, retrieval\-augmented generation \(RAG\), and agents\(Ji et al\.,[2023](https://arxiv.org/html/2607.23067#bib.bib8); Huang et al\.,[2025](https://arxiv.org/html/2607.23067#bib.bib6)\)\. To mitigate this issue, various approaches have been proposed, such as reinforcement learning from human feedback \(RLHF\)\(Ouyang et al\.,[2022](https://arxiv.org/html/2607.23067#bib.bib18)\), self\-consistency checks at inference time\(Wang et al\.,[2023](https://arxiv.org/html/2607.23067#bib.bib22); Manakul et al\.,[2023](https://arxiv.org/html/2607.23067#bib.bib14)\), and multi\-agent debate\(Du et al\.,[2024](https://arxiv.org/html/2607.23067#bib.bib4)\)\. These methods typically require additional training, access to external knowledge\(Lewis et al\.,[2020](https://arxiv.org/html/2607.23067#bib.bib10)\), or multiple inference passes\. In contrast, this study focuses on methods that do not modify the parameters of existing models and can be realized with a single forward computation\.
##### Layer\-wise Knowledge in Transformers\.
Transformer\-based models have been shown in many analysis studies to encode information hierarchically across layers\(Tenney et al\.,[2019](https://arxiv.org/html/2607.23067#bib.bib20); Jawahar et al\.,[2019](https://arxiv.org/html/2607.23067#bib.bib7)\)\. For example, in BERT, lower layers tend to capture surface\-level features and local syntactic information, while semantic and contextual information becomes increasingly salient from the middle to higher layers\(Jawahar et al\.,[2019](https://arxiv.org/html/2607.23067#bib.bib7)\)\. It has also been observed that information corresponding to different stages of language understanding emerges progressively along the depth of the network\(Tenney et al\.,[2019](https://arxiv.org/html/2607.23067#bib.bib20)\)\. Building on these observations, prior work has proposed methods that identify which internal computations mediate factual associations and update knowledge by editing those localized computations\(Meng et al\.,[2022](https://arxiv.org/html/2607.23067#bib.bib15),[2023](https://arxiv.org/html/2607.23067#bib.bib16)\)\. Moreover, as an inference\-time attempt to directly intervene in internal representations that arise in layers and attention mechanisms to elicit desirable properties, Inference\-Time Intervention \(ITI\) has been proposed, which improves truthfulness by manipulating the activations of specific attention heads\(Li et al\.,[2023a](https://arxiv.org/html/2607.23067#bib.bib11)\)\.
##### Contrastive Decoding\.
Contrastive Decoding \(CD\)\(Li et al\.,[2023b](https://arxiv.org/html/2607.23067#bib.bib12)\)is a decoding method that uses the log\-probability gap between an expert and an amateur as a contrastive objective while restricting candidates with an expert\-confidence\-based plausibility constraintVheadV\_\{\\text\{head\}\}; DoLa\(Chuang et al\.,[2024b](https://arxiv.org/html/2607.23067#bib.bib2)\)extends this contrastive idea to inter\-layer contrast within a single model by contrasting the distributions of the final \(mature\) layer and a shallow \(premature\) layer, dynamically selecting at each token the premature layer that maximizes the Jensen–Shannon divergence \(JSD\) from the final layer\. Related work includes END\(Wu et al\.,[2025](https://arxiv.org/html/2607.23067#bib.bib23)\), which computes token\-wise cross\-layer entropy from layer\-wise changes in predicted probabilities for candidate tokens and reweights the final predictive distribution accordingly, and ACD\(Kim et al\.,[2024](https://arxiv.org/html/2607.23067#bib.bib9)\), which adaptively adjusts contrast strength in RAG based on, e\.g\., the extent to which the retrieved context reduces uncertainty \(entropy\)\. In contrast, designs that directly exploit the structural patterns of attention distributions as dynamic signals remain limited\.
##### Attention\-based Analysis\.
Attention mechanisms assign weights to reference tokens when updating representations at each position, and have been used as a cue for observing layer\- and head\- wise behaviors\. Prior work has reported that certain attention heads capture syntactic dependencies and coreference relations\(Clark et al\.,[2019](https://arxiv.org/html/2607.23067#bib.bib3); Voita et al\.,[2019](https://arxiv.org/html/2607.23067#bib.bib21)\)\. It has also been suggested that some heads are involved in factual knowledge recall and attribute extraction\(Geva et al\.,[2023](https://arxiv.org/html/2607.23067#bib.bib5)\), and that attention patterns can be used to detect hallucinations during generation\(Chuang et al\.,[2024a](https://arxiv.org/html/2607.23067#bib.bib1)\)\. These findings suggest that attention distributions may serve as a signal for layer selection\. However, to the best of our knowledge, attempts to directly use attention distributions \(or their summaries\) for token\-level layer selection in dynamic decoding have not been investigated\. Starting from the DoLa framework, this study is characterized by a systematic evaluation of layer selection strategies based on attention distributions and their entropy\.
## 3Methods
In this section, we first review the background of DoLa and then introduce our attention\-based layer selection strategies\. Finally, we describe the head\-level analysis setup\.
### 3\.1Background: Decoding by Contrasting Layers
Given a prefix token sequencex<tx\_\{<t\}, a Transformer\-based LLM induces a next\-token conditional distributionql\(xt∣x<t\)q\_\{l\}\(x\_\{t\}\\mid x\_\{<t\}\)from the output of each layerll\.
DoLa\(Chuang et al\.,[2024b](https://arxiv.org/html/2607.23067#bib.bib2)\)is an inference\-time decoding method that improves factuality without additional training by contrasting a shallow premature layer with a deep mature layer \(the final layerLL\) within the same model\. It definesP^\(xt∣x<t\)\\hat\{P\}\(x\_\{t\}\\mid x\_\{<t\}\)using a scoreF\(qL\(xt\),ql∗\(xt\)\)F\(q\_\{L\}\(x\_\{t\}\),q\_\{l^\{\*\}\}\(x\_\{t\}\)\)based on the ratio between the final\-layer distribution and the token\-wise selected premature\-layer distribution\.
P^\(xt∣x<t\)\\displaystyle\\hat\{P\}\(x\_\{t\}\\mid x\_\{<t\}\)=softmax\(F\(qL\(xt\),ql∗\(xt\)\)\)\.\\displaystyle=\\mathrm\{softmax\}\\\!\\big\(F\(q\_\{L\}\(x\_\{t\}\),q\_\{l^\{\*\}\}\(x\_\{t\}\)\)\\big\)\.\(1\)F\(qL\(xt\),ql∗\(xt\)\)\\displaystyle F\(q\_\{L\}\(x\_\{t\}\),q\_\{l^\{\*\}\}\(x\_\{t\}\)\)=\{logqL\(xt\)ql∗\(xt\),xt∈Vhead\(x<t\),−∞,otherwise\.\\displaystyle=\(2\)
To ensure plausibility under the final layer, candidates are restricted to the token setVhead\(x<t\)V\_\{\\mathrm\{head\}\}\(x\_\{<t\}\)\. Here,Vhead\(x<t\)V\_\{\\mathrm\{head\}\}\(x\_\{<t\}\)is defined as follows, wherewwranges over the vocabulary𝒱\\mathcal\{V\}:
Vhead\(x<t\)=\{xt:qL\(xt\)≥αmaxw∈𝒱qL\(w\)\}\.V\_\{\\mathrm\{head\}\}\(x\_\{<t\}\)=\\left\\\{x\_\{t\}:q\_\{L\}\(x\_\{t\}\)\\geq\\alpha\\max\_\{w\\in\\mathcal\{V\}\}q\_\{L\}\(w\)\\right\\\}\.\(3\)
The premature layer is then selected dynamically at each token by maximizing the Jensen–Shannon Divergence \(JSD\) from the final layer over a candidate set𝒞\\mathcal\{C\}\. Here,𝒞\\mathcal\{C\}denotes the set of candidate premature layers used for contrast; in DoLa, layers are partitioned into several buckets \(contiguous ranges\), one bucket is chosen via validation, and the layers within the selected bucket \(including a setting that considers only even\-numbered layers for efficiency\) constitute𝒞\\mathcal\{C\}\.
l∗=argmaxl∈𝒞JSD\(qL\(⋅∣x<t\),ql\(⋅∣x<t\)\)\.l^\{\*\}=\\operatorname\*\{arg\\,max\}\_\{l\\in\\mathcal\{C\}\}\\operatorname\{JSD\}\\left\(q\_\{L\}\(\\cdot\\mid x\_\{<t\}\),q\_\{l\}\(\\cdot\\mid x\_\{<t\}\)\\right\)\.\(4\)
### 3\.2Attention\-Guided Layer Selection
DoLa selects premature layers based on divergences in token \(vocabulary\) distributions, but this criterion does not directly capture the underlying reference structure \(i\.e\., where the model attends when making predictions\)\. To address this limitation, we use attention distributions as a layer\-selection signal that reflects layer\-wise differences in which the model attends, and introduce three attention\-guided layer selection strategies while preserving the DoLa framework\.
LetAl∈ℝH×T×TA^\{l\}\\in\\mathbb\{R\}^\{H\\times T\\times T\}denote the self\-attention tensor at layerll, whereAh,t,ilA^\{l\}\_\{h,t,i\}is the attention weight assigned by headhhat query positionttto positionii\(a past token\)\. For query positiontt, we define the head\-averaged attention row over past tokens1:t1:tasatl∈ℝta^\{l\}\_\{t\}\\in\\mathbb\{R\}^\{t\}:
atl\(i\)\\displaystyle a^\{l\}\_\{t\}\(i\)=1H∑h=1HAh,t,il,i∈\{1,…,t\},\\displaystyle=\\frac\{1\}\{H\}\\sum\_\{h=1\}^\{H\}A^\{l\}\_\{h,t,i\},\\qquad i\\in\\\{1,\\ldots,t\\\},\(5\)atl\(i\)\\displaystyle a^\{l\}\_\{t\}\(i\)≥0,∑i=1tatl\(i\)=1\.\\displaystyle\\geq 0,\\qquad\\sum\_\{i=1\}^\{t\}a^\{l\}\_\{t\}\(i\)=1\.
#### 3\.2\.1Attention\-JSD
Since attention distributions can reflect where each layer attends when making predictions, a layer whose attention pattern differs substantially from the final layer may correspond to a different stage of computation\. Under this hypothesis, Attention\-JSD selects the layer whose attention distribution is most divergent from the final layer:
lattn\-jsd∗=argmaxl∈𝒞JSD\(atL,atl\)\.l^\{\*\}\_\{\\mathrm\{attn\\text\{\-\}jsd\}\}=\\operatorname\*\{arg\\,max\}\_\{l\\in\\mathcal\{C\}\}\\operatorname\{JSD\}\\left\(a^\{L\}\_\{t\},a^\{l\}\_\{t\}\\right\)\.\(6\)
#### 3\.2\.2Attention\-Entropy\-Max
The entropy of an attention distribution can be interpreted as a summary of how broadly attention is spread across past tokens\. Under the hypothesis that broadly distributed attention can serve as a cue for layer selection, Attention\-Entropy\-Max selects the layer with the maximum attention entropy:
H\(atl\)\\displaystyle H\(a^\{l\}\_\{t\}\)=−∑i=1tatl\(i\)logatl\(i\),\\displaystyle=\-\\sum\_\{i=1\}^\{t\}a^\{l\}\_\{t\}\(i\)\\log a^\{l\}\_\{t\}\(i\),\(7\)lattn\-ent\-max∗\\displaystyle l^\{\*\}\_\{\\mathrm\{attn\\text\{\-\}ent\\text\{\-\}max\}\}=argmaxl∈𝒞H\(atl\)\.\\displaystyle=\\operatorname\*\{arg\\,max\}\_\{l\\in\\mathcal\{C\}\}H\(a^\{l\}\_\{t\}\)\.
#### 3\.2\.3Attention\-Entropy\-Min
Conversely, low\-entropy attention indicates that attention is concentrated on a small number of tokens, which may reflect strong reliance on specific evidence tokens\. Under the hypothesis that such concentrated attention can serve as a cue for layer selection, Attention\-Entropy\-Min selects the layer with the minimum attention entropy:
lattn\-ent\-min∗=argminl∈𝒞H\(atl\)\.l^\{\*\}\_\{\\mathrm\{attn\\text\{\-\}ent\\text\{\-\}min\}\}=\\operatorname\*\{arg\\,min\}\_\{l\\in\\mathcal\{C\}\}H\(a^\{l\}\_\{t\}\)\.\(8\)
### 3\.3Head\-wise Attention Analysis
To better understand the behavior of our attention\-based methods, we conduct a head\-wise analysis\.
In the definitions above, the attention distributionatla^\{l\}\_\{t\}is obtained by averaging over allHHheads\. In this analysis, we vary the range of heads used for averaging, and apply the resulting attention distributions to the computations of Attention\-JSD and Attention\-Entropy\. We compare the following settings:
- •All heads: Use all heads \(default\)\.
- •First\-half: Use only the first half of heads \(11toH/2H/2\)\.
- •Second\-half: Use only the second half of heads \(H/2\+1H/2\+1toHH\), assumingHHis even\.
## 4Experimental Setup
### 4\.1Models
Notably, LLaMA\-33B and LLaMA\-65B were executed with int8 quantization due to hardware memory constraints, while the other models were run in their native precision\. Additional model details are provided in Appendix[A](https://arxiv.org/html/2607.23067#A1)\.
Table 1:Summary of the six representative models used in the main tables\. Layers and Heads denote the numbers of Transformer blocks and attention heads, respectively\.†Executed with int8 quantization\.
### 4\.2Datasets
We use two representative benchmarks to evaluate the factuality of LLMs\. For both benchmarks, we follow the same evaluation protocol as DoLa\(Chuang et al\.,[2024b](https://arxiv.org/html/2607.23067#bib.bib2)\)\.
##### TruthfulQA\.
TruthfulQA is a benchmark designed to measure the tendency of LLMs to generate incorrect answers rooted in misconceptions or myths\. We use the multiple\-choice setting and report the following three metrics:
- •MC1: Accuracy in the setting where only a single correct option exists\.
- •MC2: Normalized score in the setting where multiple correct options exist\.
- •MC3: Unnormalized score in the setting where multiple correct options exist\.
##### FACTOR\.
FACTOR is a benchmark for evaluating factuality in long\-form text\. Each instance consists of a prefix and four candidate continuations, only one of which is factually correct\. The dataset contains 4,266 four\-choice questions spanning three domains: Wiki \(2,994\), News \(1,036\), and Expert \(236\)\. In this study, we evaluate the Wiki and News domains, using multiple\-choice scoring by comparing the log\-likelihoods of candidate continuations\.
### 4\.3Implementation Details
In DoLa, the candidate set of premature layers𝒞\\mathcal\{C\}is not taken directly from all layers; instead, layers are partitioned into several contiguous ranges \(buckets\), and the layers within a single bucket selected via validation are used as candidates \(i\.e\.,𝒞\\mathcal\{C\}\)\. In this section, we describe the bucket partition settings \(candidate buckets\)\.
##### Candidate Buckets\.
For the LLaMA family \(7B, 13B, 33B, and 65B\) and Mistral\-7B, we follow the layer\-selection ranges \(bucket partitions\) defined in the original DoLa paper\(Chuang et al\.,[2024b](https://arxiv.org/html/2607.23067#bib.bib2)\)\. Specifically, for LLaMA\-7B \(32 layers\) and Mistral\-7B \(32 layers\), we use two buckets:\[0,16\)\[0,16\)and\[16,32\)\[16,32\)\. For LLaMA\-13B \(40 layers\), we use two buckets:\[0,20\)\[0,20\)and\[20,40\)\[20,40\)\. For LLaMA\-33B \(60 layers\), we use three buckets:\[0,20\)\[0,20\),\[20,40\)\[20,40\), and\[40,60\)\[40,60\)\. For LLaMA\-65B \(80 layers\), we use four buckets:\[0,20\)\[0,20\),\[20,40\)\[20,40\),\[40,60\)\[40,60\), and\[60,80\)\[60,80\)\.
In contrast, for Gemma\-7B \(28 layers\), we partition the layers into two buckets:\[0,14\)\[0,14\)and\[14,28\)\[14,28\)\. Notably, for Gemma\-7B, we exclude layer 0 from the candidate set for all methods, including the DoLa baseline \(see Appendix[A\.1](https://arxiv.org/html/2607.23067#A1.SS1)\), as it primarily represents non\-semantic embedding information\. Furthermore, within the selected bucket, we only consider even\-indexed layers as candidates to reduce computational overhead\.
##### Bucket Selection\.
For TruthfulQA, following DoLa\(Chuang et al\.,[2024b](https://arxiv.org/html/2607.23067#bib.bib2)\), we perform 2\-fold validation and choose the bucket that yields the highest MC3 score\. For FACTOR, we treat the Wiki and News subsets as two independent folds and select the optimal bucket for each\. Table[2](https://arxiv.org/html/2607.23067#S4.T2)reports the buckets selected by Attention\-JSD for the representative models\.
Table 2:Selected premature\-layer ranges for Attention\-JSD across representative models\.
## 5Results
This section reports results for the six representative models: LLaMA\-7B, 13B, 33B, 65B, Gemma\-7B, and Mistral\-7B\. Results for additional models are provided in Appendix[D](https://arxiv.org/html/2607.23067#A4)\.
### 5\.1TruthfulQA
Table[3](https://arxiv.org/html/2607.23067#S5.T3)reports the results of the six representative models on TruthfulQA\. Here, the Baseline refers to evaluating each model with standard autoregressive decoding\. The three proposed attention\-distribution\-based strategies consistently outperformed the Baseline across all evaluated models\. Notably, the attention\-based methods \(Attention\-JSD and Attention\-Entropy\-Max\) contributed substantially to improving MC2 and MC3, which consider multiple acceptable answers\.
Specifically, for LLaMA\-7B, Attn\-Ent\-Min achieved the highest performance in MC2 \(62\.8%\) and MC3 \(36\.5%\), significantly surpassing DoLa\. In LLaMA\-13B, Attn\-JSD yielded the best results across all metrics\. For LLaMA\-33B and LLaMA\-65B, while DoLa maintained the highest MC1, our attention\-based methods outperformed DoLa in both MC2 and MC3\. This suggests that internal attention distributions provide a more sensitive signal than output vocabulary distributions for extracting factual knowledge, regardless of model scale\.
A similar trend was observed in Gemma\-7B and Mistral\-7B, where the proposed methods consistently maintained or improved upon DoLa’s scores in the MC2 and MC3 metrics\. Overall, these results confirm that utilizing structural information from attention distributions, such as attention concentration \(Min\-Entropy\) and divergence \(JSD\), serves as a robust mechanism for dynamically selecting contrastive layers to enhance factual accuracy\.
Table 3:Results on TruthfulQA for the six representative models \(MC1 / MC2 / MC3, %\)\.Boldindicates the best result for each model\.
### 5\.2FACTOR
Table[4](https://arxiv.org/html/2607.23067#S5.T4)presents the evaluation results on the FACTOR benchmark\. Overall, our proposed attention\-guided strategies consistently improved factual accuracy over the Baseline\. Furthermore, our methods demonstrated performance comparable to DoLa, with several configurations showing additional improvements in identifying factually correct continuations\.
Specifically, on the LLaMA\-7B Wiki subset, Attn\-Ent\-Max achieved an accuracy of 62\.6%, outperforming DoLa \(62\.1%\)\. For the Gemma\-7B Wiki subset, Attn\-JSD reached 64\.1%, the highest among all compared methods, surpassing DoLa’s 63\.3%\. In the Mistral\-7B News subset, Attn\-Ent\-Max yielded the best performance with 76\.3% accuracy\.
While attention\-guided methods did not surpass DoLa in certain cases, such as the Gemma\-7B News subset, our results across most configurations indicate that attention\-based signals—specifically attention entropy and JSD—serve as a powerful and competitive alternative to logit\-based signals for identifying layers rich in factual knowledge\.
Table 4:Results on FACTOR for the six representative models \(Accuracy, %\)\.Boldindicates the best result per model and split\.Underlineindicates a result worse than the Baseline\.
## 6Analysis
### 6\.1Layer Selection Patterns
Figure[1](https://arxiv.org/html/2607.23067#S6.F1)illustrates the layer selection distributions for each method on LLaMA\-7B\. Here, we focus on methods that exhibit noticeable differences in performance \(DoLa, Attn\-JSD, and Attn\-Ent\-Min\)\. Both DoLa and Attn\-JSD exhibit a strong tendency to concentrate their selections on the shallowest available layers within the candidate bucket\. On TruthfulQA, both methods select layer 16 in over 80% of cases\.
In contrast, Attn\-Ent\-Min demonstrates a markedly different behavior, with selections distributed across a wider range of relatively deeper layers\. On TruthfulQA, selections are spread across layers 22–30, and on FACTOR Wiki, they are distributed throughout the middle layers \(8–14\)\. This pattern indicates that the layer with the minimum attention entropy varies dynamically for each token, suggesting that Attn\-Ent\-Min adaptively selects premature layers based on the specific input context\.
This qualitative difference in layer selection patterns suggests a potential contribution to the improvements observed in the MC2 and MC3 metrics, which evaluate the model’s performance across multiple correct answer options\.
Figure 1:Layer selection distributions for LLaMA\-7B on TruthfulQA \(left\) and FACTOR Wiki \(right\)\.
### 6\.2Head\-wise Analysis
To investigate which attention heads contribute to layer selection in attention\-based methods, we conducted a detailed head\-wise analysis on TruthfulQA\.
##### Coarse\-grained Analysis\.
Table[5](https://arxiv.org/html/2607.23067#S6.T5)presents the performance of Attn\-Ent\-Min across different head configurations\. We observe that the optimal head group for layer selection varies by model\. For LLaMA\-7B, the First\-half configuration achieved the best performance across all metrics, surpassing both the All\-heads average and the Second\-half group\.
Conversely, for Gemma\-7B, utilizing all heads resulted in the highest performance\. In the case of Mistral\-7B, the scores remained identical across all head configurations\.
These results suggest that the distribution of layer\-selection signals within attention entropy depends on the model architecture\. While informative signals may be concentrated in specific head subsets for some models, they appear to be more dispersed or uniformly distributed in others\.
##### Single\-Head Evaluation\.
To further investigate the characteristics of the signals within individual attention heads, we analyzed their layer\-selection tendencies when using each head alone\. Specifically, we compared each head’s selected layers against the all\-heads average selection \(All heads avg\.\) and focused on heads that most strongly deviate from this aggregate behavior\. We selected Heads 6, 24, and 26 as the top three heads with the lowest agreement with the all\-heads average selection\. Table[6](https://arxiv.org/html/2607.23067#S6.T6)presents their evaluation results on LLaMA\-7B\.
The results show that decoding guided solely by Head 6 achieved an MC3 score of 38\.4%, significantly exceeding both DoLa \(30\.5%\) and the all\-heads average \(36\.8%\)\. While the all\-heads average selection provides a stable and robust baseline, combining these top three heads also maintained high performance, consistently surpassing both DoLa and the All heads avg\. configuration\.
These findings demonstrate that beyond simple averaging, factuality can be further improved by isolating and utilizing specific internal signals based on the quality and characteristics of the information they carry\.
Table 5:Head\-wise analysis for Attn\-Ent\-Min on TruthfulQA\. Best result per model is inbold\.Table 6:Single\-head evaluation for Attn\-Ent\-Min on TruthfulQA \(LLaMA\-7B\)\. Best result per metric isbold\.
### 6\.3Head Stability Analysis
This section provides detailed results of the head stability analysis\. We investigated whether the factuality\-improving effects of specific attention heads are localized phenomena dependent on certain question sets or if they represent statistically stable characteristics across different contexts\.
We generated five random subsets of 100 questions each from TruthfulQA and evaluated all 32 heads individually using the Attn\-Ent\-Min strategy on LLaMA\-7B\.
Table[7](https://arxiv.org/html/2607.23067#S6.T7)lists the top\-3 performing heads for each random subset based on the MC3 score\.
As a result, Head 6 achieved the highest MC3 score in three out of the five subsets\. While the performance ranking fluctuates depending on the subset, these results suggest a strong tendency for specific internal signals to be frequently associated with higher factual accuracy\. This indicates that it may be possible to pre\-identify or estimate superior configurations for layer selection—such as specific attention heads—to further optimize decoding performance\.
Table 7:Top\-3 performing heads for Attn\-Ent\-Min on each random subset \(LLaMA\-7B, MC3\)\.
### 6\.4Score Distribution Analysis
On LLaMA\-33B, DoLa achieved the highest MC1 score \(31\.9%\), while Attention\-Entropy\-Max showed a lower MC1 \(29\.0%\) but slightly outperformed DoLa in MC2 and MC3 \(MC2: 57\.8% vs 57\.7%, MC3: 33\.3% vs 33\.0%\)\. To understand this difference, we analyzed the score distributions of individual samples when using DoLa and attention\-based methods\.
We first classified samples into four categories based on MC1 correctness \(Table[8](https://arxiv.org/html/2607.23067#S6.T8)\)\. Among the three attention\-based methods, Attn\-Ent\-Max shows the least overlap with DoLa: only 150 samples are correct under both methods, while 111 are correct only with DoLa and 87 only with Attn\-Ent\-Max\. This indicates that the two methods tend to correctly answer different samples\. In contrast, Attn\-JSD and Attn\-Ent\-Min show greater overlap with DoLa \(191–194 samples correct under both\), and their MC1 scores are closer to DoLa’s\.
We then analyzed the overall score distribution characteristics of each method \(Table[9](https://arxiv.org/html/2607.23067#S6.T9)\)\. For top margin \(the gap between the highest correct and incorrect scores\), DoLa achieves the largest value \(14\.8\), while attention\-based methods show smaller values \(8\.5–10\.3\)\. Notably, Attn\-Ent\-Max has the smallest top margin \(8\.5\), indicating the weakest discriminability for identifying the top correct answer\. Conversely, for true std \(standard deviation of correct option scores\), DoLa shows the largest value \(31\.3\), while Attn\-Ent\-Max shows the smallest \(17\.5\)\. This suggests that DoLa generates “sharp” distributions concentrating confidence on specific correct answers, whereas Attn\-Ent\-Max generates “flat” distributions spreading scores more evenly across all correct options\.
These results reveal that DoLa’s sharp layer selection is effective for identifying a single best answer \(MC1\), while attention\-based methods with flatter selection patterns are advantageous for comprehensively evaluating multiple correct answers \(MC2/MC3\), demonstrating complementary characteristics between the two approaches\.
Table 8:Sample\-level correctness patterns \(MC1\) on TruthfulQA for LLaMA\-33B\.Table 9:Overall score distribution statistics \(LLaMA\-33B\)\. Top margin = max\(correct\)−\-max\(incorrect\)\. True std = standard deviation among correct option scores\.
## 7Conclusion
In this work, we proposed three strategies that leverage self\-attention mechanisms rather than conventional vocabulary distributions as dynamic signals for layer selection in contrastive decoding\. Our evaluation on TruthfulQA and FACTOR demonstrates that the proposed methods achieve factuality improvements equal to or greater than the existing DoLa method across multiple models\.
In particular, our score distribution analysis suggests that DoLa tends to produce sharper distributions that concentrate confidence on a specific correct answer, which is effective for MC1, whereas attention\-based methods produce flatter distributions that spread scores across all correct options, which is effective for MC2/MC3\.
Furthermore, our head\-wise analysis confirms that some attention heads exhibit stronger factuality signals than the all\-head average\. This suggests that further improvements in factuality and efficiency may be achieved by context\-dependent head selection or by optimizing the set of heads used\. In addition, our method requires no additional training and keeps the inference\-time computational overhead within a practical range\.
As future work, we will evaluate our approach in free\-form generation settings and explore automated, context\-dependent selection of layers and heads\.
## Limitations
This work has several limitations that define important directions for future research\.
First, our evaluation is primarily limited to multiple\-choice benchmarks\. A crucial next step is to verify how attention\-guided layer selection functions in free\-form generation tasks, where sequential token dependencies may differ from likelihood based ranking\.
Second, the selection of the candidate premature\-layer bucket still requires prior validation\. While attention\-based signals provide sensitive cues, developing algorithms that can fully automate bucket selection or generalize across different model depths remains a necessary improvement\.
Third, the underlying mechanism of why specific attention heads excel at factual knowledge recall remains to be fully elucidated\. While the statistical stability observed in this study suggests that certain internal representations mediate truthfulness, identifying the theoretical basis for this localization is an essential task for future investigation\.
## References
- Chuang et al\. \(2024a\)Yung\-Sung Chuang, Linlu Qiu, Cheng\-Yu Hsieh, Ranjay Krishna, Yoon Kim, and James R\. Glass\. 2024a\.[Lookback lens: Detecting and mitigating contextual hallucinations in large language models using only attention maps](https://doi.org/10.18653/v1/2024.emnlp-main.84)\.In*Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing*, pages 1419–1436\.
- Chuang et al\. \(2024b\)Yung\-Sung Chuang, Yujia Xie, Hongyin Luo, Yoon Kim, James R\. Glass, and Pengcheng He\. 2024b\.[Dola: Decoding by contrasting layers improves factuality in large language models](https://openreview.net/forum?id=Th6NyL07na)\.In*The Twelfth International Conference on Learning Representations*\.
- Clark et al\. \(2019\)Kevin Clark, Urvashi Khandelwal, Omer Levy, and Christopher D\. Manning\. 2019\.[What does BERT look at? An analysis of BERT’s attention](https://doi.org/10.18653/v1/W19-4828)\.In*Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP*, pages 276–286\.
- Du et al\. \(2024\)Yilun Du, Shuang Li, Antonio Torralba, Joshua B\. Tenenbaum, and Igor Mordatch\. 2024\.Improving factuality and reasoning in language models through multiagent debate\.In*Proceedings of the 41st International Conference on Machine Learning*, volume 235 of*Proceedings of Machine Learning Research*, pages 11733–11763\.
- Geva et al\. \(2023\)Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson\. 2023\.[Dissecting recall of factual associations in auto\-regressive language models](https://doi.org/10.18653/v1/2023.emnlp-main.751)\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing*, pages 12216–12235\.
- Huang et al\. \(2025\)Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, and Ting Liu\. 2025\.[A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions](https://doi.org/10.1145/3703155)\.*ACM Transactions on Information Systems*, 43\(2\):1–55\.
- Jawahar et al\. \(2019\)Ganesh Jawahar, Benoît Sagot, and Djamé Seddah\. 2019\.[What does BERT learn about the structure of language?](https://doi.org/10.18653/v1/P19-1356)In*Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics*, pages 3651–3657\.
- Ji et al\. \(2023\)Ziwei Ji, Nayeon Lee, Rita Frieske, Tiezheng Yu, Dan Su, Yan Xu, Etsuko Ishii, Ye Jin Bang, Andrea Madotto, and Pascale Fung\. 2023\.[Survey of hallucination in natural language generation](https://doi.org/10.1145/3571730)\.*ACM Computing Surveys*, 55\(12\):1–38\.
- Kim et al\. \(2024\)Youna Kim, Hyuhng Joon Kim, Cheonbok Park, Choonghyun Park, Hyunsoo Cho, Junyeob Kim, Kang Min Yoo, Sang\-goo Lee, and Taeuk Kim\. 2024\.[Adaptive contrastive decoding in retrieval\-augmented generation for handling noisy contexts](https://doi.org/10.18653/v1/2024.findings-emnlp.136)\.In*Findings of the Association for Computational Linguistics: EMNLP 2024*, pages 2421–2431\.
- Lewis et al\. \(2020\)Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen\-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela\. 2020\.Retrieval\-augmented generation for knowledge\-intensive NLP tasks\.In*Advances in Neural Information Processing Systems*, volume 33, pages 9459–9474\.
- Li et al\. \(2023a\)Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg\. 2023a\.[Inference\-time intervention: Eliciting truthful answers from a language model](https://openreview.net/forum?id=aLLuYpn83y)\.In*Thirty\-seventh Conference on Neural Information Processing Systems*\.
- Li et al\. \(2023b\)Xiang Lisa Li, Ari Holtzman, Daniel Fried, Percy Liang, Jason Eisner, Tatsunori Hashimoto, Luke Zettlemoyer, and Mike Lewis\. 2023b\.[Contrastive decoding: Open\-ended text generation as optimization](https://doi.org/10.18653/v1/2023.acl-long.687)\.In*Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 12286–12312\.
- Lin et al\. \(2022\)Stephanie Lin, Jacob Hilton, and Owain Evans\. 2022\.[TruthfulQA: Measuring how models mimic human falsehoods](https://doi.org/10.18653/v1/2022.acl-long.229)\.In*Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 3214–3252, Dublin, Ireland\. Association for Computational Linguistics\.
- Manakul et al\. \(2023\)Potsawee Manakul, Adian Liusie, and Mark Gales\. 2023\.[SelfCheckGPT: Zero\-resource black\-box hallucination detection for generative large language models](https://doi.org/10.18653/v1/2023.emnlp-main.557)\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing*, pages 9004–9017\.
- Meng et al\. \(2022\)Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov\. 2022\.Locating and editing factual associations in GPT\.In*Advances in Neural Information Processing Systems*, volume 35, pages 17359–17372\.
- Meng et al\. \(2023\)Kevin Meng, Arnab Sen Sharma, Alex Andonian, Yonatan Belinkov, and David Bau\. 2023\.[Mass\-editing memory in a transformer](https://openreview.net/forum?id=MkbcAHIYgyS)\.In*The Eleventh International Conference on Learning Representations*\.
- Muhlgay et al\. \(2024\)Dor Muhlgay, Ori Ram, Inbal Magar, Yoav Levine, Nir Ratner, Yonatan Belinkov, Omri Abend, Kevin Leyton\-Brown, Amnon Shashua, and Yoav Shoham\. 2024\.[Generating benchmarks for factuality evaluation of language models](https://doi.org/10.18653/v1/2024.eacl-long.4)\.In*Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 49–66, St\. Julian’s, Malta\. Association for Computational Linguistics\.
- Ouyang et al\. \(2022\)Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F\. Christiano, Jan Leike, and Ryan Lowe\. 2022\.Training language models to follow instructions with human feedback\.In*Advances in Neural Information Processing Systems*, volume 35, pages 27730–27744\.
- Shi et al\. \(2024\)Weijia Shi, Xiaochuang Han, Mike Lewis, Yulia Tsvetkov, Luke Zettlemoyer, and Wen\-tau Yih\. 2024\.Trusting your evidence: Hallucinate less with context\-aware decoding\.In*Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 2: Short Papers\)*, pages 783–791\.
- Tenney et al\. \(2019\)Ian Tenney, Dipanjan Das, and Ellie Pavlick\. 2019\.[BERT rediscovers the classical NLP pipeline](https://doi.org/10.18653/v1/P19-1452)\.In*Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics*, pages 4593–4601\.
- Voita et al\. \(2019\)Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov\. 2019\.[Analyzing multi\-head self\-attention: Specialized heads do the heavy lifting, the rest can be pruned](https://doi.org/10.18653/v1/P19-1580)\.In*Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics*, pages 5797–5808\.
- Wang et al\. \(2023\)Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V\. Le, Ed H\. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou\. 2023\.[Self\-consistency improves chain of thought reasoning in language models](https://openreview.net/forum?id=1PL1NIMMrw)\.In*The Eleventh International Conference on Learning Representations*\.
- Wu et al\. \(2025\)Jialiang Wu, Yi Shen, Sijia Liu, Yi Tang, Sen Song, Xiaoyi Wang, and Longjun Cai\. 2025\.[Improve decoding factuality by token\-wise cross layer entropy of large language models](https://doi.org/10.18653/v1/2025.findings-naacl.217)\.In*Findings of the Association for Computational Linguistics: NAACL 2025*, pages 3912–3921, Albuquerque, New Mexico\. Association for Computational Linguistics\.
## Appendix AAdditional Model Details
Table 10:Additional models used in this study\.### A\.1Handling of Layer 0 in Models with Tied Embeddings
The DoLa paper notes that when the input embeddings and the LM head share weights, the resulting operation becomes close to an identity mapping; therefore, in such cases, layer 0 is excluded from the candidate set\. In our implementation, we consult the Hugging Face configuration \(e\.g\.,tie\_word\_embeddings\) and exclude layer 0 whentie\_word\_embeddingsis true \(i\.e\., when weight tying is enabled\), applying this rule to models such as Gemma variants and Llama 3\.2\-3B\.
## Appendix BSelected Premature\-Layer Ranges by Method
The range of candidate premature layers for dynamic selection is determined via validation for each combination of model and dataset\. Tables[11](https://arxiv.org/html/2607.23067#A2.T11)through[14](https://arxiv.org/html/2607.23067#A2.T14)list the selected buckets for all evaluated models across the four contrastive decoding methods\.
Table 11:Selected premature\-layer ranges for DoLa\.Table 12:Selected premature\-layer ranges for Attention\-JSD\.Table 13:Selected premature\-layer ranges for Attention\-Entropy\-Max\.Table 14:Selected premature\-layer ranges for Attention\-Entropy\-Min\.
## Appendix CEfficiency Analysis
Table[15](https://arxiv.org/html/2607.23067#A3.T15)shows the inference efficiency of each method on LLaMA\-7B\. We sampled 100 questions from TruthfulQA and measured the average processing time per sample\.
All methods complete within a single forward pass, with overheads remaining within 1\.15–1\.27×\\timesrelative to the Baseline\. DoLa incurs a 1\.24×\\timescost due to per\-candidate\-layer logits and JSD computations\. Among attention\-based methods, Attn\-Ent\-Max/Min is lightweight \(as low as 1\.15×\\times\) because it only requires entropy computation, whereas Attn\-JSD is the most expensive \(1\.27×\\times\) due to JSD computation between the final\-layer attention distribution and each candidate layer\. Overall, these costs remain practical given the factuality improvements\.
Table 15:Inference efficiency on TruthfulQA \(LLaMA\-7B, 100 samples\)\.
## Appendix DFull Experimental Results
This section reports full experimental results for all models evaluated in this study\.
### D\.1TruthfulQA: Full Results
Table[16](https://arxiv.org/html/2607.23067#A4.T16)shows the results for all models on TruthfulQA\. In newer models such as LLaMA\-3\.1\-8B and LLaMA\-3\.2\-3B, our proposed strategies \(specifically Attn\-JSD and Attn\-Ent\-Min\) demonstrate stable improvements over the Baseline\. Notably, on Phi\-2, Attn\-Ent\-Min achieved an MC3 score of 34\.8%, substantially outperforming DoLa \(30\.3%\)\.
Table 16:Results on TruthfulQA for all models \(MC1 / MC2 / MC3, %\)\. Bold indicates best per model\. Underline indicates worse than Baseline\.
### D\.2FACTOR: Full Results
Table[17](https://arxiv.org/html/2607.23067#A4.T17)summarizes the full FACTOR results\. While contrastive decoding generally contributes to factuality in both Wiki and News subsets, we observed certain cases, such as Gemma\-2\-2B, where contrastive methods led to a performance drop relative to the Baseline\.
Table 17:Results on FACTOR for all models \(Accuracy, %\)\.Boldindicates best per model\.Underlineindicates worse than Baseline\.
## Appendix EHead\-wise Analysis: Full Results
To supplement the analysis in the main text, we provide detailed performance metrics for different head configurations under the Attn\-JSD and Attn\-Ent\-Max strategies\. Tables[18](https://arxiv.org/html/2607.23067#A5.T18)and[19](https://arxiv.org/html/2607.23067#A5.T19)report these results for LLaMA\-7B, Gemma\-7B, and Mistral\-7B\.
Table 18:Head\-wise analysis for Attn\-JSD on TruthfulQA\. Best result per model is inbold\.Table 19:Head\-wise analysis for Attn\-Ent\-Max on TruthfulQA\. Best result per model is inbold\.Similar Articles
GQLA: Group-Query Latent Attention for Hardware-Adaptive Large Language Model Decoding
GQLA proposes a minimal modification to Multi-head Latent Attention (MLA) that exposes both an MQA-absorb path and a GQA path over the same trained weights, enabling hardware-adaptive decoding without retraining. The method compresses KV cache and supports tensor parallelism, demonstrated by converting LLaMA-3-8B from GQA to GQLA.
Deeper is Not Always Better: Mitigating the Alignment Tax via Confident Layer Decoding
This paper introduces Confident Decoding, a training-free decoding strategy that dynamically selects the most reliable intermediate layer in LLMs using entropy-guided search, mitigating the alignment tax and improving reasoning performance on benchmarks like GPQA-Diamond and Omni-MATH with negligible overhead.
NLL-Guided Full-Attention Layer Selection for Training-Free Sliding-Window Adaptation
Proposes a training-free NLL-guided method for selecting which layers to retain full attention in hybrid attention models, achieving comparable accuracy with 1/4 full-attention layers against a 1/2 periodic baseline on long-context tasks.
Deployable Per-Instance Multi-Layer Activation Steering for Large Language Models
This paper introduces a deployable per-instance, multi-layer activation steering technique for large language models, showing that optimal layer selection varies per input and can be predicted from the prompt embedding without gold labels at inference.
Layers, Sinks, and Scaling: Adaptive Evidence Selection for Multimodal Large Language Models
This paper presents AREA, a training-free inference-time method that adaptively allocates evidence highlighting in multimodal large language models, improving performance on knowledge-based visual question answering and standard multimodal benchmarks.