Training Latent Diffusion Models with Interacting Particle Algorithms

Tim Y. J. Wang, Juan Kuntz, O. Deniz Akyildiz

TL;DR

This paper introduces IPLD, a novel particle-based algorithm for training Latent Diffusion Models (LDMs) end-to-end. By reformulating LDM training as minimizing a free energy functional and approximating the resulting gradient flow with interacting particles, IPLD offers a theoretically grounded and scalable approach that outperforms existing particle-based and variational inference methods on benchmark datasets.

What Problem Does This Paper Address?

Latent Diffusion Models (LDMs) have revolutionized generative modeling, but their training and inference can be computationally expensive due to operating in high-dimensional ambient spaces. While mapping to a lower-dimensional latent space with Variational Autoencoders (VAEs) has been effective, training these combined models often involves complex, multi-stage processes. This paper addresses the challenge of developing a more direct, end-to-end training method for LDMs that is both theoretically sound and computationally efficient, particularly in modern distributed computing environments.

Methods

The core innovation is the development of the Interacting Particle Latent Diffusion (IPLD) algorithm. The authors achieve this by:

  • Reformulating LDM training: They frame the problem as minimizing a free energy functional, a common approach in statistical physics and machine learning.
  • Deriving a gradient flow: They identify a continuous-time gradient flow that minimizes this free energy.
  • Approximating with interacting particles: The key novelty is approximating this gradient flow using a system of interacting particles. This particle-based approach avoids the need for explicit encoder-decoder training in the traditional VAE-LDM setup.
  • Theoretical Guarantees: The paper provides theoretical error bounds for the proposed algorithm, ensuring its convergence and stability.
  • Practical Improvements: They introduce subsampling, distributed training strategies, and reweighting/annealing techniques to make the algorithm practical and scalable for modern hardware.
  • Adaptive Langevin Dynamics: For particle updates, they employ an adaptive Langevin dynamics approach, similar to Adam, to improve stability and convergence.

Datasets

The paper evaluates IPLD on:

  • Synthetic Datasets:
    • Gaussian Mixture Model (GMM)
    • Concentric Circles
  • Image Datasets:
    • CIFAR-10
    • SVHN
    • CelebA64

Key Insights and Ideas

  • Gradient Flow as a Unifying Framework: The paper elegantly connects LDM training to gradient flows and interacting particle systems, drawing parallels to optimal transport theory. This provides a new theoretical lens for understanding and developing LDM training algorithms.
  • Particle-Based Training for LDMs: Moving beyond traditional VAE-based approaches, IPLD demonstrates the viability of using interacting particles for end-to-end LDM training, offering a simpler and potentially more scalable alternative.
  • Theoretical Soundness for Practical Algorithms: The authors provide rigorous theoretical guarantees (error bounds, convergence) for their particle-based algorithm, bridging the gap between theoretical desiderata and practical implementation.
  • Scalability through Particle Independence: The particle-based nature of IPLD allows for straightforward parallelization and distributed training, making it well-suited for modern computational infrastructure.

Key Results

  • Improved Performance: IPLD outperforms previous particle-based methods and variational inference analogues (specifically, DIFFUSIONVAE) on synthetic and image datasets in terms of FID scores.
  • Scalability: The performance of IPLD improves with an increasing number of particles, and the algorithm demonstrates good scalability in terms of memory and walltime on distributed systems. For instance, on CIFAR-10, IPLD with 10 particles achieved an FID of 46.95, outperforming DIFFUSIONVAE's 67.95.
  • End-to-End Training Benefits: Ablation studies suggest that end-to-end training with IPLD does not suffer from the potential "hacking" of the denoising objective that might occur in two-stage training methods.

Limitations and Future Work

  • Computational Budget: The authors acknowledge that their experiments were conducted with a limited computational budget, and achieving state-of-the-art results on image datasets might require larger models and more extensive training.
  • Theoretical Analysis Scope: The theoretical analysis is primarily for a simplified version of the algorithm. Extending this analysis to more practical, optimized versions remains an open area.
  • Future Directions: The authors suggest exploring more sophisticated subsampling schemes, variance reduction techniques, and adapting techniques from adaptive optimizers and momentum-enriched interacting particle systems to further improve IPLD and develop new particle-based LDM training methods. They also highlight the potential for extending the analysis to more practical versions of the algorithm.

Summary updated

BibTeX
@inproceedings{wang2026training,
  author = {Tim Y. J. Wang and Juan Kuntz and O. Deniz Akyildiz},
  title = {{Training Latent Diffusion Models with Interacting Particle Algorithms}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=jtigBUpHeq},
}
Figure