Abstract
Dataset distillation (DD) aims to compress large-scale datasets into a small set of synthetic samples that retain the essential information for training deep learning models. Traditional methods, often based on complex gradient or trajectory matching, suffer from poor scalability and produce uninterpretable, noise-like images. This paper introduces a novel approach using class-conditional latent diffusion models, specifically the UViT architecture, to generate high-quality, human-readable synthetic datasets. By reframing distillation as a generative modeling task, the proposed method achieves state-of-the-art performance, securing first place in the ECCV 2024 Dataset Distillation Challenge. Our approach demonstrates that realistic synthetic data can effectively train downstream classifiers while significantly reducing the computational overhead associated with increasing the number of images per class (IPC).
Introduction
As deep learning models continue to scale, the datasets required to train them have reached massive proportions, leading to significant storage and computational bottlenecks. Dataset Distillation (DD) has emerged as a promising solution to this problem by creating a highly compressed version of a dataset. However, existing DD methodologies face two primary hurdles. First, the resulting synthetic images are often uninterpretable "textures" that lack semantic meaning to human observers. Second, traditional optimization-based methods scale poorly; as the number of images per class (IPC) increases, the computational cost of distillation often grows exponentially.
To address these challenges, we propose a generative framework that shifts the focus from iterative matching algorithms to learning the underlying data distribution. By utilizing a class-conditional latent diffusion model, we can generate synthetic datasets that are both visually recognizable and computationally efficient to produce.
Methodology
The UViT Architecture
The core of our approach is the UViT architecture, which integrates the strengths of Vision Transformers (ViT) and U-Nets. By using a ViT backbone, the model effectively captures long-range dependencies within the data, while the U-Net structure ensures the preservation of spatial integrity during image synthesis. This combination allows for the generation of high-fidelity images that accurately represent the target classes.
Generative Distillation Strategy
Unlike traditional DD methods that iteratively match synthetic data to a real model's gradients or training trajectories, our strategy involves training the UViT model once on the full source dataset. Once the generative model is trained, it serves as a fixed distribution from which synthetic samples can be drawn.
We frame this process as a risk minimization problem. By learning the distribution $\mathcal{D}$ of the real data, the diffusion model generates a synthetic distribution $\hat{\mathcal{D}}$. A classifier trained on $\hat{\mathcal{D}}$ is then expected to generalize effectively to unseen real data sampled from $\mathcal{D}$.
Efficiency and Scalability
A major advantage of this "train once, sample many" paradigm is its linear scalability. In traditional distillation, changing the target IPC often requires re-running the entire optimization loop. With our generative approach, increasing the IPC merely requires additional sampling passes from the pre-trained UViT, which can produce tens of images per second. This makes it feasible to generate larger synthetic sets (e.g., IPC 50 or 100) without the exponential time penalties seen in prior work.
Experimental Results
Benchmarks and Performance
The framework was evaluated on two standard computer vision benchmarks: CIFAR100 (60,000 images at 32x32 resolution) and TinyImageNet (120,000 images at 64x64 resolution). Our team ("zheli") utilized this method to compete in Track 2 of the First Dataset Distillation Challenge at ECCV 2024, which focused on data-efficient generation.
Our approach achieved 1st Place in the challenge, outperforming competitors by a significant margin. Key performance metrics included:
- CIFAR100 Accuracy: 37.56%
- TinyImageNet Accuracy: 23.53%
While these accuracies are lower than those achieved by training on the full original datasets, they represent the state-of-the-art for models trained on such highly compressed synthetic representations.
Computational Efficiency
The training phase for the UViT models required approximately 27 hours for CIFAR100 and 54 hours for TinyImageNet using 4 A100 GPUs. However, the subsequent generation of the distilled dataset is remarkably fast, taking less than 10 minutes to produce a full synthetic set. This efficiency allows for rapid experimentation and deployment once the initial model training is complete.
Discussion and Insights
Interpretability
One of the most striking results of this generative approach is the interpretability of the distilled data. Unlike the abstract noise produced by gradient matching, the images generated by UViT are clearly recognizable as the objects they represent (e.g., apples, vehicles, animals). This transparency is valuable for debugging, data auditing, and potential applications in data anonymization where human verification is required.
FID vs. Downstream Accuracy
Our findings suggest a nuanced relationship between image quality and distillation effectiveness. While the Fréchet Inception Distance (FID) is a standard metric for generative quality, it does not always perfectly correlate with the accuracy of a classifier trained on those images. This indicates that future research should focus on developing distillation-specific evaluation metrics that better capture the "information density" of synthetic samples.
Conclusion and Future Work
This research demonstrates that generative modeling via latent diffusion is a superior alternative to traditional optimization-based dataset distillation, particularly for large-scale applications. By providing a scalable, efficient, and interpretable framework, we have set a new benchmark in the field.
Future work will focus on scaling this approach to high-resolution datasets, such as the full ImageNet, and addressing the initial computational cost of training the diffusion models. Additionally, exploring the gap between visual fidelity and classification performance remains a critical area for optimizing synthetic data generation.
Summary updated