预训练让大模型更擅长向右检索,但无法突破架构固有局限。
Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilities
- 通过检索与复制任务测试预训练模型的长度泛化能力。
- 模型在向右诱导任务中表现优于向左反诱导,存在明显不对称性。
- 该现象源于模型内部诱导与反诱导回路的强度差异,适合关注模型可靠性研究者阅读。
Transformer 在建模某些序列到序列任务时存在理论局限,但这些局限是否影响大规模预训练语言模型尚不明确。本文基于 Liu 等人 [2024a] 提出的任务,研究了预训练后模型在检索与复制任务中的表现,并采用 Huang 等人 [2025] 提出的长度泛化分析框架,为每种设置提供理论保障。实验发现,预训练模型在向右检索(诱导)任务上优于向左检索(反诱导)任务,表现出明显的诱导-反诱导不对称性;当通过针对性微调保证长度泛化时,该不对称性消失。机制分析表明,这一现象与预训练模型内部诱导与反诱导回路的强度差异有关。我们在真实任务中验证了该发现,揭示了预训练虽能增强部分能力,但无法克服变压器架构的根本长度泛化限制。
原文摘要 · Abstract (English)
Transformers have theoretical limitations in modeling certain sequence-to-sequence tasks, yet it remains largely unclear if these limitations play a role in large-scale pretrained LLMs, or whether LLMs might effectively overcome these constraints in practice due to the scale of both the models themselves and their pretraining data. We explore how these architectural constraints manifest after pretraining, by studying a family of $\textit{retrieval}$ and $\textit{copying}$ tasks inspired by Liu et al. [2024a]. We use a recently proposed framework for studying length generalization [Huang et al., 2025] to provide guarantees for each of our settings. Empirically, we observe an $\textit{induction-versus-anti-induction}$ asymmetry, where pretrained models are better at retrieving tokens to the right (induction) rather than the left (anti-induction) of a query token. This asymmetry disappears upon targeted fine-tuning if length-generalization is guaranteed by theory. Mechanistic analysis reveals that this asymmetry is connected to the differences in the strength of induction versus anti-induction circuits within pretrained transformers. We validate our findings through practical experiments on real-world tasks demonstrating reliability risks. Our results highlight that pretraining selectively enhances certain transformer capabilities, but does not overcome fundamental length-generalization limits.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。