paper-with-me

Papers

Simulate and Eliminate: Revoke Backdoors for Generative Large Language Models

2024-05-13 · Haoran Li, Yulin Chen, Zihao Zheng, Qi Hu, Chunkit Chan, Heshan Liu, Yangqiu Song

With rapid advances, generative large language models (LLMs) dominate various Natural Language Processing (NLP) tasks from understanding to reasoning. Yet, language models' inherent vulnerabilities may be exacerbated due to increased accessibility and unrestricted model training on massive data. A malicious adversary may publish poisoned data online and conduct backdoor attacks on the victim LLMs pre-trained on the poisoned data. Backdoored LLMs behave innocuously for normal queries and generate harmful responses when the backdoor trigger is activated. Despite significant efforts paid to LLMs' safety issues, LLMs are still struggling against backdoor attacks. As Anthropic recently revealed, existing safety training strategies, including supervised fine-tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF), fail to revoke the backdoors once the LLM is backdoored during the pre-training stage. In this paper, we present Simulate and Eliminate (SANDE) to erase the undesired backdoored mappings for generative LLMs. We initially propose Overwrite Supervised Fine-tuning (OSFT) for effective backdoor removal when the trigger is known. Then, to handle scenarios where trigger patterns are unknown, we integrate OSFT into our two-stage framework, SANDE. Unlike other works that assume access to cleanly trained models, our safety-enhanced LLMs are able to revoke backdoors without any reference. Consequently, our safety-enhanced LLMs no longer produce targeted responses when the backdoor triggers are activated. We conduct comprehensive experiments to show that our proposed SANDE is effective against backdoor attacks while bringing minimal harm to LLMs' powerful capability.

📄 PDF Abstract BibTeX arXiv:2405.07667

Code (1)

HKUST-KnowComp/SANDE 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Eliminating Backdoors in Neural Code Models for Secure Code Understanding

2024-08-08 · Weisong Sun, Yuchen Chen, Chunrong Fang, Yebo Feng 외

Neural code models (NCMs) have been widely used to address various code understanding tasks, such as defect detection. However, numerous recent studies reveal that such models are vulnerable to backdoor attacks. Backdoor…

Autonomous Drivingbackdoor defenseClone DetectionDefect Detection

Backdoors in Neural Models of Source Code

2020-06-11 · Goutham Ramakrishnan, Aws Albarghouthi

Deep neural networks are vulnerable to a range of adversaries. A particularly pernicious class of vulnerabilities are backdoors, where model predictions diverge in the presence of subtle triggers in inputs. An attacker c…

Detecting and Eliminating Neural Network Backdoors Through Active Paths with Application to Intrusion Detection

2026-03-11 · Eirik Høyheim, Magnus Wiik Eckhoff, Gudmund Grov, Robert Flood 외 arxiv

Machine learning backdoors have the property that the machine learning model should work as expected on normal inputs, but when the input contains a specific $\textit{trigger}$, it behaves as the attacker desires. Detect…

Intrusion Detection

Dummy Backdoor as a Defense: Removing Unknown Backdoors via Shared Internal Mechanisms for Generative LLMs

2026-06-10 · Kazuki Iwahana, Masaru Matsubayashi, Takuma Koyama, Toshiki Shibahara 외 arxiv

Backdoor attacks pose a serious threat to the safety and reliability of Large Language Models (LLMs), as they cause models to behave normally on clean inputs while producing attacker-specified responses when hidden trigg…

Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack

2024-05-25 · Mingli Zhu, Siyuan Liang, Baoyuan Wu

Deep neural networks face persistent challenges in defending against backdoor attacks, leading to an ongoing battle between attacks and defenses. While existing backdoor defense strategies have shown promising performanc…

Adversarial Attackbackdoor defenseContrastive Learningimage-classification+1