mlsanityData to 7 Oct 2026

Backdoor4Good: Benchmarking Beneficial Uses of Backdoors in LLMs

arXiv 2603.07452 ↗First posted 8 Mar 2026cs.CR cs.AIcited by 0

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

Abstract (arXiv)

Backdoor mechanisms have traditionally been studied as security threats that compromise the integrity of machine learning models. However, the same mechanism -- the conditional activation of specific behaviors through input triggers -- can also serve as a controllable and auditable interface for trustworthy model behavior. In this work, we present Backdoor4Good (B4G), a unified benchmark and framework for textitbeneficial backdoor applications in large language models (LLMs). Unlike conventional backdoor studies focused on attacks and defenses, B4G repurposes backdoor conditioning for Beneficial Tasks that enhance safety, controllability, and accountability. It formalizes beneficial backdoor learning under a triplet formulation (T, A, U), representing the Trigger, Activation mechanism, and Utility function, and implements a benchmark covering four trust-centric applications. Through extensive experiments across Llama3.1-8B, Gemma-2-9B, Qwen2.5-7B, and Llama2-13B, we show that beneficial backdoors can achieve high controllability, tamper-resistance, and stealthiness while preserving clean-task performance. Our findings demonstrate new insights that backdoors need not be inherently malicious; when properly designed, they can serve as modular, interpretable, and beneficial building blocks for trustworthy AI systems. Our code and datasets are available at https://github.com/bboylyg/BackdoorLLM/B4G.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 39 of its 47 references that are in the map. First posted on arXiv 8 Mar 2026.

Builds on

39 of 47 references.

Closest ancestors · 8

Same direction, newest first

  1. 2025AutoBackdoor: Automating Backdoor Attacks via LLM Agents20 Nov
  2. 2025Multi-Faceted Studies on Data Poisoning can Advance LLM Development20 Feb
  3. 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularization18 Nov
  4. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models23 Aug
  5. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injection31 Jul
  6. 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models15 Oct
  7. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
  8. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May

Other references · 31

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  3. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  4. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  5. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,330
  6. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
  7. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  8. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  9. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
  10. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
  11. 2023A Watermark for Large Language Modelscited by 667
  12. 2018Spectral Signatures in Backdoor Attackscited by 457
19 more
  1. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
  2. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
  3. 2018Turning Your Weakness Into a Strength: Watermarking Deep Neural Networks by Backdooringcited by 334
  4. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  5. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  6. 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 230
  7. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
  8. 2019A Question-Entailment Approach to Question Answeringcited by 133
  9. 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 132
  10. 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 113
  11. 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
  12. 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 89
  13. 2024Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysiscited by 61
  14. 2023Reconstructive Neuron Pruning for Backdoor Defensecited by 56
  15. 2024Stress-Testing Capability Elicitation With Password-Locked Modelscited by 42
  16. 2024SHIELD: Evaluation and Defense Strategies for Copyright Compliance in LLM Text Generationcited by 33
  17. 2024SudoLM: Learning Access Control of Parametric Knowledge with Authorization Alignmentcited by 8
  18. 2025Propaganda AI: An Analysis of Semantic Divergence in Large Language Modelscited by 3
  19. 2025Identity Lock: Locking API Fine-tuned LLMs With Identity-based Wake Wordscited by 2

Built on by

Not cited yet.