揭秘多模态大模型如何分阶段处理图像任务。
How Multimodal LLMs Solve Image Tasks: A Lens on Visual Grounding, Task Reasoning, and Answer Decoding
- 通过探针分析各层令牌嵌入,揭示视觉定位、语义推理与输出准备的分阶段机制。
- 在三种提示变体下验证结构稳定性,发现模型架构改变会显著影响层分配。
- 方法轻量且通用,适用于不同模型的多模态表示动态分析。
多模态大语言模型(MLLMs)在众多视觉-语言任务中表现优异,但其内部处理机制仍不清晰。本文提出一种探针框架,系统分析MLLMs在不同层对视觉与文本输入的处理过程。通过在标准锚定问题下训练线性分类器,从各层提取的令牌嵌入中预测细粒度视觉类别(如犬种)。评估三种受控提示变化:(1)词汇变体,测试对表面变化的敏感性;(2)语义否定变体,通过修改提示中的视觉概念反转预期答案;(3)输出格式变体,保留推理过程但改变答案格式。应用于LLaVA-1.5、LLaVA-Next-LLaMA-3和Qwen2-VL,发现一致的阶段性结构:早期层执行视觉定位,中层支持词汇整合与语义推理,末层准备任务特定输出。尽管该结构在视觉标记化方式、指令微调数据和预训练语料变化下保持稳定,但具体层分配随基础模型架构变化而显著调整。研究为MLLMs的层级组织提供了统一视角,并提供了一种轻量、模型无关的多模态表征动态分析方法。
原文摘要 · Abstract (English)
Multimodal Large Language Models (MLLMs) have demonstrated strong performance across a wide range of vision-language tasks, yet their internal processing dynamics remain underexplored. In this work, we introduce a probing framework to systematically analyze how MLLMs process visual and textual inputs across layers. We train linear classifiers to predict fine-grained visual categories (e.g., dog breeds) from token embeddings extracted at each layer, using a standardized anchor question. To uncover the functional roles of different layers, we evaluate these probes under three types of controlled prompt variations: (1) lexical variants that test sensitivity to surface-level changes, (2) semantic negation variants that flip the expected answer by modifying the visual concept in the prompt, and (3) output format variants that preserve reasoning but alter the answer format. Applying our framework to LLaVA-1.5, LLaVA-Next-LLaMA-3, and Qwen2-VL, we identify a consistent stage-wise structure in which early layers perform visual grounding, middle layers support lexical integration and semantic reasoning, and final layers prepare task-specific outputs. We further show that while the overall stage-wise structure remains stable across variations in visual tokenization, instruction tuning data, and pretraining corpus, the specific layer allocation to each stage shifts notably with changes in the base LLM architecture. Our findings provide a unified perspective on the layer-wise organization of MLLMs and offer a lightweight, model-agnostic approach for analyzing multimodal representation dynamics.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。