Truth-value judgment in language models: 'truth directions' are context sensitive

📄 arXiv: 2404.18865v3 📥 PDF

作者: Stefan F. Schouten, Peter Bloem, Ilia Markov, Piek Vossen

分类: cs.CL

发布日期: 2024-04-29 (更新: 2025-07-11)

备注: COLM 2025


💡 一句话要点

探讨上下文对语言模型真值判断的影响

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 语言模型 真值判断 上下文敏感性 一致性错误 因果推理 自然语言处理 模型评估

📋 核心要点

  1. 现有方法在探测语言模型的真值判断时,未充分考虑上下文的影响,导致结果不稳定。
  2. 论文提出通过测量一致性错误来评估上下文对探针输出的影响,揭示真值方向的上下文敏感性。
  3. 实验结果显示,探针的输出受上下文影响,且这种影响在不同层和模型中表现出显著差异。

📝 摘要(中文)

近期研究表明,大型语言模型(LLMs)的潜在空间中存在预测句子真值的方向。多种方法恢复这些方向并构建探针,旨在揭示模型的“知识”或“信念”。本文深入研究了上下文对探针的影响,实验表明探针的预测对相关句子的存在高度敏感,并探讨了如何最佳表征这种敏感性。通过测量在输入假设前加上(否定的)支持和反驳句子后出现的不同类型的一致性错误,我们发现探针的输出通常受上下文影响,且这种影响在不同层、模型和数据类型中表现各异。最后,结果表明真值方向在推理过程中作为因果中介,整合了上下文信息。

🔬 方法详解

问题定义:本文旨在解决大型语言模型在真值判断中对上下文敏感性的问题。现有方法未能充分考虑上下文对探针输出的影响,导致推理结果的不一致性。

核心思路:通过设计实验,测量在输入假设前加上支持和反驳句子后的一致性错误,探索上下文如何影响探针的输出。此方法能够更全面地理解模型的推理过程。

技术框架:整体架构包括输入句子的构建、探针的设计和一致性错误的测量。主要模块包括句子预处理、探针输出分析和上下文影响评估。

关键创新:本研究的创新点在于揭示了真值方向作为因果中介在推理过程中的作用,强调了上下文信息的重要性,与传统方法相比,提供了更深入的理解。

关键设计:在实验中,使用不同层的探针进行对比,设置了多种输入句子组合,并设计了特定的损失函数来优化探针的输出一致性。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

实验结果表明,探针的输出在不同上下文下表现出显著差异,尤其是在不同层和模型中。具体而言,某些上下文对真值判断的影响程度高达30%,显示出上下文在推理过程中的关键作用。

🎯 应用场景

该研究对自然语言处理领域具有重要的应用潜力,尤其是在文本理解、对话系统和信息检索等方面。通过更好地理解语言模型的推理机制,可以提高模型在复杂上下文中的表现,推动智能助手和自动问答系统的发展。

📄 摘要(原文)

Recent work has demonstrated that the latent spaces of large language models (LLMs) contain directions predictive of the truth of sentences. Multiple methods recover such directions and build probes that are described as uncovering a model's "knowledge" or "beliefs". We investigate this phenomenon, looking closely at the impact of context on the probes. Our experiments establish where in the LLM the probe's predictions are (most) sensitive to the presence of related sentences, and how to best characterize this kind of sensitivity. We do so by measuring different types of consistency errors that occur after probing an LLM whose inputs consist of hypotheses preceded by (negated) supporting and contradicting sentences. We also perform a causal intervention experiment, investigating whether moving the representation of a premise along these truth-value directions influences the position of an entailed or contradicted sentence along that same direction. We find that the probes we test are generally context sensitive, but that contexts which should not affect the truth often still impact the probe outputs. Our experiments show that the type of errors depend on the layer, the model, and the kind of data. Finally, our results suggest that truth-value directions are causal mediators in the inference process that incorporates in-context information.