注意力头专门化:样本复杂度中的相变 Attention Head Specialization: Phase Transitions in Sample Complexity 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-19
👁️ 预览文献
💡 AI 中文简介
研究注意力头何时、为何会分化出专门功能。作者先在BERT上观察到,数据量增加时专门处理句法关系的注意力头会逐步出现;随后构建一个可解析的高维多注意力头模型,证明这种专门化本质上是样本复杂度上的相变,表现为测试误差等指标的非解析突变。研究还区分了数据统计规律与训练动力学两种成因,为理解大模型内部功能分化提供了理论解释。
领域深度学习理论 / 可解释性研究
适合谁读需要一定专业背景(机器学习理论、统计物理或深度学习基础)
核心贡献1. 首次从样本复杂度角度刻画注意力头专门化,证明其是可解高维模型中的真实相变,对应测试误差的非解析性;2. 区分了统计相变与在线学习动力学导致的阶段性涌现,揭示专门化的统计起源与动力学起源。
关键数据在BERT中观察到句法专门化头随数据规模增大而涌现;理论模型显示专门化对应测试误差的非解析相变,并可能以级联相变形式逐步恢复较弱潜在特征。
推荐理由想搞懂大模型内部功能分化到底是数据不够还是训练动力学使然?这篇用相变视角给出清晰答案,理论扎实又贴近实验。
关键词["注意力头专门化", "相变", "样本复杂度", "多注意力头模型", "简单性偏置", "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.