Skip to main content
QUICK REVIEW

[Paper Review] DiM: Distilling Dataset into Generative Model

Kai Wang, Jianyang Gu|arXiv (Cornell University)|Mar 8, 2023
Generative Adversarial Networks and Image SynthesisComputer Science6 citations
TL;DR

This paper proposes DiM, a novel dataset distillation framework that distills knowledge from large training datasets into a conditional generative model rather than synthetic images. By minimizing logits differences between real and generated images using a model pool, DiM enables on-the-fly sample generation, achieving state-of-the-art performance across architectures and distillation ratios with 13×–160× lower redeployment cost than prior methods.

ABSTRACT

Dataset distillation reduces the network training cost by synthesizing small and informative datasets from large-scale ones. Despite the success of the recent dataset distillation algorithms, three drawbacks still limit their wider application: i). the synthetic images perform poorly on large architectures; ii). they need to be re-optimized when the distillation ratio changes; iii). the limited diversity restricts the performance when the distillation ratio is large. In this paper, we propose a novel distillation scheme to extbf{D}istill information of large train sets extbf{i}nto generative extbf{M}odels, named DiM. Specifically, DiM learns to use a generative model to store the information of the target dataset. During the distillation phase, we minimize the differences in logits predicted by a models pool between real and generated images. At the deployment stage, the generative model synthesizes various training samples from random noises on the fly. Due to the simple yet effective designs, the trained DiM can be directly applied to different distillation ratios and large architectures without extra cost. We validate the proposed DiM across 4 datasets and achieve state-of-the-art results on all of them. To the best of our knowledge, we are the first to achieve higher accuracy on complex architectures than simple ones, such as 75.1\% with ResNet-18 and 72.6\% with ConvNet-3 on ten images per class of CIFAR-10. Besides, DiM outperforms previous methods with 10\% $\sim$ 22\% when images per class are 1 and 10 on the SVHN dataset.

Motivation & Objective

  • Address the poor scalability of existing dataset distillation methods to large architectures like ResNet and DenseNet.
  • Overcome the inefficiency of retraining for each new distillation ratio (e.g., images per class) in prior approaches.
  • Improve diversity and performance of distilled data, especially at high distillation ratios, by leveraging generative models.
  • Enable a single, reusable model for deployment across multiple architectures and distillation ratios without retraining.
  • Enhance cross-architecture generalization by storing knowledge in a generative model rather than fixed synthetic images.

Proposed method

  • Train a conditional generative model to synthesize training images from random noise, using a model pool to provide diverse supervisions.
  • Minimize the L2 difference between prediction logits of real images and generated images using a randomly sampled model from the pool in each training epoch.
  • Use a fixed generative model for all distillation ratios and architectures, eliminating the need for retraining when changing IPC or model architecture.
  • Define Image Numbers of Per Class (INPC) as the evaluation metric to ensure fair comparison with DiI methods.
  • Leverage a diverse model pool (e.g., C-3, R-10, R-18, etc.) to provide multi-level supervision during distillation.
  • Generate training samples on-the-fly during deployment, with negligible computational overhead (2–80ms per batch).

Experimental results

Research questions

  • RQ1Can a generative model effectively store and reproduce discriminative knowledge from large datasets more efficiently than synthetic images?
  • RQ2Does distilling knowledge into a model (DiM) improve performance on large architectures compared to distilling into images (DiI)?
  • RQ3Can DiM be reused across different distillation ratios and model architectures without retraining?
  • RQ4How does DiM’s performance compare to GAN-based data synthesis in downstream classification tasks?
  • RQ5What is the computational cost of on-the-fly image generation in DiM compared to standard training?

Key findings

  • DiM achieves 75.1% accuracy on CIFAR-10 with 10 images per class using ResNet-18, outperforming ConvNet-3 (72.6%) under the same setting, demonstrating superior scalability to larger architectures.
  • On SVHN, DiM improves accuracy by 10%–22% compared to prior methods at 1 and 10 images per class, respectively.
  • DiM reduces redeployment GPU hours by 13× to 160× compared to state-of-the-art DiI methods like MTT and IDC.
  • With INPC = 50, DiM achieves 72.6% and 74.1% accuracy on CIFAR-10 using ConvNet-3 and ResNet-18, respectively, surpassing GAN-based baselines by up to 5%.
  • The computational cost of image generation in DiM is minimal—only 2–80ms per batch—accounting for 2% to 20% of total training time, making it negligible in practice.
  • DiM shows strong cross-architecture generalization: performance increases with higher INPC and scales effectively to complex models like DenseNet-121 and ResNet-50.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.