Causal Tracing of Object Representations in Large Vision Language Models: Mechanistic Interpretability and Hallucination Mitigation
Qiming Li, Zekai Ye, Xiaocheng Feng, Weihong Zhong, Weitao Ma, Xiachong Feng
TL;DR
The paper tackles mechanistic interpretability and hallucination in large vision-language models by introducing Fine-grained Cross-modal Causal Tracing (FCCT), which uses Gaussian perturbations and activation patching to quantify cross-modal causal effects across visual and textual tokens and three core components across all layers, with the Recovery Rate $RR$ as the causal metric. FCCT uncovers that last-token MHSA in middle layers drives cross-modal aggregation, FFNs exhibit a three-stage hierarchical representation, and hidden states undergo a hierarchical semantic shift, informing the design of a training-free inference-time technique called Intermediate Representation Injection (IRI). IRI injects mid-layer cross-modal representations into later layers guided by $RR$, significantly mitigating object hallucinations while preserving inference speed. Across five LVLMs and five benchmarks, IRI achieves state-of-the-art hallucination mitigation and validates FCCT's mechanistic insights, offering practical guidance for robust cross-modal perception in LVLMs.
Abstract
Despite the remarkable advancements of Large Vision-Language Models (LVLMs), the mechanistic interpretability remains underexplored. Existing analyses are insufficiently comprehensive and lack examination covering visual and textual tokens, model components, and the full range of layers. This limitation restricts actionable insights to improve the faithfulness of model output and the development of downstream tasks, such as hallucination mitigation. To address this limitation, we introduce Fine-grained Cross-modal Causal Tracing (FCCT) framework, which systematically quantifies the causal effects on visual object perception. FCCT conducts fine-grained analysis covering the full range of visual and textual tokens, three core model components including multi-head self-attention (MHSA), feed-forward networks (FFNs), and hidden states, across all decoder layers. Our analysis is the first to demonstrate that MHSAs of the last token in middle layers play a critical role in aggregating cross-modal information, while FFNs exhibit a three-stage hierarchical progression for the storage and transfer of visual object representations. Building on these insights, we propose Intermediate Representation Injection (IRI), a training-free inference-time technique that reinforces visual object information flow by precisely intervening on cross-modal representations at specific components and layers, thereby enhancing perception and mitigating hallucination. Consistent improvements across five widely used benchmarks and LVLMs demonstrate IRI achieves state-of-the-art performance, while preserving inference speed and other foundational performance.
