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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wei, Houjing, Shi, Yuting, Inoue, Naoya
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909610726653952
author Wei, Houjing
Shi, Yuting
Inoue, Naoya
author_facet Wei, Houjing
Shi, Yuting
Inoue, Naoya
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_00646
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Phase Diagram of Vision Large Language Models Inference: A Perspective from Interaction across Image and Instruction
Wei, Houjing
Shi, Yuting
Inoue, Naoya
Computation and Language
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.
title Phase Diagram of Vision Large Language Models Inference: A Perspective from Interaction across Image and Instruction
topic Computation and Language
url https://arxiv.org/abs/2411.00646