D-LEAF: Localizing and Correcting Hallucinations in Multimodal LLMs via Layer-to-head Attention Diagnostics

Tiancheng Yang, Lin Zhang, Jiaye Lin, Guimin Hu, Di Wang, Lijie Hu · Submission to ICLR 2026 · Withdrawn

TL;DR

Existing training-free hallucination mitigation methods in Multimodal Large Language Models (MLLMs) either incur heavy decoding latency or bluntly suppress attention heads uniformly across all layers. D-LEAF introduces a fast, forward-pass "localize before correct" strategy: it uses attention entropy to pinpoint problematic layers and selectively fuses visual attention into low-performing heads. This reduces hallucinations on standard captioning benchmarks by up to 53% with only an 8% throughput overhead relative to standard greedy decoding.

What Problem Does This Paper Address?

While MLLMs excel at multimodal understanding, they frequently suffer from object hallucination—generating descriptions or answers that contradict the visual evidence. Prior mechanistic studies trace this to "textual inertia," where models over-rely on linguistic priors and pay insufficient attention to visual tokens.

Existing inference-time solutions face two main bottlenecks:

  1. Contrastive decoding approaches (e.g., contrasting clean vs. distorted images or across layers) often add steep runtime latency (up to $2.4\times$ standard decoding time).
  2. Attention-head suppression methods (like SPIN or SVAR) uniformly mute or down-weight the lowest-attention heads across every layer.

The authors demonstrate that underperforming attention heads are not uniformly distributed; they cluster within specific layers. Indiscriminately suppressing heads across all layers disrupts functionally healthy heads, reducing hallucination only by crippling generation detail, shortening responses, and depressing the model’s F1 score.

Methods

D-LEAF operates entirely at inference time during the standard forward pass using a two-stage mechanism:

[Layer l Forward Pass] 
        │
        ├──> 1. Layer Anomaly Detection: Compute LIAE(l)
        │       └─ Check if LIAE(l) > BAS (Best Attention Score so far)
        │
        └──> If Anomalous Layer Flagged:
                ├── 2. Head Ranking: Score heads via IAF (Image Attention Focus)
                └── 3. Mixed Correction: Softly inject top head's attention:
                       A_h,v = γ * A_best,v + (1 - γ) * A_h,v
  1. Layer Image Attention Entropy (LIAE): For each layer, D-LEAF extracts the Maximum Attention Matrix (MAM)—the peak attention assigned to each image token across all heads—and computes its entropy. An incrementally updated baseline, Best Attention Score (BAS), monitors the forward pass. If a layer’s entropy exceeds BAS, the layer is marked anomalous.
  2. Image Attention Focus (IAF): Within a flagged layer, D-LEAF computes each head's cumulative attention mass over visual tokens. The lowest $n$ heads are tagged as underperforming.
  3. Mixed Attention Matrix Correction: Rather than zeroing or muting the weak heads, D-LEAF interpolates the visual attention weights of the underperforming heads with the layer's best-performing head ($A_{\text{best}}$) via a mixing parameter $\gamma \in [0.7, 0.9]$.

Datasets

The authors evaluated D-LEAF across five open-source MLLMs (LLaVA-1.5-7B, MiniGPT-4, Shikra, InstructBLIP, and Qwen-VL) on three benchmarks:

  • CHAIR ($C_S$ and $C_I$): Measures sentence-level and instance-level object hallucination on 500 MS COCO 2014 validation images.
  • POPE: Multi-turn visual question answering under Random, Popular, and Adversarial negative object sampling.
  • MMHal-Bench: 96 challenging image-question pairs evaluated with GPT-4 across eight question categories (e.g., counting, attributes, spatial relations, adversarial objects).

Note: No new datasets were introduced; all benchmarks are standard community suites.

Key Insights and Ideas

  • Faulty heads cluster in specific layers: Plotting underperforming heads revealed heavy clustering rather than a uniform distribution. Interventions must therefore be dynamic and layer-aware.
  • Logit progression reveals visual processing layers: Tracking the top 90% logit probabilities across layers demonstrated that multimodal integration largely saturates around layer 26. Restricting corrections to layers 0–25 preserves downstream linguistic decoding while eliminating visual errors.
  • Refocusing beats suppression: Completely muting heads with low visual attention forces the model to output shorter sentences, falsely masking hallucinations while damaging factual accuracy. Blending in the attention pattern of the highest-focus head ($A_{\text{best}}$) guides the head back to visual evidence without breaking downstream generation.
  • Entropy isolates layers; focus isolates heads: Wilcoxon signed-rank tests confirmed that ground-truth tokens exhibit significantly lower LIAE ($p < 0.001$) and higher IAF ($p < 0.001$) compared to hallucinated tokens.

Key Results

  • CHAIR Captioning: On MiniGPT-4, D-LEAF reduced sentence-level hallucinations ($C_S$) from 34.00 to 11.56 and instance-level ($C_I$) from 10.82 to 4.72—a 53% and 57% relative improvement over SPIN, respectively. Large gains were also replicated across LLaVA-1.5, Shikra, InstructBLIP, and Qwen-VL.
  • POPE VQA: D-LEAF achieved consistent state-of-the-art results across all splits, improving accuracy and F1 score by ~4% to 5% over greedy baselines on LLaVA, MiniGPT-4, and Shikra.
  • Inference Efficiency: D-LEAF incurs only an ~8% throughput drop compared to unconstrained greedy decoding (e.g., maintaining ~47 tokens/sec on MiniGPT-4 compared to 54 tokens/sec baseline), vastly outperforming contrastive decoding methods like VCD and iterative rollout methods like OPERA.

Limitations and Future Work

  • The F1 vs. Hallucination Trade-off: While D-LEAF mitigates the steep F1 degradation seen in pure head-muting approaches, aggressively increasing the number of modified heads ($n$) or mixing weight ($\gamma$) still leads to shorter model responses and lower F1 scores.
  • Architecture Sensitivity: Models with bottlenecked visual tokens (such as InstructBLIP's Q-Former using only 32 tokens) are much more sensitive to head modifications than models using extensive visual projections (like LLaVA's 576 tokens).
  • Modest Gains on Fine-Grained Questions: In MMHal-Bench, D-LEAF showed smaller improvements on specific fine-grained visual categories (such as subtle object attributes and adversarial traps) in MiniGPT-4 and Shikra.

Summary updated

BibTeX
@misc{yang2025d,
  author = {Tiancheng Yang and Lin Zhang and Jiaye Lin and Guimin Hu and Di Wang and Lijie Hu},
  title = {{D-LEAF: Localizing and Correcting Hallucinations in Multimodal LLMs via Layer-to-head Attention Diagnostics}},
  year = {2025},
  eprint = {2509.07864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.07864},
}

Loading related content...

Figure