NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Latent Dataset Distillation with Diffusion Models

Brian B. Moser, Federico Raue, Sebastian Palacio, Stanislav Frolov, Andreas Dengel · DOI

TL;DR

This paper introduces Latent Dataset Distillation with Diffusion Models (LD3M), a novel method that enables end-to-end optimization of synthetic datasets using powerful diffusion models. By incorporating a unique linearly decaying skip connection, LD3M effectively overcomes the vanishing gradient problem inherent in diffusion models, leading to significant improvements in downstream task accuracy compared to existing methods.

What Problem Does This Paper Address?

Dataset distillation aims to create small, representative synthetic datasets that can train downstream models as effectively as large, real datasets. While diffusion models have become state-of-the-art for image generation, they have been largely avoided for dataset distillation. The core challenge is the "vanishing gradient problem": backpropagating through the many steps of a diffusion model's denoising process results in gradients that become vanishingly small, making it impossible to effectively optimize synthetic data. Existing methods either bypass this issue by sampling from pre-trained models or use older generative models like GANs, missing out on the superior generative capabilities of diffusion models.

Methods

The authors introduce Latent Dataset Distillation with Diffusion Models (LD3M). The key innovation is a modified reverse diffusion process that injects a linearly decaying skip connection from the initial noisy latent state ($z_T$) into each denoising step ($z_t \rightarrow z_{t-1}$). This connection acts as a shortcut, preserving the gradient signal and allowing it to flow back to the initial latent codes ($Z$) and conditioning codes ($c$) that are being optimized. This enables end-to-end gradient-based optimization of these latent representations, a feat previously impossible with standard diffusion models for distillation. The method leverages pre-trained Latent Diffusion Models (LDMs) without fine-tuning their weights. For initialization, LD3M efficiently encodes real images using the LDM's pre-trained encoder, avoiding the complex GAN inversion required by prior methods. Gradient checkpointing is used for memory efficiency.

Datasets

The paper evaluates LD3M on:

  • CIFAR-10: A standard benchmark for image classification.
  • ImageNet subsets: Specifically, 10 diverse 10-class subsets (ImNet-A to E, ImNette, ImWoof, Birds, Fruits, Cats) at resolutions of 128x128 and 256x256. These subsets are used to evaluate cross-architecture generalization.

Key Insights and Ideas

  • Vanishing gradients are the primary hurdle for diffusion model distillation: The paper clearly demonstrates how the long denoising chain in diffusion models leads to exponentially decaying gradients, making end-to-end optimization infeasible.
  • Skip connections are crucial for gradient flow: The core idea of injecting a residual connection from the initial noisy state is a simple yet effective way to maintain a strong gradient signal throughout the diffusion process.
  • Distillation has different goals than standard generation: The modified diffusion process, while deviating from perfect distribution matching, is justified because the goal is to create informative samples for downstream tasks, not necessarily photorealistic ones. This trade-off is beneficial for distillation.
  • LDM's autoencoder is a boon for initialization: Leveraging the pre-trained encoder of an LDM simplifies latent code initialization significantly compared to GAN inversion.

Key Results

  • State-of-the-art performance: LD3M consistently outperforms the leading GAN-prior method, GLaD, on ImageNet subsets.
  • Significant accuracy improvements: LD3M achieves up to 4.8 percentage points improvement for 1 IPC and 4.2 percentage points for 10 IPC on ImageNet at 128x128 resolution.
  • Robust cross-architecture generalization: The distilled datasets from LD3M lead to better performance on unseen downstream architectures.
  • Efficient initialization: LD3M's initialization strategy is simpler and more efficient than GAN inversion.
  • Competitive distillation times: LD3M offers a good trade-off between accuracy and distillation time, with optimal performance around 10-40 diffusion steps.

Limitations and Future Work

  • Linear addition might not be sufficient for very long diffusion chains: The authors acknowledge that the linear addition in the skip connection might not fully combat vanishing gradients for extremely large numbers of diffusion steps. They suggest exploring non-linear residual formulations.
  • Further exploration of residual formulations: Investigating alternative ways to integrate the initial state $z_T$ into the diffusion process could yield further improvements.
  • Integration with fast samplers: Combining LD3M with faster diffusion samplers (e.g., DPM-Solver) is a promising direction.
  • Scaling to larger benchmarks: Evaluating LD3M on larger datasets like the full ImageNet-1K is a natural next step.
  • Inter-class relationships: Future work could explore incorporating inter-class information into the distillation process to further enhance discriminative quality.

Summary updated

BibTeX
@inproceedings{moser2025latent,
  author = {Brian B. Moser and Federico Raue and Sebastian Palacio and Stanislav Frolov and Andreas Dengel},
  title = {{Latent Dataset Distillation with Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=c6O18DyBBx},
}
Figure