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

Data Free Backdoor Attacks

Bochuan Cao, Jinyuan Jia, Chuxuan Hu, Wenbo Guo, Zhen Xiang, Jinghui Chen, Bo Li, Dawn Song

Abstract

Backdoor attacks traditionally require access to clean training data and significant computational resources for retraining. This paper introduces Data-Free Backdoor Attack (DFBA), a novel method that injects backdoors into pre-trained models through direct parameter manipulation. By "hard-wiring" a dedicated backdoor path through the network, DFBA achieves a 100% attack success rate without needing any training data or retraining. The attack is shown to be provably undetectable by state-of-the-art defenses and maintains high utility on clean inputs.

Introduction

The machine learning supply chain faces a significant security threat from backdoor attacks. In these scenarios, a compromised model behaves normally on standard inputs but misclassifies any input containing a specific "trigger" into a target class chosen by the attacker. Historically, these attacks have relied on two key prerequisites: access to clean data for fine-tuning and a retraining process that often leaves detectable statistical fingerprints.

DFBA addresses these limitations by moving away from training-based poisoning. It enables attackers to compromise models—such as those found on public repositories like Hugging Face—without requiring the original, often private, training data.

Methodology: Constructing the Backdoor Path

The core of DFBA is the surgical construction of a backdoor path. Instead of using gradient descent to teach the network to recognize a trigger, the authors manually configure a sequence of neurons across layers to form a signal chain from input to output.

The end-to-end construction of the backdoor path across network layers, showing the transformation of the signal from the first layer through to the final classification.

1. Neuron Selection and the Backdoor Switch

The attacker selects a single neuron or filter in each layer. In the first layer, this neuron is modified to act as a "switch." A trigger pattern is optimized to maximize this neuron's activation while ensuring it remains inactive for natural, clean images. The bias is then calculated to ensure the neuron only fires when the trigger is present.

The process of selecting a filter, optimizing the trigger pattern, and calculating the necessary bias to create the initial backdoor switch.

2. Signal Propagation and Amplification

In the intermediate layers, weights are adjusted to amplify the signal from the switch neuron. This ensures the backdoor signal remains dominant as it propagates through the network, effectively bypassing the standard logic of the model for clean inputs.

3. Target Mapping

At the final classification layer, the weights associated with the backdoor path are modified to strongly favor the attacker's target class. Because this path is only activated by the specific trigger, the model's performance on clean data remains largely unaffected.

Evaluation and Results

The authors evaluated DFBA on standard benchmarks including MNIST, Fashion-MNIST, CIFAR-10, GTSRB, and ImageNet (using ResNet-50/101).

Key Findings

  • Effectiveness: DFBA consistently achieved a 100% Attack Success Rate (ASR) across various architectures (FCN, CNN, VGG, ResNet).
  • Stealth and Utility: The impact on clean classification accuracy was minimal, typically less than 3%.
  • Efficiency: The attack is remarkably fast; injecting a backdoor into a ResNet-18 model takes approximately 0.06 seconds on a single GPU.
  • Defense Bypassing: The method successfully bypassed six state-of-the-art defenses, including Neural Cleanse and Fine-pruning.

Theoretical Insights

The paper introduces the concept of "Pruned Classifier" Duality. For clean data, a backdoored model behaves like a version of the original model where the backdoor path neurons have been removed. Given the high redundancy in modern neural networks, removing one neuron per layer has a negligible impact. Furthermore, because the backdoor is manually "hard-wired," it avoids the statistical anomalies that many current defenses are designed to detect.

Conclusion and Future Work

DFBA represents a significant shift in backdoor attack methodology, demonstrating that high-performance, undetectable backdoors can be injected without any training data. While currently requiring white-box access and focusing on patch triggers in CNNs, future research aims to extend this path-based approach to Transformer architectures and more complex trigger types.

Summary updated

BibTeX
@inproceedings{cao2024data,
  author = {Bochuan Cao and Jinyuan Jia and Chuxuan Hu and Wenbo Guo and Zhen Xiang and Jinghui Chen and Bo Li and Dawn Song},
  title = {{Data Free Backdoor Attacks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=pX71TM2MLh},
}
Figure