Neural Diffusion Models

Grigory Bartosh, Dmitry P. Vetrov, Christian A. Naesseth · DOI

Abstract

Standard diffusion models rely on a fixed, linear forward process to transform data into noise. Neural Diffusion Models (NDMs) generalize this approach by introducing learnable, non-linear, time-dependent transformations. By optimizing the path between data and noise, NDMs allow the model to "simplify" the data distribution before noising, leading to state-of-the-art density estimation performance on benchmarks like ImageNet and CelebA-HQ.

Introduction

Diffusion models have revolutionized generative AI, yet most share a rigid limitation: their forward process—the method of turning data into noise—is fixed and linear. Standard models like DDPM or DDIM follow a pre-specified recipe, scaling data and adding Gaussian noise until pure white noise is achieved. The model then learns to reverse this specific path.

This "one-size-fits-all" forward process can be a bottleneck. It ignores the underlying structure of the data; if the path from data to noise is unnecessarily complex, the reverse process becomes harder to learn. By making the forward process learnable, NDMs optimize the trajectory between noise and data, improving both generative quality and probability density estimation.

Methods

The core innovation of NDMs is the introduction of a learnable transformation function, $F_\phi(x, t)$, where $\phi$ represents neural network parameters.

Comparison of DDIM and NDM architectures. NDMs introduce a learnable transformation $F(x, t)$ before the noising process.

Instead of noising raw data $x$, the NDM noises a transformed version: $$q_\phi(z_t|x) = \mathcal{N}(z_t; \alpha_t F_\phi(x, t), \sigma_t^2 I)$$

This allows the model to decide how to reshape the data at every timestep $t$. Despite this flexibility, NDMs remain "simulation-free," allowing for variational bound (ELBO) computation by sampling any time $t$ directly. The authors utilize a continuous-time formulation with SDEs and ODEs, enabling exact likelihood calculation and fast sampling. To manage the computational cost of time derivatives for $F_\phi$, they employ the Jacobian-Vector Product (JVP) trick.

Key Insights and Results

Qualitative analysis shows that NDMs learn to "simplify" data distributions. On MNIST, the transformation $F_\phi$ thickens lines and rounds corners; on CIFAR-10, it increases contrast. This preprocessing moves data into a space where denoising is more efficient.

Visualizing data simplification and generative performance. (a) Synthetic 2D data trajectories. (b, c) Data samples vs. transformed samples $F_\phi(x, T)$ for CIFAR and MNIST. (d) DDPM predictions.

NDMs consistently outperform baselines in Negative Log-Likelihood (NLL), which is critical for applications like data compression. On ImageNet 32x32, NDMs achieved 3.55 bits per dimension (BPD), surpassing the previous state-of-the-art (VDM at 3.72). On high-resolution tasks like CelebA-HQ (256x256), NDMs integrated with Latent Score-based Generative Models (LSGM) improved both NLL and sample quality (FID of 7.18). Furthermore, NDMs show superior robustness at low sampling steps (e.g., $T=10$) compared to standard DDPMs.

Limitations and Future Work

The primary trade-off for NDM's performance is computational overhead. Training both a denoiser and a transformer roughly doubles the parameter count, resulting in training times approximately 2.3x longer than standard DDPM. Additionally, current NDMs do not natively support standard classifier guidance techniques, making conditional generation a key area for future research. Refined parameterization of the $x$-prediction task to better account for $F_\phi$ may also yield further performance gains.

Summary updated

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