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

Neural Flow Diffusion Models: Learnable Forward Process for Improved Diffusion Modelling

Grigory Bartosh, Dmitry Vetrov, Christian A. Naesseth

Introduction

Standard diffusion models, such as DDPM or Stable Diffusion, typically rely on a fixed, predefined forward process that gradually corrupts data with Gaussian noise according to a set schedule. While effective, this "one-size-fits-all" approach forces the generative reverse process to learn complex, often highly curved paths in latent space. These curved trajectories are difficult to model and require numerous sampling steps to produce high-quality results.

Neural Flow Diffusion Models (NFDM) address this limitation by introducing a learnable forward process. By jointly optimizing how data is corrupted and how it is reconstructed, NFDM achieves state-of-the-art likelihoods and enables custom generative dynamics, such as straight-line trajectories that facilitate efficient, few-step image generation.

Methodology

The core innovation of the NFDM framework is replacing the fixed SDE of standard diffusion with a learnable, invertible transformation $F_\phi(\epsilon, t, x)$ applied to Gaussian noise $\epsilon$. This defines the forward marginal distributions $q_\phi(z_t|x)$ as a neural flow.

Joint Optimization and NFDM-OT

Unlike traditional models with a "frozen" encoder, NFDM allows for the simultaneous training of the forward process parameters ($\phi$) and the reverse process parameters ($\theta$). This joint optimization minimizes a novel, simulation-free variational upper bound on the negative log-likelihood (NLL).

A key variant, NFDM-OT (Optimal Transport), incorporates a curvature penalty into the training objective. This forces the generative trajectories to follow straight lines. Because the forward process is learnable, it can adapt its path during training to ensure the resulting reverse path is straight, significantly simplifying the sampling process and reducing the number of function evaluations (NFE) required.

Comparison of generative trajectories: Score SDE (curved) vs. NFDM-OT (straight).

Neural Flow Bridge Models (NFBM)

The framework also extends to Neural Flow Bridge Models (NFBM), which learn transitions between two arbitrary data distributions (e.g., translating a photo of a dog into a cat) rather than just bridging data to pure noise. This allows for more flexible generative tasks beyond standard image synthesis.

Results and Benchmarks

The researchers evaluated NFDM on standard benchmarks including CIFAR-10, downsampled ImageNet (32x32 and 64x64), and AFHQ 64.

State-of-the-Art Likelihoods

NFDM achieved record-breaking Bits Per Dimension (BPD) scores, outperforming established models like VDM and Flow Matching. Specifically, it reached 2.48 BPD on CIFAR-10 and 3.20 BPD on ImageNet 64, demonstrating that a learnable forward process provides a tighter bound on data likelihood.

Likelihood performance (BPD) of NFDM compared to baseline diffusion and flow models.

Efficient Few-Step Generation

The NFDM-OT variant demonstrated superior performance in low-step sampling scenarios. On ImageNet 64, with only 4 sampling steps, NFDM-OT achieved an FID of 17.28, a substantial improvement over the 38.45 achieved by Multisample Flow Matching. In image-to-image translation tasks (dog-to-cat), NFBM reached an FID of 12.06, outperforming existing Schrödinger Bridge methods like DSBM and GSBM.

Discussion and Future Work

The success of NFDM highlights that the forward process in diffusion is essentially an encoder. Learning this encoder allows the model to find a "path of least resistance" between noise and data, reducing the complexity required of the reverse model.

While NFDM offers significant performance gains, it introduces some computational overhead; training iterations are approximately 2.2 times longer than conventional models. Additionally, the forward process must remain differentiable and invertible, which currently restricts the choice of neural architectures to specific families like Normalizing Flows. Future work may explore more complex, non-Gaussian flow architectures to further push the boundaries of generative modeling efficiency and quality.

Summary updated

BibTeX
@inproceedings{bartosh2024neural,
  author = {Grigory Bartosh and Dmitry Vetrov and Christian A. Naesseth},
  title = {{Neural Flow Diffusion Models: Learnable Forward Process for Improved Diffusion Modelling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Z0wIbVTBXc},
}
Figure