Robust Deep Learning Ensemble against Deception

Wenqi Wei, Ling Liu

Abstract

Deep neural network (DNN) models are known to be vulnerable to maliciously crafted adversarial examples and to out-of-distribution inputs drawn sufficiently far away from the training data. How to protect a machine learning model against deception of both types of destructive inputs remains an open challenge. This paper presents XEnsemble, a diversity ensemble verification methodology for enhancing the adversarial robustness of DNN models against deception caused by either adversarial examples or out-of-distribution inputs. XEnsemble by design has three unique capabilities. First, XEnsemble builds diverse input denoising verifiers by leveraging different data cleaning techniques. Second, XEnsemble develops a disagreement-diversity ensemble learning methodology for guarding the output of the prediction model against deception. Third, XEnsemble provides a suite of algorithms to combine input verification and output verification to protect the DNN prediction models from both adversarial examples and out of distribution inputs. Evaluated using eleven popular adversarial attacks and two representative out-of-distribution datasets, we show that XEnsemble achieves a high defense success rate against adversarial examples and a high detection success rate against out-of-distribution data inputs, and outperforms existing representative defense methods with respect to robustness and defensibility.

Introduction

Deep Neural Networks (DNNs) are notoriously brittle when faced with adversarial examples—inputs with human-imperceptible perturbations designed to trigger misclassification—and out-of-distribution (OOD) data. Existing defenses often struggle with specificity (working only against certain attacks), fragility (failing to handle both adversarial and OOD threats), or high overhead (requiring expensive retraining). XEnsemble addresses these issues with a "plug-and-play" defense framework that is attack-independent and handles both threat types simultaneously.

Methodology: The XEnsemble Framework

XEnsemble employs a two-layered ensemble verification strategy to protect the target model (TM) without requiring retraining.

1. Input Verification Ensemble

Before reaching the TM, inputs pass through a set of diverse "denoisers." These include spatial smoothing (median filters), color-depth reduction (quantization), Non-Local Means (NLM) smoothing, and geometric transformations (rotations). These techniques aim to disrupt the specific noise patterns of adversarial attacks.

2. Output Verification Ensemble

The core of XEnsemble is a committee of high-accuracy models selected for their Disagreement Diversity. Using the Kappa ($\kappa$) statistic, the framework selects models that agree on benign data but are mathematically likely to disagree when faced with deceptive inputs.

The XEnsemble architecture combining input processing and output verification ensembles.

Results and Discussion

The framework was evaluated on CIFAR-10 and ImageNet against 11 adversarial attacks (including Carlini-Wagner and JSMA) and OOD datasets like TinyImageNet.

Mechanism of Detection

The system leverages the divergence in predictions across the ensemble. If the committee's predictions for denoised inputs diverge significantly (measured by $L_1$ distance), the input is flagged. This mechanism is effective because it is harder for an attacker to find a single perturbation that fools a diverse committee of "experts" with different gradient information.

Verification models showing disagreement on adversarial and OOD inputs compared to benign data.

Performance Metrics

  • Superior Robustness: On CIFAR-10, XEnsemble achieved a Defense Success Rate (DSR) of 97.5%, significantly outperforming standard Adversarial Training (~51%) and MagNet (~94%).
  • OOD Detection: The system achieved near-perfect OOD detection (AUROC $\approx$ 1.0) on CIFAR benchmarks, surpassing the ODIN baseline.
  • Consistency: XEnsemble maintained high defense rates across all 11 attack types, showing resilience even against high-strength attacks like Carlini-Wagner (CW).

Conclusion

XEnsemble provides a robust, unified shield against both adversarial and OOD deception. By prioritizing "disagreement diversity" among high-performing models, it creates a defense that is difficult to bypass without full knowledge of the ensemble components. Future work will explore adding randomization to ensemble selection to further mitigate "white-box" insider threats and extending the framework to non-image data types.

Summary updated

Abstract

Deep neural network (DNN) models are known to be vulnerable to maliciously crafted adversarial examples and to out-of-distribution inputs drawn sufficiently far away from the training data. How to protect a machine learning model against deception of both types of destructive inputs remains an open challenge. This paper presents XEnsemble, a diversity ensemble verification methodology for enhancing the adversarial robustness of DNN models against deception caused by either adversarial examples or out-of-distribution inputs. XEnsemble by design has three unique capabilities. First, XEnsemble builds diverse input denoising verifiers by leveraging different data cleaning techniques. Second, XEnsemble develops a disagreement-diversity ensemble learning methodology for guarding the output of the prediction model against deception. Third, XEnsemble provides a suite of algorithms to combine input verification and output verification to protect the DNN prediction models from both adversarial examples and out of distribution inputs. Evaluated using eleven popular adversarial attacks and two representative out-of-distribution datasets, we show that XEnsemble achieves a high defense success rate against adversarial examples and a high detection success rate against out-of-distribution data inputs, and outperforms existing representative defense methods with respect to robustness and defensibility.
BibTeX
@article{wei2021robust,
  author = {Wenqi Wei and Ling Liu},
  title = {{Robust Deep Learning Ensemble against Deception}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2021},
  url = {https://openreview.net/forum?id=_C0BbUOcAzN},
}
Figure