Kaijing Ma

Paper Notes

Beyond Logits: Coherent Hallucination Mitigation via Attention Contrastive Decoding

Paper Notes

Explore the method

Synthetic teaching values, not paper results. Nothing plays automatically; all steps remain available in the static explanation.

Static explanation and limits

The official ICML page identifies this paper as Beyond Logits: Coherent Hallucination Mitigation via Attention Contrastive Decoding.

  1. Input: conditional and perturbed-input attention rows. These are attention weights over positions, not probabilities of the next word.
  2. Find positions where perturbed attention exceeds conditional attention. The mask selects only these positions for subtraction.
  3. Scale the conditional row and subtract masked perturbed attention. The result can be negative and need not sum to one.
  4. Use the modified attention in the model forward pass. A next-token distribution comes later. The paper retains the noise strategy while replacing the logit-level combination.

Yujia Chen, Rui Sun, Huayu Mai, Wangkai Li, Zhangyu He, Bingzhou Wang, Aibing Li, Wenzhang Sun, Tianzhu Zhang

Original reading note; cited methods and evidence, not an experimental reproduction. · PMLR 306, 2026, pp. 16704–16741

PMLR 306, 2026, pp. 16704–16741 · Author code

Move the subtraction inside the forward pass

The official ICML page identifies this paper as Beyond Logits: Coherent Hallucination Mitigation via Attention Contrastive Decoding.

This note uses the PMLR 306 proceedings PDF, linked to the same OpenReview record.

The method compares clean and hallucination-inducing attention patterns rather than subtracting the final vocabulary logits.

The intended benefit is to let the remaining network transform the intervention into a coherent output distribution.

1 / 5PMLR 306, 2026, pp. 16704–16741

Adaptive subtraction

Let A_c and A_n be attention weights for clean and perturbed inputs at the same aligned positions.

A uniform contrast would use (1 + α)A_c − αA_n.

The adaptive strategy subtracts the noisy weight only where it exceeds the clean weight.

M_i = 1{A_n,i > A_c,i}; A_ACD = (1 + α)A_c − α(A_n ⊙ M)

When M_i is zero, the clean weight is amplified without the subtraction term.

When M_i is one, the update suppresses an attention component increased by the perturbation.

The values then aggregate through this modified attention within the decoder.

The displayed arithmetic can produce negative entries and need not sum to one.

Consequently the modified weights must not be presented as an ordinary probability distribution or as guaranteed semantic evidence.

The paper's smoothness motivation is a hypothesis about the intervention location, not a proof of preserved coherence.

2 / 5PMLR 306, 2026, pp. 16704–16741

What X + ACD means

Section 4.1 states that X + ACD retains X's hallucination-inducing construction but replaces its logit subtraction and plausibility filter.

It should not be implemented as an unexamined stacking of two independent contrastive corrections.

ICD integration requires matching prompt lengths to align attention positions.

The default applies the operation across decoder layers and heads.

3 / 5PMLR 306, 2026, pp. 16704–16741

Evidence and limitations

On LLaVA-1.5 in Table 1, VCD's instance-level CHAIR decreases from 16.2 to 14.3 with ACD, while recall increases from 76.8 to 78.3.

For SID the corresponding figures are 14.1 to 13.3 and 78.2 to 79.4.

These are benchmark-specific percentages, not guarantees for arbitrary images or reasoning tasks.

The evaluation includes Qwen-VL, POPE, MME, and judge-based LLaVA-Bench comparisons.

A useful reproduction should compare against the same sampling and candidate-filter settings and report malformed outputs separately from hallucinations.

Noise-induced attention changes are proxies; high attention on a location does not alone establish that the associated content is false.

The author code is linked as jj-ccc/ACD.

4 / 5PMLR 306, 2026, pp. 16704–16741

Sources and reading scope

This original note covers the method and selected experimental evidence discussed above. It is not a full-paper translation. No model experiments were run for this note. Source license: CC BY 4.0 (PMLR publication agreement: https://proceedings.mlr.press/pmlr-license-agreement.html)

Author-code links in the source: https://github.com/jj-ccc/ACD

5 / 5PMLR 306, 2026, pp. 16704–16741

Original figures and data come from the cited paper. Explanations and comparisons are reading notes. Source versions and figure labels appear beside the material.