arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.26228cs.LGcond-mat.dis-nnstat.ML
收藏

注意力头专业化:样本复杂度中的相变

Attention Head Specialization: Phase Transitions in Sample Complexity

École Polytechnique Fédérale de Lausanne (EPFL)(洛桑联邦理工学院)

Léo Catteau, O. Duranthon, Lenka Zdeborová

AI总结:

本文探究注意力头专业化与训练数据量的关系,通过实证和高维模型分析发现其为样本复杂度的相变,还关联在线学习中专业化头的分阶段出现,区分其统计与动态起源。

摘要:

注意力头在训练过程中会分化为不同功能,常随模型行为的急剧变化分阶段出现。现有研究多将该现象与训练时间关联,本文探究头专业化与可用训练数据量的关系。实证发现,随数据集规模增大,BERT中专门处理句法关系的头会出现。随后在可解的高维多头注意力模型中研究该现象,证实此模型中头专业化是样本复杂度的真实相变,对应测试误差及其他可观测量的非解析性。根据数据结构与正则化,专业化可遵循无信息头分化,或通过级联通相变逐步恢复较弱潜在特征,提供统计形式的简单性偏差。最后将这些统计相变与在线学习中专业化头的分阶段出现关联,区分头专业化的统计起源与动态起源。

英文摘要:

Attention heads specialize into distinct functions during training, often emerging in stages together with sharp changes in model behavior. While this phenomenon has mostly been studied as a function of training time, we ask how head specialization depends on the amount of available training data. Empirically, we find that heads specialized to syntactic relations in BERT emerge as the dataset size increases. We then study this phenomenon in a solvable high-dimensional model of multi-head attention and establish that, in this model, head specialization is a genuine phase transition in sample complexity, corresponding to a non-analyticity in the test error and other observables. Depending on data structure and regularization, specialization can follow uninformative head differentiation or occur through a cascade of phase transitions that progressively recover weaker latent features, providing a statistical form of simplicity bias. Finally, we relate these statistical transitions to the stagewise emergence of specialized heads during online learning, disentangling statistical from dynamical origins of head specialization.

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

↑