arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.19328cs.LG
收藏

理解变换器在学习潜在结构中的分阶段动态

Understanding the Staged Dynamics of Transformers in Learning Latent Structure

Department of Computing Science, University of Alberta, Edmonton, Canada(计算科学系,阿尔伯塔大学,爱德蒙顿,加拿大);Department of Psychology, University of Alberta, Edmonton, Canada(心理学系,阿尔伯塔大学,爱德蒙顿,加拿大)

Rohan Saha, Farzane Aminmansour, Alona Fyshe

AI总结:

本文通过Alchemy基准测试,研究了变换器在学习潜在结构中的分阶段动态,发现模型在不同任务中逐步学习不同结构组件,并揭示了层间可塑性窗口对训练过程的影响。

摘要:

语言模型展示了变换器能够从上下文中发现潜在结构的能力,但其如何获取结构不同组成部分的动力学仍不明确,导致模型被断言只是重新组合训练数据。本文通过受控设置下的Alchemy基准测试,研究了潜在结构学习。我们训练了一个小型解码器-only变换器,进行三个任务变体:1)从部分上下文信息推断缺失的转换;2)用简单规则解决多转换序列;3)分解复杂多步骤示例以推断中间转换。通过将每个任务分解为可解释的组件,我们发现模型在不同阶段逐步学习不同潜在结构组件。我们还观察到不对称性:模型在鲁棒性上能够组合基本转换,但在分解复杂示例以发现原子转换时遇到困难。最后,通过因果干预,我们识别出层特定的可塑性窗口,在此期间冻结显著延迟或阻止阶段完成。这些发现为理解变换器如何获取潜在结构提供了见解,提供了训练过程中能力演变的详细视图。

英文摘要:

Language models have proven to be capable of learning the intricate latent structures in language. However, the dynamics of how such models acquire the components of that structure remain poorly understood, leaving them open to the criticism that models just remix training data. In this work, we use the Alchemy benchmark as a controlled setting in which we investigate how models acquire the different latent structure components of the data. We train a small decoder-only transformer on three controlled task variants: 1) inferring missing steps from partial contextual information, 2) composing simple rules to solve multi-step sequences, and 3) decomposing complex multi-step examples to infer intermediate states. By factorizing each task into interpretable components, we show that the model learns the different latent structure components in discrete $\textit{stages}$ and in a $\textit{coarse-to-fine}$ manner. Using inference-time ablations, we demonstrate that when certain latent structures are masked or replaced, the model can use an alternative intermediate latent structure to solve the task. We also observe an asymmetry: the model composes single step transitions robustly, but struggles to decompose complex examples to discover the atomic steps. Our findings provide insight into $\textit{how}$ a transformer model acquires latent structure, offering a detailed view of how capabilities evolve during training.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑