Introduction
As deep learning becomes central to mission-critical tasks like autonomous driving and face recognition, the "supply chain" of AI has become a significant vulnerability. Training state-of-the-art deep neural networks (DNNs) requires massive datasets and immense computational power, leading many users to adopt third-party datasets, pre-trained models, or cloud-based training platforms. This lack of full control over the end-to-end training process allows malicious actors to embed "backdoors"—also known as neural trojans—into the models.
Unlike traditional adversarial attacks that occur only at the inference stage, or data poisoning that aims to degrade a model's overall accuracy, backdoor attacks are remarkably stealthy. An infected model maintains high performance on clean data but executes malicious actions when a specific, attacker-defined "trigger" is present. This paper provides the first comprehensive survey of the field, offering a unified framework to categorize the rapidly evolving landscape of backdoor attacks and defenses.
The Backdoor Attack Mechanism
Backdoor attacks are formally characterized as a bi-level optimization problem. The attacker's goal is to balance three primary risks: Standard Risk ($R_s$) to ensure clean data performance, Backdoor Risk ($R_b$) to ensure the trigger successfully activates the malicious behavior, and Perceivable Risk ($R_p$) to maintain stealthiness against human or automated inspection.
As illustrated in the pipeline above, the effectiveness of an attack is measured by two primary metrics: Benign Accuracy (BA), which should remain high to avoid detection, and Attack Success Rate (ASR), which measures the probability of the target label being predicted when the trigger is active. A successful attack ensures that the model behaves normally for standard users while providing a hidden "backdoor" for the attacker.
Taxonomy and Attack Strategies
The survey categorizes poisoning-based attacks through a multi-dimensional taxonomy, focusing on trigger characteristics and attacker capabilities.
Key dimensions include:
- Trigger Visibility: Distinguishing between visible patches (e.g., the pioneering BadNets) and invisible perturbations. For instance, Blended Attacks introduced invisibility by blending the trigger into the image, while Clean-label Attacks proved that backdoors could be injected even if poisoned images were correctly labeled, making human inspection nearly useless.
- Trigger Type: Comparing sample-agnostic triggers (the same pattern for all images) to Sample-specific Attacks. These advanced methods generate unique triggers for each image, causing many defenses that search for common patterns to fail completely.
- Target Type: Distinguishing between all-to-one attacks, where all poisoned samples are mapped to a single target label, and all-to-all attacks, which involve more complex label mappings.
- Attack Space: Attacks restricted to the digital space versus physical attacks that must survive real-world conditions like lighting changes and camera angles.
Defense Methodologies
Defenses are broadly categorized into Empirical Defenses and Certified Defenses. Empirical methods often rely on heuristics, such as pruning (removing neurons that are inactive on clean data but active on triggers) or input filtering (detecting and removing poisoned samples from the training set). However, the field is characterized by a constant "cat-and-mouse" game where adaptive attacks are designed specifically to circumvent these heuristics.
In response, Certified Defenses have emerged, utilizing techniques like randomized smoothing to provide theoretical guarantees of robustness. While these offer more reliable security, they often come at the cost of a significant drop in benign accuracy, highlighting a fundamental trade-off in secure machine learning.
Benchmarks and Future Work
Research typically utilizes standard benchmarks such as MNIST, CIFAR-10, and ImageNet for general recognition, and GTSRB for traffic sign tasks. While image classification is the primary focus of current literature, the threat is increasingly recognized in NLP, Graph Neural Networks (GNNs), and Reinforcement Learning.
Future research must address domain bias beyond computer vision, improve the efficiency of defense mechanisms for large-scale models, and explore the intrinsic reasons why DNNs are susceptible to these latent connections. Interestingly, backdoor techniques also offer positive applications, such as watermarking models to protect intellectual property or verifying that a server has actually deleted a user's data.
The authors maintain a curated list of resources at: https://github.com/THUYimingLi/backdoor-learning-resources.
Summary updated