Ensemble everything everywhere: Multi-scale aggregation for adversarial robustness

Stanislav Fort, Balaji Lakshminarayanan
8/8/2024
cs.CVcs.LG

No official code found. Best implementation: stanislavfort/ensemble-everything-everywhere (23 stars, MIT, last commit 2024-11-08). 2 more below.

Abstract

Adversarial examples pose a significant challenge to the robustness, reliability and alignment of deep neural networks. We propose a novel, easy-to-use approach to achieving high-quality representations that lead to adversarial robustness through the use of multi-resolution input representations and dynamic self-ensembling of intermediate layer predictions. We demonstrate that intermediate layer predictions exhibit inherent robustness to adversarial attacks crafted to fool the full classifier, and propose a robust aggregation mechanism based on Vickrey auction that we call \textit{CrossMax} to dynamically ensemble them. By combining multi-resolution inputs and robust ensembling, we achieve significant adversarial robustness on CIFAR-10 and CIFAR-100 datasets without any adversarial training or extra data, reaching an adversarial accuracy of $\approx$72% (CIFAR-10) and $\approx$48% (CIFAR-100) on the RobustBench AutoAttack suite ($L_\infty=8/255)$ with a finetuned ImageNet-pretrained ResNet152. This represents a result comparable with the top three models on CIFAR-10 and a +5 % gain compared to the best current dedicated approach on CIFAR-100. Adding simple adversarial training on top, we get $\approx$78% on CIFAR-10 and $\approx$51% on CIFAR-100, improving SOTA by 5 % and 9 % respectively and seeing greater gains on the harder dataset. We validate our approach through extensive experiments and provide insights into the interplay between adversarial robustness, and the hierarchical nature of deep representations. We show that simple gradient-based attacks against our model lead to human-interpretable images of the target classes as well as interpretable image changes. As a byproduct, using our multi-resolution prior, we turn pre-trained classifiers and CLIP models into controllable image generators and develop successful transferable attacks on large vision language models.

View on arXivView PDF

Code Implementations(3)

MIT

The code for the Ensemble everything everywhere: Multi-scale aggregation for adversarial robustness paper

232Jupyter NotebookOct 4, 20241 years agoMIT

The goal of this repository is to recreate the results from the paper "Ensemble everything everywhere: Multi-scale aggregation for adversarial robustness" (https://arxiv.org/pdf/2408.05446) in PyTorch. This work is done independently of the paper as a hobby project

10Shell, PythonSep 15, 20241 years ago

A website for the academic paper Ensemble everything everywhere: Multi-scale aggregation for adversarial robustness

20CSS, HTMLOct 4, 20242 years ago

Cite this paper

@article{fort2024ensemble,
  title  = {Ensemble everything everywhere: Multi-scale aggregation for adversarial robustness},
  author = {Stanislav Fort and Balaji Lakshminarayanan},
  year   = {2024},
  eprint = {2408.05446},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.05446v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.05446.svg)](https://codeofpaper.com/paper/2408.05446)

Discussion