[Paper Review] Augment your batch: better training with larger batches
Batch Augmentation (BA) enlarges effective batch size by applying multiple augmentations per sample, improving convergence speed and final generalization without changing learning rate schedules.
Large-batch SGD is important for scaling training of deep neural networks. However, without fine-tuning hyperparameter schedules, the generalization of the model may be hampered. We propose to use batch augmentation: replicating instances of samples within the same batch with different data augmentations. Batch augmentation acts as a regularizer and an accelerator, increasing both generalization and performance scaling. We analyze the effect of batch augmentation on gradient variance and show that it empirically improves convergence for a wide variety of deep neural networks and datasets. Our results show that batch augmentation reduces the number of necessary SGD updates to achieve the same accuracy as the state-of-the-art. Overall, this simple yet effective method enables faster training and better generalization by allowing more computational resources to be used concurrently.
Motivation & Objective
- Motivate the challenges of large-batch SGD and generalization degradation without hyperparameter tuning.
- Propose Batch Augmentation as a simple regularizer and accelerator that uses multiple transformed copies per sample within a batch.
- Analyze how BA affects gradient variance and convergence theoretically and empirically.
- Demonstrate BA's effectiveness on CIFAR-10/100, ImageNet, and language modeling with various architectures and hardware configurations.
Proposed method
- Define BA by creating M augmented instances T_i(x_n) of each input x_n in a batch, forming an effective batch of size M·B.
- Update rule with BA: w_{t+1} = w_t - η / (M·B) ∑_{i=1}^M ∑_{n∈B(k(t))} ∇_w ℓ(w_t, T_i(x_n), y_n).
- Argue BA reduces gradient/Hessian variance compared to standard large-batch training, mitigating convergence to poor-generalization minima.
- Provide theoretical discussion linking λ_max (max eigenvalue of batch-averaged Hessians) to SGD convergence and how BA’s correlated gradients can modify this.
- Empirically measure gradient correlations and variance under BA, demonstrating variance reduction and improved training dynamics.
- Demonstrate distributed BA implementation and scalability on multi-GPU and Cray supercomputer systems.
Experimental results
Research questions
- RQ1Does batch augmentation improve generalization for large-batch SGD without changing the learning rate schedule?
- RQ2How does BA affect gradient variance and the SGD convergence landscape across datasets and models?
- RQ3Can BA maintain or improve training throughput while enabling larger effective batch sizes on multi-GPU or multi-node systems?
- RQ4What are the empirical effects of BA on standard benchmarks like CIFAR-10/100 and ImageNet, and on language modeling with Dropout as intermediate augmentation?
Key findings
- BA yields improved final validation accuracy across multiple models/datasets (e.g., CIFAR-10/100, ImageNet, PTB) compared to baselines.
- BA accelerates convergence per epoch, achieving higher accuracy with fewer iterations (epochs) than baseline training.
- On CIFAR-10 with ResNet44 and Cutout, BA with M up to 40 yielded notable accuracy gains over the baseline (e.g., ResNet44: 93.07% → 93.78% with M=40; Cutout: 93.7% → 95.43% with M=40).
- ImageNet experiments show BA improves final validation accuracy for ResNet50, MobileNet, and AlexNet, with AlexNet gaining over 4 percentage points in absolute validation accuracy.
- BA enables scaling to large effective batch sizes (e.g., 2,560) without LR schedule tuning and with minimal runtime impact.
- BA reduces gradient variance during training, reflected in smaller gradient norms and more stable updates (L2 norm reductions) across experiments.
- In language modeling (PTB) BA with Dropout-based intermediate augmentation provided a modest improvement in perplexity (0.2 points) over baseline.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.