曲率引导的模块定位用于后门大语言模型的低秩解毒
Curvature-Guided Module Localization for Low-Rank Detoxification of Backdoored Large Language Models
AI总结:
提出一种基于激活修补和Fisher/K-FAC曲率分析的机制引导权重空间修复框架,定位并低秩修复后门大语言模型中最有影响力的模块,有效抑制触发条件恶意行为同时保持良性性能。
摘要:
后门攻击通过隐藏触发器使良性系统产生攻击者指定的恶意行为,对大语言模型构成严重威胁。本文研究实际场景下后门LLM的事后解毒,防御者可访问中毒模型但不愿从头重新训练整个网络。我们提出一种机制引导的权重空间修复框架,首先使用激活修补和Fisher/K-FAC曲率分析定位参与传播触发诱导行为的模块,然后仅对最有影响力的模块应用针对性低秩修复。我们在\texttt{Llama-3.2-1B-Instruct}的中毒变体上评估该方法,触发器分别插入良性提示的开头、中间和结尾。结果表明,该方法显著抑制了触发条件恶意响应,同时保持良性模型行为。这些发现表明,LLM中的后门移除可以表述为局部结构修复问题,而不仅仅是广泛的行为对齐问题。
英文摘要:
Backdoor attacks pose a serious threat to large language models (LLMs) by causing otherwise benign systems to produce attacker-specified malicious behavior when a hidden trigger is present. In this work, we study post hoc detoxification of backdoored LLMs in a practical setting where the defender has access to the poisoned model but does not wish to retrain the full network from scratch. We propose a mechanistically guided weight-space repair framework that first localizes modules involved in propagating trigger-induced behavior using activation patching and Fisher/K-FAC curvature analysis, and then applies targeted low-rank repair to only the most influential modules. We evaluate the method on poisoned variants of \texttt{Llama-3.2-1B-Instruct} with triggers inserted at the beginning, middle, and end of otherwise benign prompts. Results show that the proposed approach substantially suppresses trigger-conditioned malicious responses while preserving benign model behavior. These findings suggest that backdoor removal in LLMs can be formulated as a localized structural repair problem rather than only a broad behavioral alignment problem.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。