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

Drawing Multiple Augmentation Samples Per Image During Training Efficiently Decreases Test Error

Stanislav Fort, Andrew Brock, Razvan Pascanu, Soham De, Samuel L. SmitharXiv 2021

Abstract

In computer vision, it is standard practice to draw a single sample from the data augmentation procedure for each unique image in the mini-batch. However recent work has suggested drawing multiple samples can achieve higher test accuracies. In this work, we provide a detailed empirical evaluation of how the number of augmentation samples per unique image influences model performance on held out data when training deep ResNets. We demonstrate drawing multiple samples per image consistently enhances the test accuracy achieved for both small and large batch training. Crucially, this benefit arises even if different numbers of augmentations per image perform the same number of parameter updates and gradient evaluations (requiring the same total compute). Although prior work has found variance in the gradient estimate arising from subsampling the dataset has an implicit regularization benefit, our experiments suggest variance which arises from the data augmentation process harms generalization. We apply these insights to the highly performant NFNet-F5, achieving 86.8% top-1 w/o extra data on ImageNet.

Introduction

Data augmentation is a cornerstone of modern deep learning for computer vision. By applying random transformations like flips, crops, and color distortions, we encourage models to learn invariant features. Traditionally, practitioners draw exactly one augmented sample per unique image in a mini-batch. This paper investigates whether this "one-and-done" approach is optimal. The authors introduce the concept of augmentation multiplicity—drawing $n$ augmented samples per unique image—and demonstrate its significant benefits for both model accuracy and training efficiency.

A central question in this research is the role of noise. While stochastic gradient descent (SGD) benefits from the noise introduced by sampling different images (minibatching), the authors hypothesize that the noise introduced by the data augmentation process itself might actually be detrimental. Augmentation multiplicity serves as a mechanism to suppress this "augmentation variance" while retaining the beneficial "augmentation bias."

Methodology: Augmentation Multiplicity

The core idea is simple: for every unique image selected for a training step, generate $n$ different augmented versions. The researchers explore two primary ways to integrate this into training pipelines:

  1. Growing Batch: The number of unique images per batch remains constant, but the total batch size increases by a factor of $n$.
  2. Fixed Batch: The total batch size is kept constant, but the number of unique images is reduced by a factor of $n$.
Illustration of Growing Batch vs. Fixed Batch strategies for augmentation multiplicity.

These strategies allow for a controlled comparison of how increasing the number of samples per image affects performance, either by increasing total compute per step or by redistributing compute within a fixed-size batch.

Experimental Setup

The study utilizes two benchmark datasets:

  • CIFAR-100: Used for extensive hyperparameter sweeps, particularly for Wide-ResNet architectures.
  • ImageNet: Used to validate findings on large-scale tasks using the high-performance NFNet (Normalizer-Free Network) family.

Standard augmentations, including random crops, horizontal flips, and RandAugment, were employed across all experiments.

Results and Discussion

The empirical results consistently favor higher augmentation multiplicity. As shown in the figures below, increasing $n$ leads to higher test accuracy across various epoch budgets and learning rates.

Performance metrics on CIFAR-100 for different multiplicity values (n). (a) Test accuracy vs. epoch budget. (b) Training cross-entropy vs. epoch budget. (c) Test accuracy vs. learning rate.

Suppressing Augmentation Variance

A key finding is that augmentation multiplicity improves generalization by reducing the variance in the gradient estimate that stems from the random transformations. While the "bias" of the augmentation (the intended invariance) is helpful, the "noise" of a single random sample is not. By averaging gradients over multiple augmentations of the same image, the model receives a cleaner signal of the desired invariance.

Efficiency and Learning Rates

Multiplicity often allows models to reach peak performance in fewer epochs. For instance, on CIFAR-100, a model with $n=16$ reached 74.3% accuracy in 128 epochs, outperforming a standard $n=1$ model that reached only 74.1% after 256 epochs. Furthermore, higher multiplicity enables the use of larger learning rates, which is often associated with better generalization in deep learning.

State-of-the-Art on ImageNet

The practical utility of these insights was demonstrated by applying them to the NFNet-F5 model. By combining augmentation multiplicity with Sharpness-Aware Minimization (SAM), the researchers achieved a state-of-the-art 86.8% top-1 accuracy on ImageNet without the need for additional external data.

Conclusion

This work challenges the standard practice of single-sample data augmentation. By demonstrating that augmentation variance harms generalization, the authors provide a compelling theoretical and empirical case for augmentation multiplicity. For practitioners, this offers a straightforward method to improve model performance and training efficiency: if your hardware can handle larger batches or if you can afford to reduce the number of unique images per batch, drawing multiple augmentations per image is a highly effective strategy.

Summary updated

BibTeX
@misc{fort2021drawing,
  author = {Stanislav Fort and Andrew Brock and Razvan Pascanu and Soham De and Samuel L. Smith},
  title = {{Drawing Multiple Augmentation Samples Per Image During Training Efficiently Decreases Test Error}},
  year = {2021},
  eprint = {2105.13343},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.13343},
}
Figure