Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks· Transformer 在归纳推理任务中的学习动态
We present a theoretical framework to explain the emergence of inductive reasoning abilities in Transformer language models. While previous works on Transformer learning dynamics have so far been mostly tied to specific tasks, we study a generalized class of inductive tasks that unifies several synthetic tasks known in the literature, including in-context n-grams and multi-hop reasoning. In this class, we theoretically prove that the training dynamics of attention models can be confined to a highly interpretable, low-dimensional invariant manifold. On this manifold, the learning dynamics are captured by a handful of interpretable coordinates rather than millions of parameters, making both theoretical and empirical analysis more tractable. Using this framework, we characterize how data statistics govern the competition between in-context and in-weights learning, we study how random initializations determine the `winning' circuit when multiple solutions are possible, and we demonstrate that the coordinate frame associated with the manifold can be used to automatically detect which circuits have been learned in trained models. By casting circuit formation as a low-dimensional dynamical phenomenon, we take a step toward a predictive theory of how Transformers learn.
研究 Transformer 在广泛归纳推理任务中的低维度学习动态
- 核心方法
- 提出了一个理论框架,证明了Transformer的学习动态可以被限制在低维不变流形上,通过少量可解释坐标而非数百万参数来捕捉学习过程
- 适合谁读
- 研究者
- 要解决的问题
- 解释 Transformer 语言模型如何获得归纳推理能力
- 关键实验
- 未提供
- 主要贡献
- 提供了预测 Transformer 学习机制的理论基础,解释了数据统计和随机初始化如何影响学习路径
- 意义与局限
- 有助于理论和实证分析Transformer模型,但需更多实验验证