MaxUp: Lightweight Adversarial Training With Data Augmentation Improves Neural Network Training

Chengyue Gong, Tongzheng Ren, Mao Ye, Qiang Liu

Abstract

MaxUp is a simple yet effective training strategy designed to enhance the generalization of deep neural networks. By minimizing the maximum (worst-case) loss across a set of random data augmentations, MaxUp acts as a lightweight form of adversarial training. This approach implicitly smooths the model’s decision boundaries, leading to superior performance on benchmarks such as ImageNet and improved robustness in adversarial certification tasks.

Introduction

Deep learning models are notorious for overfitting—performing exceptionally well on training data but failing to generalize to new, unseen examples. Standard remedies include Data Augmentation (e.g., rotations, crops) and Regularization. While standard augmentation typically minimizes the average loss across variations, it may not sufficiently challenge the model. Conversely, Adversarial Training (e.g., Projected Gradient Descent) seeks the absolute worst-case perturbation via expensive gradient-based optimization, often at the cost of accuracy on clean data.

MaxUp addresses this by finding a "Goldilocks" zone: it provides the smoothness benefits of adversarial training without the massive computational cost or the typical accuracy trade-off.

Methodology

The MaxUp algorithm is elegantly simple and can be integrated into existing training pipelines:

  1. Generate $m$ samples: For every data point in a mini-batch, create $m$ different augmented versions using techniques like CutMix, MixUp, or Gaussian noise.
  2. Find the "Worst" Copy: Perform a forward pass on all $m$ versions to calculate their losses.
  3. Minimize the Max: Identify the specific augmented sample that produced the highest (worst) loss.
  4. Update: Perform backpropagation only on that worst-case sample.

Theoretically, MaxUp with Gaussian perturbations is asymptotically equivalent to adding a gradient-norm penalty, encouraging the loss function to be smooth. To manage the overhead of $m$ forward passes, the authors introduce Low-Resolution Acceleration, identifying the "worst" sample using low-resolution images before the final high-resolution training step.

Experimental Evaluation

The authors evaluated MaxUp across diverse domains, including image classification, 3D point cloud analysis, and adversarial certification.

ImageNet Performance

MaxUp consistently improves performance when combined with state-of-the-art augmentations. For instance, MaxUp combined with CutMix improved ResNet-50 top-1 accuracy to 78.9% (up from 78.6% with standard CutMix).

MaxUp combined with CutMix achieves state-of-the-art results on ImageNet compared to other regularization techniques.

The method also scales to larger architectures; it boosted a Fix-EfficientNet-B8 model to 85.8% top-1 accuracy without the need for additional external data.

Robustness and Certification

In adversarial certification tasks using Gaussian smoothing, MaxUp significantly outperformed PGD-based training. For example, at an $\ell_2$ radius of 0.25, it improved certified accuracy from 60% to 74%.

Certified robustness results on CIFAR-10, demonstrating MaxUp's superiority in providing provable guarantees.

Conclusion

MaxUp provides a powerful, "plug-and-play" upgrade for modern data augmentation schemes. By focusing on the hardest natural variations, it forces models to develop more robust and smoother decision boundaries. While it introduces manageable computational overhead, the resulting gains in generalization and robustness make it a highly effective tool for training high-performance neural networks.

Summary updated

BibTeX
@inproceedings{gong2021maxup,
  author = {Chengyue Gong and Tongzheng Ren and Mao Ye and Qiang Liu},
  title = {{MaxUp: Lightweight Adversarial Training With Data Augmentation Improves Neural Network Training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00250},
}
Figure