Neural Diffusion Models

Grigory Bartosh, Dmitry P. Vetrov, Christian A. Naesseth · Submission to ICLR 2024 · Rejected

TL;DR

Conventional diffusion models rely on a fixed, linear corruption process—gradually drowning data in Gaussian noise. Neural Diffusion Models (NDMs) generalize this framework by learning time-dependent, non-linear data transformations alongside the reverse generative process. By learning to simplify the data distribution before adding noise, NDMs preserve simulation-free training, support continuous-time SDE/ODE solvers, and improve negative log-likelihood (NLL) across standard image generation benchmarks.

What Problem Does This Paper Address?

Standard diffusion models (like DDPM and DDIM) construct a forward process that incrementally scales data points and injects Gaussian noise until the data resembles a standard normal distribution. While mathematically convenient, this corruption process is rigidly pre-specified and data-agnostic.

Because the forward path is fixed, the reverse (generative) process must shoulder the entire burden of untangling complex data distributions from noise. This rigidity often leads to a wide gap between true negative log-likelihood and variational approximations. Prior attempts to make forward corruptions flexible (such as blurring or diffusion bridges) either restrict transformations to linear operations or lose the simulation-free training property—forcing models to simulate the entire trajectory step-by-step during optimization.

Methods

NDMs generalize diffusion by parameterizing marginal forward distributions with a learnable, time-dependent non-linear neural network transformation, $F_\phi(x, t)$:

$$q_\phi(z_t | x) = \mathcal{N}\left(z_t;\, \alpha_t F_\phi(x, t),\, \sigma_t^2 I\right)$$

  • Simulation-Free Variational Training: Adapting non-Markovian forward posteriors similar to DDIM, NDMs maintain tractable, Gaussian conditional posteriors. This preserves closed-form Kullback–Leibler (KL) divergences, allowing the network to train by sampling individual time steps rather than simulating full trajectories. Unlike standard diffusion, the prior and reconstruction terms depend on $\phi$ and are optimized alongside the diffusion terms.
  • Continuous-Time Formulation: The authors derive the infinite-step limit ($T \to \infty$) for NDMs, defining continuous-time SDE and probability flow ODE formulations. When evaluating derivatives of $F_\phi(\cdot, t)$ with respect to time $t$, they utilize Jacobian-Vector Products (JVPs) for efficient computation.
  • Unification of Existing Models: The framework naturally subsumes standard DDPM/DDIM ($F_\phi(x, t) = x$), soft/blurring diffusion ($F_\phi(x, t) = C_t x$), flow matching, and latent score-based models (LSGM) as specific instances.

Datasets

The authors evaluated NDMs on:

  • Synthetic 2D data: 2D Checkerboard distribution.
  • Standard image benchmarks: MNIST, CIFAR-10, downsampled ImageNet (32×32 and 64×64), and CelebA-HQ (256×256, evaluated within a latent VAE setup).

No new benchmarks were introduced.

Key Insights and Ideas

  • Learning to "Untangle" Data: Rather than merely fading into noise, the forward transform $F_\phi$ learns representations that simplify the data manifold. For instance, on the 2D checkerboard, $F_\phi$ learns to un-weave interleaved clusters; on MNIST, it highlights structural edges and thickens strokes; on CIFAR-10, it boosts contrast.
  • Sharper Priors from Pure Noise: Because the reverse network learns to predict the transformed state $F_\phi(x, t)$ rather than raw $x$, single-step predictions from pure noise ($z_T \sim \mathcal{N}(0, I)$) align much more closely with genuine data shapes than standard DDPM predictions. Deviations from the true data distribution are penalized more heavily by the learned mapping.
  • Improved Likelihoods via Better Latents: By allowing the latent space to flex, the reverse trajectory becomes easier to model, closing the variational gap and improving density estimation.

Key Results

  • Density Estimation (NLL in bits/dim):
  • ImageNet 32×32: Achieved 3.55 BPD, outperforming DDPM (3.89), VDM (3.72), and Score Flow (3.76).
  • ImageNet 64×64: Reached 3.35 BPD, surpassing VDM (3.40) and Improved DDPM (3.54).
  • CIFAR-10: Reached 2.70 BPD in continuous time (competitive with VDM's 2.65 and better than Score SDE's 2.99).
  • CelebA-HQ-256 (Latent NDM): Achieved an NLL of $\le \mathbf{0.65}$ BPD (vs. $\le 0.70$ for LSGM) and an improved FID of 7.18 (vs. 7.22).
  • Few-Step Training: When explicitly trained with only 10 discrete steps ($T=10$), NDM generated significantly higher fidelity images than DDPM, achieving an FID of 31.56 vs. 37.83 on CIFAR-10 and 45.38 vs. 53.51 on ImageNet 32.

Limitations and Future Work

  • Computational Overhead: Using a dedicated network for $F_\phi$ roughly doubles the parameter count and increases training time by approximately $2.3\times$ compared to DDPM.
  • Objective Sensitivity: NDMs cannot use standard simplified diffusion losses ($L_{\text{simple}}$). If trained only to predict noise without accounting for $F_\phi$, the forward transformation collapses trivially to zero. Training strictly requires the full variational lower bound (ELBO).
  • Post-Hoc Step Reduction: While NDMs excel when trained with few steps, taking an NDM trained on $T=1000$ steps and subsampling it down to 10 steps during inference leads to sharper performance degradation than in DDPM.
  • Guidance Techniques: Standard classifier guidance depends on fixed forward noise schedules. Because the forward process here is parameterized, extending NDMs to guided/conditional generation requires alternative methods, which the authors leave for future work.

Summary updated

Abstract

Diffusion models have shown remarkable performance on many generative tasks. Despite recent success, most diffusion models are restricted in that they only allow linear transformation of the data distribution. In contrast, broader family of transformations can potentially help train generative distributions more efficiently, simplifying the reverse process and closing the gap between the true negative log-likelihood and the variational approximation. In this paper, we present Neural Diffusion Models (NDMs), a generalization of conventional diffusion models that enables defining and learning time-dependent non-linear transformations of data. We show how to optimise NDMs using a variational bound in a simulation-free setting. Moreover, we derive a time-continuous formulation of NDMs, which allows fast and reliable inference using off-the-shelf numerical ODE and SDE solvers. Finally, we demonstrate the utility of NDMs with learnable transformations through experiments on standard image generation benchmarks, including CIFAR-10, downsampled versions of ImageNet and CelebA-HQ. NDMs outperform conventional diffusion models in terms of likelihood and produce high-quality samples.
BibTeX
@inproceedings{bartosh2024neural,
  author = {Grigory Bartosh and Dmitry P. Vetrov and Christian A. Naesseth},
  title = {{Neural Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=xzX7kf486K},
}
Figure