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

大语言模型在暗处做什么:从非嵌入暗空间读取上下文依赖关系

What LLMs Do in the Shadows: Reading Context Reliance from the Unembedding Dark Space

Applied AI Institute(应用人工智能研究院)

Alexandra Kuleshova, Andrey Volodichev, Daria Kotova, Alexey Zaytsev

AI总结:

本研究提出DarkLens,通过暗物质比率(DMR)结合参数知识评分,在单次前向传播内检测LLMs的忠实性幻觉,在多个基准上性能优于或匹配基线。

摘要:

检测大语言模型(LLMs)的忠实性幻觉对其在高风险领域的安全部署至关重要。近期方法通过对比上下文知识与参数知识的利用来解决该问题,但测量上下文依赖通常需要显著开销,例如生成注意力图、运行额外前向传播或训练辅助探测模型。本研究表明,可通过将隐藏状态投影到暗空间(与非嵌入矩阵弱相关的方向)来估计上下文依赖。除了其作为初始标记注意力汇的公认功能外,该子空间还主动调节上下文处理,其隐藏状态范数的占比(称为暗物质比率,DMR)可直接作为上下文利用的评分。将DMR与参数知识评分结合得到DarkLens,这是一种严格在单次前向传播内运行的轻量型忠实性检测器。在六个参数规模为4B至13B的开放权重LLMs上的三个问答和摘要基准测试中,DarkLens在无需额外前向传播或探测训练的情况下,性能与多种基线相当或更优。

英文摘要:

Detecting faithfulness hallucinations in large language models (LLMs) is crucial for their safe deployment in high-stakes domains. Recent approaches address this by contrasting contextual against parametric knowledge utilization, yet measuring context reliance typically demands noticeable overhead, such as materializing attention maps, running additional forward passes, or training auxiliary probes. In this work, we show that context reliance can be estimated by projecting hidden states onto the dark space - directions that compose weakly with the unembedding matrix. Beyond its recognized function as an initial-token attention sink, we show that this subspace actively mediates context processing, and that its share of hidden-state norm - termed the Dark Matter Ratio (DMR) - provides a direct score of context utilization. Pairing DMR with a parametric knowledge score yields DarkLens, a lightweight faithfulness detector operating strictly within a single forward pass. Evaluated across three QA and summarization benchmarks on six open-weight LLMs (4B-13B parameters), DarkLens matches or outperforms a wide range of baselines without requiring extra forward passes or probe training.

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

↑