See Only When Needed: Context-Aware Attention Intervention for Mitigating Hallucinations in LVLMs
About
Large Vision-Language Models (LVLMs) excel at multimodal tasks but remain prone to object hallucinations. Prior training-free remedies often uniformly strengthen visual signals, which may also amplify irrelevant regions and introduce spurious evidence, harming fluency. We propose Context-aware Attention Intervention (CAI), a training-free inference-time mechanism that enforces a see only when needed principle via two-axis selectivity: where to look and when to intervene. At each decoding step, CAI derives token-specific visual relevance from early-layer representations to localize semantically aligned regions, and applies a conservative, entropy- and depth-gated attention tilt only for uncertainty-spiking tokens in deeper layers where visual grounding degrades, leaving confident tokens and irrelevant regions largely unchanged. This targeted intervention strengthens visual grounding while preserving linguistic fluency, and it yields consistent improvements even without contrastive decoding, which remains optional as an auxiliary bias-suppression module. Extensive experiments across multiple LVLM backbones and benchmarks show that CAI achieves state-of-the-art hallucination mitigation, and our analysis characterizes CAI as a KL-minimal attention reweighting with bounded interference under inactive gates or small tilts. Code is available at https://github.com/Iris1946/CAI.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Object Hallucination Evaluation | MS-COCO (POPE Adversarial) | Accuracy84.97 | 205 | |
| Object Hallucination Evaluation | CHAIR | CHAIRi Score14.4 | 174 | |
| Object Hallucination Evaluation | A-OKVQA POPE Popular | Accuracy89.53 | 91 | |
| Object Hallucination Evaluation | A-OKVQA POPE Random | Accuracy90.07 | 75 | |
| Object Hallucination Assessment | A-OKVQA POPE (Adversarial) | Accuracy0.826 | 57 | |
| Object Hallucination Probing | GQA Adversarial | Accuracy83.27 | 55 | |
| Object Hallucination Evaluation | GQA (Random) | Accuracy90.13 | 43 | |
| Object Hallucination Evaluation | MSCOCO (Random) | Accuracy89.9 | 43 | |
| Object Hallucination Evaluation | GQA Popular split | Accuracy84.97 | 31 | |
| Object Hallucination Evaluation | MSCOCO Popular | Accuracy88.3 | 27 |