Data-to-Model Distillation: Data-Efficient Learning Framework

Ahmad Sajedi, Samir Khaki, Lucy Z. Liu, Ehsan Amjadian, Yuri A. Lawryshyn, Konstantinos N. Plataniotis

Abstract: Dataset distillation aims to distill the knowledge of a large-scale real dataset into small yet informative synthetic data such that a model trained on it performs as well as a model trained on the full dataset. Despite recent progress, existing dataset distillation methods often struggle with computational efficiency, scalability to complex high-resolution datasets, and generalizability to deep architectures. These approaches typically require retraining when the distillation ratio changes, as knowledge is embedded in raw pixels. In this paper, we propose a novel framework called Data-to-Model Distillation (D2M) to distill the real dataset’s knowledge into the learnable parameters of a pre-trained generative model by aligning rich representations extracted from real and generated images. The learned generative model can then produce informative training images for different distillation ratios and deep architectures. Extensive experiments on 15 datasets of varying resolutions show D2M’s superior performance, re-distillation efficiency, and cross-architecture generalizability. Our method effectively scales up to high-resolution 128x128 ImageNet-1K. Furthermore, we verify D2M’s practical benefits for downstream applications in neural architecture search.

1. Introduction

Training state-of-the-art deep learning models usually requires massive datasets and significant computational budgets. Dataset Distillation (DD) emerged to address this by condensing large datasets into small sets of informative synthetic images. However, traditional DD methods optimize raw pixels, which makes them computationally expensive, difficult to scale to high resolutions, and rigid regarding distillation ratios. If a user decides to change the number of synthetic images per class (IPC), they must typically restart the entire distillation process.

Conceptual comparison of distillation paradigms: (a) Model-to-Model, (b) Data-to-Data, and (c) the proposed Data-to-Model distillation framework.

2. Methodology: The D2M Framework

D2M shifts the focus from pixel optimization to the parameter space of generative models. Instead of creating a static set of images, it fine-tunes a pre-trained generative model (e.g., BigGAN) to produce highly informative training samples. This approach treats the generator as a knowledge container, where storage costs remain constant regardless of the desired number of synthetic images.

The detailed D2M framework architecture, illustrating the Embedding Matching (EM) and Prediction Matching (PM) modules used to align real and synthetic data distributions.

The framework employs two primary modules to align the generator with the real dataset:

  • Embedding Matching Module (EM): This aligns channel-wise attention maps of real and generated images across multiple network layers. By matching these maps, the generator learns to produce images that trigger the same discriminative features as real data.
  • Prediction Matching Module (PM): Utilizing Knowledge Distillation principles, this module uses a KL-divergence loss to ensure the "soft labels" (probability distributions) of generated images match those of real images. This regulates diversity and provides richer supervision than standard hard labels.

3. Experimental Results and Discussion

The authors evaluated D2M on a suite of 15 datasets, ranging from low-resolution (CIFAR-10/100) to high-resolution (128x128 ImageNet-1K and 256x256 medical imaging like DermaMNIST).

3.1 Performance and Scalability

D2M achieved state-of-the-art performance, reaching 74.4% accuracy on CIFAR-10 (IPC 50). Crucially, it successfully distilled ImageNet-1K at 128x128 resolution, a feat many pixel-based methods struggle to achieve due to memory constraints. The images generated by D2M are less likely to overfit to the specific texture of the distillation network, making them highly effective for training diverse architectures like Vision Transformers (ViTs).

3.2 Efficiency and Utility

Because D2M produces a generative model, the "re-distillation" cost for changing the IPC ratio is effectively zero; one simply samples more or fewer noises from the latent space. For CIFAR-10, moving from IPC 1 to IPC 50 took 0 additional GPU hours with D2M, compared to over 40 hours for previous state-of-the-art methods like MTT. Furthermore, in Neural Architecture Search (NAS), D2M-generated images showed a high Spearman’s rank correlation (0.80) with the full dataset, proving their utility as efficient proxies for architecture evaluation.

4. Conclusion

Data-to-Model Distillation represents a significant advancement in data-efficient learning. By storing dataset knowledge in model weights rather than pixels, D2M offers unprecedented scalability and efficiency. While the quality of distillation is tied to the pre-trained generative prior, the framework's ability to handle high-resolution data and provide instant re-distillation makes it a robust tool for modern deep learning pipelines. Future work will explore extending this framework to non-classification tasks such as object detection and segmentation.

Summary updated

BibTeX
@misc{sajedi2024data,
  author = {Ahmad Sajedi and Samir Khaki and Lucy Z. Liu and Ehsan Amjadian and Yuri A. Lawryshyn and Konstantinos N. Plataniotis},
  title = {{Data-to-Model Distillation: Data-Efficient Learning Framework}},
  year = {2024},
  eprint = {2411.12841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.12841},
}
Figure