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]: It(x0,x1):=αtx0+βtx1(1)
where x0 is a data sample and x1 is a noise sample jointly sampled from a coupling distribution π(x0,x1), with α and β well-behaved time-dependent functions. Put simply, given noise and data samples, an interpolant prescribes how we transition from the one to the other.
Sampling pairs (x0,x1) and transitioning between them with the common linear interpolant It=(1−t)x0+tx1.
At each time t, sampling pairs (x0,x1)∼π and evaluating It gives samples from pt, the marginal at time t. As t runs from 1 to 0, these distributions transform from the noise distribution p1 to the data distribution p0:
Since sampling from p1 is easy (by design), a generative model only needs to move samples along this path of distributions from p1 to p0. Flow matching and diffusion models do this by learning and then following the velocity field associated with the interpolant: vt(x)=Ext∼pt(xt)[∂t∂It∣It=xt].(2)
Once a neural network approximation vtθ is learnt, we can sample via x^t=x1+∫τ=1τ=tvτθ(x^τ)dτ,x1∼p1.(3)
This approach produces incredibly high fidelity samples and is scalable as vt 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:
Within each bracket we take the current state and apply some offset by integrating the velocity field over an interval. The flow map Xs,t performs exactly this transformation,
x^0=Xt,0(Xs,t(X1,s(x1))).(5)
Learning the flow map instead of vt 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: Xs,t(Xr,s(xr))=Xr,t(xr).(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]:
Unfortunately, computing logptθ(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 ∇θlogp0θ(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 Xs,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θ with Jacobian log-determinants that are cheaply computable. This enables exact and efficient likelihood evaluation via the classical change of variables formula:
NFs are usually trained by maximum-likelihood estimation using logpθ(x0)=logp1((fθ)−1(x0))+log∣det∂x0(fθ)−1(x0)∣. 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 p0 via noise injection xσ=x0+ϵ,ϵ∼N(0,σ2I),(9)
which prevents training stability issues and poor performance (e.g. Figure 1 below), as well as numerical loss of invertibility.
MLE without noise.
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σθ, and clean samples are produced via Tweedie’s formula1,
x^0=E[x0∣xσ]=x^σ+σ2∇x^σlogpσθ(x^σ).(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 pt and combine the advantages of NF architectures with an interpolant-centric approach to generative modelling. Given a set of admissible time pairs T⊂{(s,t):0≤t≤s≤1}, an NFM is a jointly parametrized family Fθ=fs,tθ:Rd→Rd(s,t)∈T where for every (s,t)∈T, fs,tθ is a C∞ diffeomorphism satisfying
(fs,t)−1∘fs,t=fs,t∘(fs,t)−1=Id.(11)
The exact invertibility of the map enables evaluating sample densities using the classical change-of-variables formula,
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.
Pointwise consistency operates at the level of individual samples. Here we illustrate the semi-group condition fs,t(fr,s(xr))=fr,t(xr).
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: θargminEt,x0[DKL(pt(⋅∣x0)∣∣ptθ)]=θargminEt,xt[21∥(f1,tθ)−1(xt)∥2−logdet∂xt∂(f1,tθ)−1(xt)].
Intuitively, this objective teaches the inverse map (f1,tθ)−1 to transport samples along an interpolant path back to the noise distribution. Then at inference we can use f1,t=0θ to map from noise to data. This is somewhat restrictive as fθ 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.
Distributional consistency operates at the level of the marginal distributions. Here we illustrate that (fs,t−1)#(f1,t#p1)=ps.
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 p1→0θ(x0) enables direct optimisation of classical regularised reward maximisation objectives, J(θ)=Ex0∼p1→0θ[R(x0)]+βReg(p1→0θ),β>0.(12)
The two most common choices for Reg(p1→0θ) are entropy H(p1→0θ) (maximum entropy RL), or −DKL(p1→0θ∥pref) 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. ∇θlogp1→0θ(x0)), 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.
(a) NFM-D
(b) NFM-D + RL
(c) NFM-R
(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
(a) Tryptophyltyrosine
(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 E(x) at temperature T, the equilibrium distribution is the Boltzmann distribution μtarget(x)=Z1exp(−βE(x)),Z=∫exp(−βE(x))dx,β=kBT1,
where 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.
(a)
(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.
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-StepBoltzmannGenerators via ScalableLikelihoodFlowMaps.” 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 NormalizingFlows,” in Proceedings of the 32nd InternationalConference on MachineLearning, 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 UnsupervisedLearning using NonequilibriumThermodynamics,” in Proceedings of the 32nd InternationalConference on MachineLearning, 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 NonparametricDensityEstimationAlgorithms,”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
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.↩︎
The need for spatial gradients also makes inference more expensive, increasing both memory usage and sampling time.↩︎
For example, in KL-divergence terms or importance sampling ratios.↩︎