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

语言模型中的真值判断:“真值方向”对上下文敏感

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

Vrije Universiteit Amsterdam(阿姆斯特丹自由大学)

Stefan F. Schouten, Peter Bloem, Ilia Markov, Piek Vossen

AI总结:

研究LLM潜在空间中“真值方向”的上下文敏感性,通过一致性误差测量和因果干预实验发现探针对上下文敏感且真值方向是推理的因果中介。

摘要:

最近的研究表明,大型语言模型(LLMs)的潜在空间中包含能够预测句子真值的方向。多种方法提取了此类方向并构建了探针,这些探针被描述为用于揭示模型的“知识”或“信念”。我们研究了这一现象,密切关注上下文对探针的影响。我们的实验确定了在LLM中,探针的预测在何处(最)对相关句子的存在敏感,以及如何最好地表征这种敏感性。我们通过测量不同类型的一致性误差来实现这一点,这些误差发生在对输入由假设及其前置的(否定)支持和反驳句子组成的LLM进行探测时。我们还进行了因果干预实验,研究将前提的表示沿这些真值方向移动是否会影响蕴含或矛盾句子沿同一方向的位置。我们发现,我们测试的探针通常对上下文敏感,但不应影响真值的上下文往往仍会影响探针输出。我们的实验表明,误差类型取决于层、模型和数据类型。最后,我们的结果表明,真值方向是结合上下文信息的推理过程中的因果中介。

英文摘要:

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.

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

↑