arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.19143cs.LGmath.OCstat.ML
收藏

Transformer中稀疏注意力模式的增量学习

Incremental Learning of Sparse Attention Patterns in Transformers

TML Lab, EPFL(EPFL语言模型实验室)

Oğuz Kaan Yüksel, Rodrigo Alvarez Lucendo, Nicolas Flammarion

AI总结:

研究在高阶马尔可夫链上训练的简单Transformer,其通过稀疏注意力模式从多个过去位置学习信息,分析学习动态及阶段转换,用简化微分方程建模并证明收敛,为结构化注意力模式和头专业化提供理论解释。

摘要:

本文研究在高阶马尔可夫链上训练的简单Transformer,模型须整合来自多个过去位置的信息,各位置统计重要性不同。表明Transformer增量学习,各阶段对应通过稀疏注意力模式从位置子集中复制信息。学习动态从竞争阶段过渡到合作阶段,用简化微分方程建模并证明阶段收敛。功能上,阶段对应一系列表达力渐强的错误指定模型,完整模型类仅在最后达到。总体而言,给出结构化注意力模式和头专业化如何在无明确课程情况下分阶段出现的理论说明,对序列任务泛化有影响。

英文摘要:

Transformers integrate information from multiple past positions through sparse attention patterns that copy from specific locations. We study how these patterns form during training in a high-order Markov-chain setting, where the next token depends on several groups of past positions with differing statistical importance. Learning proceeds in discrete stages, each marked by the emergence of a sparse attention pattern for the next most important group. The dynamics are initially competitive, with all attention heads focusing on the dominant pattern, but later become cooperative, with different heads specializing in distinct patterns. For a tractable surrogate, the dynamics reduce to those of a tensor factorization problem, enabling us to prove stagewise convergence. Empirically, the number of stages completed depends on training set size, suggesting a form of implicit complexity control through early stopping. Overall, we give a theoretical account of how structured attention patterns and head specialization emerge without an explicit curriculum.

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

↑