稀疏读出棱镜:以特征而非词元解释Logit-Lens分数

·

研究论文 · 2026/09/04

语言模型对下一个词的预测在层间逐步发展,透镜方法通过将中间隐藏状态解码为词元来追踪这一过程。但透镜读数同时反映隐藏状态和用于解码的读出矩阵(反嵌入矩阵)。许多透镜在语料上拟合,我们证明仅拟合语料不同的两个透镜可能对相同隐藏状态报告不同词元,称此为语料条件性。为独立于拟合语料检查读出结构,我们引入稀疏读出棱镜(SRP),它仅用权重分解读出,并将任何词元对数或对数差表示为稀疏读出特征贡献之和。这揭示读出特征作为透镜读数的新分析单元,暴露词元身份可能掩盖的结构,并支持跨词元、上下文、层和透镜的比较。用SRP的稀疏近似替换原始读出,在测试的对数差上比基于读出行几何关系的六种基线中最强者多重建8.9-17.3个百分点。消融特征会按SRP贡献比例改变对数差。尽管词元读数随拟合语料变化,主导读出特征保持稳定。由于SRP构建不使用语料,它为透镜分析提供了独立于拟合语料的控制。

该论文提出了一种新颖的读出分解方法(SRP),解决了透镜分析中的语料条件性问题,为解释语言模型内部机制提供了新工具,具有理论和方法论价值。

A language model's prediction of its next token develops across layers, and lens methods track this process by decoding intermediate hidden states into tokens. But a lens reading reflects both the hidden state and the readout (the unembedding matrix) used to decode it. Many lenses are fit on a corpus, and we show that two lenses differing only in their fitting corpus can report different tokens for the same hidden states. We call this dependence corpus conditionality. To examine readout structure independently of the fitting corpus, we introduce Sparse Readout Prism (SRP), which decomposes the readout using only its weights and expresses any token logit or logit difference as a sum of contributions from sparse readout features. This reveals readout features as a new unit of analysis for lens readings, exposing structure that token identities can obscure and enabling comparisons across tokens, contexts, layers, and lenses. Replacing the original readout with SRP's sparse approximation reconstructs 8.9-17.3 percentage points more of the tested logit differences than the strongest of six baselines built on geometric relations among readout rows. Ablating features shifts logit differences in proportion to their SRP contributions. Although token readings vary with the fitting corpus, the dominant readout feature remains stable. Because SRP uses no corpus in its construction, it provides a control independent of the fitting corpus for lens analyses.

阅读原文

参与讨论