词汇参照框架:以原生语义解读语言模型残差流

·

研究论文 · 2026/10/19

语言模型的词汇表是其原生语义:嵌入与反嵌入固定了残差流两端状态的含义。现有方法要么复用固定透镜,要么将状态视为点云,均未按模型自身方式读取状态。我们提出每个隐藏状态都有一个原生参考系,由后续读取它的层诱导并适应上下文。词汇参考系通过模型自身剩余层、指定轮数的位置间注意力及典型注意力输出近似该参考系,且不拟合模型输出。固定方向透镜的相干性上限为原生参考系相干性的平方根(SmolLM3-3B和OLMo3-7B中深度处分别为0.30和0.35),而一阶词汇参考系LexFrame[1]达到0.97和0.97,读取状态与模型输出的差距在0.16纳特内。其系数比归因补丁更忠实地归因预测,词汇基可引导预测而不影响其他词元,其置信读取可使早期退出跳过0.45和0.42的层,而透镜几乎无法跳过。由此,词汇参考系使模型的每个隐藏状态可读、可归因、可引导。

该研究提出了一种新的隐藏状态解释框架,显著提升了可读性、归因忠实度和引导能力,对模型可解释性和效率有重要价值。

The vocabulary of a language model is its native semantics: the embedding and the unembedding fix the meaning of a state at the two ends of the residual stream. Between them, existing methods either reuse a fixed lens or treat the states as a point cloud, and neither reads a state the way the model does. We argue that every hidden state has a native reference frame, induced by the layers that read it next and adaptive to the context. Lexical reference frames approximate it by reading a state through the model's own remaining layers with a stated number of rounds of attention between positions and a typical attention output for the rest, without fitting to the model's output. No lens, with fixed directions per layer, can exceed the square root of the native frame's coherence, 0.30 and 0.35 at mid-depth of SmolLM3-3B and OLMo3-7B, whereas the first-order frame, LexFrame[1], reaches 0.97 and 0.97 and reads a state within 0.16 nats of the model's output. Its coefficients attribute predictions more faithfully than attribution patching, its lexical basis steers a prediction while sparing other tokens, and its confident readings would let an early exit skip 0.45 and 0.42 of the layers, where lenses skip almost none. In this way, lexical reference frames make every hidden state of the model readable, attributable and steerable.

阅读原文

参与讨论