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

Adversarial Example Defense: Ensembles of Weak Defenses are not Strong

Warren He, James Wei, Xinyun Chen, Nicholas Carlini, Dawn SongWOOT 2017

Abstract

The vulnerability of deep neural networks to adversarial examples has led to the proposal of numerous defense mechanisms. A common intuition in security is that an ensemble of multiple "weak" defenses might constitute a "strong" defense. This paper critically examines this assumption by evaluating three ensemble strategies against an adaptive adversary. Our results show that an attacker aware of the defense can bypass these ensembles with only a marginal increase in input distortion, suggesting that "security through diversity" is insufficient in the adversarial domain.

Introduction

Adversarial examples—inputs meticulously crafted to induce misclassification—pose a significant threat to the deployment of deep learning models. While many individual defenses have been proposed, they often fail against adaptive attackers who tailor their methods to the specific defense. This research investigates whether combining multiple such heuristic defenses into an ensemble can provide robust security. We test the hypothesis that an ensemble's strength is greater than the sum of its parts against a white-box threat model.

Methodology

We evaluated three distinct ensemble strategies using an adaptive, white-box threat model:

  1. Feature Squeezing: This method reduces the input search space by applying transformations like bit-depth reduction or spatial smoothing. The ensemble flags inputs where the original and "squeezed" versions yield significantly different classifications.
  2. Specialists+1 Ensemble: This architecture uses a "generalist" model alongside specialists trained on frequently confused classes. A classification is only accepted if there is consensus between the generalist and all relevant specialists.
  3. Ensemble of Independent Detectors: This approach combines three separate detection mechanisms (Gong et al., Metzen et al., and Feinman et al.) designed to identify statistical anomalies in various network layers.

To evaluate these defenses, we developed adaptive attacks. For non-differentiable components like bit-depth reduction, we utilized a Gumbel-Softmax reparameterization trick to enable gradient-based optimization. The attack objective was modified to minimize a loss function that accounts for the entire ensemble's decision logic.

Results

The experimental evaluation was conducted on the MNIST and CIFAR-10 datasets, sampling images correctly classified by baseline models.

Performance on MNIST

Against the Feature Squeezing defense, our adaptive attack achieved a 100% success rate. Although the required $L_2$ distortion increased from 1.38 (baseline) to 4.76, the resulting images remained clearly identifiable to human observers. Similarly, the Specialists+1 ensemble was bypassed with a 100% success rate, requiring only an 81% increase in distortion compared to an undefended model.

Comparison of original images (top row) and adversarial examples (bottom row) that successfully bypass the ensemble defense while remaining recognizable to humans.

Performance on CIFAR-10

The Ensemble of Detectors on CIFAR-10 proved equally vulnerable. Combining three detectors only raised the necessary $L_2$ distortion from 0.11 to 0.18. This 60% increase remains within the threshold of imperceptible changes, demonstrating that the ensemble provides little practical security.

Discussion and Key Insights

Our findings highlight several critical principles in adversarial robustness:

  • The Transferability Trap: Adversarial examples frequently transfer between models. An input designed to fool one detector often fools others, even if they use different logic, undermining the benefit of diversity.
  • The Strongest Component Limit: An ensemble's security is generally bounded by its most robust individual component. It does not provide additive protection; if an attacker bypasses the strongest element, the weaker ones offer negligible resistance.
  • The Necessity of Adaptive Evaluation: Defenses must be evaluated against attackers who understand the system. Static evaluations against standard attacks (like FGSM) provide a false sense of security that vanishes when the attacker incorporates the defense's logic into their optimization loop.

Conclusion

This study demonstrates that ensembling weak adversarial defenses does not produce a strong defense. Adaptive adversaries can efficiently find paths through the combined logic of an ensemble. Future research should prioritize defenses with provable guarantees or those based on adversarial training rather than heuristic detection ensembles.

Summary updated

BibTeX
@inproceedings{he2017adversarial,
  author = {Warren He and James Wei and Xinyun Chen and Nicholas Carlini and Dawn Song},
  title = {{Adversarial Example Defense: Ensembles of Weak Defenses are not Strong}},
  booktitle = {WOOT},
  year = {2017},
  url = {https://openreview.net/forum?id=pxPrbyovPZB},
}
Figure