Revisiting Data Augmentation in Model Compression: An Empirical and Comprehensive Study

Muzhou Yu, Linfeng Zhang, Kaisheng Ma · DOI

Introduction

The success of deep learning is largely attributed to the synergy between high-capacity models and massive datasets. To improve generalization, researchers frequently employ Data Augmentation (DA), which artificially expands training sets through transformations like rotation, cropping, and color jittering. However, as the demand for edge-device deployment grows, model compression techniques—such as pruning and knowledge distillation—have become essential.

Traditionally, these compression pipelines treat data augmentation as a static preprocessing step, applying the same transformations regardless of the model's size or architecture. This paper challenges that convention, revealing a critical, intertwined relationship between a model's representational capacity and the optimal intensity of data augmentation. The authors demonstrate that while large models thrive on "strong" augmentation, small or compressed models are often overwhelmed by it, necessitating a more nuanced approach to training.

The Capacity-Augmentation Correlation

The core thesis of this study is that data augmentation acts as a form of regularization. For a high-capacity model (e.g., a full-sized ResNet), strong augmentation prevents overfitting and forces the network to learn robust, invariant features. However, for a low-capacity model (e.g., a heavily pruned network or a lightweight MobileNet), extreme transformations can introduce too much noise.

Using RandAugment—a framework where a single magnitude parameter ($M$) controls transformation intensity—the researchers found a direct correlation between a model's pruning ratio and its optimal $M$. For instance, on the CIFAR-100 dataset, a standard ResNet20 benefits from a high magnitude ($M=14$). Yet, as that same model is pruned, the optimal $M$ drops significantly. Applying $M=14$ to a heavily compressed version of the model actually results in a 2% accuracy decrease compared to a more moderate augmentation strategy.

Strategies for Optimized Compression

To address this capacity gap, the authors propose three primary methodologies designed to help small models benefit from augmentation without being overwhelmed by it:

1. Magnitude Decay in Iterative Pruning

In iterative pruning, a model is gradually shrunk over several cycles. The authors propose Magnitude Decay, where the strength of DA is reduced in tandem with the model's parameter count. By "dialing back" the intensity as the model loses capacity, the training process remains stable, leading to significantly higher final accuracy compared to using a fixed baseline magnitude.

2. Indirect Learning via Additional Parameters

While small models struggle to learn directly from strong DA, the study reveals they can inherit the benefits. The researchers tested two approaches:

  • Knowledge Inheritance: Training a large model with strong DA and then pruning it. The resulting small model retains better performance than one trained from scratch with weak DA.
  • Temporary Auxiliary Layers: Adding "extra layers" during the training phase to temporarily increase model capacity. These layers allow the network to process strong DA effectively; once training is complete, the auxiliary layers are discarded, leaving a high-performing small model for inference.

3. Teacher-Filtered Augmentation

In Knowledge Distillation (KD), a large "teacher" model guides a smaller "student." The authors suggest using the teacher as a "difficulty meter." Instead of applying random augmentations, the system selects samples that are "hard" enough to be informative but not so distorted that the student cannot learn. The most effective samples are those where the teacher remains confident in its prediction, but the student's current state struggles.

Experimental Results

The study validated these insights across standard benchmarks, including CIFAR-10, CIFAR-100, and ImageNet, using architectures like ResNet20, MobileNetV2, and ShuffleNetV2.

  • Pruning: Magnitude Decay consistently outperformed static DA policies across all pruning ratios.
  • Auxiliary Parameters: Adding temporary layers to a ResNet20 yielded an accuracy boost of nearly 1% on CIFAR-100, even after those layers were removed for inference.
  • Distillation: The teacher-based filtering method outperformed standard RandAugment baselines in the majority of experiments, proving that "smarter" selection is superior to "random" intensity.

Conclusion and Future Directions

This research highlights that data augmentation is not a "one-size-fits-all" tool. In the context of model compression, the intensity of DA must be carefully calibrated to the model's capacity. While this study focuses on image classification, the implications for other domains—such as object detection and natural language processing—are significant.

Future work may involve developing fully automated, per-sample adaptive DA policies that adjust in real-time based on the model's shrinking capacity during the compression process. For now, the takeaway for practitioners is clear: when the model gets smaller, the augmentation must get smarter.

Summary updated

BibTeX
@inproceedings{yu2023revisiting,
  author = {Muzhou Yu and Linfeng Zhang and Kaisheng Ma},
  title = {{Revisiting Data Augmentation in Model Compression: An Empirical and Comprehensive Study}},
  booktitle = {IJCNN},
  year = {2023},
  doi = {10.1109/ijcnn54540.2023.10191736},
}
Figure