Researchers propose PersistBD, which can make backdoors implanted in third-party models survive supervised fine-tuning and reinforcement learning
当你把代码仓库交给别人训练之前,先给模型装一个后门 - 科技行者
Researchers found that backdoors pre-implanted by attackers into third-party foundation models can survive developers' subsequent supervised fine-tuning and reinforcement learning, and proposed the PersistBD method to actively enhance backdoor persistence. Experiments were conducted on Qwen2.5-Coder 3B, 7B and Qwen3-Coder 30B and measured by attack success rate: supervised fine-tuning reduced the 7B model from 100% to 20% and the 30B from 100% to 7%, but subsequent reinforcement learning kept the 7B at 20% and brought the 30B back up to 8%. PersistBD uses joint training to simultaneously raise backdoor strength and gradient compatibility, enabling the 7B model to reach an attack success rate of 74% after supervised fine-tuning and 76% after reinforcement learning, while both versions have a task resolution rate of 9% on SWE-bench Lite. The study also disentangles two metrics, backdoor strength and gradient compatibility, that can be independently measured and predict whether a backdoor can survive training.
The paper uses attack success rate to quantify backdoor survival after supervised fine-tuning and reinforcement learning, providing a reference for teams relying on third-party foundation models to assess supply chain risk.