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

在LLM持续微调下的持久后门攻击

Persistent Backdoor Attacks under Continual Fine-Tuning of LLMs

Jing Cui, Yufei Han, Jianbin Jiao, Junge Zhang

AI总结:

本文提出P-Trojan算法,研究在LLM持续微调中后门的持久性问题,实验显示其在保持清洁任务准确性的同时实现高持久性。

摘要:

后门攻击将恶意行为嵌入到大型语言模型(LLM)中,使攻击者能够触发有害输出或绕过安全控制。然而,植入的后门在用户驱动的部署后持续微调中的持久性却很少被研究。大多数先前的工作仅在发布时评估植入后门的有效性和泛化能力,并且实证研究表明,简单注入的后门持久性在更新后会下降。在本工作中,我们研究植入的后门是否以及如何通过多阶段部署后微调保持持久性。我们提出了P-Trojan,一种基于触发器的攻击算法,该算法在重复更新中显式优化后门的持久性。通过在标记嵌入上对污染梯度与清洁任务的梯度对齐,植入的后门映射在后续更新中更不容易被抑制或遗忘。理论分析显示,经过持续微调后,此类持久后门攻击是可行的。在Qwen2.5和LLaMA3系列的LLM以及多样化任务序列上进行的实验表明,P-Trojan在保持清洁任务准确性的同时实现了超过99%的持久性。我们的发现强调了在现实模型适应管道中对持久性进行评估和更强防御的必要性。

英文摘要:

Backdoor attacks embed malicious behaviors into Large Language Models (LLMs), enabling adversaries to trigger harmful outputs or bypass safety controls. However, the persistence of the implanted backdoors under user-driven post-deployment continual fine-tuning has been rarely examined. Most prior works evaluate the effectiveness and generalization of implanted backdoors only at releasing and empirical evidence shows that naively injected backdoor persistence degrades after updates. In this work, we study whether and how implanted backdoors persist through a multi-stage post-deployment fine-tuning. We propose P-Trojan, a trigger-based attack algorithm that explicitly optimizes for backdoor persistence across repeated updates. By aligning poisoned gradients with those of clean tasks on token embeddings, the implanted backdoor mapping is less likely to be suppressed or forgotten during subsequent updates. Theoretical analysis shows the feasibility of such persistent backdoor attacks after continual fine-tuning. And experiments conducted on the Qwen2.5 and LLaMA3 families of LLMs, as well as diverse task sequences, demonstrate that P-Trojan achieves over 99% persistence while preserving clean-task accuracy. Our findings highlight the need for persistence-aware evaluation and stronger defenses in realistic model adaptation pipelines.

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

↑