Accelerating Dataset Distillation via Model Augmentation

Lei Zhang, Jie Zhang, Bowen Lei, Subhabrata Mukherjee, Xiang Pan, Bo Zhao, Caiwen Ding, Yao Li, Dongkuan Xu

Abstract

Dataset Distillation (DD) aims to condense large datasets into small synthetic sets that retain high predictive power. However, the computational cost of generating these synthetic sets is often prohibitive. This paper introduces Model Augmentation, a strategy that slashes DD training time by up to 20× while maintaining or improving performance. By leveraging "early-stage" models and parameter perturbations, the proposed method bypasses the need for thousands of fully trained networks, making DD viable for large-scale datasets like ImageNet.

The Challenge of Dataset Distillation

Dataset Distillation (DD) creates a tiny, synthetic version of a massive dataset (e.g., 10 images per class instead of 5,000) that can be used to train models rapidly. While training on the distilled set is fast, the distillation process itself is a major bottleneck.

State-of-the-art methods typically use gradient matching, ensuring that gradients from synthetic data mimic those from real data across numerous neural network initializations. This requires an "inner loop" where a vast pool of models must be constantly trained and sampled, often consuming dozens of GPU hours even for basic benchmarks.

Proposed Method: Model Augmentation

The authors break this bottleneck using a two-pronged "Model Augmentation" approach:

  1. Early-Stage Models: Instead of noisy random initializations or expensive fully trained "expert" models, the authors use models trained for just a few epochs (e.g., 2 epochs). These models have captured essential data structures but still produce the diverse gradients necessary for effective distillation.
  2. Parameter Perturbation: To ensure generalization without training thousands of models, the authors "augment" a small pool of early-stage models ($N=5$ to $10$). By injecting filter-normalized Gaussian noise into the weights, they create a "cloud" of diverse models in the parameter space at virtually no extra cost.
The Model Augmentation pipeline: using early-stage models and parameter perturbation to generate condensed data.

These techniques are integrated into a streamlined algorithm that pre-trains a few models briefly and then performs distillation by sampling and perturbing them.

Key Insights

  • Informativeness of Early Gradients: Models in early training stages are superior teachers. They focus on distinguishing features, providing a clearer signal for synthetic data to capture compared to converged models.
  • Diversity over Quantity: Intelligent perturbation of a few high-quality models is more efficient than sampling thousands of random ones. This acts as a regularizer, preventing overfitting to specific initializations.
  • Orthogonality: Model augmentation is "orthogonal" to data-side augmentations and can be integrated into existing DD frameworks like IDC or DSA for immediate performance gains.

Key Results

The method achieves a superior balance of speed and accuracy across standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet subsets.

Comparison of Test Accuracy vs. GPU Hours for various distillation methods. Our method achieves significant speedups (up to 20x) with higher accuracy.
  • Massive Speedup: On CIFAR-100, the method achieved a 19.9× speedup over the IDC baseline while increasing test accuracy from 45.1% to 52.1% (at 50 images per class).
  • Scalability: ImageNet-10 distillation was completed in under 18 hours on a single GPU, a task previously requiring several days.
  • Generalization: Synthetic datasets created with simple ConvNet-3 architectures transferred effectively to larger models like ResNet-10 and DenseNet-121.

Limitations and Future Work

While highly effective, the method's optimal hyperparameters (like perturbation magnitude $\alpha$) may vary across different domains or architectures. Future research could explore theoretical foundations for why early-stage parameter spaces are so informative and extend these strategies to tasks beyond image classification, such as object detection or NLP.

Summary updated

BibTeX
@inproceedings{zhang2022accelerating,
  author = {Lei Zhang and Jie Zhang and Bowen Lei and Subhabrata Mukherjee and Xiang Pan and Bo Zhao and Caiwen Ding and Yao Li and Dongkuan Xu},
  title = {{Accelerating Dataset Distillation via Model Augmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure