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

Transformer残差流的动力学:将谱几何与网络拓扑耦合

Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topology

Network Science Institute, Northeastern University(网络科学研究所,东北大学);Flagship Pioneering(先锋计划)

Jesseba Fernando, Grigori Guitchounts

AI总结:

研究Transformer残差流的传播机制,揭示训练过程中谱几何与网络拓扑的耦合关系,发现残差流在深度方向上呈现单调的谱梯度变化,并存在低秩瓶颈导致维度压缩。

摘要:

大型语言模型具有强大的计算能力,但其层间计算传播机制仍不明确。将深度视为离散时间,残差流视为动态系统,每个层的非线性更新具有局部线性描述。然而,以往分析依赖标量总结或近似线性化,未能揭示训练LSTM的完整谱几何。本文对三个生产级LLM进行全面雅可比特征分解,显示训练过程在深度方向上安装单调的谱梯度——从非正交、旋转主导的早期层到近对称的后期层——并伴随累积低秩瓶颈,将扰动压缩到残差流有效维度的小部分。实验表明,该梯度和维度压缩是学习而非架构决定的,当移除结构非正交性时,其影响显著减弱。进一步发现,图社区的位置预测雅可比放大或抑制它们,耦合符号由局部算子类型决定,初始化时无此关系。这些结果揭示了LLM中学习到的谱几何,将扰动传播和压缩与网络功能拓扑联系起来。

英文摘要:

Large language models are remarkably capable, yet how computation propagates through their layers remains poorly understood. A growing line of work treats depth as discrete time and the residual stream as a dynamical system, where each layer's nonlinear update has a local linear description. However, previous analyses have relied on scalar summaries or approximate linearizations, leaving the full spectral geometry of trained LLMs unknown. We perform full Jacobian eigendecomposition across three production--scale LLMs and show that training installs a monotonic spectral gradient through depth -- from non-normal, rotation-dominated early layers to near--symmetric late layers -- together with a cumulative low-rank bottleneck that funnels perturbations into a small fraction of the residual stream's effective dimensions. Our experiments reveal that this gradient and the dimensional collapse are learned rather than architectural, and is largely dissolved when structured non-normality is removed. We further show that the topological positioning of graph communities predicts whether the Jacobian amplifies or suppresses them, with the sign of the coupling determined by the local operator type, a relationship absent at initialization. These results map a learned spectral geometry in LLMs that links perturbation propagation and compression to the network's functional topology.

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

↑