arXiv:2505.19458cs.LGcond-mat.dis-nn2025-05NeurIPS被引 4

通过雅可比分析揭示自注意力动态的无能量约束机制

Recurrent Self-Attention Dynamics: An Energy-Agnostic Perspective from Jacobians

  • 用雅可比矩阵分析通用自注意力架构,摆脱能量函数限制
  • 归一化层抑制动态不稳定性,使系统接近临界状态
  • 提出伪能量与正则化方法,适用于模型训练与推理监控

自注意力(SA)的理论研究持续进展,已有工作聚焦于具有能量函数递减特性的特定类型SA层。然而这类研究常依赖理想化假设或额外约束,未必适用于标准自注意力结构。为此,本文旨在放宽能量约束,通过动力系统分析提供无能量视角下的推理动态刻画。首先,我们放松了传统能量框架中的对称性与单头限制;其次,发现分析状态的雅可比矩阵对无能量型SA架构极具价值。结果表明,归一化层有效抑制了自注意力的Lipschitz常数及雅可比矩阵的复特征值(对应动态振荡成分)。进一步地,基于雅可比矩阵计算的李雅普诺夫指数显示,归一化动态接近临界状态,该临界性成为高性能推理的强指标。此外,雅可比视角还支持开发训练正则化方法及用于监控推理动态的伪能量函数。

原文摘要 · Abstract (English)

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.

自注意力动力系统雅可比分析临界状态

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。