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

通过内部归因图对大语言模型越狱进行机制性可解释性研究

Mechanistic Interpretability of LLM Jailbreaks via Internal Attribution Graphs

Department of Computer Science, University of South Dakota(南达科他大学计算机科学系);School of Information and Artificial Intelligence, Yangzhou University(扬州大学信息与人工智能学院)

Anupam Wagle, Ifrat Ikhtear Uddin, Chaowei Zhang, Longwei Wang

AI总结:

研究大语言模型越狱漏洞,通过构建内部计算图揭示对抗攻击引发的内部推理转变,提出统一框架实现因果诊断,实验证明计算图偏差与不安全行为相关,干预可提升模型鲁棒性。

摘要:

大语言模型(LLMs)能力卓越但极易受到对抗性提示和越狱攻击。现有方法主要通过输入输出行为或归因方法分析这些失败情况,对对抗性扰动如何改变模型内部推理的洞察有限。我们引入一个使用配对内部计算图诊断LLM漏洞的机制框架,通过构建和对齐干净与受攻击提示的计算图,揭示对抗性攻击会引发内部推理的系统性转变。在此基础上,我们提出一个统一框架,能从描述性归因转变为对模型失败的因果诊断。实验表明内部计算图的结构偏差与不安全行为密切相关,针对性干预可提高模型鲁棒性。

英文摘要:

Large language models (LLMs) exhibit remarkable capabilities but remain highly vulnerable to adversarial prompts and jailbreak attacks. Existing approaches primarily analyze these failures through input-output behaviors or attribution methods, offering limited insight into how adversarial perturbations alter the model's internal reasoning. Consequently, the mechanisms underlying unsafe or incorrect behaviors remain poorly understood. We introduce a mechanistic framework for diagnosing LLM vulnerabilities using paired internal computation graphs, which represent prompt-specific inference as structured causal interactions among latent features. By constructing and aligning computation graphs for clean and attacked prompts, we reveal that adversarial attacks induce systematic transformations of internal reasoning, including suppression of safety-relevant components, emergence of attack-specific features, and rerouting of computation paths. Building on this representation, we propose a unified framework that (i) decomposes computation into invariant, suppressed, and emergent structures, (ii) identifies recurring vulnerability motifs associated with failure modes, and (iii) performs causal interventions on nodes, paths, and subgraphs to directly evaluate their contributions to attack success. This enables a transition from descriptive attribution to causal diagnosis of model failures. Experiments across multiple open-source LLMs and diverse adversarial and jailbreak benchmarks demonstrate that structural deviations in internal computation graphs strongly correlate with unsafe behaviors. Furthermore, targeted interventions on identified vulnerability motifs improve model robustness, establishing internal computation graphs as a principled foundation for understanding, diagnosing, and mitigating LLM vulnerabilities.

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

↑