19 Oct 2026 Tim Hitge 11 min read

Normalizing Flow Maps

Overview of normalizing flow maps and pointwise and distributional matching.

Overview of Normalizing Flow Map (NFM), which performs generative transport along a stochastic interpolant. NFM-R exploits pointwise matching at the particle level, while NFM-D leverages distributional matching.

Generative modelling with interpolants

Diffusion [9, 18, 19] and flow matching [2, 10, 11] have become the dominant generative modelling paradigm for continuous modalities. Underlying these methods is the idea of defining a time-dependent transport process from a stochastic interpolant [2, 3]: \[ I_t(x_0,x_1):= \alpha_t x_0 + \beta_t x_1 \tag{1}\]

where \(x_0\) is a data sample and \(x_1\) is a noise sample jointly sampled from a coupling distribution \(\pi(x_0,x_1)\), with \(\alpha\) and \(\beta\) well-behaved time-dependent functions. Put simply, given noise and data samples, an interpolant prescribes how we transition from the one to the other.

Animation of linear interpolation between paired data and noise samples.

Sampling pairs \((x_0, x_1)\) and transitioning between them with the common linear interpolant \(I_t = (1-t)x_0 + tx_1\).

At each time \(t\), sampling pairs \((x_0, x_1)\sim \pi\) and evaluating \(I_t\) gives samples from \(p_t\), the marginal at time \(t\). As \(t\) runs from \(1\) to \(0\), these distributions transform from the noise distribution \(p_1\) to the data distribution \(p_0\):

Animation of the marginal distribution changing from noise to data.

Since sampling from \(p_1\) is easy (by design), a generative model only needs to move samples along this path of distributions from \(p_1\) to \(p_0\). Flow matching and diffusion models do this by learning and then following the velocity field associated with the interpolant: \[ v_t(x) = \mathbb{E}_{x_t\sim p_t(x_t)}\left[\frac{\partial I_t}{\partial t}\vert I_t=x_t\right]. \tag{2}\]

Once a neural network approximation \(v^{\theta}_t\) is learnt, we can sample via \[ \hat{x}_t = x_1 + \int_{\tau=1}^{\tau=t} v^{\theta}_{\tau}(\hat{x}_\tau)d\tau, x_1\sim p_1. \tag{3}\]

This approach produces incredibly high fidelity samples and is scalable as \(v_t\) can be efficiently learnt. In practice, we approximate the integral in Equation 3 with numerical solvers (e.g. Euler). This introduces an inference-time tradeoff where more solver steps can produce better samples at the cost of increasing sampling time. Furthermore, models often require dozens of steps at minimum to obtain reasonable samples. Since each step entails a neural network evaluation this can be quite costly.

Flow maps for efficient sampling

Flow map [4, 5] models instead learn to directly jump along sampling trajectories. Imagine breaking up an integration from \(1\) to \(0\) into an integral up to \(s\), then from \(s\) to \(t\), and finally \(t\) to \(0\):

\[ \hat{x}_0 = \left(\left((x_1 + \int_{\tau=1}^{\tau=s}v_{\tau}(x_\tau)d\tau)+\int_{\tau=s}^{\tau=t}v_{\tau}(x_{\tau})d\tau\right)+\int_{\tau=t}^{\tau=0}v_{\tau}(x_{\tau})d\tau\right) \tag{4}\]

Within each bracket we take the current state and apply some offset by integrating the velocity field over an interval. The flow map \(X_{s,t}\) performs exactly this transformation,

\[ \hat{x}_0 = X_{t,0}(X_{s,t}(X_{1,s}(x_1))). \tag{5}\]

Learning the flow map instead of \(v_t\) enables us to obtain high quality samples in a single step. Flow maps satisfy some intuitively desirable consistency properties which are often directly incorporated into training losses. For example, the semi-group property specifies that composing jumps should be equivalent to a single jump: \[ X_{s,t}(X_{r,s}(x_r)) = X_{r,t}(x_r). \tag{6}\]

What about densities?

Whilst flow maps enable efficient sampling, obtaining exact densities in an efficient way remains challenging. Flow matching models can obtain the log-density of generated samples by integrating the instantaneous change-of-variables formula [6]:

\[ \log p^{\theta}_t(\hat{x}_t) = \log p_1 (x_1) - \int_{\tau=1}^{\tau=t}\nabla\cdot v^{\theta}_{\tau}(\hat{x}_\tau)d\tau. \tag{7}\]

Unfortunately, computing \(\log p^{\theta}_t(\hat{x}_t)\) with sufficient accuracy for scientific applications like Boltzmann Generators requires many solver steps, each needing an expensive velocity field divergence evaluation. Furthermore, directly computing the Fisher score \(\nabla_{\theta}\log p^{\theta}_0(\hat{x}_0)\), a quantity commonly used in reinforcement learning algorithms when rewards are non-differentiable, would require differentiating through the solver steps.

One potential avenue is to simultaneously learn the flow map \(X_{s,t}\) and the integral of the divergence from \(s\) to \(t\). Assuming both quantities are perfectly learnt this would yield cheap and exact densities. However, in practice this is not the case and this approach has so far lagged behind methods that provide exact densities for Boltzmann Generators [1, 14].

A resurgence of normalising flows

Normalising Flows (NFs) [16, 20, 21] parametrize maps between distributions using an invertible neural network \(f^{\theta}\) with Jacobian log-determinants that are cheaply computable. This enables exact and efficient likelihood evaluation via the classical change of variables formula:

\[ \log p^{\theta}_{0}(\hat{x}_0) = \log p_1 (x_1) - \log \left\lvert \mathrm{det} \frac{\partial f^{\theta}(x_1)}{\partial x_1}\right\rvert. \tag{8}\]

NFs are usually trained by maximum-likelihood estimation using \(\log p^{\theta}(x_0) = \log p_1 ((f^{\theta})^{-1}(x_0))+\log \lvert \mathrm{det}\, \partial_{x_0} (f^{\theta})^{-1}(x_0)\rvert\). Whilst NFs provide exact densities, historically they have been difficult to scale and have lagged behind other generative models when it comes to sample fidelity. Recently, Transformer Autoregressive Flows (TARFlows) [8, 12, 23] have emerged as a class of scalable NFs with high quality samples. However, when scaling these NFs to high-dimensional tasks like image generation it is crucial to smooth out the data distribution \(p_0\) via noise injection \[ x_\sigma = x_0 + \epsilon, \,\epsilon \sim \mathcal{N}(0,\sigma^2 I), \tag{9}\]

which prevents training stability issues and poor performance (e.g. Figure 1 below), as well as numerical loss of invertibility.

MNIST samples from maximum-likelihood training without noise.

MLE without noise.

MNIST samples trained with noise and cleaned with Tweedie denoising.

MLE with noise and Tweedie denoising.
Figure 1: MNIST samples from an MLE-trained TARFlow model.

Consequently, the resulting NF provides exact densities for the learnt noisy distribution \(p^{\theta}_{\sigma}\), and clean samples are produced via Tweedie’s formula1,

\[ \hat{x}_0 = \mathbb{E}[x_0 \vert x_\sigma] = \hat{x}_{\sigma}+\sigma^{2}\nabla_{\hat{x}_{\sigma}}\log p^{\theta}_{\sigma}(\hat{x}_{\sigma}). \tag{10}\]

This additional denoising transformation is not covered by the change-of-variables guarantee and thus the likelihoods of clean samples are not available. Therefore, on high-dimensional data TARFlows lose a key advantage of NFs2.

Normalizing Flow Maps

Normalizing Flow Maps (NFMs) perform few-step transport between the marginals \(p_t\) and combine the advantages of NF architectures with an interpolant-centric approach to generative modelling. Given a set of admissible time pairs \(\mathcal{T}\subset \{(s,t): 0\leq t \leq s \leq 1\}\), an NFM is a jointly parametrized family \(\mathcal{F}_{\theta} = {f^{\theta}_{s,t}:\mathbb{R}^{d}\to \mathbb{R}^{d}}_{(s,t)\in \mathcal{T}}\) where for every \((s,t)\in \mathcal{T}\), \(f^{\theta}_{s,t}\) is a \(\mathcal{C}^\infty\) diffeomorphism satisfying

\[ (f_{s,t})^{-1}\circ f_{s,t} = f_{s,t} \circ (f_{s,t})^{-1} = \mathrm{Id}. \tag{11}\]

The exact invertibility of the map enables evaluating sample densities using the classical change-of-variables formula,

\[ \log p^\theta_{s\to t}(x_t) = \log p_s(x_s) - \log\left| \det \frac{\partial f^\theta_{s,t}(x_s)}{\partial x_s} \right|, \qquad x_t=f^{\theta}_{s,t}(x_s),\,x_s\sim p_s. %=(f^\theta_{s,t})^{-1}(x_t). \]

Our first approach, called NFM regression (NFM-R), utilises the sample-level consistency objectives of flow maps to train an NFM. The advantage of NFM-R is that mature training recipes in the flow-map literature (e.g. Mean Flow) can be easily adapted.

Animation of pointwise consistency: composed jumps match a direct jump.

Pointwise consistency operates at the level of individual samples. Here we illustrate the semi-group condition \(f_{s,t}(f_{r,s}(x_r))=f_{r,t}(x_r).\)

Our second approach, called NFM distribution (NFM-D), performs distributional matching across interpolation times. Our simplest NFM-D objective learns a one-step map from noise to data via: \[ \begin{align} &\operatorname*{argmin}_{\theta} \mathbb{E}_{t,x_0}[\mathbb{D}_{\mathrm{KL}}(p_t(\cdot|x_0)\,\lvert\rvert\,p^{\theta}_{t})]\\ &=\operatorname*{argmin}_{\theta} \mathbb{E}_{t,x_t}\left[\frac{1}{2}\lVert (f^{\theta}_{1,t})^{-1}(x_t) \rVert^2 - \log \left \vert \mathrm{det} \frac{\partial (f^{\theta}_{1,t})^{-1}(x_t)}{\partial x_t}\right \vert\right]. \end{align} \]

Intuitively, this objective teaches the inverse map \((f^{\theta}_{1,t})^{-1}\) to transport samples along an interpolant path back to the noise distribution. Then at inference we can use \(f^{\theta}_{1,t=0}\) to map from noise to data. This is somewhat restrictive as \(f^{\theta}\) can only map from noise, so we don’t benefit from multi-step inference. In the paper, we also detail a more general form of NFM-D that enables multi-step sampling (with densities) at inference.

Animation of distributional consistency across interpolant marginals.

Distributional consistency operates at the level of the marginal distributions. Here we illustrate that \((f^{-1}_{s,t})_{\#}({f_{1,t}}_{\#}p_1)=p_s\).

What can you do with an NFM?

Two applications where NFMs are particularly useful are Reinforcement Learning (RL) post-training and Boltzmann generators.

RL Post-training

For post-training, access to the endpoint density \(p^{\theta}_{1\to 0}(x_0)\) enables direct optimisation of classical regularised reward maximisation objectives, \[ \mathcal{J}(\theta) = \mathbb{E}_{x_0\sim p^{\theta}_{1\to 0}}[R(x_0)] + \beta \mathrm{Reg}(p^{\theta}_{1\to 0}),\, \beta >0. \tag{12}\]

The two most common choices for \(\mathrm{Reg}(p^{\theta}_{1\to 0})\) are entropy \(\mathcal{H}(p^{\theta}_{1\to 0})\) (maximum entropy RL), or \(-\mathbb{D}_{\mathrm{KL}}(p_{1\to 0}^\theta\|p_{\rm ref})\) for a fixed reference density (KL-regularised RL). For diffusion and flow matching models, endpoint likelihoods are expensive to evaluate, making Equation 12 difficult to optimise directly. This necessitates alternative approaches, which are often substantially more complex. NFMs avoid these difficulties as endpoint log densities give access to Fisher score-function gradients (i.e. \(\nabla_{\theta}\log p^{\theta}_{1\to 0}(x_0)\)), which enable learning from non-differentiable rewards, and they provide the density ratios3 needed for prominent large language model post-training methods like DPO [15] and GRPO [17].

In Figure 2 we demonstrate that purely class-conditional NFM models trained on ImageNet can align their samples with a text-caption supplied to a Visual Language Model (VLM) via on-policy optimisation of Equation 12. NFM-R uses maximum entropy regularisation and pathwise gradients, while we demonstrate the flexibility of NFM-D’s post-training by using KL-regularised REINFORCE.

Golden retriever samples from NFM-D before post-training.
(a) NFM-D
Golden retrievers on sandy beaches after NFM-D post-training.
(b) NFM-D + RL
Bighorn sheep samples from NFM-R before post-training.
(c) NFM-R
Bighorn sheep beside the sea after NFM-R post-training.
(d) NFM-R + RL
Figure 2: NFM post-training. (a) NFM-D, golden retriever; (b) NFM-D post-trained, a single golden retriever on a sandy beach; (c) NFM-R, bighorn sheep; (d) NFM-R post-trained, bighorn sheep standing on a sandy beach beside the sea.

Boltzmann Generators

Animation of tryptophyltyrosine molecular configurations.
(a) Tryptophyltyrosine
Animation of chignolin molecular configurations.
(b) Chignolin
Figure 3: Transitioning between different molecular configurations.

The problem of sampling configurations from equilibrium ensembles is a fundamental problem in statistical physics [7, 22] with applications in biomolecular modeling and drug discovery. For a configuration \(x\) with energy \(\mathcal{E}(x)\) at temperature \(T\), the equilibrium distribution is the Boltzmann distribution \[ \mu_{\mathrm{target}}(x)=\frac{1}{\mathcal{Z}}\exp(-\beta\mathcal{E}(x)),\qquad\mathcal{Z}=\int \exp(-\beta\mathcal{E}(x))dx,\qquad \beta = \frac{1}{k_{B}T}, \]

where \(\mathcal{Z}\) is the partition function, which is generally intractable for high-dimensional systems. It is challenging to use traditional methods like Markov Chain Monte Carlo and Molecular Dynamics to sample from the molecular systems that are relevant to areas like drug discovery because their energy landscapes are typically high dimensional and multimodal, with metastable regions separated by large free-energy barriers. Boltzmann Generators (BGs) [13] tackle this problem by learning a generative model that approximates the target Boltzmann distribution and then applying Monte Carlo correction methods (e.g. self-normalised importance sampling) to account for discrepancies between the learned and target distribution. The need for such correction methods entails that BGs must support both efficient sampling and density evaluation.

On Chignolin, the most challenging single-peptide benchmark, NFM-D substantially outperforms the best continuous-flow method and matches the current state-of-the-art. Furthermore, on the transferable generation task, which tests zero-shot generalization to unseen peptides, NFM-D consistently beats its MLE-trained TARFlow counterpart and outperforms the current state-of-the-art on five of six metrics.

Energy histograms comparing molecular dynamics, NFM-D proposals, and resampled distributions.
(a)
TICA projections comparing molecular dynamics, TARFlow, and NFM-D for NHQYGSDP.
(b)
Figure 4: (a) Energy histograms of MD data, the NFM-D proposal, and the resampled distribution, for a single-system model (left) and a transferable model evaluated on a \(4\)- and \(8\)-residue peptides (middle, right). (b) TICA projections for the ground truth MD, TARFlow, and NFM-D on NHQYGSDP.

Closing thoughts

NFMs combine few step sampling with tractable likelihoods and we are particularly excited about their application to post-training and equilibrium sampling. However, they are not without their limitations. NFM-R obtains the highest sample quality on image generation tasks but is prone to becoming numerically non-invertible, which impedes RL methods relying on the Fisher score or KL-regularization. This points to the importance of designing training schemes that enjoy the benefits of both pointwise and distributional consistency.

References

[1]
X. Ai et al., “Joint distillation for fast likelihood evaluation and sampling in flow-based models,” in International conference on learning representations, 2026, pp. 44940–44977.
[2]
M. S. Albergo and E. Vanden-Eijnden, “Building normalizing flows with stochastic interpolants,” in The eleventh international conference on learning representations, 2023. Available: https://openreview.net/forum?id=li7qeBbCR1t
[3]
M. Albergo, N. M. Boffi, and E. Vanden-Eijnden, “Stochastic interpolants: A unifying framework for flows and diffusions,” Journal of Machine Learning Research, vol. 26, no. 209, pp. 1–80, 2025.
[4]
N. M. Boffi, M. S. Albergo, and E. Vanden-Eijnden, “Flow map matching with stochastic interpolants: A mathematical framework for consistency models,” Transactions on Machine Learning Research, 2025, Available: https://openreview.net/forum?id=cqDH0e6ak2
[5]
N. M. Boffi, M. S. Albergo, and E. Vanden-Eijnden, “How to build a consistency model: Learning flow maps via self-distillation,” in The thirty-ninth annual conference on neural information processing systems, 2025. Available: https://openreview.net/forum?id=Di5apl8HSH
[6]
R. T. Chen, Y. Rubanova, J. Bettencourt, and D. K. Duvenaud, “Neural ordinary differential equations,” Advances in neural information processing systems, vol. 31, 2018.
[7]
D. Frenkel and B. Smit, Understanding molecular simulation: From algorithms to applications, 1st ed. USA: Academic Press, Inc., 1996.
[8]
J. Gu et al., “STARFlow: Scaling latent normalizing flows for high-resolution image synthesis,” Advances in Neural Information Processing Systems, vol. 38, pp. 120986–121022, 2026.
[9]
J. Ho, A. Jain, and P. Abbeel, “Denoising Diffusion Probabilistic Models,” in Advances in Neural Information Processing Systems, Curran Associates, Inc., 2020, pp. 6840–6851. Accessed: Aug. 16, 2026. [Online]. Available: https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html
[10]
Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, and M. Le, “Flow matching for generative modeling,” in The eleventh international conference on learning representations, 2023. Available: https://openreview.net/forum?id=PqvMRDCJT9t
[11]
X. Liu, C. Gong, and qiang liu, “Flow straight and fast: Learning to generate and transfer data with rectified flow,” in The eleventh international conference on learning representations, 2023. Available: https://openreview.net/forum?id=XVjTT1nw5z
[12]
Y. Lu, Q. Sun, X. Wang, Z. Jiang, H. Zhao, and K. He, “Bidirectional normalizing flow: From data to noise and back,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2026, pp. 2069–2078.
[13]
F. Noé, S. Olsson, J. Köhler, and H. Wu, “Boltzmann generators: Sampling equilibrium states of many-body systems with deep learning,” Science, vol. 365, no. 6457, p. eaaw1147, 2019.
[14]
R. OuYang et al., “Few-Step Boltzmann Generators via Scalable Likelihood Flow Maps.” arXiv, Jun. 2026. doi: 10.48550/arXiv.2606.29110.
[15]
R. Rafailov, A. Sharma, E. Mitchell, C. D. Manning, S. Ermon, and C. Finn, “Direct preference optimization: Your language model is secretly a reward model,” Advances in neural information processing systems, vol. 36, pp. 53728–53741, 2023.
[16]
D. Rezende and S. Mohamed, “Variational Inference with Normalizing Flows,” in Proceedings of the 32nd International Conference on Machine Learning, PMLR, Jun. 2015, pp. 1530–1538. Accessed: Aug. 15, 2026. [Online]. Available: https://proceedings.mlr.press/v37/rezende15.html
[17]
Z. Shao et al., “DeepSeekMath: Pushing the limits of mathematical reasoning in open language models.” 2024. Available: https://arxiv.org/abs/2402.03300
[18]
J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli, “Deep Unsupervised Learning using Nonequilibrium Thermodynamics,” in Proceedings of the 32nd International Conference on Machine Learning, PMLR, Jun. 2015, pp. 2256–2265. Accessed: Aug. 16, 2026. [Online]. Available: https://proceedings.mlr.press/v37/sohl-dickstein15.html
[19]
Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole, “Score-based generative modeling through stochastic differential equations,” in International conference on learning representations, 2021. Available: https://openreview.net/forum?id=PxTIG12RRHS
[20]
E. G. Tabak and C. V. Turner, “A Family of Nonparametric Density Estimation Algorithms,” Communications on Pure and Applied Mathematics, vol. 66, no. 2, pp. 145–164, 2013, doi: 10.1002/cpa.21423.
[21]
E. G. Tabak and E. Vanden-Eijnden, “Density estimation by dual ascent of the log-likelihood,” Communications in Mathematical Sciences, vol. 8, no. 1, pp. 217–233, 2010, doi: 10.4310/CMS.2010.v8.n1.a11.
[22]
M. E. Tuckerman, Statistical mechanics: Theory and molecular simulation. Oxford university press, 2023.
[23]
S. Zhai et al., “Normalizing flows are capable generative models,” in Proceedings of the 42nd international conference on machine learning, A. Singh, M. Fazel, D. Hsu, S. Lacoste-Julien, F. Berkenkamp, T. Maharaj, K. Wagstaff, and J. Zhu, Eds., in Proceedings of machine learning research, vol. 267. PMLR, 2025, pp. 74348–74369. Available: https://proceedings.mlr.press/v267/zhai25d.html

Footnotes

  1. Latent space TARFlows commonly use non-invertible decoders instead of Tweedie’s formula due to the high amount of noise they train with. See Appendix C3 of STARFlow [8] for a discussion.↩︎

  2. The need for spatial gradients also makes inference more expensive, increasing both memory usage and sampling time.↩︎

  3. For example, in KL-divergence terms or importance sampling ratios.↩︎

← All posts Discuss by email