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

检测干扰:对LLM中反思能力的细致审视

Detecting the Disturbance: A Nuanced View of Introspective Abilities in LLMs

Department of Computer Science, Harvard College, Cambridge, MA(哈佛学院计算机科学系);University of Chicago, Chicago, IL(芝加哥大学)

Ely Hahami, Ishaan Sinha, Lavik Jain, Josh Kaplan, Jon Hahami

AI总结:

研究揭示LLM在特定任务中能部分检测内部状态扰动,但这种能力受限于模型层数,需进一步探索其机制。

摘要:

大型语言模型是否能够进行反思,即准确检测其内部状态的扰动?我们通过在Meta-Llama-3.1-8B-Instruct中使用激活引导系统,系统地探讨了这一问题。首先,我们发现先前工作中使用的二元检测范式将反思与方法学伪影混淆:看似检测准确性完全由全局logit偏移解释,这种偏移使模型倾向于肯定回答,无论问题内容如何。然而,在需要差分敏感性的任务中,我们发现有强有力的证据支持部分反思:模型能够定位10个句子中有多少接收了注入,准确率高达88%(vs. 10% chance),并能区分相对注入强度,准确率83%(vs. 50% chance)。这些能力仅限于早期层的注入,并在之后降至随机水平——我们通过基于注意力的信号路由和残差流恢复动态机制解释了这种模式。我们的发现表明,LLM能够计算对内部状态扰动的有意义函数,确立反思作为一种真实但层依赖的现象,值得进一步研究。我们的代码已在此处开源:https://github.com/elyhahami18/llama-introspection-new

英文摘要:

Can large language models introspect, that is, accurately detect perturbations to their own internal states? We systematically investigate this question using activation steering in Meta-Llama-3.1-8B-Instruct. First, we show that the binary detection paradigm used in prior work conflates introspection with a methodological artifact: apparent detection accuracy is entirely explained by global logit shifts that bias models toward affirmative responses regardless of question content. However, on tasks requiring differential sensitivity, we find robust evidence for partial introspection: models localize which of 10 sentences received an injection at up to 88\% accuracy (vs.\ 10\% chance) and discriminate relative injection strengths at 83\% accuracy (vs.\ 50\% chance). These capabilities are confined to early-layer injections and collapse to chance thereafter -- a pattern we explain mechanistically through attention-based signal routing and residual stream recovery dynamics. Our findings demonstrate that LLMs can compute meaningful functions over perturbations to their internal states, establishing introspection as a real but layer-dependent phenomenon that merits further investigation. Our code is open-sourced here: https://github.com/elyhahami18/llama-introspection-new

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

↑