视觉语言模型 · CVPR2026 ·2026.06.03 分类待复核 · 置信度 0.93

理解大语言模型与视觉语言模型中的计数机制

Understanding Counting Mechanisms in Large Language and Vision-Language Models

Hosein Hasani、Amirmohammad Izadi、Fatemeh Askari、Mobin Bagherian、Sadegh Mohammadian、Mohammad Izadi 等 7 人

与你有关的部分

对做 LVLM 的人:论文用因果中介分析定位到视觉嵌入中承载计数的区域(随空间构图在前景/背景间迁移),并指出视觉编码器属性会塑造计数行为——这为诊断和改造 LVLM 的视觉侧数值表征提供了可复用的探针工具 CountScope 与逐层分析范式。

原文依据 In LVLMs, numerical information also appears in visual embeddings, shifting between background and foreground regions depending on spatial composition.
可迁移到 视觉问答多模态大模型机理分析视觉表征探测

摘要译文

由模型翻译 · 术语统一 · 请对照原文核对关键结论

计数是大语言模型(LLM)与大视觉语言模型(LVLM)的基本能力之一。本文考察这些基础模型在计数任务中如何表征与计算数值信息。我们使用重复文本项与视觉项的受控实验,并通过一组行为分析、观察分析与因果中介分析来剖析 LLM 与 LVLM 中的计数过程。为此,我们设计了一个专用工具 CountScope,用于对数值内容进行机制可解释性分析。结果表明,单个词元或视觉特征编码了潜在的位置计数信息,这些信息可被提取并跨上下文迁移。逐层分析揭示数值表征的渐进式涌现:较低层编码较小的计数,较高层表征较大的计数。我们识别出一种随每个项目更新的内部计数器机制,它主要存储于最后一个词元或区域中。在 LVLM 中,数值信息也出现在视觉嵌入中,并依据空间构图在背景与前景区域之间迁移。我们进一步揭示,模型依赖分隔符等结构性线索,这些线索充当跟踪项目计数的捷径,并强烈影响数值预测的准确率。总体而言,计数在 LLM 中表现为一种结构化的、逐层的过程,并在 LVLM 中遵循相同的一般模式,且受视觉编码器特性的塑造。

英文原文摘要 1466 字符

Counting is one of the fundamental abilities of large language models (LLMs) and large vision-language models (LVLMs). This paper examines how these foundation models represent and compute numerical information in counting tasks. We use controlled experiments with repeated textual and visual items and analyze counting in LLMs and LVLMs through a set of behavioral, observational, and causal mediation analyses. To this end, we design a specialized tool, CountScope, for the mechanistic interpretability of numerical content. Results show that individual tokens or visual features encode latent positional count information that can be extracted and transferred across contexts. Layerwise analyses reveal a progressive emergence of numerical representations, with lower layers encoding small counts and higher layers representing larger ones. We identify an internal counter mechanism that updates with each item, stored mainly in the final token or region. In LVLMs, numerical information also appears in visual embeddings, shifting between background and foreground regions depending on spatial composition. We further reveal that models rely on structural cues such as separators in text, which act as shortcuts for tracking item counts and strongly influence the accuracy of numerical predictions. Overall, counting emerges as a structured, layerwise process in LLMs and follows the same general pattern in LVLMs, shaped by the properties of the vision encoder.

标签

会议 CVPR2026
页码 5125-5133
Bibkey
来源 CVF Open Access