一个模型,两种角色:共享递归变压器中的涌现专业化
One Model, Two Roles: Emergent Specialization in a Shared Recurrent Transformer
AI总结:
该研究探讨了共享权重的递归变压器是否能在未被分割成独立模块的情况下发展出不同的内部角色,通过不对称输入递归(AIR)架构发现,模型内部状态分化出不同的功能角色,并展示了这种分化与模型状态动态的关系。
摘要:
可以一个共享权重的递归变压器在未被分割成独立模块的情况下发展出不同的内部角色吗?我们研究了不对称输入递归(AIR),这是一种最小的两状态推理架构,在其中相同的Transformer模型被重复用于更新(根据文献,L和H),唯一的更新规则差异是编码输入在L更新中被注入但在H更新中不被注入。在Sudoku-Extreme和Maze中,解码的rollouts揭示出一致的分裂:$\zH$表现得像一个完全承诺的提案状态,而$\zL$保留局部不确定性和移动的中间结构。冻结实验显示,这种分裂实际上与模型的状态动态有关:在Sudoku中,冻结$\zH$会减少$\zL$的内容变化,而冻结$\zL$会增加$\zH$的内容变化;而在Maze中,冻结任一状态会增加另一个状态的内容变化。消融实验显示,为了诱导专业化,共享模型需要能够区分两种更新类型,要么通过输入注入的不对称性,要么通过一个单独的层级标记。机理上,注意力分析显示在Sudoku和Maze中,L更新始终比H更新更局部。这些结果表明,在两状态递归设置中,清晰的状态身份信号可以诱导共享参数递归变压器内部稳定的、相关的功能角色。代码可在https://github.com/juchengshen/air获得。
英文摘要:
Can a shared-weight recurrent Transformer---one that repeatedly applies the same Transformer to update evolving latent states---develop distinct internal roles without being partitioned into separate modules? We study this in Asymmetric Input Recurrence (AIR), a minimal two-state reasoning architecture in which the same Transformer model is reused for both updates (per literature, L and H) and the only built-in difference in the update rule is that the encoded input is injected during L-updates but not H-updates. Across Sudoku-Extreme and Maze, decoded rollouts reveal a consistent split: $z_H$ behaves like a fully committed proposal state, whereas $z_L$ retains local uncertainty and shifting intermediate structure. Freeze interventions provide evidence of dynamical dependence between the two states, with responses that vary across tasks, intervention directions, and seeds. Ablations show that to induce specialization, the shared model needs to be able to tell the two update types apart, either from input injection asymmetry or from a separate level token. Mechanistically, attention analysis shows that L-updates are consistently more local than H-updates in both Sudoku and Maze. Together, these results show that, in a two-state recurrent setting, a clear state-identity signal can induce stable, related functional roles inside a shared-parameter recurrent Transformer. Code is available at https://github.com/juchengshen/air.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。