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

SemRF:语言模型中残差流语义参考框架

SemRF: A Semantic Reference Frame for Residual-Stream Dynamics in Language Models

Monash University(莫纳什大学);Technical University of Munich(慕尼黑工业大学);Chongqing University(重庆大学)

Jian Gu, Aldeida Aleti, Chunyang Chen, Hongyu Zhang

AI总结:

提出语义参考框架(SemRF),通过锚点固定实现残差流语义坐标的稳定测量,并利用Voronoi迹定义最小作用路径,揭示层间计算与参数效率的关系。

摘要:

残差流分析探究语言模型计算如何随深度演化,但中间解码需要跨层可比较的读出坐标。若嵌入锚点与解嵌读出在选定跨度上不一致,表观运动可能反映测量漂移而非计算。我们引入语义参考框架(SemRF),这是一种基于锚点的形式化方法,将语义测量与残差动态分离。SemRF固定锚点并测量状态相对于锚点的位置。伪逆绑定实现精确同步;在受限双可逆性下,SemRF提供稳定的语义基坐标、失真界以及近似恒等变化。框架固定后,残差计算变为深度方向的语义轨迹。锚点诱导语义Voronoi图:距离(或证据如logits)将每层分配至粗粒度单元,而坐标保留单元内运动与边界。我们定义层间步长、贡献轮廓和不平衡诊断,然后利用Voronoi迹定义边界松弛管。标准迹是该管内的最小作用路径;当非空且具有正二次权重时,该路径唯一且满足远离活动约束的离散样条方程。超额作用控制步长、曲率和轮廓失配。低曲率意味着分段线性可压缩性和局部知识密度:更低的迹复杂度意味着更少的语义结点。通过参数到轨迹的映射,这给出了与参数效率的条件联系:在拟合数据的可接受设置中,更低作用和更低复杂度的迹使用更少的语义自由度。这些保证需要受控的接口误差和显式管约束下的小投影残差。

英文摘要:

Residual-stream analysis asks how language-model computation evolves across depth, but intermediate decoding requires comparable readout coordinates across layers. If embedding anchors and unembedding readout disagree on the chosen span, apparent motion may reflect measurement drift rather than computation. We introduce \emph{Semantic Reference Frames} (SemRF), an anchor-based formalism separating semantic measurement from residual dynamics. A SemRF fixes anchors and measures states against them. Pseudo-inverse tying gives exact synchronization; under restricted bi-invertibility, SemRF yields stable semantic-basis coordinates, distortion bounds, and near-identity changes. With the frame fixed, residual computation becomes a depthwise semantic trajectory. The anchors induce a semantic Voronoi diagram: distance, or evidence such as logits, assigns each layer to a coarse cell, while coordinates retain within-cell motion and margins. We define layerwise steps, contribution profiles, and imbalance diagnostics, then use the Voronoi trace to define a margin-relaxed tube. The canonical trace is the minimum-action path inside this tube; when nonempty with positive quadratic weight, it is unique and obeys a discrete spline equation away from active constraints. Excess action controls step, curvature, and profile mismatch. Low curvature implies piecewise-linear compressibility and local knowledge density: lower trace complexity means fewer semantic knots. Through the parameter-to-trajectory map, this gives a conditional link to parameter efficiency: among admissible settings fitting data, lower-action and lower-complexity traces use fewer semantic degrees of freedom. The guarantees require controlled interface error and small projection residual under explicit tube constraints.

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

↑