arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.05169cs.CRcs.AI
收藏

从被投毒到有意识:在大型语言模型中培养后门自我意识

From Poisoned to Aware: Fostering Backdoor Self-Awareness in LLMs

Purdue University(普渡大学);Columbia University(哥伦比亚大学)

Guangyu Shen, Siyuan Cheng, Xiangzhe Xu, Yuan Zhou, Hanxi Guo, Zhuo Zhang, Xiangyu Zhang

AI总结:

针对LLMs的后门攻击,提出一种基于逆向工程强化学习的训练后框架,培养模型自我意识以识别植入触发器,实验显示能显著提升模型对后门风险的鲁棒性。

摘要:

大型语言模型(LLMs)可能通过后门攻击获得欺骗性行为,即每当输入中出现秘密触发器时,模型就会执行被禁止的操作。现有的安全训练方法在很大程度上无法解决这一漏洞,因为难以发现植入模型中的隐藏触发器。受近期关于LLMs情境意识研究的启发,我们提出了一种新颖的训练后框架,该框架培养模型对后门风险的自我意识,并使其即使在提示中不存在触发器时也能阐述植入的触发器。其核心在于,我们引入了一种受逆向工程启发的强化学习框架,鼓励模型内省地推理自身行为,并逆向工程出导致不一致输出的触发器。在精心设计的奖励信号引导下,这一过程将受污染的模型转变为能够精确识别其植入触发器的模型。令人惊讶的是,我们观察到这种后门自我意识在短暂训练窗口内突然出现,类似于能力上的相变。基于这一涌现特性,我们进一步提出了两种互补的防御策略,用于缓解和检测后门威胁。在五种后门攻击上的实验,与六种基线方法相比,表明我们的方法在提高LLMs对后门风险的鲁棒性方面具有强大潜力。代码可在LLM后门自我意识处获取。

英文摘要:

Large Language Models (LLMs) can acquire deceptive behaviors through backdoor attacks, where the model executes prohibited actions whenever secret triggers appear in the input. Existing safety training methods largely fail to address this vulnerability, due to the inherent difficulty of uncovering hidden triggers implanted in the model. Motivated by recent findings on LLMs' situational awareness, we propose a novel post-training framework that cultivates self-awareness of backdoor risks and enables models to articulate implanted triggers even when they are absent from the prompt. At its core, our approach introduces an inversion-inspired reinforcement learning framework that encourages models to introspectively reason about their own behaviors and reverse-engineer the triggers responsible for misaligned outputs. Guided by curated reward signals, this process transforms a poisoned model into one capable of precisely identifying its implanted trigger. Surprisingly, we observe that such backdoor self-awareness emerges abruptly within a short training window, resembling a phase transition in capability. Building on this emergent property, we further present two complementary defense strategies for mitigating and detecting backdoor threats. Experiments on five backdoor attacks, compared against six baseline methods, demonstrate that our approach has strong potential to improve the robustness of LLMs against backdoor risks. The code is available at LLM Backdoor Self-Awareness.

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

↑