NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fast AdvProp

Jieru Mei, Yucheng Han, Yutong Bai, Yixiao Zhang, Yingwei Li, Xianhang Li, Alan L. Yuille, Cihang Xie

Introduction

Fast AdvProp revamps the computationally expensive Adversarial Propagation (AdvProp) method, reducing its training overhead from 7x down to nearly 1x—the cost of standard training. By decoupling clean and adversarial samples and recycling gradients, the authors achieve improved model accuracy and robustness across various vision benchmarks without the massive compute bill.

The Problem: The High Cost of Robustness

Deep neural networks are notoriously brittle; while they perform well on standard datasets, they often fail when faced with "out-of-distribution" data like image corruptions (blur, noise) or style shifts (sketches, paintings).

AdvProp was introduced to solve this by feeding the network adversarial examples during training. Its "secret sauce" is using separate Batch Normalization (BN) layers for clean and adversarial data to prevent the distributions from clashing. However, AdvProp is incredibly slow. It typically requires:

  1. Extra forward and backward passes to generate adversarial examples.
  2. Training on twice the data (original + adversarial counterparts).

In practice, this makes AdvProp roughly 7 times more expensive than vanilla training, rendering it impractical for large-scale models or researchers with limited hardware.

Methods: Simplifying the Pipeline

The authors introduce Fast AdvProp, which aggressively simplifies the AdvProp pipeline through three main innovations:

Comparison of the standard AdvProp pipeline versus the proposed Fast AdvProp, highlighting decoupled training and gradient recycling.
  1. Decoupled Training: Standard adversarial training pairs every clean image with an adversarial version. The authors hypothesize that this "pairing" isn't strictly necessary. Instead, they use a mixture—mostly clean images with a small portion (e.g., 20%) of adversarial examples—to lower the total sample count.
  2. Gradient Recycling: Borrowing from "Free" adversarial training techniques, they merge the gradient calculation used to create the adversarial image with the gradient calculation used to update the model weights. This effectively makes the adversarial generation "free."
  3. Stabilization Techniques: Naively combining the above steps usually leads to training collapse. To fix this, they implement:
  4. Shuffling BN: They shuffle adversarial examples across GPUs to prevent "label leaking," where the model "cheats" by using batch statistics to identify adversarial noise.
  5. Re-balancing & Syncing: They halve the importance weight of adversarial samples and re-scale gradients to ensure that shared layers and BN-specific layers update at consistent speeds.

Key Insights

  • Disentangled Learning is the Priority: The core benefit of AdvProp comes from the auxiliary Batch Normalization layers that handle different distributions. Once you have that "disentanglement," the expensive multi-step attacks and strict 1:1 pairing of samples become optional.
  • The Batch Norm Shortcut: The authors discovered a "label leaking" effect where models in a multi-GPU setup could identify adversarial samples simply by looking at the intra-batch communication in BN layers. Shuffling the data across GPUs forces the model to actually learn robust features instead of finding this statistical shortcut.
  • Efficiency Doesn't Require Sacrifice: You don't need to choose between speed and robustness. By carefully managing how gradients are reused, you can get the "robustness boost" of adversarial training as a side effect of standard training.

Key Results

Fast AdvProp was evaluated on several rigorous computer vision benchmarks, including ImageNet, ImageNet-C (corruptions), ImageNet-R (renditions), Stylized-ImageNet, and MS COCO.

Performance comparison showing Fast AdvProp matches the 1x training budget of vanilla training while outperforming it across multiple robustness benchmarks.
  • Zero Extra Cost: Fast AdvProp matches the training budget (1x) of vanilla training while outperforming it across the board.
  • Performance Gains: On a ResNet-50, Fast AdvProp improved ImageNet accuracy by 0.3%, but the real wins were in robustness: +2.1% on ImageNet-C, +1.9% on ImageNet-R, and +0.5% on Stylized-ImageNet.
  • Scalability: The benefits scaled even better with larger models. For ResNet-152, it beat the vanilla baseline by 0.3% on clean data and a massive 2.5% on ImageNet-C.
  • Compatibility: It works seamlessly with other data augmentation tricks like Mixup and CutMix and improves object detection robustness on COCO-C by 1.4 mAP.

Limitations and Future Work

While highly efficient, Fast AdvProp introduces new hyperparameters, such as the ratio of adversarial samples ($p_{adv}$) and the importance weight ($\beta$). The paper suggests $p_{adv}=0.2$ is a sweet spot, but this might vary for different architectures. Additionally, the study focuses primarily on the ResNet family (CNNs). A deeper dive into how this interacts with Vision Transformers (ViTs), which handle normalization differently, would be a valuable next step. Ultimately, the authors hope this "free" robustness encourages more widespread adoption of adversarial propagation in large-scale production models where training costs were previously a deal-breaker.

Summary updated

BibTeX
@inproceedings{mei2022fast,
  author = {Jieru Mei and Yucheng Han and Yutong Bai and Yixiao Zhang and Yingwei Li and Xianhang Li and Alan L. Yuille and Cihang Xie},
  title = {{Fast AdvProp}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
}
Figure