聚焦与稀释:注意力的多阶段学习过程
Focus and Dilution: The Multi-stage Learning Process of Attention
AI总结:
本文研究了Transformer模型注意力机制的多阶段学习过程,揭示了聚焦与稀释的循环机制,并通过实验验证了其动态特性。
摘要:
基于Transformer的模型在多个领域取得了显著成功,但对其训练动态的理解仍然有限。本文识别了注意力学习中的循环聚焦-稀释周期,并在单层Transformer设置中通过梯度流分析提供了严谨解释。通过分阶段线性化临界点,证明单个聚焦-稀释周期可分解为一系列不同阶段。首先,嵌入和投影迅速凝聚为秩一结构,而注意力参数保持有效冻结。然后,注意力参数开始增加,诱导高频token的聚焦。随着注意力的演变,生成更高阶的嵌入扰动,导致质量重新分配机制,逐步稀释这种聚焦。最后,低频token间的微小不对称性使退化临界点解除,开启新的嵌入方向并启动下一个周期。在合成马尔可夫数据以及WikiText和TinyStories上的实验验证了预测的阶段和循环动态。
英文摘要:
Transformer-based models have achieved remarkable success across a wide range of domains, yet our understanding of their training dynamics remains limited. In this work, we identify a recurrent focus-dilution cycle in attention learning and provide a rigorous explanation in a one-layer Transformer setting for Markovian data via gradient-flow analysis. Using stage-wise linearization around critical points, we show that a single focus-dilution cycle can be decomposed into a sequence of distinct stages. First, embedding and projection rapidly condense to a rank-one structure, while attention parameters remain effectively frozen. Then, the attention parameters begin to increase, inducing a frequency-driven focus toward high-frequency tokens. As attention continues to evolve, it generates next-order perturbations in embeddings, leading to a mass-redistribution mechanism that progressively dilutes this focus. Finally, small asymmetries among low-frequency tokens lift a degenerate critical point, opening new embedding directions and initiating the next cycle. Experiments on synthetic Markovian data as well as WikiText and TinyStories corroborate the predicted stages and cyclical dynamics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。