ONION: A Simple and Effective Defense Against Textual Backdoor Attacks
Not on the map. Why?
Cited by 160 in LLM safety and security, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Backdoor attacks are a kind of emergent training-time threat to deep neural networks (DNNs). They can manipulate the output of DNNs and possess high insidiousness. In the field of natural language processing, some attack methods have been proposed and achieve very high attack success rates on multiple popular models. Nevertheless, there are few studies on defending against textual backdoor attacks. In this paper, we propose a simple and effective textual backdoor defense named ONION, which is based on outlier word detection and, to the best of our knowledge, is the first method that can handle all the textual backdoor attack situations. Experiments demonstrate the effectiveness of our model in defending BiLSTM and BERT against five different backdoor attacks. All the code and data of this paper can be obtained at https://github.com/thunlp/ONION.
Key facts. Cited by 231 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Nov 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 11; 2022: 25; 2023: 37; 2024: 70; 2025: 54; 2026: 34.
231 papers.
Sort:
By area:
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 478
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 203
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfercited by 147
- 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 124
- 2024Know Your Limits: A Survey of Abstention in Large Language Modelscited by 116
- 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 100
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 97
- 2022Wild Patterns Reloaded: A Survey of Machine Learning Security against Training Data Poisoningcited by 93
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoningcited by 91
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 87
38 more
- 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitutioncited by 85
- 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Modelscited by 76
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarkscited by 70
- 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samplescited by 66
- 2023Composite Backdoor Attacks Against Large Language Modelscited by 63
- 2021Triggerless Backdoor Attack for NLP Tasks with Clean Labelscited by 61
- 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 59
- 2022BadPrompt: Backdoor Attacks on Continuous Promptscited by 59
- 2022Exploring the Universal Vulnerability of Prompt-based Learning Paradigmcited by 56
- 2022Fine-mixing: Mitigating Backdoors in Fine-tuned Language Modelscited by 50
- 2024Instruction Backdoor Attacks Against Customized LLMscited by 50
- 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Modelscited by 50
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2024Semantic Mirror Jailbreak: Genetic Algorithm Based Jailbreak Prompts Against Open-source LLMscited by 48
- 2022A Study of the Attention Abnormality in Trojaned BERTscited by 47
- 2022BITE: Textual Backdoor Attacks with Iterative Trigger Injectioncited by 47
- 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learningcited by 47
- 2022Constrained Optimization with Dynamic Bound-scaling for Effective NLPBackdoor Defensecited by 44
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2023Hijacking Large Language Models via Adversarial In-Context Learningcited by 41
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practicescited by 36
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Modelscited by 36
- 2025Backdoor Cleaning without External Guidance in MLLM Fine-tuningcited by 34
- 2023NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Modelscited by 33
- 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attackscited by 32
- 2023Attention-Enhancing Backdoor Attacks Against BERT-based Modelscited by 32
- 2021Defending Against Backdoor Attacks in Natural Language Generationcited by 30
- 2023ChatGPT as an Attack Tool: Stealthy Textual Backdoor Attack via Blackbox Generative Model Triggercited by 29
- 2023The Trickle-down Impact of Reward (In-)consistency on RLHFcited by 29
- 2024Compromising Embodied Agents with Contextual Backdoor Attackscited by 29
- 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularizationcited by 29
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2024Purifying Large Language Models by Ensembling a Small Language Modelcited by 25
- 2023Defending against Insertion-based Textual Backdoor Attacks via Attributioncited by 24
- 2023Grounding Foundation Models through Federated Transfer Learning: A General Frameworkcited by 24
- 2024Task-Agnostic Detector for Insertion-Based Backdoor Attackscited by 23
- 2024Can We Trust Embodied Agents? Exploring Backdoor Attacks against Embodied LLM-based Decision-Making Systemscited by 23
50 most cited of 231 All 231 (JSON)
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection30 Sep 2026
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs30 Sep 2026
- 2026Removing the NEEDLE in the Haystack: Backdoor Removal in LLMs via Weight Orthogonalisation29 Sep 2026
- 2026VirusCascade: Hijacking Collaborative Reflection in LLM-Powered Recommender Agents29 Sep 2026
- 2026SpecGuard: Inference-Time Backdoor Detection For Free10 Sep 2026
- 2026Trojaning the Alignment: Stealthy Backdoor Attacks against Graph Foundation Models21 Aug 2026
- 2026When Explanations Betray Backdoors: Black-Box Auditing for Language Model Classifiers12 Aug 2026
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikes7 Aug 2026
- 2026Defense Against LLM Backdoors using Critical Neuron Isolation Pruning22 Jul 2026
- 2026CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMs30 Jun 2026
- 2026Curvature-Guided Module Localization for Low-Rank Detoxification of Backdoored Large Language Models29 Jun 2026
- 2026Backdoor Learning in Language Models and Vision-Language Models8 Jun 2026
38 more
- 2026BYORn: Bootstrap Your Own Responses to Defend Large Vision-Language Models Against Backdoor Attacks1 Jun 2026
- 2026Detecting Hidden Behaviors in LLMs via Activation-matched Finetuning29 May 2026
- 2026Cordyceps: Covert Control Attacks on LLMs via Data Poisoning26 May 2026
- 2026Token by Token, Compromised: Backdoor Vulnerabilities in Unified Autoregressive Models19 May 2026
- 2026Universal Graph Backdoor Defense: A Feature-based Homophily Perspective16 May 2026
- 2026MetaBackdoor: Exploiting Positional Encoding as a Backdoor Attack Surface in LLMs14 May 2026
- 2026When Emotion Becomes Trigger: Emotion-style dynamic Backdoor Attack Parasitising Large Language Models12 May 2026
- 2026Activation Differences Reveal Backdoors: A Comparison of SAE Architectures8 May 2026
- 2026Layerwise Convergence Fingerprints for Runtime Misbehavior Detection in Large Language Models27 Apr 2026
- 2026Defusing the Trigger: Tail-Risk-Informed Attention Rebalancing for LLM Backdoor Mitigation27 Apr 2026
- 2026Stealthy Backdoor Attacks against LLMs Based on Natural Style Triggers23 Apr 2026
- 2026Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoors14 Apr 2026
- 2026Phantasia: Context-Adaptive Backdoors in Vision Language Models9 Apr 2026
- 2026STEP: Detecting Audio Backdoor Attacks via Stability-based Trigger Exposure Profiling18 Mar 2026
- 2026BadLLM-TG: A Backdoor Defender powered by LLM Trigger Generator16 Mar 2026
- 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar 2026
- 2026Delayed Backdoor Attacks: Exploring the Temporal Dimension as a New Attack Surface in Pre-Trained Models12 Mar 2026
- 2026Backdoor4Good: Benchmarking Beneficial Uses of Backdoors in LLMs8 Mar 2026
- 2026Self-Purification Mitigates Backdoors in Multimodal Diffusion Language Models24 Feb 2026
- 2026Turn-Based Structural Triggers: Structure-Conditioned Backdoors in Multi-Turn LLMs20 Jan 2026
- 2026Why LoRA Fails to Forget: Regularized Low-Rank Adaptation Against Backdoors in Language Models9 Jan 2026
- 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models7 Jan 2026
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Models22 Dec 2025
- 2025Sharing State Between Prompts and Programs16 Dec 2025
- 2025SCOUT: A Defense Against Data Poisoning Attacks in Fine-Tuned Language Models10 Dec 2025
- 2025SteganoBackdoor: Evading Data-Poisoning Defenses via Steganographic Backdoors18 Nov 2025
- 2025ToxicTextCLIP: Text-Based Poisoning and Backdoor Attacks on CLIP Pre-training1 Nov 2025
- 2025Signature in Code Backdoor Detection, how far are we?15 Oct 2025
- 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Models11 Oct 2025
- 2025GREAT: Generalizable Backdoor Attacks in RLHF via Emotion-Aware Trigger Synthesis10 Oct 2025
- 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples8 Oct 2025
- 2025P2P: A Poison-to-Poison Remedy for Reliable Backdoor Defense in LLMs6 Oct 2025
- 2025From Poisoned to Aware: Fostering Backdoor Self-Awareness in LLMs5 Oct 2025
- 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models5 Oct 2025
- 2025Microsaccade-Inspired Probing: Positional Encoding Perturbations Reveal LLM Misbehaviours1 Oct 2025
- 2025DecepChain: Inducing Deceptive Reasoning in Large Language Models30 Sep 2025
- 2025Are Robust LLM Fingerprints Adversarially Robust?30 Sep 2025
- 2025Localizing Malicious Outputs from CodeLLM21 Sep 2025
50 newest of 231 All 231 (JSON)
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 203
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfercited by 147
- 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 100
- 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Modelscited by 97
- 2022Wild Patterns Reloaded: A Survey of Machine Learning Security against Training Data Poisoningcited by 93
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 87
- 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitutioncited by 85
- 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Modelscited by 76
- 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarkscited by 70
- 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samplescited by 66
- 2023Composite Backdoor Attacks Against Large Language Modelscited by 63
12 most cited of 138 All 138 (JSON)
- 2026Backdoor Purification for LoRA-Tuned LLMs via Null-Space Projection30 Sep 2026
- 2026Backdoor Containment via Expert Quarantine and Shutdown in LLMs30 Sep 2026
- 2026Removing the NEEDLE in the Haystack: Backdoor Removal in LLMs via Weight Orthogonalisation29 Sep 2026
- 2026Trojaning the Alignment: Stealthy Backdoor Attacks against Graph Foundation Models21 Aug 2026
- 2026When Explanations Betray Backdoors: Black-Box Auditing for Language Model Classifiers12 Aug 2026
- 2026LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikes7 Aug 2026
- 2026Defense Against LLM Backdoors using Critical Neuron Isolation Pruning22 Jul 2026
- 2026CSO-LLM: Class Subspace Orthogonalization for Post-Training Backdoor Detection and Trigger Inversion in LLMs30 Jun 2026
- 2026Curvature-Guided Module Localization for Low-Rank Detoxification of Backdoored Large Language Models29 Jun 2026
- 2026Detecting Hidden Behaviors in LLMs via Activation-matched Finetuning29 May 2026
- 2026Cordyceps: Covert Control Attacks on LLMs via Data Poisoning26 May 2026
- 2026Token by Token, Compromised: Backdoor Vulnerabilities in Unified Autoregressive Models19 May 2026
12 newest of 138 All 138 (JSON)
- 2023The Trickle-down Impact of Reward (In-)consistency on RLHFcited by 29
- 2025Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Modelscited by 15
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputscited by 10
- 2024AdvBDGen: Adversarially Fortified Prompt-Specific Fuzzy Backdoor Generator Against LLM Alignmentcited by 5
- 2026Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoorscited by 2
- 2025GREAT: Generalizable Backdoor Attacks in RLHF via Emotion-Aware Trigger Synthesiscited by 1
- 2026Layerwise Convergence Fingerprints for Runtime Misbehavior Detection in Large Language Modelscited by 1
- 2026Layerwise Convergence Fingerprints for Runtime Misbehavior Detection in Large Language Models27 Apr 2026
- 2026Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoors14 Apr 2026
- 2025GREAT: Generalizable Backdoor Attacks in RLHF via Emotion-Aware Trigger Synthesis10 Oct 2025
- 2025Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Models19 Jun 2025
- 2024AdvBDGen: Adversarially Fortified Prompt-Specific Fuzzy Backdoor Generator Against LLM Alignment15 Oct 2024
- 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputs1 Sep 2024
- 2023The Trickle-down Impact of Reward (In-)consistency on RLHF28 Sep 2023
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 478
- 2024Compromising Embodied Agents with Contextual Backdoor Attackscited by 29
- 2025A Survey of Attacks on Large Language Modelscited by 13
- 2025Hidden Ghost Hand: Unveiling Backdoor Vulnerabilities in MLLM-Powered Mobile GUI Agentscited by 12
- 2025Your Agent Can Defend Itself against Backdoor Attackscited by 4
- 2026VirusCascade: Hijacking Collaborative Reflection in LLM-Powered Recommender Agentscited by 0
- 2026VirusCascade: Hijacking Collaborative Reflection in LLM-Powered Recommender Agents29 Sep 2026
- 2025Your Agent Can Defend Itself against Backdoor Attacks10 Jun 2025
- 2025Hidden Ghost Hand: Unveiling Backdoor Vulnerabilities in MLLM-Powered Mobile GUI Agents20 May 2025
- 2025A Survey of Attacks on Large Language Models18 May 2025
- 2024Compromising Embodied Agents with Contextual Backdoor Attacks6 Aug 2024
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan 2024
- 2024Can We Trust Embodied Agents? Exploring Backdoor Attacks against Embodied LLM-based Decision-Making Systemscited by 23
- 2025ShadowCoT: Cognitive Hijacking for Stealthy Reasoning Backdoors in LLMscited by 23
- 2025To Think or Not to Think: Exploring the Unthinking Vulnerability in Large Reasoning Modelscited by 22
- 2024Learning to Poison Large Language Models for Downstream Manipulationcited by 15
- 2024Rethinking Backdoor Detection Evaluation for Language Modelscited by 6
- 2025DecepChain: Inducing Deceptive Reasoning in Large Language Modelscited by 3
- 2025DecepChain: Inducing Deceptive Reasoning in Large Language Models30 Sep 2025
- 2025ShadowCoT: Cognitive Hijacking for Stealthy Reasoning Backdoors in LLMs8 Apr 2025
- 2025To Think or Not to Think: Exploring the Unthinking Vulnerability in Large Reasoning Models16 Feb 2025
- 2024Rethinking Backdoor Detection Evaluation for Language Models31 Aug 2024
- 2024Can We Trust Embodied Agents? Exploring Backdoor Attacks against Embodied LLM-based Decision-Making Systems27 May 2024
- 2024Learning to Poison Large Language Models for Downstream Manipulation21 Feb 2024
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoningcited by 91
- 2023On the Trustworthiness Landscape of State-of-the-art Generative Models: A Survey and Outlookcited by 15
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variationcited by 8
- 2024Combinational Backdoor Attack against Customized Text-to-Image Modelscited by 2
- 2026Self-Purification Mitigates Backdoors in Multimodal Diffusion Language Modelscited by 2
- 2026Self-Purification Mitigates Backdoors in Multimodal Diffusion Language Models24 Feb 2026
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation9 Mar 2025
- 2024Combinational Backdoor Attack against Customized Text-to-Image Models19 Nov 2024
- 2023On the Trustworthiness Landscape of State-of-the-art Generative Models: A Survey and Outlook31 Jul 2023
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning7 May 2023
- 2025Backdoor Cleaning without External Guidance in MLLM Fine-tuningcited by 34
- 2025ToxicTextCLIP: Text-Based Poisoning and Backdoor Attacks on CLIP Pre-trainingcited by 3
- 2026Phantasia: Context-Adaptive Backdoors in Vision Language Modelscited by 0
- 2026BYORn: Bootstrap Your Own Responses to Defend Large Vision-Language Models Against Backdoor Attackscited by 0
- 2026Backdoor Learning in Language Models and Vision-Language Modelscited by 0
- 2026Backdoor Learning in Language Models and Vision-Language Models8 Jun 2026
- 2026BYORn: Bootstrap Your Own Responses to Defend Large Vision-Language Models Against Backdoor Attacks1 Jun 2026
- 2026Phantasia: Context-Adaptive Backdoors in Vision Language Models9 Apr 2026
- 2025ToxicTextCLIP: Text-Based Poisoning and Backdoor Attacks on CLIP Pre-training1 Nov 2025
- 2025Backdoor Cleaning without External Guidance in MLLM Fine-tuning22 May 2025
- 2026SpecGuard: Inference-Time Backdoor Detection For Freecited by 0
- 2026SpecGuard: Inference-Time Backdoor Detection For Free10 Sep 2026
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 124
- 2024Know Your Limits: A Survey of Abstention in Large Language Modelscited by 116
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2022Exploring the Universal Vulnerability of Prompt-based Learning Paradigmcited by 56
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2022A Study of the Attention Abnormality in Trojaned BERTscited by 47
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practicescited by 36
- 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
- 2023Grounding Foundation Models through Federated Transfer Learning: A General Frameworkcited by 24
- 2024Task-Agnostic Detector for Insertion-Based Backdoor Attackscited by 23
- 2024Here's a Free Lunch: Sanitizing Backdoored Models with Model Mergecited by 21
12 most cited of 61 All 61 (JSON)
- 2026Universal Graph Backdoor Defense: A Feature-based Homophily Perspective16 May 2026
- 2026Activation Differences Reveal Backdoors: A Comparison of SAE Architectures8 May 2026
- 2026STEP: Detecting Audio Backdoor Attacks via Stability-based Trigger Exposure Profiling18 Mar 2026
- 2026Delayed Backdoor Attacks: Exploring the Temporal Dimension as a New Attack Surface in Pre-Trained Models12 Mar 2026
- 2025Causal-Guided Detoxify Backdoor Attack of Open-Weight LoRA Models22 Dec 2025
- 2025Sharing State Between Prompts and Programs16 Dec 2025
- 2025SteganoBackdoor: Evading Data-Poisoning Defenses via Steganographic Backdoors18 Nov 2025
- 2025Microsaccade-Inspired Probing: Positional Encoding Perturbations Reveal LLM Misbehaviours1 Oct 2025
- 2025Are Robust LLM Fingerprints Adversarially Robust?30 Sep 2025
- 2025Amulet: a Python Library for Assessing Interactions Among ML Defenses and Risks15 Sep 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Paladin: Defending LLM-enabled Phishing Emails with a New Trigger-Tag Paradigm8 Sep 2025
12 newest of 61 All 61 (JSON)