arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.02459cs.LGcs.AIcs.CL
收藏

深度语言模型中层更新的几何结构研究

On the Geometric Structure of Layer Updates in Deep Language Models

Institute of Basic Science, Korea University(韩国大学基础科学研究所)

Jun-Sik Yoo

AI总结:

本文研究深度语言模型中层更新的几何结构,发现层更新可分解为主导的tokenwise组件和一个几何上不同的残差部分,残差对输出扰动有显著影响。

摘要:

我们研究深度语言模型中层更新的几何结构。不同于分析中间表示中编码的信息,我们探讨表示如何从一层到下一层变化。我们证明层更新可以分解为一个主导的tokenwise组件和一个未被受限tokenwise函数类捕捉的残差。在多种架构中,完整层更新几乎完美对齐于tokenwise组件,而残差表现出更弱的对齐性、更大的角度偏差和显著更低的投影到主导tokenwise子空间。这表明残差不仅仅是小修正,而是变换中的几何不同组件。这种几何分离具有功能后果:受限tokenwise模型下的近似误差与输出扰动强烈相关,Spearman相关系数常超过0.7,在大模型中可达0.95。这些结果表明,大多数层更新行为如同沿主导方向的结构重参数化,而功能重要的计算集中在几何不同的残差部分。我们的框架提供了一种简单、架构无关的方法,用于探测现代语言模型中层更新的几何和功能结构。

英文摘要:

We study the geometric structure of layer updates in deep language models. Rather than analyzing what information is encoded in intermediate representations, we ask how representations change from one layer to the next. We show that layerwise updates admit a decomposition into a dominant tokenwise component and a residual that is not captured by restricted tokenwise function classes. Across multiple architectures, including Transformers and state-space models, we find that the full layer update is almost perfectly aligned with the tokenwise component, while the residual exhibits substantially weaker alignment, larger angular deviation, and significantly lower projection onto the dominant tokenwise subspace. This indicates that the residual is not merely a small correction, but a geometrically distinct component of the transformation. This geometric separation has functional consequences: approximation error under the restricted tokenwise model is strongly associated with output perturbation, with Spearman correlations often exceeding 0.7 and reaching up to 0.95 in larger models. Together, these results suggest that most layerwise updates behave like structured reparameterizations along a dominant direction, while functionally significant computation is concentrated in a geometrically distinct residual component. Our framework provides a simple, architecture-agnostic method for probing the geometric and functional structure of layer updates in modern language models.

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

↑