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

通过信息冲突中和大型语言模型的后门

Neutralizing Backdoors through Information Conflicts for Large Language Models

Nanyang Technological University(南洋理工大学);Wuhan University(武汉大学)

Chen Chen, Yuchen Sun, Xueluan Gong, Jiaxin Gao, Kwok-Yan Lam

AI总结:

针对大型语言模型易受后门攻击且现有防御存在检测不除毒、依赖严格假设或对高级攻击无效等问题,提出通过内外信息冲突消除后门的方法,实验表明其优于8个基线,可降攻击成功率至98%且保持高干净数据准确率,还能抵御自适应攻击。

摘要:

大型语言模型(LLMs)取得了显著进步,在从理解到推理的各种自然语言处理(NLP)任务中表现出色。然而,它们仍易受后门攻击,即模型对标准查询表现正常,但在特定触发器激活时生成有害响应或意外输出。现有后门防御常存在缺陷:要么仅聚焦检测而非移除,要么依赖对触发器属性的严格假设,要么对多触发器等高级攻击无效。本文提出一种通过内部和外部机制构建信息冲突来消除LLMs后门行为的新方法。内部方面,我们利用轻量级数据集训练冲突模型,再将其与后门模型融合,通过在模型参数记忆中嵌入矛盾信息来中和恶意行为;外部方面,我们在提示中加入有说服力的矛盾证据,以挑战模型的内部后门知识。在4个广泛使用的LLMs上针对分类和对话任务的实验结果表明,我们的方法优于8个最先进的后门防御基线,可将高级后门攻击的成功率降低高达98%,同时保持90%以上的干净数据准确率。此外,该方法已被证明能抵御自适应后门攻击。代码将在发表后开源。

英文摘要:

Large language models (LLMs) have seen significant advancements, achieving superior performance in various Natural Language Processing (NLP) tasks, from understanding to reasoning. However, they remain vulnerable to backdoor attacks, where models behave normally for standard queries but generate harmful responses or unintended output when specific triggers are activated. Existing backdoor defenses often suffer from drawbacks that they either focus on detection without removal, rely on rigid assumptions about trigger properties, or prove to be ineffective against advanced attacks like multi-trigger backdoors. In this paper, we present a novel method to eliminate backdoor behaviors from LLMs through the construction of information conflicts using both internal and external mechanisms. Internally, we leverage a lightweight dataset to train a conflict model, which is then merged with the backdoored model to neutralize malicious behaviors by embedding contradictory information within the model's parametric memory. Externally, we incorporate convincing contradictory evidence into the prompt to challenge the model's internal backdoor knowledge. Experimental results on classification and conversational tasks across 4 widely used LLMs demonstrate that our method outperforms 8 state-of-the-art backdoor defense baselines. We can reduce the attack success rate of advanced backdoor attacks by up to 98% while maintaining over 90% clean data accuracy. Furthermore, our method has proven to be robust against adaptive backdoor attacks. The code will be open-sourced upon publication.

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

↑