提出Token激活图,让多模态大模型的输出更可解释。
Token Activation Map to Visually Explain Multimodal LLMs
- 用因果推断和高斯滤波消除上下文干扰,提升解释可靠性。
- 在物体定位、视频可视化等任务上显著优于现有方法。
- 适合研究模型推理过程或需要透明解释的场景。
多模态大语言模型(MLLMs)正广泛应用于多个领域,但其可解释性仍不充分,影响模型理解与可信度。与传统视觉模型不同,MLLMs逐个生成文本标记,后续标记依赖于前序上下文,导致早期冗余激活干扰后续解释。现有方法常忽视此问题,我们发现这些冗余关联会严重影响解释可靠性。为此,提出基于估计因果推断的方法,结合新颖的秩高斯滤波器,减少激活噪声,构建了令牌激活图(TAM),明确考虑标记间的交互关系。TAM不仅适用于单个预测解释,更擅长解释多个标记序列,超越传统类别激活图(CAM)。实验表明,TAM显著优于当前最优方法,在物体定位、失败案例分析、视频可视化、模型对比及视觉推理(如颜色、形状、动作、位置)等场景中均呈现高质量可视化结果。代码已开源:github.com/xmed-lab/TAM。
原文摘要 · Abstract (English)
Multimodal large language models (MLLMs) are broadly empowering various fields. Despite their advancements, the explainability of MLLMs remains less explored, hindering deeper understanding, model credibility, and effective visualization. Unlike conventional vision models (e.g., CNNs, ViTs, CLIP) that produce a single output, MLLMs generate sequences of tokens progressively, where each generated token depends on the previous context. Therefore, earlier context tokens can introduce redundant activations that interfere with the explanation of later tokens beyond their original information. Existing studies often overlook this issue, but our observations reveal that these redundant correlations can significantly hurt the reliability of explanations. To address this, we propose an estimated causal inference method to mitigate the interference of context to achieve high-quality MLLM explanation, with a novel rank Gaussian filter to further reduce activation noises. We term this method Token Activation Map (TAM) to highlight the consideration of interactions between tokens. TAM also indicates that it excels at explaining multiple tokens of MLLM, which is different from the Class Activation Map (CAM) for a single prediction. Our TAM method significantly outperforms existing SoTA methods, showcasing high-quality visualization results that can be utilized for various scenarios, such as object localization, failure case analysis, video visualization, MLLMs visual comparison, and model understanding (e.g., color, shape, action, location, visual reasoning, multi-turn conversation, etc). The code is available atgithub.com/xmed-lab/TAM.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。