TL;DR
Large Vision-Language Models (LVLMs) often "hallucinate" objects by relying too heavily on text patterns instead of actual visual evidence. This paper introduces Attention-space Contrastive Guidance (ACG), a training-free, single-pass inference method that corrects these biases directly within the self-attention layers. By approximating a text-only path via attention masking and applying a novel geometric orthogonal projection, ACG significantly cuts down hallucinations while running up to 2× faster than standard multi-pass contrastive decoding methods.
What Problem Does This Paper Address?
When an LVLM generates a description of an image, it balances two forces: the visual features from the image encoder and the language priors embedded in its text decoder. Often, the language priors win. For example, if a model sees a toaster, its language training might confidently cause it to generate a "sink" or a "cup" simply because those objects frequently co-occur in kitchen datasets—even if they aren't present in the image.
Existing training-free methods try to fix this at the very end of the network by contrasting the final output probabilities (logits) of an image-conditioned pass against a text-only pass. However, this post-hoc correction requires multiple expensive forward passes, doubling decoding latency. The authors of this paper target the root cause: the multi-head self-attention layers where cross-modal biases first emerge and accumulate.
Methods
The authors propose Attention-space Contrastive Guidance (ACG), which operates entirely during inference without modifying model parameters.
- Single-Pass Text-Only Approximation: Instead of running a completely separate text-only forward pass, ACG simulates one within a single pass. For the current text token being generated, the method applies a binary mask to the attention matrix, blocking it from attending to any visual tokens. This yields two representations at each attention layer: a conditional output ($O_{cond}$) and an approximate unconditional/text-only output ($O_{uncond}$).
- Textual Orthogonalization: Simply subtracting the two outputs ($\DeltaO = O_{cond} - O_{uncond}$) introduces an approximation bias. This happens because visual information from earlier layers can "leak" into text tokens, and masking visual keys abruptly redistributes attention math. To fix this, ACG projects the raw contrastive signal ($\DeltaO$) onto a subspace orthogonal to the text-only direction. This cleanly strips away text-induced distortions, leaving a pure visual correction signal.
- Layer-wise Intervention: This guided attention output is then fed back into the residual stream as decoding unfolds. The authors also introduce ACG-Fast, a compute-conscious variant that applies this guidance only to the first 8 layers of the decoder.
Datasets
The method was evaluated across several prominent vision-language benchmarks:
- POPE (Precision-based Object Probing Evaluation): A binary VQA dataset checking object existence across Random, Popular, and Adversarial settings.
- CHAIR (Caption Hallucination Assessment with Image Re-annotation): Measures object hallucination frequencies specifically within free-form image captioning.
- MMHal-Bench: An open-ended, reasoning-heavy benchmark evaluating both object and attribute-level inconsistencies using GPT-4 as a judge.
- MMMU & MathVista: General multimodal benchmarks used to ensure that mitigating hallucinations doesn't degrade the model's broader reasoning and academic capabilities.
Key Insights and Ideas
- Intervene Early, Intervene at the Source: Hallucinations are primarily driven by multi-head attention modules rather than MLPs. Catching and correcting the drift toward language-only biases inside the attention layers prevents errors from compounding before they reach the final output.
- Masking is a Cheap but Noisy Proxy: Masking visual tokens in a single pass is highly efficient, but mathematically imperfect due to contextual leakage from prior unmasked layers.
- Geometry to the Rescue: The introduction of textual orthogonalization is the key "aha" mechanism. By treating the text-only attention output as a vector direction and mathematically removing any components parallel to it, the authors successfully isolate the visual grounding signal without needing a costly second forward pass.
Key Results
- Substantial Hallucination Reduction: On the POPE adversarial split using LLaVA-1.5, ACG improved accuracy from 79.13% (regular) to 83.23%. On CHAIR, it consistently achieved the lowest instance-level hallucination scores ($CHAIR_i$) compared to competitive baselines like VCD and VISTA.
- Massive Speedups over Baselines: Multi-pass logit baselines like VCD and PAI increase per-image latency by 1.97× to 2.28×. In contrast, ACG-Full achieves superior hallucination reduction at just 1.19× the vanilla cost. Meanwhile, ACG-Fast retains most of the accuracy gains at a near-negligible cost of 1.05× latency.
- Maintained Capability: Performance on MMMU and MathVista remained stable or slightly improved, proving that ACG selectively suppresses hallucinations without harming core multimodal reasoning.
Limitations and Future Work
- Architecture Constraints: ACG assumes a standard architecture where visual tokens are passed as a contiguous block into the language decoder. It may require alternative masking strategies for models like InstructBLIP, which use interleaved cross-attention modules where text and vision are more tightly fused from the start.
- Depth Sensitivity: The authors noted that early layers respond strongly to guidance, while deeper layers require much larger scaling factors ($\gamma$) to show an effect. A uniform scaling factor across all layers might over- or under-correct; hence, exploring adaptive, depth-specific scaling or learned guidance schedules remains an open avenue for future research.
Summary updated