Attacking Model Sets with Adversarial Examples

István Megyeri, István Hegedüs, Márk Jelasity

Introduction

Adversarial machine learning has traditionally focused on the vulnerability of individual models. An attacker typically aims to find a minimal perturbation that causes a specific classifier to mislabel an input. While the "transferability" of these attacks—where a perturbation designed for one model also fools another—is a known phenomenon, it has largely been viewed as an unintentional side effect.

This research introduces a more sophisticated paradigm: the simultaneous attack on a set of models. By treating adversarial generation as a multi-constraint optimization problem, the authors demonstrate that attackers can achieve "surgical precision," either forcing an entire ensemble to converge on a specific error or targeting a single model while leaving others unaffected.

The Multi-Model Attack Framework

The core contribution of this work is a generalized framework that allows for complex logical constraints across multiple models. Instead of a simple 1-to-1 attack, the goal is to satisfy an "and" condition:

  1. Ensemble Fooling: Finding a single perturbation that forces every model in a set to predict the same incorrect label. This is particularly dangerous for systems relying on model voting for robustness.
  2. Selective Targeting (Inverse Transferability): Crafting an example that fools a specific target model while ensuring a set of "protected" models maintain their correct classification. This could allow an attacker to bypass specific security filters while remaining undetected by others.

Methodology: Extending DeepFool

The researchers propose an iterative heuristic based on the DeepFool algorithm. DeepFool is favored for its efficiency in finding minimal perturbations by projecting inputs toward the nearest decision boundary.

The multi-model variant employs a two-step iteration process. For each step, it calculates two distinct perturbations: $r_t$ to satisfy the "targeted" (fooling) constraints and $r_p$ to satisfy the "protected" (accuracy) constraints. The algorithm utilizes a "Hardest First" heuristic, applying the perturbation with the larger norm. This approach prioritizes the most difficult constraint, allowing the algorithm to refine the input in subsequent iterations to satisfy the remaining conditions.

Experimental Setup and Datasets

The framework was evaluated on two benchmark datasets: MNIST and CIFAR-10. For MNIST, the authors explored architectural variations by training models with 10, 100, and 1000 hidden neurons. For CIFAR-10, a standard CNN architecture was used.

Table 1: Dataset statistics including training/test set sizes and feature counts.

To simulate realistic "model sets," the researchers trained eight versions of each architecture, varying only the regularization coefficients. This created sets of models that were highly correlated yet possessed distinct decision boundaries.

Key Results and Analysis

The experiments yielded several critical insights into the nature of adversarial space:

Surgical Precision and Success Rates

The algorithm achieved near-perfect success rates (close to 100%) across almost all test cases. Remarkably, even when models were nearly identical—differing only in their regularization—it remained easy to find "non-transferable" examples that fooled one but not the others. This suggests that the high-dimensional decision space of neural networks is sufficiently sparse to allow for highly specific targeting.

Robustness vs. Regularization

As expected, increased regularization improved model robustness, requiring larger perturbations to induce misclassification. However, the multi-model attack remained effective even against the most regularized models in the set.

Figure 1: Single-model performance (left) and multi-model attack statistics (right) across different datasets and regularization levels.

Efficiency and Complexity

One of the most notable findings was the efficiency of the attack. The magnitude of noise required to fool an entire set of models was comparable to that needed for a single model, typically averaging less than 1.5% per input feature. Furthermore, the complexity of the dataset did not necessarily correlate with attack difficulty; CIFAR-10 models actually required significantly fewer iterations to attack than their MNIST counterparts.

Conclusion

This research highlights a significant vulnerability in model ensembles. High correlation between models does not provide inherent protection against adversarial examples. The ability to craft perturbations that satisfy complex multi-model constraints opens new avenues for both offensive strategies and the development of more robust defensive architectures.

Summary updated

BibTeX
@inproceedings{megyeri2020attacking,
  author = {István Megyeri and István Hegedüs and Márk Jelasity},
  title = {{Attacking Model Sets with Adversarial Examples}},
  booktitle = {ESANN},
  year = {2020},
}
Figure