NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Survey of Neural Trojan Attacks and Defenses in Deep Learning

Jie Wang, Ghulam Mubashar Hassan, Naveed AkhtararXiv 2022

Abstract

Deep learning models are increasingly vulnerable to "Neural Trojans" or backdoors—malicious triggers embedded during training that cause a model to misbehave only when a specific input pattern is present. This survey provides a systematic categorization of the evolving landscape of Trojan attacks, ranging from data poisoning to direct weight manipulation, alongside corresponding defense mechanisms. It highlights the escalating security challenges as attackers move toward more stealthy, dynamic triggers.

Introduction

The development of modern deep learning models necessitates massive datasets and significant computational resources. Consequently, developers often outsource parts of the pipeline to third-party data annotators, cloud platforms, or pre-trained model repositories. While efficient, this reliance introduces a critical security vulnerability: Neural Trojans.

An attacker can embed a hidden "backdoor" into a model that remains dormant during normal operation, ensuring the model performs well on standard validation sets. However, when a specific "trigger" (such as a visual patch, a keyword, or a physical object) is introduced, the model's output is hijacked. This survey explores research from 2017 to 2021, detailing how these attacks are executed and the defensive strategies developed to counter them.

Overview of Trojan attack scenarios across the AI supply chain, including data poisoning and malicious training.

Taxonomy of Attacks and Defenses

The survey categorizes the literature into several key strategic areas:

Attack Strategies

  • Training Data Poisoning: This is the most prevalent method, where a small fraction of the training set is modified with triggers. Attacks are further classified into Visible Attacks (e.g., a stamped patch) and Invisible Attacks (e.g., steganography or imperceptible noise).
  • Non-poisoning Based Methods: These bypass data manipulation by directly altering model weights, modifying training software, or exploiting hardware vulnerabilities.
  • Cross-Domain Attacks: Trojan vulnerabilities are explored beyond digital image classifiers, extending to physical-world objects, Natural Language Processing (NLP), and Transfer Learning.

Defense Strategies

  • Model Verification & Trigger Detection: Techniques designed to identify if a model is compromised or to detect anomalous inputs at runtime.
  • Model Restoration: Methods such as model pruning or "trigger-based reversing," which involves reverse-engineering the trigger to cleanse the model through retraining.
  • Input Filtering: Pre-processing steps aimed at neutralizing potential triggers before they reach the model or filtering poisoned samples during training.

Key Insights: The Evolution of Stealth

A major theme in recent research is the shift toward increased stealth. Early Trojan attacks relied on obvious, static triggers. Modern techniques have evolved to use invisible, sample-specific, or dynamic triggers where the trigger's shape and location change, significantly complicating detection.

Comparison between static triggers (fixed location/pattern) and dynamic triggers (varying patterns) in facial recognition tasks.

Furthermore, attackers do not always require access to the training pipeline. Techniques like the Targeted Bit Trojan (TBT) demonstrate that flipping a microscopic number of bits in a model's memory can induce malicious behavior with high precision.

Quantitative Benchmarks

The survey highlights several alarming metrics from the aggregated literature:

  • Efficiency of Poisoning: High success rates (>90%) can be achieved with as few as 50 poisoned samples in a large dataset.
  • Surgical Weight Manipulation: Direct weight attacks like TBT can achieve a 92% success rate by flipping only 84 bits out of 88 million.
  • Defensive Potential: On the positive side, techniques like Neural Attention Distillation can neutralize Trojans using only 5% of clean training data.

Future Directions

The authors identify several gaps in current research:

  1. Black-Box Scenarios: Most current research assumes white-box or grey-box access. Real-world attacks are more likely to occur in black-box environments.
  2. Beyond Vision: There is a critical need to expand Trojan research into NLP, audio, graph networks, and reinforcement learning.
  3. Certified Defenses: Current heuristic-based defenses are often bypassed by adaptive attackers. The field requires mathematically certified defense mechanisms to ensure robust security.

Summary updated

BibTeX
@misc{wang2022survey,
  author = {Jie Wang and Ghulam Mubashar Hassan and Naveed Akhtar},
  title = {{A Survey of Neural Trojan Attacks and Defenses in Deep Learning}},
  year = {2022},
  eprint = {2202.07183},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.07183},
}
Figure