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

通过归纳偏置的视角解释变换器中的grokking现象

Explaining Grokking in Transformers through the Lens of Inductive Bias

University of Tübingen(图宾根大学);ELLIS Institute Tübingen(图宾根ELLIS研究所);Tübingen AI Center(图宾根人工智能中心);Zuse School ELIZA(祖斯ELIZA学校)

Jaisidh Singh, Diganta Misra, Antonio Orvieto

AI总结:

通过分析架构和优化设置,研究变换器中grokking现象的归纳偏置影响及其复杂性。

摘要:

我们通过归纳偏置的视角研究变换器中的grokking现象:源自架构或优化的倾向性,使网络更倾向于选择一种解决方案而非另一种。我们首先展示架构选择如层归一化(LN)的位置强烈调节grokking速度。这种调节通过隔离LN在特定路径上如何塑造捷径学习和注意力熵来解释。随后,我们研究不同优化设置如何调节grokking,引发对之前提出的控制因素如读出尺度的不同解释。特别是,我们发现将读出尺度作为懒惰训练的控制因素可能在我们的设置中受到学习率和权重衰减的干扰。因此,我们显示特征在整个训练过程中持续演变,表明变换器中的grokking可能比学习制度的懒惰到丰富过渡更加复杂。最后,我们展示泛化如何在grokking中的特征压缩性上可预测地出现,跨不同归纳偏置调节器。我们的代码在https://tinyurl.com/y52u3cad上发布。

英文摘要:

We investigate grokking in transformers through the lens of inductive bias: dispositions arising from architecture or optimization that let the network prefer one solution over another. We first show that architectural choices such as the position of Layer Normalization (LN) strongly modulates grokking speed. This modulation is explained by isolating how LN on specific pathways shapes shortcut-learning and attention entropy. Subsequently, we study how different optimization settings modulate grokking, inducing distinct interpretations of previously proposed controls such as readout scale. Particularly, we find that using readout scale as a control for lazy training can be confounded by learning rate and weight decay in our setting. Accordingly, we show that features evolve continuously throughout training, suggesting grokking in transformers can be more nuanced than a lazy-to-rich transition of the learning regime. Finally, we show how generalization predictably emerges with feature compressibility in grokking, across different modulators of inductive bias. Our code is released at https://tinyurl.com/y52u3cad.

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

↑