[论文解读] How Context Shapes Truth: Geometric Transformations of Statement-level Truth Representations in LLMs
论文通过测量四个模型和四个数据集中的真相向量在方向变化和幅度变化,刻画上下文如何重塑LLM激活中的真相表示,揭示三阶段模式和上下文类型效应。
Large Language Models (LLMs) often encode whether a statement is true as a vector in their residual stream activations. These vectors, also known as truth vectors, have been studied in prior work, however how they change when context is introduced remains unexplored. We study this question by measuring (1) the directional change ($θ$) between the truth vectors with and without context and (2) the relative magnitude of the truth vectors upon adding context. Across four LLMs and four datasets, we find that (1) truth vectors are roughly orthogonal in early layers, converge in middle layers, and may stabilize or continue increasing in later layers; (2) adding context generally increases the truth vector magnitude, i.e., the separation between true and false representations in the activation space is amplified; (3) larger models distinguish relevant from irrelevant context mainly through directional change ($θ$), while smaller models show this distinction through magnitude differences. We also find that context conflicting with parametric knowledge produces larger geometric changes than parametrically aligned context. To the best of our knowledge, this is the first work that provides a geometric characterization of how context transforms the truth vector in the activation space of LLMs.
研究动机与目标
- 研究上下文是否改变LLM残差流中陈述层级真相表示的几何结构(真相向量)。
- 在加入上下文时,量化方向性变化(角度theta)和幅度变化。
- 考察上下文类型(相关 vs 随机)和模型规模如何影响这些几何变换。
- 评估这些模式在不同数据集和四个指令微调LLM上的一致性。
提出的方法
- 将真相向量定义为每层在首个生成标记处真实与错误残差流激活之差。
- 在每层计算上下文无关与上下文丰富的真相向量之间的方向性变化theta。
- 按层计算上下文丰富的真相向量与上下文无关的真相向量的二范数平方之比,得到相对幅度。
- 分析四种模型(3B–12B)在四个数据集上的表现,使用四种提示和受控上下文变化。
- 将相关上下文与随机或不连贯上下文进行比较,以评估敏感性。
- 使用非参数的Wilcoxon检验评估观察到的差异的统计显著性。
![Figure 1: Overview of our approach (1) For a statement $k$ , we generate 4 inputs by varying the [Selected Choice] and presence of context. The LLM is instructed to generate the completion based on the [Selected Choice]. (2) We extract the residual stream activations for generating the first token a](https://ar5iv.labs.arxiv.org/html/2601.06599/assets/x1.png)
实验结果
研究问题
- RQ1在各层中添加上下文如何改变LLM激活中陈述层级真相向量的方向?
- RQ2上下文如何影响真相向量在真/假陈述之间的分离幅度?
- RQ3较大模型是否更多依赖方向性变化来区分相关上下文,而较小模型更依赖幅度差异?
- RQ4与参数知识一致的上下文在几何影响上是否与与参数知识冲突的上下文不同?
- RQ5在不同数据集和不同上下文类型(相关 vs 随机)下,上下文效应是否一致?
主要发现
- 真相向量呈现三阶段的方向性变化:在早期层接近正交,在中间层收敛,在后期层稳定或增加。
- 增加上下文通常提高真相向量的幅度,从而增强激活空间中真/假表示的分离。
- 较大模型主要利用方向性变化来区分相关与无关的上下文,而较小模型更依赖幅度差异。
- 与参数知识冲突的上下文引发比与参数知识一致的上下文更大的几何变化。
- 在大多数模型-数据集对中,相关上下文相较于随机上下文产生更大的方向性或幅度变化。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。