TL;DR
Large Vision-Language Models (LVLMs) hallucinate differently depending on the question format, shifting their reliance between different internal attention pathways. This paper introduces AllPath, a unified, training-free intervention framework that dynamically scales critical attention heads across multiple causal pathways to consistently mitigate hallucinations across both discriminative and generative tasks.
What Problem Does This Paper Address?
While Large Vision-Language Models (LVLMs) excel at visual reasoning, they are notoriously prone to "hallucinations"—generating text that doesn't match the visual input. Existing mitigation strategies typically treat hallucination as a single-path problem, intervening either solely on how the image influences the output text or how the text flows to text.
However, these single-path methods lack generalizability. A technique that fixes hallucinations in binary "Yes/No" visual puzzles often fails completely when tasked with open-ended image captioning. This paper addresses this gap by analyzing the transformer's causal architecture holistically, exploring how different question-answer formats alter the internal pathways the model relies on to ground its answers in reality.
Methods
The authors propose AllPath, an inference-time intervention method that operates in a single forward pass without requiring any model retraining. The framework consists of two phases:
- Heads Identification (Probing):
- Text-to-Text (T2T) Path: The authors refine the Log Probability Increase (LPI) score to measure an attention head's local contribution to a token. By comparing the scores of hallucinated vs. non-hallucinated tokens, they isolate "lazy" or biased heads that drive hallucinations.
- Image-to-Text (I2T) Path: They track the first mention of objects in the text and evaluate whether specific attention heads successfully focus on the corresponding bounding boxes/regions in the image.
- Hallucination Mitigation (Intervention): Once critical heads are identified, AllPath adaptively applies scaling factors ($\lambda$) during inference. It amplifies heads that exhibit strong visual grounding ($\gamma^+$) and suppresses or zeroes out heads that promote language-prior biases ($\gamma^-$).
Datasets
The approach was validated across several diverse benchmarks:
- POPE (COCO, A-OKVQA, GQA splits): A standard binary classification dataset evaluating object existence.
- MCQ-POPE: A new multiple-choice benchmark introduced by the authors. It uses the exact same images and objects as POPE but restructures the queries into a multiple-choice format to isolate the impact of alignment type.
- CHAIR: An open-ended image captioning benchmark used to evaluate sentence-level and instance-level hallucinations.
- MME: A comprehensive evaluation suite used to test the generalizability of the discovered heads.
Key Insights and Ideas
- Pathways are Format-Dependent: LVLMs are highly adaptive. For binary "Yes/No" tasks (like POPE), the model relies heavily on the image-to-input-text path. For open-ended generation (like CHAIR), it shifts reliance toward the image-to-output-text path. Treating hallucination as a uniform issue ignores this architectural flexibility.
- Format Trumps Content for T2T Heads: Probing revealed that text-to-text attention heads are highly correlated across datasets sharing the same format (e.g., POPE COCO and POPE GQA). However, when switching the format to multiple-choice (MCQ-POPE) on the same images, the correlation drops to near zero.
- Input vs. Output Vision Paths Differ: The attention heads governing how the image interacts with the input prompt are distinct from those governing how the image interacts with the generated output. Both paths "see" the image, but they function independently.
Key Results
AllPath consistently outperformed state-of-the-art training-free baselines (such as VCD, ICD, PAI, and AD-HH) across all alignment formats using LLaVA-1.5-7B and Qwen-VL-Chat:
- POPE: Achieved at least a 2.1% increase in F1 score over vanilla models, outperforming the best baseline improvement of 0.9%.
- MCQ-POPE: Demonstrated a substantial 5.2% performance jump.
- CHAIR: Reduced sentence-level hallucinations ($C_S$) significantly while maintaining the model's natural generation length. This is a major improvement over prior intervention methods like PAI, which severely truncate output lengths to artificially boost accuracy.
Limitations and Future Work
The authors note that while AllPath successfully mitigates hallucinations adaptively, they have not yet systematically mapped out the absolute optimal causal pathways for every niche question type. Furthermore, the framework is currently restricted to inference-time interventions; incorporating these multi-path causal insights directly into the alignment training phase (SFT/RLHF) remains an open and promising direction for future research.
Summary updated