发现视觉语言模型在图文任务上表现差异,通过修复特征对齐时机提升性能。
Same Task, Different Circuits: Disentangling Modality-Specific Mechanisms in VLMs
- 识别视觉与文本模态的独立计算通路,揭示其功能相似但数据位置处理不同。
- 视觉特征在早期层未对齐文本特征,导致推理效率滞后,影响最终精度。
- 将后期视觉特征回填至早期层,平均缩小1/3的模态性能差距。
视觉-语言模型(VLMs)在图像问答任务(如图像中物体计数)上表现出色,但在对应文本任务(如文本词数统计)上准确率更高。我们通过识别并比较不同模态中的‘电路’——即任务特定的计算子图——来研究这一准确率差距。结果表明,尽管各模态的电路大多不重叠,但其功能相对相似:差异主要源于对模态特有数据位置(图像或文本序列)的处理方式。深入分析图像数据表示发现,它们仅在深层才逐渐对齐表现更优的文本表示,但此时已过早处理阶段,难以有效影响后续计算。为此,我们将深层视觉数据令牌的表示回填至早期层。在多个任务和模型上的实验表明,该简单干预平均缩小了模态间33%的性能差距。本分析揭示了VLMs中多模态性能差距的成因,并提出一种无需训练的优化方法。
原文摘要 · Abstract (English)
Vision-Language models (VLMs) show impressive abilities to answer questions on visual inputs (e.g., counting objects in an image), yet demonstrate higher accuracies when performing an analogous task on text (e.g., counting words in a text). We investigate this accuracy gap by identifying and comparing the \textit{circuits} - the task-specific computational sub-graphs - in different modalities. We show that while circuits are largely disjoint between modalities, they implement relatively similar functionalities: the differences lie primarily in processing modality-specific data positions (an image or a text sequence). Zooming in on the image data representations, we observe they become aligned with the higher-performing analogous textual representations only towards later layers, too late in processing to effectively influence subsequent positions. To overcome this, we patch the representations of visual data tokens from later layers back into earlier layers. In experiments with multiple tasks and models, this simple intervention closes a third of the performance gap between the modalities, on average. Our analysis sheds light on the multi-modal performance gap in VLMs and suggests a training-free approach for reducing it.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。