Skip to main content
QUICK REVIEW

[Paper Review] MaxUp: A Simple Way to Improve Generalization of Neural Network Training

Chengyue Gong, Tongzheng Ren|arXiv (Cornell University)|Feb 20, 2020
Adversarial Robustness in Machine LearningComputer Science42 references35 citations
TL;DR

MaxUp minimizes the maximum loss over augmented data to induce gradient-norm regularization, improving generalization across vision, language, and certification tasks with minimal overhead.

ABSTRACT

We propose \emph{MaxUp}, an embarrassingly simple, highly effective technique for improving the generalization performance of machine learning models, especially deep neural networks. The idea is to generate a set of augmented data with some random perturbations or transforms and minimize the maximum, or worst case loss over the augmented data. By doing so, we implicitly introduce a smoothness or robustness regularization against the random perturbations, and hence improve the generation performance. For example, in the case of Gaussian perturbation, \emph{MaxUp} is asymptotically equivalent to using the gradient norm of the loss as a penalty to encourage smoothness. We test \emph{MaxUp} on a range of tasks, including image classification, language modeling, and adversarial certification, on which \emph{MaxUp} consistently outperforms the existing best baseline methods, without introducing substantial computational overhead. In particular, we improve ImageNet classification from the state-of-the-art top-1 accuracy $85.5\%$ without extra data to $85.8\%$. Code will be released soon.

Motivation & Objective

  • Motivate overfitting and generalization gaps in neural network training.
  • Propose MaxUp to enforce robustness against random data perturbations.
  • Show that MaxUp acts as a gradient-norm regularization under Gaussian perturbations.
  • Demonstrate improvements across image classification, language modeling, and adversarial certification.

Proposed method

  • Generate m augmented copies of each data point from a perturbation distribution P(·|x).
  • Minimize the worst-case loss across the m augmented copies: min_theta E_x~D[ max_{i in [m]} L(x_i', theta) ].
  • Backpropagate only through the worst augmented copy per data point, giving a simple SGD update (gradient equals the worst-copy gradient).
  • Interpret MaxUp via a Taylor expansion as introducing a gradient-norm regularization term ||∇_x L(x, theta)||_2 with coefficient c_{m,σ} = Θ(σ sqrt(log m)).
  • Show that with isotropic Gaussian perturbations P(·|x)=N(x, σ^2 I), the expected MaxUp risk approximates L(x, theta) + c_{m,σ}||∇_x L(x, theta)||_2 + O(σ^2).
  • Explain how MaxUp complements existing data augmentation, and how it relates to lightweight adversarial training and online hard example mining.

Experimental results

Research questions

  • RQ1Does maximizing the loss over augmented data improve generalization beyond standard data augmentation?
  • RQ2How does MaxUp relate to gradient-norm regularization under perturbations such as Gaussian noise?
  • RQ3Can MaxUp improve performance across diverse tasks (vision, language modeling, certified robustness) and architectures without substantial computational overhead?
  • RQ4How does the choice of m and the augmentation distribution P(·|x) affect performance across datasets?
  • RQ5How does MaxUp interact with existing adversarial training regimes and certification methods?

Key findings

  • MaxUp improves generalization across image classification, language modeling, and adversarial certification tasks.
  • On ImageNet, MaxUp with CutMix raises top-1 accuracy from 85.5% (state-of-the-art with extra data not used) to 85.8%.
  • On CIFAR-10 with Cutout, MaxUp improves accuracy from 95.41% to 95.52% (averaged over runs) for certain architectures.
  • On CIFAR-100, MaxUp with Cutout improves accuracy from 75.26% to 82.48% (WideResNet-28-10, table shows 82.48% with m=10).
  • In language modeling, MaxUp applied to AWD-LSTM yields lower perplexities on PTB and WT2 than prior state-of-the-art baselines.
  • For adversarial certification, MaxUp with Gaussian perturbations (MaxUp+Gauss) outperforms Cohen et al. (2019) and PGD-based training across examined radii, with faster, easier hyperparameter tuning.
  • MaxUp provides a lightweight alternative to PGD adversarial training, with minimal overhead and broad compatibility with augmentation schemes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.