Ensemble everything everywhere: Multi-scale aggregation for adversarial robustness

Stanislav Fort, Balaji Lakshminarayanan

Adversarial attacks—those tiny, invisible-to-humans perturbations that make a state-of-the-art vision model mistake a school bus for an ostrich—have long been the Achilles' heel of deep learning. While "adversarial training" (feeding the model poisoned images during training) is the standard fix, it is computationally expensive and often fails to bridge the gap between how machines and humans perceive the world.

A new paper from Google DeepMind, "Ensemble everything everywhere: Multi-scale aggregation for adversarial robustness," proposes a shift in perspective. Instead of just training harder, the authors suggest we should build models that see more like we do.

TL;DR

The authors achieve state-of-the-art adversarial robustness on CIFAR-10 and CIFAR-100 by mimicking biological vision through multi-resolution input stacking and a novel "CrossMax" self-ensembling of intermediate layers. Remarkably, their approach reaches top-tier performance even without explicit adversarial training, and when attacked, the model produces human-interpretable images rather than random noise.

What Problem Does This Paper Address?

Deep neural networks are brittle. A motivated attacker can find a specific "noise" pattern that, when added to an image, completely flips the model's prediction while remaining invisible to a human. This suggests a fundamental misalignment: machines rely on high-frequency pixel statistics that humans ignore.

Historically, the only way to fix this was "brute force" adversarial training. The authors argue that we should instead focus on the model's backbone and training paradigm, aiming for "Interpretability-Robustness": the idea that a model whose failures look human-understandable will naturally be more robust.

Methods

The authors introduce two primary architectural changes, illustrated in the overview below:

Overview of the multi-scale aggregation and self-ensemble approach.
  1. Multi-resolution Prior: Inspired by "microsaccades" (tiny, involuntary eye movements), the model doesn't just look at one high-res image. Instead, the input is a channel-wise stack of $N$ versions of the same image at different resolutions (e.g., 32x32, 16x16, 8x8, 4x4), each with added stochastic jitter and noise. This forces the model to learn features that are consistent across scales.
  2. Layer Decoupling & Self-Ensembling: The authors discovered that even when an attack successfully fools the final layer of a network, the intermediate layers often still "see" the original object. To exploit this, they attach linear probes to multiple intermediate layers and ensemble their predictions.
  3. CrossMax Aggregation: Standard ensembling (like averaging) is easily subverted by a single "overconfident" outlier layer. The authors propose CrossMax, a robust aggregation mechanism inspired by Vickrey auctions. It normalizes logits to prevent any single layer or class from dominating and uses a $k^{th}$-highest (or median) prediction to reach a consensus.
The multi-resolution self-ensemble architecture using CrossMax.

Datasets

The approach was validated on:

  • CIFAR-10 & CIFAR-100: The primary benchmarks for adversarial robustness.
  • ImageNet: Used for pre-training the ResNet18 and ResNet152 backbones.
  • RobustBench: The standard leaderboard for evaluating models against the "AutoAttack" suite.

Key Insights and Ideas

  • Intermediate Layers are Honest: An attack designed to make a model see a "dog" as a "car" usually only succeeds at the very last layers. The middle of the network remains stubbornly correct.
  • The Anti-Goodhart Ensemble: By using the $k^{th}$ highest prediction, CrossMax creates a "cat-and-mouse" game for the attacker. If the attacker tries to boost one layer's prediction for a fake class, that layer is simply ignored in favor of the consensus.
  • Interpretability as a Shield: When you optimize an image to fool this model, the resulting "perturbation" isn't noise—it looks like the target object. For example, an attack trying to turn a "pear" into an "apple" actually draws the features of an apple onto the pear.
Intermediate layers retain the truth even under attack.

Key Results

  • Zero-Shot Robustness: Without any adversarial training, a finetuned ResNet152 achieved ~72% adversarial accuracy on CIFAR-10 and ~48% on CIFAR-100. This beats many models that do use adversarial training.
  • New SOTA: When combined with "light" adversarial training, the model outperformed the previous state-of-the-art by 5% on CIFAR-10 and a massive 9% on CIFAR-100.
  • Generative Byproduct: Because the model's representations are so aligned with human vision, the authors could turn their classifiers into controllable image generators, creating recognizable images from scratch just by following the model's gradients.

Limitations and Future Work

  • Scalability: While highly effective on CIFAR, the authors note that scaling to larger, more complex datasets like full-scale ImageNet is the next logical step.
  • Attack Diversity: The study focused primarily on $L_\infty$ norm-bounded attacks. Evaluating robustness against $L_2$, $L_1$, or purely semantic adversarial examples remains for future work.
  • Theoretical Foundations: While the biological inspiration is clear, a deeper mathematical understanding of why multi-resolution stacking provides such a strong prior could lead to even more efficient architectures.

By "ensembling everything everywhere," this research suggests that the path to truly robust AI might not be more data or bigger models, but rather a more faithful recreation of the hierarchical, multi-scale nature of human sight.

Summary updated

BibTeX
@inproceedings{fort2024ensemble,
  author = {Stanislav Fort and Balaji Lakshminarayanan},
  title = {{Ensemble everything everywhere: Multi-scale aggregation for adversarial robustness}},
  booktitle = {AdvML-Frontiers @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=8lZjsFwErr},
}
Figure