arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.04902cs.LGcs.AI
收藏

动量注意力:上下文学习与频谱分析的物理机制可解释性

Momentum Attention: The Physics of In-Context Learning and Spectral Forensics for Mechanistic Interpretability

Qualcomm Cloud AI Division(高通云人工智能部门)

Kingsuk Maitra

AI总结:

动量注意力通过引入物理先验和辛增广,实现上下文学习与频谱分析的物理机制可解释性,突破传统深度限制,提升模型性能。

摘要:

机制可解释性(MI)计划已将Transformer映射为精确的计算图。我们通过守恒定律和时间变化的AC动态扩展此图,将其视为一个物理电路。我们引入动量注意力,一种通过动力学差分算子$p_t = q_t - q_{t-1}$将物理先验嵌入到查询和键中的辛增广。我们识别出一个根本的辛滤波对偶性:物理剪切在数学上等同于高通滤波器。这种对偶性是我们的核心贡献——通过注入动力学动量,我们绕过了诱导头形成拓扑深度约束(L≥2)。虽然标准架构需要两层从静态位置进行诱导,我们的扩展使直接访问速度成为可能,从而通过Bode图实现单层诱导和频谱分析。我们正式化了一个正交定理,证明当低通RoPE与高通动量相互作用时,直流(语义)信号和交流(机制)信号会分离到正交的频率带中。通过5,100+受控实验(补充附录A-R和27个Jupyter笔记本)验证,我们的12500万动量模型在诱导密集任务上超越了预期,同时在验证损失约2.9%内跟踪3.5亿基准。专门的联想回忆实验揭示了缩放定律γ* = 4.17 × N^{-0.74},确立了动量深度的可替换性。我们提供这个框架作为连接生成AI、哈密顿物理和信号处理的互补分析工具包。

英文摘要:

The Mechanistic Interpretability (MI) program has mapped the Transformer as a precise computational graph. We extend this graph with a conservation law and time-varying AC dynamics, viewing it as a physical circuit. We introduce Momentum Attention, a symplectic augmentation embedding physical priors via the kinematic difference operator $p_t = q_t - q_{t-1}$, implementing the symplectic shear $\hat{q}_t = q_t + γp_t$ on queries and keys. We identify a fundamental Symplectic-Filter Duality: the physical shear is mathematically equivalent to a High-Pass Filter. This duality is our cornerstone contribution -- by injecting kinematic momentum, we sidestep the topological depth constraint ($L \geq 2$) for induction head formation. While standard architectures require two layers for induction from static positions, our extension grants direct access to velocity, enabling Single-Layer Induction and Spectral Forensics via Bode Plots. We formalize an Orthogonality Theorem proving that DC (semantic) and AC (mechanistic) signals segregate into orthogonal frequency bands when Low-Pass RoPE interacts with High-Pass Momentum. Validated through 5,100+ controlled experiments (documented in Supplementary Appendices A--R and 27 Jupyter notebooks), our 125M Momentum model exceeds expectations on induction-heavy tasks while tracking a 350M baseline within $\sim$2.9% validation loss. Dedicated associative recall experiments reveal a scaling law $γ^* = 4.17 \times N^{-0.74}$ establishing momentum-depth fungibility. We offer this framework as a complementary analytical toolkit connecting Generative AI, Hamiltonian Physics, and Signal Processing.

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

↑