arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.00646cs.CL
收藏

视觉大语言模型推理的相图:来自图像与指令间交互的视角

Phase Diagram of Vision Large Language Models Inference: A Perspective from Interaction across Image and Instruction

Japan Advanced Institute of Science and Technology(日本先进科学研究院);RIKEN(日本资源技术研究所)

Houjing Wei, Yuting Shi, Naoya Inoue

AI总结:

本文通过测量不同模态 token 隐状态间的上下文化,揭示 VLLMs 沿 Transformer 深度推理时经历对齐、模态内编码、模态间编码和输出准备四阶段动态。

摘要:

视觉大语言模型(VLLMs)通常将图像 token 嵌入与文本 token 嵌入拼接作为输入,并进行因果建模。然而,其内部行为仍未得到充分研究,这引出了两类 token 之间如何交互的问题。为研究模型推理期间的这种多模态交互,本文测量来自不同模态的 token 隐状态向量之间的上下文化程度。实验揭示了 VLLMs 沿基于 Transformer 的语言模型深度呈现的四阶段推理动态:(I)对齐:在极早期层中,模态之间出现上下文化,表明特征空间发生对齐。(II)模态内编码:在早期层中,模态内上下文化增强,而模态间交互受到抑制,表明模态内部进行局部编码。(III)模态间编码:在较后层中,跨模态上下文化增强,表明模态间发生更深层融合。(IV)输出准备:在极晚期层中,上下文化在全局范围内减弱,隐状态向 unembedding 空间对齐。

英文摘要:

Vision Large Language Models (VLLMs) usually take input as a concatenation of image token embeddings and text token embeddings and conduct causal modeling. However, their internal behaviors remain underexplored, raising the question of interaction among two types of tokens. To investigate such multimodal interaction during model inference, in this paper, we measure the contextualization among the hidden state vectors of tokens from different modalities. Our experiments uncover a four-phase inference dynamics of VLLMs against the depth of Transformer-based LMs, including (I) Alignment: In very early layers, contextualization emerges between modalities, suggesting a feature space alignment. (II) Intra-modal Encoding: In early layers, intra-modal contextualization is enhanced while inter-modal interaction is suppressed, suggesting a local encoding within modalities. (III) Inter-modal Encoding: In later layers, contextualization across modalities is enhanced, suggesting a deeper fusion across modalities. (IV) Output Preparation: In very late layers, contextualization is reduced globally, and hidden states are aligned towards the unembedding space.

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

↑