TL;DR
Large Vision-Language Models (LVLMs) frequently hallucinate objects during question-answering tasks but exhibit excellent visual grounding when simply asked to describe an image. To exploit this, the authors introduce CAST (Caption-guided Visual Attention Steering), a training-free, plug-and-play inference intervention that nudges internal attention layers to mimic descriptive states, reducing hallucinations by over 6% on average with negligible computational overhead.
What Problem Does This Paper Address?
Despite their impressive capabilities, Large Vision-Language Models (LVLMs) suffer from a critical flaw: object hallucination. They frequently generate descriptions of objects that do not exist in the source image. Mechanistic interpretability studies reveal a primary culprit: when answering specific questions (e.g., "Is there a helmet in this image?"), the model's internal attention shifts heavily toward textual tokens, neglecting the visual inputs.
Existing solutions to this problem are heavily constrained. They either require expensive retraining on meticulously curated datasets or rely on complex decoding strategies (like contrastive decoding) that drastically increase inference latency. The authors set out to find a training-free, lightweight method to restore the model's focus on visual information during inference.
Methods
The core insight of this paper is that an LVLM's internal attention mechanism behaves differently depending on the prompt type. When given a caption query ("Please describe this image in detail"), the model naturally activates fine-grained visual perception pathways. When given a non-caption query ("Is there a cup?"), these pathways remain dormant.
CAST bridges this gap using a three-stage activation steering pipeline:
- Caption-Guided Attention Heads Probe: The authors pass pairs of caption and non-caption queries through the model and apply a linear Support Vector Machine (SVM) classifier to the attention head outputs. This identifies the specific "caption-guided attention heads" that are most sensitive to query types.
- Estimation of Perception Refined Vectors: For the identified heads, they compute a generalized "shift vector" ($\mathbf{S}$) by averaging the difference in attention outputs between caption and non-caption queries across a small dataset. This vector represents the mathematical direction of "better visual attention."
- Steering at Inference Time: During standard deployment, when the model faces a non-caption query, the precomputed shift vector is injected directly into the top-$K$ attention heads, scaled by an intensity parameter ($\alpha$). This forces the model to process the question with the visual intensity of a captioning task.
Datasets
The authors utilized a variety of datasets for both vector estimation and comprehensive evaluation:
- Vector Estimation: 1,000 task-diverse visual question-answering (VQA) samples from the LLaVA-1.5-7b pre-training dataset (derived from MS-COCO).
- Hallucination Benchmarks: POPE (evaluating existential "yes/no" biases), CHAIR (sentence-level caption hallucinations), MMHal-Bench, and MHumanEval.
- General Capabilities & Domain Specifics: The MME benchmark (to ensure core capabilities aren't degraded), VQA-RAD (medical domain), and the MMBench OCR subset.
Key Insights and Ideas
- The Model Already Knows How to Look: LVLMs possess the inherent ability to ground tokens in visual imagery; they simply fail to activate this ability for non-caption prompts. CAST proves that you don't need to rewrite model weights to fix behavior—you just need to steer internal activations.
- Localization of Vision in Mid-Layers: Probing revealed that caption-guided attention heads are highly concentrated in the middle layers of the transformer architecture (specifically layers 7–20). Steering only early or late layers degrades performance.
- Static Vectors Beat Dynamic Calculation: Surprisingly, calculating a unique shift vector dynamically for each image at runtime ("on-the-fly") performs worse and increases latency by 80%. A precomputed, averaged shift vector acts as a regularizer, filtering out sample-specific semantic noise.
Key Results
- State-of-the-Art Mitigation: CAST achieved consistent improvements across five prominent LVLMs (including LLaVA-1.5, Qwen-VL-Chat, and LLaVA-NeXT). On the POPE benchmark, it improved accuracy by an average of 5.64% and F1 score by 5.50%, effectively crushing the model's inherent "yes-bias."
- Zero Latency Penalty: Unlike decoding-based competitors (such as VCD or OPERA) which double or triple the Time-to-First-Token (TTFT), CAST maintains a 1.0× latency profile, making it highly viable for real-time production systems.
- Preservation of Capabilities: On the MME benchmark, CAST actually improved general perception and recognition scores, proving that mitigating hallucinations does not come at the cost of overall model intelligence.
Limitations and Future Work
- Hyperparameter Tuning: CAST relies on grid-searching two critical hyperparameters: the steering intensity ($\alpha$) and the number of targeted heads ($K$). These parameters currently need to be optimized separately for different model architectures.
- Domain Specificity: While the authors demonstrated success in medical and OCR domains, highly specialized fields might still require calculating custom shift vectors using domain-specific pre-training data rather than standard MS-COCO samples.
Summary updated