mlsanityData to 13 Oct 2026

PromptFix: Few-shot Backdoor Removal via Adversarial Prompt Tuning

arXiv 2406.04478 ↗First posted 6 Jun 2024cs.CL cs.LGcited by 2

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

Pre-trained language models (PLMs) have attracted enormous attention over the past few years with their unparalleled performances. Meanwhile, the soaring cost to train PLMs as well as their amazing generalizability have jointly contributed to few-shot fine-tuning and prompting as the most popular training paradigms for natural language processing (NLP) models. Nevertheless, existing studies have shown that these NLP models can be backdoored such that model behavior is manipulated when trigger tokens are presented. In this paper, we propose PromptFix, a novel backdoor mitigation strategy for NLP models via adversarial prompt-tuning in few-shot settings. Unlike existing NLP backdoor removal methods, which rely on accurate trigger inversion and subsequent model fine-tuning, PromptFix keeps the model parameters intact and only utilizes two extra sets of soft tokens which approximate the trigger and counteract it respectively. The use of soft tokens and adversarial optimization eliminates the need to enumerate possible backdoor configurations and enables an adaptive balance between trigger finding and preservation of performance. Experiments with various backdoor attacks validate the effectiveness of the proposed method and the performances when domain shift is present further shows PromptFix's applicability to models pretrained on unknown data source which is the common case in prompt tuning scenarios.

Key facts. Cited by 2 papers in the map (data through 13 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 34 of its 45 references that are in the map. First posted on arXiv 6 Jun 2024.

Builds on

34 of 45 references.

Closest ancestors · 5

Same direction, newest first

  1. 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May
  2. 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarks17 Jun
  3. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
  4. 2021Be Careful about Poisoned Word Embeddings: Exploring the Vulnerability of the Embedding Layers in NLP Models29 Mar
  5. 2021T-Miner: A Generative Approach to Defend Against Trojan Attacks on DNN-based Text Classification7 Mar

Other references · 29

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,950
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
  3. 2020Language Models are Few-Shot Learnerscited by 32,320
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,379
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,317
  7. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,785
  8. 2016Pointer Sentinel Mixture Modelscited by 3,047
  9. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,163
  10. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,099
  11. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 891
  12. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 687
17 more
  1. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 616
  2. 2018Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networkscited by 517
  3. 2019Hidden Trigger Backdoor Attackscited by 370
  4. 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 263
  5. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 262
  6. 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 235
  7. 2019A backdoor attack against LSTM-based text classification systemscited by 227
  8. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 210
  9. 2021Adversarial Unlearning of Backdoors via Implicit Hypergradientcited by 164
  10. 2018Backdoor Embedding in Convolutional Neural Network Models via Invisible Perturbationcited by 134
  11. 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 112
  12. 2020Trojaning Language Models for Fun and Profitcited by 90
  13. 2021Backdoor Pre-trained Models Can Transfer to Allcited by 86
  14. 2021A Backdoor Attack against 3D Point Cloud Classifierscited by 52
  15. 2021Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attackscited by 49
  16. 2019Overfitting Mechanism and Avoidance in Deep Neural Networkscited by 30
  17. 2022One-shot Neural Backdoor Erasing via Adversarial Weight Maskingcited by 28

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Patronus: Identifying and Mitigating Transferable Backdoors in Pre-trained Language Models
  2. 2026Removing the NEEDLE in the Haystack: Backdoor Removal in LLMs via Weight Orthogonalisation
  3. 2024AdvBDGen: Adversarially Fortified Prompt-Specific Fuzzy Backdoor Generator Against LLM Alignment
  4. 2022Fine-mixing: Mitigating Backdoors in Fine-tuned Language Models
  5. 2026Dummy Backdoor as a Defense: Removing Unknown Backdoors via Shared Internal Mechanisms for Generative LLMs
  6. 2021Hidden Backdoors in Human-Centric Language Models
  7. 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution
  8. 2024Imperio: Language-Guided Backdoor Attacks for Arbitrary Model Control