Skip to main content
QUICK REVIEW

[Paper Review] $n$-ML: Mitigating Adversarial Examples via Ensembles of Topologically Manipulated Classifiers

Mahmood Sharif, Lujo Bauer|arXiv (Cornell University)|Dec 19, 2019
Adversarial Robustness in Machine LearningComputer Science84 references5 citations
TL;DR

This paper proposes $n$-ML, a defense against adversarial examples that uses an ensemble of deep neural networks (DNNs) trained via topology manipulation to classify adversarial inputs differently, enabling detection through vote disagreement. It achieves state-of-the-art robustness with minimal accuracy drop and faster inference than prior defenses.

ABSTRACT

This paper proposes a new defense called $n$-ML against adversarial examples, i.e., inputs crafted by perturbing benign inputs by small amounts to induce misclassifications by classifiers. Inspired by $n$-version programming, $n$-ML trains an ensemble of $n$ classifiers, and inputs are classified by a vote of the classifiers in the ensemble. Unlike prior such approaches, however, the classifiers in the ensemble are trained specifically to classify adversarial examples differently, rendering it very difficult for an adversarial example to obtain enough votes to be misclassified. We show that $n$-ML roughly retains the benign classification accuracies of state-of-the-art models on the MNIST, CIFAR10, and GTSRB datasets, while simultaneously defending against adversarial examples with better resilience than the best defenses known to date and, in most cases, with lower classification-time overhead.

Motivation & Objective

  • To address the growing threat of adversarial examples that evade state-of-the-art deep neural networks through small, imperceptible perturbations.
  • To improve defense robustness without significantly degrading benign classification accuracy, a common shortcoming of prior defenses.
  • To reduce inference-time overhead compared to existing detection-based defenses, which often incur high computational costs.
  • To enable effective detection of adversarial inputs by inducing disagreement among ensemble members through controlled topological variation in DNNs.
  • To provide a practical, scalable defense that maintains high performance across diverse datasets and attack settings.

Proposed method

  • Proposes topology manipulation—a novel training technique that allows specifying how adversarial examples should be classified during DNN training, while preserving high accuracy on benign inputs.
  • Constructs $n$-ML as an ensemble of $n$ DNNs, each trained with a different, randomly selected derangement (permutation) of class labels to induce topological diversity.
  • Uses majority voting across the ensemble for classification: if more than a threshold number of DNNs agree, the input is classified; otherwise, it is flagged as adversarial.
  • Employs a modified loss function during training that enforces correct classification of benign inputs and specified, divergent predictions for adversarial examples.
  • Applies the method across multiple datasets (MNIST, CIFAR10, GTSRB) and attack types ($L_\infty$, $L_2$) in black-, grey-, and white-box settings.
  • Leverages $n$-version programming principles to increase resilience by ensuring that adversarial examples are unlikely to fool all ensemble members simultaneously.

Experimental results

Research questions

  • RQ1Can an ensemble of DNNs trained with topology manipulation detect adversarial examples more effectively than existing defenses while maintaining high benign accuracy?
  • RQ2How does $n$-ML perform across different datasets (MNIST, CIFAR10, GTSRB) and under varying attack settings (black-, grey-, white-box)?
  • RQ3To what extent does topology manipulation enable DNNs to classify adversarial examples differently without degrading performance on benign inputs?
  • RQ4How does the inference speed of $n$-ML compare to state-of-the-art adversarial detection methods?
  • RQ5What are the limitations of $n$-ML in low-class-count scenarios (e.g., $m=2$) and how can they be addressed?

Key findings

  • On CIFAR10 in the black-box setting, $n$-ML achieved 94.50% benign accuracy and successfully defended against all $L_\infty$-perturbed adversarial examples with magnitude $\frac{8}{255}$, outperforming the state-of-the-art defense which had 87.24% benign accuracy and was evaded by 14.02% of adversarial examples.
  • $n$-ML was up to $\times$ 199.46 faster at inference than other state-of-the-art detection-based defenses, demonstrating significant efficiency gains.
  • The method maintained benign accuracy close to that of state-of-the-art models (e.g., 95.38% for the best standard DNN on CIFAR10) while providing superior robustness.
  • The ensemble-based voting mechanism effectively detected adversarial inputs due to induced disagreement among topologically manipulated DNNs, even under strong attacks.
  • The defense was effective across multiple datasets and attack types, including $L_\infty$ and $L_2$ perturbations, in all tested threat models (black-, grey-, white-box).
  • The primary limitation was observed in low-class scenarios (e.g., $m=2$), where the number of possible derangements is too small to form diverse ensembles, suggesting a need for alternative topological manipulation techniques in such cases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.