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

Data augmentation instead of explicit regularization

Alex Hernández-García, Peter KönigarXiv 2018

Abstract

Contrary to most machine learning models, modern deep artificial neural networks typically include multiple components that contribute to regularization. Despite the fact that some (explicit) regularization techniques, such as weight decay and dropout, require costly fine-tuning of sensitive hyperparameters, the interplay between them and other elements that provide implicit regularization is not well understood yet. Shedding light upon these interactions is key to efficiently using computational resources and may contribute to solving the puzzle of generalization in deep learning. Here, we first provide formal definitions of explicit and implicit regularization that help understand essential differences between techniques. Second, we contrast data augmentation with weight decay and dropout. Our results show that visual object categorization models trained with data augmentation alone achieve the same performance or higher than models trained also with weight decay and dropout, as is common practice. We conclude that the contribution on generalization of weight decay and dropout is not only superfluous when sufficient implicit regularization is provided, but also such techniques can dramatically deteriorate the performance if the hyperparameters are not carefully tuned for the architecture and data set. In contrast, data augmentation systematically provides large generalization gains and does not require hyperparameter re-tuning. In view of our results, we suggest to optimize neural networks without weight decay and dropout to save computational resources, hence carbon emissions, and focus more on data augmentation and other inductive biases to improve performance and robustness.

Introduction

Deep neural networks are notoriously over-parameterized, often possessing orders of magnitude more parameters than training examples. To prevent these models from simply memorizing training data, regularization is essential. This study distinguishes between two primary forms:

  1. Explicit Regularization: Techniques like weight decay ($L_2$ penalties) and dropout that reduce the representational capacity of the model.
  2. Implicit Regularization: Elements such as Stochastic Gradient Descent (SGD) or Data Augmentation (DA) that improve generalization without artificially limiting the model's theoretical capacity.

The central problem is that explicit techniques are "brittle," requiring precise hyperparameter tuning specific to a single architecture and dataset. If the model depth changes or data volume is reduced, these tuned values can become detrimental.

Methods

The researchers conducted a systematic empirical study involving over 300 models to compare these approaches across three benchmark datasets: CIFAR-10, CIFAR-100, and ImageNet (resized to 150x200 pixels).

Overview of the experimental design across datasets, architectures, and regularization techniques.

The experimental framework tested three architectures—All-CNN, Wide ResNet (WRN), and DenseNet—under various conditions:

  • Augmentation Levels: None (no transformations), Light (flips and translations), and Heavier (affine transformations, contrast, and brightness adjustments).
  • Stress Tests: Adaptability was tested by reducing training data (to 50%, 10%, and 1%) and altering model depth without re-tuning hyperparameters.

Key Results

The results consistently showed that data augmentation alone matches or outperforms the standard combination of DA and explicit regularization.

Accuracy improvement relative to baseline for various architectures and datasets across different augmentation and regularization settings.
  • Superior Performance: Models trained with data augmentation alone achieved higher accuracy in the majority of cases. On average, adding DA to a baseline model improved accuracy by 8.57%, whereas adding both DA and explicit regularization yielded a lower average improvement of 7.90%.
  • Robustness to Data Scarcity: When training data was reduced to 10%, models relying on explicit regularization experienced significant performance collapses. In contrast, DA-only models adapted more gracefully.
  • Architecture Flexibility: Changing the depth of an All-CNN model by just three layers caused a dramatic performance drop in explicitly regularized models, while DA-only models showed only slight variations.
  • Environmental Impact: By eliminating the need for exhaustive hyperparameter grid searches for weight decay and dropout, the DA-only approach is significantly more "green," reducing the carbon footprint of the training process.

Discussion and Conclusion

The study suggests that the generalization benefits of weight decay and dropout are often superfluous when sufficient implicit regularization via data augmentation is provided. Furthermore, these explicit techniques can be harmful if not meticulously tuned.

While this study focuses on computer vision, the theoretical findings regarding Rademacher complexity suggest broader applicability. Future work should explore defining effective augmentation techniques for other domains like Natural Language Processing (NLP), where preserving semantic meaning during transformation is more complex. In conclusion, optimizing neural networks without weight decay and dropout can save computational resources and carbon emissions while focusing on data augmentation to improve both performance and robustness.

Summary updated

BibTeX
@misc{hernandezgarcia2018data,
  author = {Alex Hernández-García and Peter König},
  title = {{Data augmentation instead of explicit regularization}},
  year = {2018},
  eprint = {1806.03852},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.03852},
}
Figure