从雅可比矩阵看循环自注意力动力学:一种不依赖能量函数的视角
Recurrent Self-Attention Dynamics: An Energy-Agnostic Perspective from Jacobians
该研究放松了自注意力层需存在能量函数的假设,用动力系统分析刻画更一般的自注意力推理动力学。基于雅可比矩阵的分析显示,归一化层对抑制自注意力的 Lipschitz 性和雅可比复特征值(对应振荡成分)起关键作用;由雅可比计算的 Lyapunov 指数表明归一化动力学接近临界状态,且该临界性是高推理性能的强指标。
arXiv:2505.19458v5 Announce Type: replace-cross Abstract: The theoretical understanding of self-attention (SA) has been steadily progressing. A prominent line of work studies a class of SA layers that admit an energy function decreased by state updates. While it provides valuable insights into inherent biases in signal propagation, it often relies on idealized assumptions or additional constraints not necessarily present in standard SA. Thus, to broaden our understanding, this work aims to relax these energy constraints and provide an energy-agnostic characterization of inference dynamics by dynamical systems analysis. In more detail, we first consider relaxing the symmetry and single-head constraints traditionally required in energy-based formulations. Next, we show that analyzing the Jacobian matrix of the state is highly valuable when investigating more general SA architectures without necessarily admitting an energy function. It reveals that the normalization layer plays an essential role in suppressing the Lipschitzness of SA and the Jacobian's complex eigenvalues, which correspond to the oscillatory components of the dynamics. In addition, the Lyapunov exponents computed from the Jacobians demonstrate that the normalized dynamics lie close to a critical state, and this criticality serves as a strong indicator of high inference performance. Furthermore, the Jacobian perspective also enables us to develop regularization methods for training and a pseudo-energy for monitoring inference dynamics.
中文翻译还没有生成,先显示原文。
来源:arXiv · Neural and Evolutionary Computing · arxiv.org