Dataset distillation (DD) aims to shrink massive datasets into a tiny handful of synthetic images—sometimes just one or ten images per class—that still allow a neural network to reach high accuracy when trained on them.
Recently, researchers have started using generative priors, like pre-trained GANs, to help create these synthetic images. While Diffusion Models (DMs) currently dominate image generation, they have been notoriously difficult to use for distillation. The primary roadblock is the vanishing gradient problem. To optimize a synthetic image, one must backpropagate through the entire denoising chain, which often consists of dozens of steps. Mathematically, this involves a long chain of Jacobian products that causes the gradient signal to effectively disappear before it reaches the parameters being updated. Consequently, previous attempts either avoided optimization entirely or used DMs merely as fixed feature extractors.
Latent Dataset Distillation with Diffusion Models (LD3M)
To solve this, researchers introduce Latent Dataset Distillation with Diffusion Models (LD3M), the first method to successfully use DMs for end-to-end dataset distillation. The core innovation is a modification to the reverse diffusion process that creates a "gradient highway."
In a standard diffusion model, each step predicts the previous state based on the current state. LD3M modifies this by adding a linearly decaying skip connection from the initial noisy state directly into every single step of the denoising process. Crucially, the weight of this connection decays linearly as the process moves toward the final image. This ensures that a strong gradient signal from the loss function can bypass the long denoising chain and directly reach the learnable latent codes.
Unlike previous methods that might only optimize class embeddings, LD3M optimizes both the initial latent codes and the class embeddings through a pre-trained, frozen Latent Diffusion Model (LDM). Furthermore, LD3M uses the LDM’s existing encoder to initialize synthetic latents from real images, bypassing the computationally expensive "inversion" process required by GAN-based methods.
Utility Over Photorealism
A fascinating insight from LD3M is that the "best" images for training a model aren't necessarily the most realistic ones.
As seen in the generated samples, LD3M produces images that look somewhat abstract or high-contrast compared to previous GAN-based methods like GLaD. The authors intentionally "break" the sampler's fidelity to the original data distribution by adding the skip connection. While this makes the images less "photo-perfect," it highlights specific discriminative features—like the contour of a bird's beak or the texture of a fruit—that help downstream models generalize better. It is exactly this trade-off that allows the gradient-based optimization to succeed.
Key Results and Performance
Evaluated across 10 diverse ImageNet subsets (e.g., ImNette, ImWoof, Birds, Fruits) and CIFAR-10, LD3M sets a new state-of-the-art:
- Accuracy Boost: On ImageNet subsets at $128 \times 128$ resolution, LD3M improved downstream accuracy by up to 4.8 percentage points at 1 Image Per Class (IPC) and 4.2 points at 10 IPC compared to GLaD.
- Resolution Scaling: LD3M maintains its lead at $256 \times 256$ resolution, outperforming pixel-space distillation by roughly 7 percentage points.
- Efficiency: Despite the complexity of diffusion, LD3M is faster than GAN-based competitors. It completed a distillation task in 574 minutes compared to GLaD's 693 minutes, while using slightly less VRAM.
- Cross-Architecture Generalization: Synthetic datasets created by LD3M using one architecture (like a ConvNet) transferred better to unseen architectures (like Vision Transformers or ResNets).
Limitations and Future Work
While the linear skip connection works well for the 10–40 steps used in the paper, the authors acknowledge it might still struggle with vanishing gradients if hundreds of diffusion steps were required. Additionally, current experiments focus on distilling classes independently; incorporating inter-class information (e.g., contrastive losses) could further improve the discriminative quality of the synthetic data. Finally, scaling these techniques to the full ImageNet-1K dataset remains a significant computational challenge for future work.
Summary updated