[论文解读] On the "Induction Bias" in Sequence Models
该论文显示 Transformer 在状态跟踪任务上需要更多的训练在分布内数据,倾向于学习与长度相关的解,跨长度共享很少,而循环模型在中间监督下尤其能够实现跨长度的摊销学习。
Despite the remarkable practical success of transformer-based language models, recent work has raised concerns about their ability to perform state tracking. In particular, a growing body of literature has shown this limitation primarily through failures in out-of-distribution (OOD) generalization, such as length extrapolation. In this work, we shift attention to the in-distribution implications of these limitations. We conduct a large-scale experimental study of the data efficiency of transformers and recurrent neural networks (RNNs) across multiple supervision regimes. We find that the amount of training data required by transformers grows much more rapidly with state-space size and sequence length than for RNNs. Furthermore, we analyze the extent to which learned state-tracking mechanisms are shared across different sequence lengths. We show that transformers exhibit negligible or even detrimental weight sharing across lengths, indicating that they learn length-specific solutions in isolation. In contrast, recurrent models exhibit effective amortized learning by sharing weights across lengths, allowing data from one sequence length to improve performance on others. Together, these results demonstrate that state tracking remains a fundamental challenge for transformers, even when training and evaluation distributions match.
研究动机与目标
- 量化 Transformer 与循环模型在状态跟踪任务上的在分布内数据效率。
- 在不同监督格式下,研究序列长度和状态空间大小对数据需求的影响。
- 探究在不同序列长度下,学习到的状态跟踪机制是否被共享。
- 评估监督类型(结果导向 Outcome、推理链 CoT、对齐 CoT ACoT)对每种模型类别的数据效率的影响。
- 将归纳偏置与长度泛化能力及跨长度迁移联系起来。
提出的方法
- 以模块化加法和置换组合任务作为简单的状态跟踪问题。
- 改变序列长度 L 和状态空间大小 m,研究在不同情形下的数据效率。
- 比较一个六层的 GPT-2 风格 Transformer、LSTM 和 Dense-SSM(Dense-SSM)等模型。
- 评估三种任务格式:Outcome Supervision、Chain-of-Thought (CoT)、以及 Aligned Chain-of-Thought (ACoT)。
- 将 N* 定义为在超参数网格下确保收敛的最小训练集大小,通过二分搜索估计。
- 通过 Sharing Factor κ 分析跨长度的共享情况,比较联合学习与按长度学习。

实验结果
研究问题
- RQ1在状态跟踪任务中,Transformer 与循环模型在数据效率上的差异如何?
- RQ2Transformer 与 RNN 是否在不同序列长度下共享学习机制,这与长度泛化有何关系?
- RQ3监督格式(Outcome、CoT、ACoT)如何影响每种模型在数据效率及跨长度迁移中的表现?
- RQ4在学习多个长度时是否存在建构性或破坏性干扰的证据,以及它与长度泛化之间的相关性?
主要发现
- Transformers 倾向于非对齐的监督(CoT),并且表现出长度特定的解,跨长度共享很少(κ 大致等于1甚至显著低于1)。
- 循环模型(LSTM、Dense-SSM)在 Outcome 和对齐 CoT 形式下表现出强跨长度共享(κ >> 1),实现跨长度的摊销学习。
- 在 Outcome 监督下,循环模型在更大的状态空间和更长的序列上优于 Transformer,收敛所需样本显著更少。
- 在中间监督(CoT/ACoT)下,较长的序列提升了循环模型的数据效率,而 Transformer 无法利用额外监督。
- Transformer 在 CoT 下表现出非常低甚至负的跨长度共享,表明在学习联合模型时存在跨长度的破坏性干扰。
- 跨长度共享因子高与不同任务和模型类型的长度泛化能力更好之间存在相关性。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。