新研究:Transformer 在推理中可能用 token 身份替代真正的符号抽象
Emergent Symbols or Reasoning Shortcuts?
如果你关心模型可解释性或神经符号学习,这篇论文很有意思:它证明了很多看似涌现符号的行为其实是推理捷径,交换 token 角色的测试也会被骗过。文中给了真正能消除捷径的训练方法和架构改动,还对比了 6 层、12 层 transformer 和 Gemma 2、Llama 3.1 的差异。
一篇 arXiv 论文研究大模型在推理时是否真正形成符号表征。任务上模型能延续 ABA/ABB 模式,比如"cat dog cat sun moon"接"sun",内部对应一个记录每个 token 是 A 还是 B 的变量,被视为涌现符号。但论文证明:当训练数据无法区分"从模式读角色"和"从 token 本身读角色"两种机制时——例如 cat 和 sun 总是 A,dog 和 moon 总是 B——网络会走推理捷径,甚至连常见的整体交换 token 角色测试也会被错误解法骗过。
在干预手段上,语义损失、固定符号程序和交换内部状态训练都无法完全消除捷径解;而在训练提示中加入各种角色交换,或改用只判断 token 是否相等(不依赖具体身份)的架构,则可以消除。实验中,固定角色加大量词汇表下,6 层 transformer 从零训练起初按模式读取,随后在保持训练准确率的同时转向记住每个 token 的角色,体现了 in-context learning 的短暂性。12 层 transformer 在同等训练量下大多持续按模式读取;预训练的 Gemma 2 和 Llama 3.1 在固定角色微调后仍按模式读取。
这项工作对神经符号学习和可解释性研究者有直接意义:评估涌现符号时需要设计能区分机制的测试,单个交换测试并不充分。
Emergent Symbols or Reasoning Shortcuts?
Can large language models truly form symbolic representations on their own during reasoning? Recent research provides a positive answer on a simple task. A model continues "cat dog cat sun moon" with "sun" and "cat dog dog sun moon" with "moon". Internally, a variable recording whether each token is A or B in an ABA or ABB pattern is considered an emergent symbol. It is unclear whether the network reads the role from the pattern or from the token itself, the latter being a known reasoning shortcut in neuro-symbolic learning. We prove when the training data cannot distinguish between these two approaches, for example, when "cat" and "sun" always appear as A, and "dog" and "moon" always appear as B. Even the common test of swapping all token roles can be fooled by a false solution. Semantic loss, fixed symbolic programs, and training with swapped internal states cannot completely eliminate these solutions, but adding training prompts with various role swaps or using an architecture that only considers which tokens are equal can eliminate them. In experiments with fixed roles and a large vocabulary, a 6-layer transformer trained from scratch initially reads the pattern, then, while maintaining training accuracy, switches to remembering the role of each token. This demonstrates the known transience of in-context learning, while standard interventions on this variable remain successful. With the same training amount, 12-layer transformers mostly keep reading the pattern. Pre-trained Gemma 2 and Llama 3.1 still read the pattern after fine-tuning with fixed roles.
本条情报归属 AITOP「论文」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「中美大模型技术代差与商业化对照」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Gemma 2、Llama 3.1、神经符号学习、可解释性,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Xin Zhang, Victor S. Sheng),经 AITOP 多维评分管线结构化提炼。