Abstract
Large Vision-Language Models (LVLMs) frequently generate hallucinations—content that contradicts the provided visual input. While various mitigation strategies exist, they often lack universality, performing well on specific task formats (e.g., binary questions) but failing on others (e.g., open-ended captioning). This paper introduces AllPath, a training-free intervention framework designed to unify hallucination mitigation. By identifying and adjusting critical attention heads across multiple internal causal pathways, AllPath consistently reduces hallucinations across both discriminative and generative tasks without the need for expensive retraining.
Introduction
Despite the rapid advancement of Large Vision-Language Models, the tendency to "hallucinate" remains a significant barrier to their deployment in high-stakes environments. Current research suggests that these errors are not uniform; rather, the nature of hallucinations varies depending on the alignment format—the structure of the prompt and the expected response. For instance, a model might correctly identify an object in a "Yes/No" format but fail to include it in a descriptive caption.
Existing mitigation techniques typically focus on a single causal path, such as strengthening the direct link between the image and the final output. However, these methods often fail to generalize. The AllPath framework addresses this by mapping the diverse internal mechanisms LVLMs use to process information and intervening adaptively across all relevant pathways.
The AllPath Framework
AllPath operates as a training-free, inference-time intervention. The methodology is structured into three distinct phases: mapping, identification, and intervention.
1. Mapping Causal Paths
The researchers identified three primary internal pathways within the transformer architecture that influence model output:
- Image-to-Input-Text: This path governs how the visual features influence the processing of the user's initial prompt.
- Image-to-Output-Text: This path dictates how the image directly informs the generation of the response tokens.
- Text-to-Text: This path represents the influence of preceding tokens on the next token, often the source of "language prior" hallucinations where the model relies on statistical word associations rather than visual evidence.
2. Identifying Critical Attention Heads
To avoid the computational cost of exhaustive ablation studies, AllPath utilizes two lightweight metrics to locate the most influential attention heads:
- Text-to-Text (T2T) Score: This uses a refined Log Probability Increase (LPI) metric to pinpoint heads that contribute most significantly to hallucinated versus correct tokens.
- Image-to-Text (I2T) Score: This measures the degree to which a specific head focuses on relevant image regions as opposed to the background or irrelevant noise.
3. Adaptive Intervention
During the inference phase, AllPath applies scaling factors ($\\gamma^+$ and $\\gamma^-$) to the outputs of the identified heads. It "boosts" heads that ground the model in visual reality and "suppresses" those that rely too heavily on incorrect language priors. This process occurs in a single forward pass, ensuring high efficiency.
Experimental Evaluation
The effectiveness of AllPath was tested on several prominent benchmarks using models such as LLaVA-v1.5-7B, Qwen-VL-Chat, and the Qwen2.5-VL series.
Datasets and Benchmarks
- POPE: A standard benchmark for binary (Yes/No) object probing.
- MCQ-POPE: A new benchmark introduced by the authors that adapts POPE into a multiple-choice format to test robustness across structural variations.
- CHAIR: Used to evaluate hallucinations in open-ended image captioning tasks.
- MME: A comprehensive benchmark covering a wide array of LVLM capabilities.
Key Insights and Results
Format-Dependent Circuitry
A central finding of the study is that LVLMs adaptively switch internal pathways based on the task format. In discriminative tasks (like POPE), the model relies heavily on the Image-to-Input-Text path. Conversely, in generative tasks (like CHAIR), the Image-to-Output-Text path becomes the dominant mechanism for visual grounding. This discovery explains why previous single-path interventions were limited in scope.
Performance Gains
AllPath demonstrated superior performance over state-of-the-art baselines like VCD and PAI:
- POPE: Achieved a 2.1% increase in F1 score, more than double the improvement seen in the best baseline (0.9%).
- MCQ-POPE: Showed a significant 5.2% increase, validating the method's efficacy in complex discriminative structures.
- CHAIR: Improved the F1 score by 2.6%, proving that the intervention successfully translates to generative, open-ended tasks.
Efficiency and Practicality
Because AllPath requires no additional training or optimization-heavy steps, it is highly practical for real-world applications. It maintains model performance while significantly reducing the frequency of contradictory outputs.
Conclusion and Future Directions
AllPath provides a unified solution to the hallucination problem by acknowledging the format-dependent nature of LVLM internal circuitry. While the framework is highly effective, the authors note that future work could involve mapping even more specific pathways for niche reasoning tasks or integrating these intervention insights directly into the training phase to create inherently more grounded models. Currently, AllPath stands as a robust, efficient, and versatile tool for improving the reliability of vision-language systems.
Summary updated