arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.06579cs.CLcs.AIcs.CV
收藏

从冗余到相关:LVLM 在推理任务中的信息流

From Redundancy to Relevance: Information Flow in LVLMs Across Reasoning Tasks

Shanghai Jiao Tong University(上海交通大学);Beijing Jiaotong University(北京交通大学);Alibaba Group(阿里巴巴集团);Carnegie Mellon University(卡内基梅隆大学)

Xiaofeng Zhang, Yihao Quan, Chen Shen, Xiaosong Yuan, Shaotian Yan, Liang Xie, Wenxiao Wang, Chaochen Gu, Hao Tang, Jieping Ye

AI总结:

本文通过结合注意力分析与 LLaVA-CAM 研究 LVLMs 中视觉表示的信息流,发现信息流在浅层收敛、深层多样化,并通过截断实验验证了该模式及上下文相关的信息流悬崖层。

摘要:

大型视觉语言模型(LVLMs)在视觉-语言推理任务上取得了优异性能,然而 LVLMs 的黑箱特性阻碍了对推理机制的深入研究。由于所有图像都需要被转换为图像 token,才能与自然语言提示一起适配大语言模型(LLMs)的输入格式,因此序列化视觉表示对 LVLMs 的性能至关重要,而信息流分析方法可以成为判断这些表示之间交互作用的有效工具。本文提出将注意力分析与 LLaVA-CAM 相结合,具体而言,注意力分数在前向传播过程中突出相关区域,而 LLaVA-CAM 通过反向传播捕获梯度变化,揭示关键图像特征。通过从视觉表示贡献的角度探索信息流,我们观察到信息流倾向于在浅层中收敛,但在更深层中呈现多样化。为验证我们的分析,我们在多种 LVLMs 上针对视觉问答和图像描述任务进行了截断策略的综合实验,实验结果不仅验证了我们的假设,还揭示了相应层中信息流收敛的一致模式,并且信息流悬崖层会因上下文不同而有所差异。本文源代码可从 \url{https://github.com/zhangbaijin/From-Redundancy-to-Relevance} 获取。

英文摘要:

Large Vision Language Models (LVLMs) achieve great performance on visual-language reasoning tasks, however, the black-box nature of LVLMs hinders in-depth research on the reasoning mechanism. As all images need to be converted into image tokens to fit the input format of large language models (LLMs) along with natural language prompts, sequential visual representation is essential to the performance of LVLMs, and the information flow analysis approach can be an effective tool for determining interactions between these representations. In this paper, we propose integrating attention analysis with LLaVA-CAM, concretely, attention scores highlight relevant regions during forward propagation, while LLaVA-CAM captures gradient changes through backward propagation, revealing key image features. By exploring the information flow from the perspective of visual representation contribution, we observe that it tends to converge in shallow layers but diversify in deeper layers. To validate our analysis, we conduct comprehensive experiments with truncation strategies across various LVLMs for visual question answering and image captioning tasks, and experimental results not only verify our hypothesis but also reveal a consistent pattern of information flow convergence in the corresponding layers, and the information flow cliff layer will be different due to different contexts. The paper's source code can be accessed from \url{https://github.com/zhangbaijin/From-Redundancy-to-Relevance}

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑