Skip to main content
QUICK REVIEW

[Paper Review] Simulate and Eliminate: Revoke Backdoors for Generative Large Language Models

Haoran Li, Yulin Chen|arXiv (Cornell University)|May 13, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes SANDE, a novel backdoor removal framework for generative large language models that eliminates backdoors without requiring access to clean pre-trained models. By simulating triggers via parrot prompt learning and applying overwrite supervised fine-tuning (OSFT), SANDE effectively revokes backdoor behavior while preserving model utility, achieving near-zero attack success rates with minimal performance degradation.

ABSTRACT

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.

Motivation & Objective

  • To address the critical gap in backdoor removal for generative LLMs after pre-training, especially when clean reference models are unavailable.
  • To develop a method that can revoke backdoors without retraining from scratch, reducing cost and complexity.
  • To ensure minimal degradation of model utility during backdoor removal, preserving the LLM’s original capabilities.
  • To handle both known and unknown trigger patterns, including scenarios with partial knowledge of target responses.
  • To provide a practical, deployable solution for post-backdoor remediation in real-world LLM deployment pipelines.

Proposed method

  • Proposes Overwrite Supervised Fine-Tuning (OSFT) to directly overwrite backdoored mappings when the exact trigger and target response are known.
  • Introduces a two-stage SANDE framework: first simulating triggers via parrot prompt learning, then applying OSFT to eliminate backdoor behavior.
  • Employs parrot prompt learning to generate synthetic triggers that mimic the behavior of real backdoor triggers without prior knowledge of their pattern.
  • Uses a fine-tuned parrot prompt as a surrogate trigger to retrain the victim model and overwrite harmful weight updates.
  • Applies OSFT on the parrot prompt to eliminate the model’s response to the backdoored trigger, effectively removing the malicious mapping.
  • Extends the method to handle unknown triggers by leveraging existing backdoor detection techniques to infer partial target responses.

Experimental results

Research questions

  • RQ1Can backdoor behavior be effectively revoked in generative LLMs without access to the original clean pre-trained model?
  • RQ2How effective is OSFT in eliminating backdoors when the trigger and target response are known?
  • RQ3Can a parrot prompt accurately simulate unknown backdoor triggers to enable backdoor removal in the absence of trigger knowledge?
  • RQ4What is the impact of backdoor removal on the model’s general utility and performance on downstream tasks?
  • RQ5How robust is the SANDE framework across diverse trigger-response pairs and different model architectures?

Key findings

  • SANDE achieves near-zero attack success rates (ASR) across all tested trigger-response pairs, with ASR dropping to 0.0% for all cases in Table 5.
  • The proposed OSFT method causes the least performance degradation among all baselines, preserving model utility better than Fine-mixing and NAD.
  • Performance degradation is minimal and consistent across models, with the Llama2 model fine-tuned on Stanford Alpaca showing improved performance when using out-of-domain data.
  • The position of the parrot prompt within the input sequence does not affect removal effectiveness, as shown in Table 6.
  • The method remains effective even at low poisoning rates, with ASR reaching 100% at a poisoning rate of 0.005 or higher, as shown in Figure 2.
  • The framework successfully removes backdoors across diverse trigger patterns and target responses, demonstrating generalization and robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.