涌现符号还是推理捷径?
Emergent Symbols or Reasoning Shortcuts?
Xin Zhang, Victor S. Sheng
AI 速读 基于摘要
论文探讨大语言模型在推理中是否真正形成符号表征,还是依赖已知的推理捷径。
cs.CL · cs.LG
查看原文摘要
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.