arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09239cs.CLcs.LG
收藏

重复标记计数揭示了表示与输出之间的脱节

Repeated-Token Counting Reveals a Dissociation Between Representations and Outputs

Manipal Institute of Technology Bengaluru(班加罗尔Manipal理工学院)

Sohan Venkatesh

AI总结:

研究发现大语言模型在重复标记计数任务中表现不佳,但通过线性探针发现错误源于多层感知机块的固定错误覆盖,而非表示层的缺陷。

摘要:

大型语言模型在重复标记计数任务上表现不佳,尽管在更广泛的推理基准上表现优异。这些失败通常归因于内部计数跟踪的限制。我们证明这一归因是错误的。线性探针显示残差流在每个后嵌入层都能以几乎完美的准确性解码正确计数,无论模型深度如何。这种现象甚至在模型同时输出错误计数的精确层也成立。注意力模式没有显示重复标记的崩溃迹象,tokenization artifacts也未导致失败。相反,一个由格式触发的多层感知机(MLP)块在大约88-93%的网络深度处会覆盖正确编码的计数,将其替换为固定错误答案。此机制在空间分离列表格式中触发,但在重复数字标记中不存在。在更大模型中,逗号分隔符会抑制该机制,但在较小模型中仍存在。该发现适用于Llama-3.2(1B和3B)和Qwen2.5(1.5B、3B和7B)在一致的相对深度下。计数失败是路由失败,而非表示层的失败,两者需要不同的干预措施。

英文摘要:

Large language models fail at counting how many times a word repeats in a list, even though they perform well on far harder reasoning tasks. These failures are commonly attributed to limitations in internal count tracking. We show this attribution is wrong. Linear probes on the residual stream decode the correct count with near-perfect accuracy at every post-embedding layer and they do so even at the exact layers where the wrong answer crystallizes in the output. Attention patterns show no evidence of collapse over repeated tokens and tokenization artifacts account for none of the failure. Instead, a multi-layer perceptron (MLP) block at roughly 85--93\% network depth overwrites the correctly-encoded count with a fixed wrong answer. Ablating this block changes the wrong output and establishes it as causally responsible for the failure. The block fires on the space-separated repeated-word format and is absent for repeated digit-tokens. The pattern holds across Llama-3.2 (1B and 3B) and Qwen2.5 (1.5B, 3B and 7B) at consistent relative depth. The count is represented correctly and a specific computation prevents it from reaching the output, so representation failures and routing failures require different interventions.

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

↑