index

Compatible Likelihoods for Flow Matching on Manifolds

Lucas Ng1, Georgios Batzolis2, Mark Girolami1,2

1 University of Cambridge

2 Devotion AI Labs

Abstract

On the simplest non-Euclidean manifold, the 1D flat torus, we exhibit a distribution where a recent extension of Riemannian flow matching is globally optimized by a velocity field that pushes samples away from the data distribution. We trace this failure mode to a property we call compatibility; a likelihood-based flow matching objective is compatible if its population minimizer recovers the marginal velocity field induced by the data and coupling. We derive a general condition for compatibility, apply it to existing methods, and bound the worst-case error by a residual term that vanishes under compatibility. On compact manifolds, we show that existing compatible objectives put density on infeasible velocities. To tackle both issues, we propose an exponential family over endpoints with the conditional velocity as sufficient statistic, which is both compatible and supported only on feasible velocities. In practice, and with low overhead, this reduces to a reweighting of the flow matching loss. On spaces of constant curvature, this treats errors in flow speed and direction differently. Compared to prior art, our method finds the correct velocities on the test case, outperforms in general on high-dimensional product tori, and, for two of four standard geospatial benchmarks on the sphere, achieves substantial NLL improvements. When evaluated on a large dataset of human poses, our method surpasses prior work according to sample-based metrics.

1 Introduction

Modern generative modelling owes much of its success to transport-based models, which learn to deform a simple base distribution into the target data distribution. Among them are diffusion models (Sohl-Dickstein et al. 2015; Ho et al. 2020) and normalizing flows (Tabak and Turner 2013; Rezende and Mohamed 2015; Papamakarios et al. 2021). In particular, conditional flow matching models (Lipman et al. 2023; Albergo and Vanden-Eijnden 2023; Liu et al. 2023) are effective at generating images (Hu et al. 2024), video (Jin et al. 2025), and heterogeneous tabular data (Guzmán-Cordero et al. 2025). As flow matching models learn the transport map in terms of a time-dependent vector field, they belong to the class of continuous normalizing flows (Chen et al. 2018). To overcome the scalability challenges afflicting other models in this class, flow matching decomposes the intractable marginal probability path into simpler conditional paths that couple the base and data distributions. The idea is to learn the marginal velocity field by regression onto many examples of the simple fields generating these simple paths.

Many datasets are inherently non-Euclidean and more naturally modelled as distributions on curved manifolds of nontrivial topology. The dominant generalization of flow matching to manifolds is the Riemannian flow matching (RFM) model of Chen and Lipman (2024). Recently, Eijkelboom et al. (2024) have observed that the Euclidean flow matching objective is equivalent to maximizing the likelihood of a Gaussian model qtθ(x1∣xt)q^\theta_t(x_1\mid x_t) of the true endpoint posterior pt(x1∣xt)p_t(x_1\mid x_t). Cast in this light, flow matching generalizes to data supported on arbitrary, non-Euclidean spaces through an appropriate choice of parametric family qtθq^\theta_t. Applying this to Riemannian manifolds, Zaghen et al. (2026) propose Riemannian Gaussian variational flow matching (RG-VFM), which maximizes the likelihood of Pennec (2006)’s Riemannian Gaussian distribution over conditional endpoints.

By delineating two properties, we characterize loss functions for flow matching in terms of their likelihood model, whether that is explicit (as in RG-VFM) or implicit (as in RFM). First, we say a loss function is compatible if its population optimum is at the true marginal flow induced by the data and coupling. This is a minimal correctness check for an objective to be of general utility. Second, we say it is support-aware if the likelihood model puts mass only on velocities that are achievable. As depicted in Table 1, these are independent properties in the sense that RFM is compatible but not support-aware on compact manifolds, while RG-VFM is support-aware but not compatible.

Our theoretical contributions are:

  • We derive a general compatibility condition for likelihood-based losses, satisfied by RFM but not RG-VFM. We show this analytically on the simplest non-Euclidean manifold, the flat torus T1\mathbb{T}^1. This general condition is of particular relevance to the manifold setting, but applies to any flow matching problem in which the conditional paths are nonlinear.

  • We show that the squared error in the local flow scales with the product of distributional fit and a residual term. For a compatible model, the residual is zero, which eliminates this source of error even when the likelihood model is misspecified.

  • We view RFM as maximizing likelihood over velocities in the tangent space under a Gaussian model of fixed covariance. This reveals how, despite being compatible, it omits global structure from its training signal. One example is compact manifolds, where the maximum flow speed is limited. Here, the RFM likelihood puts density on infeasible velocities.

This motivates our proposed method, which is both compatible and support-aware. We use an exponential family in endpoint space with the conditional velocity as sufficient statistic. This enforces compatibility regardless of the underlying geometry, inducing a geometrically preconditioned regression loss (with the RFM pipeline otherwise unchanged). Experimentally, we first compare methods on a simple distribution on T1\mathbb{T}^1 where the ideal behaviour of all models is analytic. Faced with rapid spatiotemporal variation in incompatible models, where gradients are uncontrolled except by the network Lipschitz constant, ODE solvers struggle. We then evaluate on high-dimensional tori and four geospatial datasets, following Chen and Lipman (2024) and De Bortoli et al. (2022), as well as on a dataset of human poses in SO(3)19{\mathrm{SO}(3)}^{19} with nearly 12 million training samples.

Table 1: Comparison of our method against prior work.
Method Network output Compatible? Support-aware on compact manifolds?
RFM velocity Yes No
RG-VFM endpoint No Yes
Ours velocity Yes Yes

2 Preliminaries

Riemannian flow matching (RFM)

Chen and Lipman (2024) apply flow matching to general manifolds, as long as we have a suitable notion of distance to hand. If we have the exponential and logarithmic maps, a natural way to construct conditional velocity fields is to follow the minimum-length geodesic at constant speed from a base sample x0∼p0x_0\sim p_0 at t=0t=0 to a data sample x1∼p1x_1\sim p_1 at t=1t=1. Then utcond(xt∣x1)=11−tlog⁡xt(x1){u_t^{\text{cond}}}(x_t\mid x_1)=\frac{1}{1-t}\log_{x_t}(x_1), where xtx_t is the intermediate point1 along the geodesic at time tt. Together with the coupling, these conditional velocity fields utcond(xt∣x1){u_t^{\text{cond}}}(x_t\mid x_1) uniquely determine conditional probability paths pt(xt∣x1)p_t(x_t\mid x_1) via the continuity equation,

∂tpt(⋅∣x1)+div⁡g(pt(⋅∣x1)utcond(⋅∣x1))=0,\partial_t p_t(\cdot\mid x_1) +\operatorname{div}_g\left( p_t(\cdot\mid x_1){u_t^{\text{cond}}}(\cdot\mid x_1) \right)=0,

under the boundary conditions E⁡x1[pt(xt∣x1,t=0)]=p0{\operatorname{\mathbb{E}}}_{x_1}[p_t(x_t\mid x_1, t=0)]=p_{0} and E⁡x1[pt(xt∣x1,t=1)]=p1{\operatorname{\mathbb{E}}}_{x_1}[p_t(x_t\mid x_1, t=1)]=p_1. The converse holds modulo gauge freedom in the velocity fields, as different velocity fields can induce the same probability path. Learning the marginal velocity field produces a transport map from the base distribution into the data distribution. To achieve this, the RFM loss is

L⁡RFM(θ)=E⁡t,x0,x1∥vtθ(xt)−utcond(xt∣x1)∥g2.{\operatorname{\mathcal{L}}_\mathrm{RFM}}(\theta)={\operatorname{\mathbb{E}}}_{t,x_0,x_1}\lVert {v_t^\theta}(x_t)-{u_t^{\text{cond}}}(x_t\mid x_1)\rVert^2_g.

Variational flow matching (VFM)

In the Euclidean setting, Eijkelboom et al. (2024) reformulate flow matching as likelihood maximization for a virtual parametric model qtθ(x1∣xt)q_t^\theta(x_1\mid x_t) of the endpoint posterior pt(x1∣xt)p_t(x_1\mid x_t). The objective is to minimize the KL divergence or, equivalently, to maximize a likelihood in endpoint space,

LVFM(θ)=E⁡t,xt[KL⁡(pt(x1∣xt)∥qtθ(x1∣xt))]=−E⁡t,x0,x1[log⁡qtθ(x1∣xt)]+const.\mathcal{L}_{\text{VFM}}(\theta)={\operatorname{\mathbb{E}}}_{t,x_t}\left[\operatorname{KL}(p_t(x_1\mid x_t)\|q_t^\theta(x_1\mid x_t))\right] =-{\operatorname{\mathbb{E}}}_{t,x_0,x_1}[\log q_t^\theta(x_1\mid x_t)]+\text{const}.

This gives a unified framework in which, by choosing an appropriate likelihood model qtθ(x1∣xt)q_t^\theta(x_1\mid x_t), flow matching generalizes to arbitrary data supports like the space of graphs. Eijkelboom et al. (2024) show further that the squared norm loss of Euclidean flow matching corresponds to implicitly modelling the endpoint posterior as a Gaussian of fixed covariance.

Riemannian Gaussian variational flow matching (RG-VFM)

Zaghen et al. (2026) extend this endpoint-likelihood view to manifolds. They choose the family of virtual models to be the Riemannian Gaussians of Pennec (2006) with mean parameter μtθ\mu_t^\theta and constant variance σ2=1\sigma^2=1,

qtθ(x1∣xt)∝exp⁡(−12σ2dist⁡g(x1,μtθ(xt))2).q_t^\theta(x_1\mid x_t)\propto\exp\left(-\frac{1}{2\sigma^2}{\operatorname{dist}}_g (x_1, \mu_t^\theta(x_t))^2\right).

By restricting to homogeneous manifolds, where all points are geometrically equivalent under the symmetries of the manifold, Zaghen et al. (2026) propose the RG-VFM loss,

L⁡RG-VFM(θ)=E⁡t,x0,x1[dist⁡g(x1,μtθ(xt))2].{\operatorname{\mathcal{L}}_\text{RG-VFM}}(\theta)={\operatorname{\mathbb{E}}}_{t,x_0,x_1}\left[{{\operatorname{dist}}}_g (x_1, \mu_t^\theta(x_t))^2\right].

This exploits the fact that the partition function of the Riemannian Gaussian on a homogeneous manifold is independent of μtθ(xt)\mu_t^\theta(x_t). Hence, it can be dropped from the loss without affecting the optimization. Because μtθ\mu_t^{\theta} is an endpoint, RG-VFM predicts the velocity as vtθ(xt)=11−tlog⁡xt(μtθ(xt)){v_t^\theta}(x_t)=\frac{1}{1-t}\log_{x_t}(\mu_t^\theta(x_t)).

3 Compatibility of training objectives

We call a training objective compatible if every population minimizer, after applying the prescribed decoder from network output to velocity, produces the true marginal velocity,

ut(xt)=E⁡pt(x1∣xt)[utcond(xt∣x1)].(1)u_t(x_t) = {\operatorname{\mathbb{E}}}_{p_t(x_1\mid x_t)}\left[{u_t^{\text{cond}}}(x_t\mid x_1)\right]. \tag{1}

This is the minimal requirement for correctness as it guarantees that transport along integral curves of ut(xt)u_t(x_t) transforms the base distribution p0p_0 into the data p1p_1. Statistical decision theory would see this as an application of Fisher consistency; we use an alternative name here to avoid confusion with Consistency Models (Song et al. 2023; C. Cheng et al. 2025). Since arg⁡min⁡vE⁡∥v−U∥g2=E⁡[U]\arg\min_v {\operatorname{\mathbb{E}}}\lVert v - U\rVert_g^2 = {\operatorname{\mathbb{E}}}[U], RFM satisfies this. By contrast, the RG-VFM objective has global minima at any and all Fréchet means of pt(x1∣xt)p_t(x_1\mid x_t). Converting such an endpoint on the manifold into a velocity tangent vector generally does not produce the true ut(xt)u_t(x_t), except in Euclidean space.

The likelihood perspective of Eijkelboom et al. (2024) is gaining traction, proliferating to a diversity of settings. As well as Zaghen et al. (2026), the VFM lineage now includes the work of Guzmán-Cordero et al. (2025), Matişan et al. (2026), and Carrasco-Pollo et al. (2026). Alongside RG-VFM, future work is at risk of designing new losses for flow matching which seem natural, without checking for compatibility. Without an explicit check, we risk building on incompatible models. Possible mechanisms are that (1) the parametrization makes this analytically non-obvious, or (2) the added level of indirection obscures the connection to the careful construction of conditional flow matching.

In this section, we seek a general framework for compatibility of flow matching losses, both those that exist and those that will exist. Under the likelihood lens, we study the behaviour of these losses in the manifold setting. As our primary interest is the performance of such a likelihood model at best fit, we proceed under the idealized assumption of infinite data and network capacity. This allows us to reason beyond a binary condition of yes or no and quantify how far from the true marginal flow a likelihood model predicts in the worst case, even under optimal training.

3.1 A motivating example: incompatibility on a manifold without curvature

Conditional paths on the one-dimensional torus meet where the true marginal velocity is zero; orange arrows show the two possible optimal RG-VFM predictions.
Figure 1: Example on T1\mathbb{T}^1 with τ=14\tau=\frac{1}{4}, α=π5\alpha=\frac{\pi}{5}, β=3π5\beta=\frac{3\pi}{5}. Dotted lines show conditional paths; their tangents are conditional velocities. Two cross-pairs meet at (x,t)=(0,τ)(x,t)=(0,\tau), where the true marginal velocity is zero. We show both possible branches of the optimal RG-VFM prediction in orange.

Zaghen et al. (2026, sec. 4.2) write that RG-VFM implicitly captures the full geometric structure of the manifold while RFM lacks curvature information, resulting in weaker, less precise supervision. Therefore, we begin by comparing both methods on the flat torus T1≅R/2πZ\mathbb{T}^1\cong\mathbb{R}/2\pi\mathbb{Z} where the geometric structure is both conceptually simple and without curvature. Consider the base and data distributions

p0=12δ−α+12δ+α,p1=12δ−β+12δ+β\begin{aligned} p_0 &= \tfrac{1}{2}\delta_{-\alpha} + \tfrac{1}{2}\delta_{+\alpha}, \\ p_1 &= \tfrac{1}{2}\delta_{-\beta} + \tfrac{1}{2}\delta_{+\beta} \end{aligned}

under independent coupling p0⊗p1p_0\otimes p_1. With some τ∈(0,12)\tau\in(0,\frac12), let β∈(π2,π(1−τ))\beta \in (\frac{\pi}{2}, \pi(1-\tau)) and α=τβ1−τ\alpha = \frac{\tau\beta}{1-\tau}. As illustrated in Figure 1, the two cross-pair geodesics then meet at x=0x=0 at time t=τt=\tau, carrying equal and opposite velocities. At (x,t)=(0,τ)(x,t)=(0,\tau), their conditional expectation (the true marginal velocity) is zero. At the same (x,t)=(0,τ)(x,t)=(0,\tau), RG-VFM minimizes the Fréchet function,

L[μτθ(0)]=12dist⁡g(−β,μτθ(0))2+12dist⁡g(β,μτθ(0))2.\mathcal{L}[\mu^\theta_\tau(0)]=\frac12{\operatorname{dist}}_g (-\beta, \mu^\theta_\tau(0))^2+\frac12{\operatorname{dist}}_g (\beta, \mu^\theta_\tau(0))^2.

This has local minima at μτθ(0)=0\mu^\theta_\tau(0)=0 and μτθ(0)=π\mu^\theta_\tau(0)=\pi; the loss is locally quadratic around each. Because β>π/2\beta>\pi/2, the shorter arc between x1=−βx_1=-\beta and x1=βx_1=\beta is the one through π\pi. Under the RG-VFM loss, the unique and globally optimal endpoint prediction is μτθ(0)=π\mu^\theta_\tau(0)=\pi. Decoding this endpoint prediction into a velocity prediction at (0,τ)(0,\tau) gives a velocity of magnitude π1−τ\frac{\pi}{1-\tau}. This is substantially different to the zero velocity we expect. Hence, despite the endpoint prediction being globally optimal under the loss, we have incompatible flow on a flat manifold.

Although this construction is intuitive and analytically tractable, a natural question is whether this behaviour is a consequence of the singular distributions and not the objective itself; we analyse a smoothed version in Appendix A. Next, we formalize compatibility for all flow matching objectives viewed as likelihood maximization, agnostic of the base, coupling, or data.

3.2 The condition for compatibility of likelihood-based objectives

Think of training as fitting a model distribution qθ(z)=qtθ(z∣x)q^\theta(z)=q^\theta_t (z\mid x) at each (x,t)(x, t) to a data posterior p(z)=pt(z∣x)p(z)=p_t(z\mid x), where zz is whichever variable carries the likelihood, for example an endpoint x1x_1, a conditional velocity utcond{u_t^{\text{cond}}}, or something else.2 The marginal velocity field is the expectation under pp of a feature ψx,t(z)\psi_{x,t}(z) mapping zz to the space of conditional velocities, ut(x)=E⁡p[ψx,t(z)]u_t(x) = {\operatorname{\mathbb{E}}}_p[\psi_{x,t}(z)]. For a model in endpoint space (like RG-VFM), ψx,t(z)=utcond(x∣z)\psi_{x,t}(z) = {u_t^{\text{cond}}}(x\mid z), while for a model in velocity space (like RFM), ψx,t(z)=z\psi_{x,t}(z) = z. The question is whether likelihood optimization can distinguish between data posteriors that differ in ut(x)u_t(x).

Suppose θ=θ∗\theta=\theta^{*} is optimal for pp under the loss Lp(θ)=E⁡p[−log⁡qθ(z)]\mathcal{L}_{p}(\theta)={\operatorname{\mathbb{E}}}_p[-\log q^{\theta}(z)]. We wish to know if this optimum could give an incorrect velocity prediction. Consider an alternative p′=p+h≥0p'=p + h\ge 0 for some (signed, square-integrable, mean-zero) hh. Then

∇θLp+h(θ∗)=∇θLp(θ∗)+[∇θ∫−log⁡qθ(z)h(z) dz]θ=θ∗=−∫s∗(z)h(z) dz,(2)\nabla_\theta\mathcal{L}_{p+h}(\theta^*)=\nabla_\theta\mathcal{L}_p(\theta^*)+\left[\nabla_{\theta}\int-\log q^{\theta}(z)h(z){\,\mathrm{d}z}\right]_{\theta=\theta^*}=-\int s^*(z)h(z){\,\mathrm{d}z}, \tag{2}

where s∗(z)=∇θlog⁡qθ(z)∣θ=θ∗s^*(z) = \nabla_\theta \log q^\theta(z)|_{\theta=\theta^*} is the model score at optimum. This perturbation hh is invisible to the likelihood at first order if this integral vanishes. Meanwhile, it shifts the marginal velocity by

E⁡p+h[ψx,t(z)]−E⁡p[ψx,t(z)]=∫ψx,t(z) h(z) dz.(3){\operatorname{\mathbb{E}}}_{p+h}[\psi_{x,t}(z)] - {\operatorname{\mathbb{E}}}_p[\psi_{x,t}(z)] = \int \psi_{x,t}(z)\,h(z)\,\mathrm{d}z. \tag{3}

For a correct prediction, we need both Equation 2 and Equation 3 to agree that a perturbation actually occurs. That is, the following logical implication must hold for all hh:

∫s∗(z) h(z) dz=0⟹∫ψx,t(z) h(z) dz=0.\int s^*(z)\,h(z)\,\mathrm{d}z = 0 \quad\Longrightarrow\quad \int \psi_{x,t}(z)\,h(z)\,\mathrm{d}z = 0.

Equivalently, this is a check for the existence of a zz-independent linear map Ax,tθ ⁣:Rm→TxMA_{x,t}^\theta\colon\mathbb{R}^{m}\to T_x\mathcal{M} and vector bx,tθ∈TxMb_{x,t}^\theta\in T_x\mathcal{M} such that we have (almost everywhere),

ψx,t(z)=Ax,tθsθ(z)+bx,tθ,θ=θ∗.(4)\psi_{x,t}(z)=A_{x,t}^\theta s^\theta(z)+b_{x,t}^\theta,\qquad\theta=\theta^*. \tag{4}

Since θ∗\theta^* is unknown before training, a practical objective must satisfy Equation 4 at every θ\theta in the model class, not just at the optimum. For RG-VFM, whose network output is μ=μtθ(xt)\mu=\mu_t^\theta(x_t), the target feature is ψx,t(z)=11−tlog⁡x(z)\psi_{x,t}(z)=\frac{1}{1-t}\log_x(z), and the score with respect to the network output is s(z)=1σ2log⁡μ(z)s(z)=\frac{1}{\sigma^2}\log_{\mu}(z). As there is no global affine relationship between log⁡μ(z)\log_{\mu}(z) and log⁡x(z)\log_x(z) on non-Euclidean manifolds, RG-VFM does not satisfy compatibility, obstructed by both curvature and topology.

3.3 Measuring the flow error

A natural way to quantify the departure from compatibility is via the best approximation at the likelihood optimum, so as to satisfy Equation 4 as much as possible. Specifically, we solve the least-squares problem

(Ax,t∗, bx,t∗)∈arg⁡min⁡A,bE⁡qθ∗∥ψx,t(z)−As∗(z)−b∥g2,(5)(A_{x,t}^*,\,b_{x,t}^*) \in \arg\min_{A,b}{\operatorname{\mathbb{E}}}_{q^{\theta^*}}\lVert\psi_{x,t}(z) - A s^*(z) - b\rVert_g^2, \tag{5}

denoting the residual term as rx,t(z)=ψx,t(z)−Ax,t∗s∗(z)−bx,t∗r_{x,t}(z) = \psi_{x,t}(z) - A_{x,t}^* s^*(z) - b_{x,t}^*. We obtain the following bound, which is locally sharp in the sense of Cauchy–Schwarz:3

Theorem 1. Assume measurable ψx,t∈L2(qθ∗;TxM)\psi_{x,t}\in L^2(q^{\theta^*};T_x\mathcal M), s∗∈L2(qθ∗;Rm)s^*\in L^2(q^{\theta^*};\mathbb R^m). Let pp be absolutely continuous with respect to qθ∗q^{\theta^*}. Assume the first-order optimality condition E⁡p[s∗(z)]=0{\operatorname{\mathbb{E}}}_p[s^*(z)]=0 (requiring θ∗\theta^* to be interior) and enough regularity for the score identity E⁡qθ∗[s∗(z)]=0{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[s^*(z)]=0. Then

∥E⁡p[ψx,t(z)]−E⁡qθ∗[ψx,t(z)]∥g≤χ2(p∥qθ∗)∥E⁡qθ∗[rx,t⊗rx,t]∥op,g,(6)\left\|{\operatorname{\mathbb{E}}}_p[\psi_{x,t}(z)]-{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[\psi_{x,t}(z)]\right\|_g \le\sqrt{\chi^2(p\|q^{\theta^*})} \sqrt{\left\|{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[r_{x,t}\otimes r_{x,t}]\right\|_{\mathrm{op},g}}, \tag{6}

where χ2(p∥qθ∗)<∞\chi^2(p\|q^{\theta^*})<\infty is the chi-squared divergence between pp and qθ∗q^{\theta^*}.

Proof. See Appendix A.1.

This elucidates why strong performance does not need the likelihood to be an accurate approximation to the density. A compatible likelihood model has zero residual rx,tr_{x,t} and zero flow error at the population optimum, regardless of the residual distributional misfit χ2(p∥qθ∗)\chi^2(p\|q^{\theta^*}). This gives a proof of the compatibility condition alternative to the exposition in Section 3.2. Adding more degrees of freedom to the likelihood model, aiming for better density estimation, seems a natural way to reduce flow error. However, if the model is incompatible, the residual rx,tr_{x,t} remains nonzero. Unconstrained by first-order conditions, a flow error generically persists. That is, we should favour likelihood families that possess compatibility over those that are more expressive but do not.

Moreover, the velocity implied by the likelihood model, E⁡qθ∗[ψx,t(z)]{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[\psi_{x,t}(z)], is not necessarily the prediction the model uses in practice, vtθ(xt){v_t^\theta}(x_t). To avoid computing the expectation online, methods like RG-VFM use a decoder. This takes the parameters of the likelihood at the network head and maps them to a velocity prediction. Via the triangle inequality, this mismatch between the decoder and the likelihood moments leads to an additional error term:

∥vtθ(xt)−ut(xt)∥g=∥vtθ(xt)−E⁡qθ∗[ψx,t]+E⁡qθ∗[ψx,t]−ut(xt)∥g≤∥vtθ−E⁡qθ∗[ψx,t]∥g⏟likelihood-decoder mismatch+χ2(p∥qθ∗)∥E⁡qθ∗[rx,t⊗rx,t]∥op,g⏟likelihood misfit  ×  incompatibility bound.\begin{aligned} \lVert v^{\theta}_{t}(x_{t})-u_{t}(x_{t})\rVert_{g}&=\lVert v^{\theta}_{t}(x_{t})-{\operatorname{\mathbb{E}}}_{q^{\theta^{\ast}}}[\psi_{x,t}]+{\operatorname{\mathbb{E}}}_{q^{\theta^{\ast}}}[\psi_{x,t}]-u_{t}(x_{t})\rVert_{g} \\ &\le \underbrace{\lVert {v_t^\theta}-{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[\psi_{x,t}]\rVert_g}_{\text{likelihood-decoder mismatch}} +\underbrace{\sqrt{\chi^2(p\|q^{\theta^*})} \sqrt{\left\|{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[r_{x,t}\otimes r_{x,t}]\right\|_{\mathrm{op},g}}}_{\text{likelihood misfit}\;\times\;\text{incompatibility bound}}. \end{aligned}

This reiterates that, in settings with nonlinear conditional paths, like on a manifold, a family of likelihoods needs more than geometric naturalness. In addition to compatibility, we would like to parametrize the likelihood family without this decoder error.

3.4 Riemannian flow matching does likelihood maximization implicitly

Here, we express the RFM loss in maximum-likelihood form in velocity space as

LRFM(θ)=E⁡t,x0,x1[−log⁡qtθ(utcond∣xt)]+const,(7)\mathcal{L}_{\mathrm{RFM}}(\theta) = {\operatorname{\mathbb{E}}}_{t,x_0,x_1}\left[-\log q_t^\theta({u_t^{\text{cond}}}\mid x_t)\right] + \mathrm{const}, \tag{7}

where qtθ(utcond∣xt)q_t^\theta({u_t^{\text{cond}}}\mid x_t) is the Gaussian N(utcond;vtθ(xt),12g−1)\mathcal{N}({u_t^{\text{cond}}};{v_t^\theta}(x_t),\frac12 g^{-1}) over the full tangent space. The score with respect to the network output is s(u)=2(u−vtθ)s(u)=2(u-{v_t^\theta}), which is affine in the feature ψx,t(u)=u\psi_{x,t}(u)=u. Hence, RFM satisfies the compatibility condition. However, this Gaussian is not support-aware on compact manifolds. On a compact manifold M\mathcal{M}, conditional velocities are bounded as

∥utcond(xt∣x1)∥g≤diameter⁡(M)1−t.\lVert{u_t^{\text{cond}}}(x_t\mid x_1)\rVert_g \leq \frac{\operatorname{diameter}(\mathcal{M})}{1-t}.

The map x1↦utcond(xt∣x1)x_1 \mapsto {u_t^{\text{cond}}}(x_t\mid x_1) is not surjective. That is, many tangent vectors do not correspond to any endpoint on the manifold. Despite this, the Gaussian puts density on velocities outside the feasible set, regardless of the training distributions. Two adjacent velocities, straddling the boundary of the feasible set so that one is feasible and the other is not, have near equal loss. This discards prior knowledge of the global manifold structure and suggests an improvement to the method: using this information to improve training efficiency and optima achieved.

4 Method

These theoretical developments point to a likelihood family whose score is affine in the conditional velocity. In addition, we want to support the likelihood on manifold endpoints only, so as to avoid inefficient density assignment. As in Zaghen et al. (2026), defining the likelihood in endpoint space (at least initially) is a natural way to achieve this. Keeping velocity prediction vtθ(x) ⁣:M→TxM{v_t^\theta}(x)\colon\mathcal M \to T_{x}\mathcal M as the network output, we propose an exponential family with conditional velocity as the sufficient statistic,

qtθ(x1∣xt)∝cx,t(x1)exp⁡ ⁣(⟨η,utcond(xt∣x1)⟩g).(8)q_t^{\theta}(x_1\mid x_t) \propto c_{x,t}(x_1)\exp\!\left(\langle\eta,{u_t^{\text{cond}}}(x_t\mid x_1)\rangle_g\right). \tag{8}

This is an exponential family with natural parameter η∈TxtM\eta\in T_{x_t}\mathcal{M}, carrier cx,t(x1) ⁣:M→R+c_{x,t}(x_1)\colon\mathcal M \to \mathbb{R}^+. This uniquely maximizes entropy relative to cx,t dVolg(x1)c_{x,t}\,\mathrm{dVol}_g(x_1) amongst endpoint distributions of a given mean velocity. Per the standard property of exponential families, let the mean map be

mx,t(η)=∇ηAx,t(η)=E⁡qtθ[utcond(xt∣x1)],m_{x,t}(\eta)=\nabla_\eta A_{x,t}(\eta)={\operatorname{\mathbb{E}}}_{q_t^\theta}[{u_t^{\text{cond}}}(x_t\mid x_1)],

where Ax,t(η)A_{x,t}(\eta) is the log-partition function,

Ax,t(η)=log⁡∫Mcx,t(x1)exp⁡(⟨η,utcond(xt∣x1)⟩g) dVolg(x1).(9)A_{x,t}(\eta) =\log\int_{\mathcal M}c_{x,t}(x_1)\exp(\langle\eta,{u_t^{\text{cond}}}(x_t\mid x_1)\rangle_g)\,\mathrm{dVol}_g(x_1). \tag{9}

To tie the family to the network, we set η=mx,t−1(vtθ(xt))\eta=m_{x,t}^{-1}({v_t^\theta}(x_t)). This makes the prediction of the model match the expectation of the likelihood. We discuss the domain of this in Appendix C. The score with respect to η\eta is utcond(xt∣x1)−vtθ(xt){u_t^{\text{cond}}}(x_t\mid x_1)-{v_t^\theta}(x_t) and since the target feature is ψx,t(x1)=utcond(xt∣x1)\psi_{x,t}(x_1)={u_t^{\text{cond}}}(x_t\mid x_1), the compatibility condition of Equation 4 is satisfied. Hence, the model fulfils both key desiderata.

Training loss

Differentiating the negative log-likelihood ℓNLL(θ)\ell_{\mathrm{NLL}}(\theta) with respect to θ\theta gives

∇θℓNLL(θ)=(∇θvtθ(xt))⊤Vx,t(vtθ(xt))−1(vtθ(xt)−utcond(xt∣x1)),(10)\nabla_\theta\ell_{\mathrm{NLL}}(\theta) =(\nabla_\theta{v_t^\theta}(x_t))^\top V_{x,t}({v_t^\theta}(x_t))^{-1}({v_t^\theta}(x_t)-{u_t^{\text{cond}}}(x_t\mid x_1)), \tag{10}

where Vx,t(v)=∇η2Ax,t(η)∣η=mx,t−1(v)V_{x,t}(v)=\nabla_\eta^2 A_{x,t}(\eta)\big|_{\eta=m_{x,t}^{-1}(v)} is the covariance of utcond{u_t^{\text{cond}}} at the natural parameter η\eta matching the predicted velocity vv. This is the Fisher information of the model. Detaching Vx,tV_{x,t} from the backward pass yields a surrogate loss with gradients identical to those of the likelihood objective,4

L(θ)=12E⁡t,x0,x1[⟨vtθ(xt)−utcond,  sg⁡(Vx,t(vtθ(xt)))−1(vtθ(xt)−utcond)⟩g],(11)\mathcal{L}(\theta) =\frac{1}{2}{\operatorname{\mathbb{E}}}_{t,x_0,x_1}\left[ \langle{v_t^\theta}(x_t)-{u_t^{\text{cond}}},\;{\operatorname{sg}}(V_{x,t}({v_t^\theta}(x_t)))^{-1}({v_t^\theta}(x_t)-{u_t^{\text{cond}}})\rangle_g \right], \tag{11}

where sg⁡(⋅){\operatorname{sg}}(\cdot) is the stop-gradient operator. Our method naturally reduces to a reweighting of the RFM objective, and crucially without opening up the entries of the preconditioning matrix as a new design space. In other settings, using the inverse Fisher information to adapt dynamics to the intrinsic geometry is an idea that has seen performance gains (Girolami and Calderhead 2011).

Choice of carrier

Although our construction addresses both key desiderata, the choice of carrier cx,tc_{x,t} is apparently open. However, this design axis mostly collapses under several structural constraints. We seek a centred, isotropic carrier that factorizes on product manifolds, localizes around xtx_t as t→1t\to1, and recovers ordinary flow matching in Euclidean space. Among radial carriers, product factorization imposes a Gaussian form; terminal locality sets the decay; and matching the Euclidean covariance sets its scale (Appendix A). This leads to the following choice, reminiscent of the Riemannian Gaussian in Zaghen et al. (2026):

cx,t(x1)=exp⁡(−12dist⁡g(xt,x1)2(1−t)2)=exp⁡(−12∥utcond(xt∣x1)∥g2).c_{x,t}(x_1) =\exp\left(-\frac12\frac{{\operatorname{dist}}_g(x_t,x_1)^2}{(1-t)^2}\right) =\exp\left(-\frac12\lVert{u_t^{\text{cond}}}(x_t\mid x_1)\rVert_g^2\right).

This is also normalizable on common noncompact manifolds, including hyperbolic space, which requires the carrier to have superlinear decay. As t→1t\to1, the loss tends to that of RFM. In Appendix B, we study sensitivity to the carrier. The resulting velocity-space likelihood is Gaussian in Euclidean space and a truncated Gaussian on flat tori; on spheres, the loss upweights errors in speed relative to those in direction (Figure 7). This reflects the intuition that geodesic convergence on manifolds of positive curvature means errors in magnitude are more significant than those in direction.

Practical computation

At first, it seems we must compute the mean map mx,tm_{x,t} and covariance Vx,tV_{x,t} per training step, online and via numerical differentiation. The insight is that the more symmetries a manifold has, the fewer scalar functions Vx,tV_{x,t} depends on. By differentiating under the integral sign, we get a formula for each scalar function. On many manifolds, we pretabulate these via quadrature in low dimensions, often just one. Different datasets on a given manifold can reuse the same lookup table. On the flat torus Td\mathbb T^d, the covariance Vx,tV_{x,t} is diagonal with each entry an independent function of ηi\eta_i. All factors share a single 1D lookup table. On spaces of constant curvature, isotropy cuts Vx,tV_{x,t} down to two scalar functions of the magnitude. On product manifolds, Vx,tV_{x,t} is block diagonal with one block per factor. This lets us compose tables and highlights that on many manifolds, the table dimension stays low as the manifold dimension grows. Queries to the lookup tables take O(1)\mathcal{O}(1) time. In Appendix F, we show that, when compiled, the overhead per iteration is negligible.

5 Experiments

In this section, we evaluate our theoretical predictions and method across four settings. We defer implementation details to Appendix C and evaluation and training protocols to Appendix E.

Velocity-error distributions for RFM, RG-VFM, and our method on the one-dimensional torus across 30 seeds.
Figure 2: Swarmplot of velocity errors ∥vt=14θ(0)∥g\|v^\theta_{t=\frac14}(0)\|_g, 30 seeds. The upper RG-VFM cluster has better training loss but poorer generative performance; see Table 2.

Analytic test case

We test the predictions of Section 3.1 under the parameters illustrated in Figure 1 with 30 seeds. Figure 2 shows the velocity error at (x,t)=(0,14)(x,t)=(0,\frac14). Both RFM and our method achieve velocities close to the ideal value of zero, while RG-VFM is bimodal and splits into two clusters of 15 seeds each. As the magnitude is bounded per Section 3.4, the upper cluster has its centre just below the value of 4π3\frac{4\pi}{3} from Section 3.1. The lower cluster corresponds to the population local minimum of RG-VFM at zero velocity, which is a stable attractor for some seeds but not globally optimal.

Table 2 shows distributional metrics and, for dopri5, NFE and wall times. Ranking by W1W_1 agrees with ranking by velocity error at (0,14)(0,\frac14), supporting the idea that learning the marginal velocity is important for generative performance. RG-VFM seeds in the upper cluster are better by training loss than those in the lower cluster, but perform worse on generative metrics and require more ODE steps. Ranking by kernel methods favours our method and RFM over both RG-VFM clusters. A potential cause of this discrepancy is that optimal transport is more sensitive to the ratio of samples generated near to each Dirac and more affected by the (0,14)(0, \frac14) flow branch. RG-VFM has the highest inference NFEs and wall times by far. This is consistent with the rapid spatiotemporal variation we observe in the learned RG-VFM field in the absence of compatibility (see also Figure 4).

Table 2: T1\mathbb{T}^1 analytic test case. Mean±\pmstd across seeds for distributional metrics. 20,000 samples per seed. Median [Q1,Q3][Q_1, Q_3] for NFE and wall time of dopri5 with tolerance 10−510^{-5}. RG-VFM seeds split by ∥vτθ(0)∥g\|v^\theta_\tau(0)\|_g into two clusters (see Figure 2): ‘lower’ (<0.1<0.1) and ‘upper’ (>4.0>4.0).
Error ↓\downarrow W1↓\boldsymbol{W_1}\downarrow W2↓\boldsymbol{W_2}\downarrow Energy dist. ↓\downarrow MMD2^{\mathbf{2}} ↓\downarrow NFE ↓\downarrow Time ↓\downarrow
Method (# seeds) ∥vτθ(0)∥g\Vert v^\theta_\tau(0)\Vert _g via dist⁡g\sqrt{{\operatorname{dist}}_g} Laplace dopri5 dopri5, (s)
RFM (30) 0.070 ±\pm 0.040 0.45 ±\pm 0.20 0.88 ±\pm 0.30 0.214 ±\pm 0.064 0.055 ±\pm 0.028 497 [426, 578] 1.92 [1.65, 2.22]
RG-VFM (30) 2.080 ±\pm 2.078 0.54 ±\pm 0.29 0.83 ±\pm 0.32 0.311 ±\pm 0.191 0.085 ±\pm 0.079 36,839 [33,796, 60,574] 141.4 [130.3, 233.9]
upper cluster (15) 4.123 ±\pm 0.042 0.65 ±\pm 0.30 1.00 ±\pm 0.31 0.370 ±\pm 0.212 0.107 ±\pm 0.089 55,436 [32,228, 70,115] 212.9 [124.0, 271.9]
lower cluster (15) 0.037 ±\pm 0.019 0.42 ±\pm 0.24 0.66 ±\pm 0.25 0.251 ±\pm 0.151 0.063 ±\pm 0.063 36,638 [35,411, 41,675] 140.4 [136.8, 161.3]
Our method (30) 0.060 ±\pm 0.041 0.43 ±\pm 0.18 0.84 ±\pm 0.31 0.212 ±\pm 0.055 0.054 ±\pm 0.024 443 [388, 582] 1.71 [1.49, 2.24]
Fourier-kernel MMD squared for RFM, RG-VFM, and our method as the dimension of the flat torus increases.
Figure 3: Fourier-kernel MMD2↓^2\downarrow on flat tori of varying dimension. Mean±\pmstd, 5 seeds. 20,000 samples per seed.

High-dimensional product tori

Following the setup of De Bortoli et al. (2022) and Chen and Lipman (2024), we evaluate on product tori Td\mathbb{T}^d with uniform base and wrapped Gaussian data distribution of scale σ=0.2\sigma=0.2. This setup is of particular interest because the scale 0.2≪2π0.2\ll 2\pi is so small that the optimal NLL of a continuous normalizing flow is analytic. Recall that E⁡p1[−log⁡p1θ(x1)]=H[p1]+KL⁡(p1∥p1θ){\operatorname{\mathbb{E}}}_{p_1}[-\log p_1^\theta(x_1)]=\mathcal{H}[p_1]+\operatorname{KL}(p_1\parallel p_1^\theta) so the differential entropy of the true data gives a lower bound. As the density is isotropic, the per-dimension NLL lower bound is H[p1]/d≈12log⁡(2πeσ2)≈−0.1905\mathcal{H}[p_1]/d\approx\frac12\log(2\pi e\sigma^2)\approx-0.1905, exact to 4 decimal places for all dimensions here. We see in Table 3 that NLL is uninformative for RG-VFM and several values reported by Chen and Lipman (2024) are below the entropic lower bound, which may be due to use of Rademacher vectors to estimate divergence. To mitigate this, we use exact divergence via jacrev. In Appendix B, we run the checkerboard experiment of Zaghen et al. (2026), testing many solver settings to sanity-check that the NLL results of RG-VFM are not an artefact of our implementation.

In Figure 3, the MMD2^2 gives an interesting comparison. We see that before dimension 200, there is a consistent ordering of methods with our method best, RFM second, and RG-VFM last. Beyond this, our method maintains its advantage while RFM and RG-VFM swap places. This is consistent with the idea of Section 3.4 that awareness of geometric constraints is important for scalability.

Table 3: High-dimensional flat tori: NLL/dim↓\downarrow. Mean±\pmstd, 5 seeds for our method, RFM (Reproduced), and RG-VFM. 20,000 samples/seed. Target is a wrapped Gaussian (σ=0.2)(\sigma=0.2). Values marked † are below the entropic bound. The best of the unmarked are in bold. RFM (Paper results) and Riemannian Score-Based (De Bortoli et al. 2022) values are extracted from fig. 5 of Chen and Lipman (2024) using WebPlotDigitizer (Rohatgi 2026) with a uniform uncertainty estimate of 0.01.
dd Our method RFM
Paper results
RFM
Reproduced
RG-VFM Riemannian
Score-Based
11 -0.1904 ±\pm 0.001 -0.2051 ±\pm 0.010 † -0.1715 ±\pm 0.006 -0.2171 ±\pm 0.001 † -0.1482 ±\pm 0.010
22 -0.1900 ±\pm 0.005 -0.1495 ±\pm 0.010 -0.1658 ±\pm 0.004 -0.2142 ±\pm 0.003 † -0.1412 ±\pm 0.010
55 -0.1879 ±\pm 0.004 -0.1851 ±\pm 0.010 -0.1681 ±\pm 0.003 -0.2157 ±\pm 0.002 † -0.1519 ±\pm 0.010
1010 -0.1827 ±\pm 0.004 -0.1838 ±\pm 0.010 -0.1678 ±\pm 0.002 -0.2211 ±\pm 0.002 † -0.1404 ±\pm 0.010
2020 -0.1871 ±\pm 0.001 -0.2105 ±\pm 0.010 † -0.1673 ±\pm 0.001 -0.2935 ±\pm 0.011 † -0.1230 ±\pm 0.010
5050 -0.1847 ±\pm 0.001 -0.2111 ±\pm 0.010 † -0.1687 ±\pm 0.001 -0.3524 ±\pm 0.010 † -0.0840 ±\pm 0.010
100100 -0.1758 ±\pm 0.003 -0.2065 ±\pm 0.010 † -0.1553 ±\pm 0.001 -0.4091 ±\pm 0.008 † 0.0355 ±\pm 0.010
200200 -0.1643 ±\pm 0.002 -0.1701 ±\pm 0.010 -0.0993 ±\pm 0.001 -0.3368 ±\pm 0.017 † 0.0745 ±\pm 0.010
400400 -0.1374 ±\pm 0.002 -0.1432 ±\pm 0.010 -0.0232 ±\pm 0.002 -1.1979 ±\pm 0.040 † 0.1423 ±\pm 0.010
Table 4: Earth and climate science datasets on the sphere: test NLL↓\downarrow. Mean±\pmstd, 5 seeds.
Volcano Earthquake Flood Fire
Dataset size (train + val + test) 827 6,120 4,875 12,809
Riemannian CNF (Mathieu and Nickel 2020) -0.97 ±\pm 0.15 0.19 ±\pm 0.04 0.90 ±\pm 0.03 -0.66 ±\pm 0.05
Moser Flow (Rozen et al. 2021) -2.02 ±\pm 0.42 -0.09 ±\pm 0.02 0.62 ±\pm 0.04 -1.03 ±\pm 0.03
CNF Matching (Ben-Hamu et al. 2022) -2.38 ±\pm 0.17 -0.38 ±\pm 0.01 0.25 ±\pm 0.02 -1.40 ±\pm 0.02
Riemannian Score-Based (De Bortoli et al. 2022) -4.92 ±\pm 0.25 -0.19 ±\pm 0.07 0.45 ±\pm 0.17 -1.33 ±\pm 0.06
Riemannian Diffusion Model (Huang et al. 2022) -6.61 ±\pm 0.97 -0.40 ±\pm 0.05 0.43 ±\pm 0.07 -1.38 ±\pm 0.05
RFM (Paper results) -7.93 ±\pm 1.67 -0.28 ±\pm 0.08 0.42 ±\pm 0.05 -1.86 ±\pm 0.11
RFM (Reproduced) -6.96 ±\pm 1.71 -0.21 ±\pm 0.05 0.48 ±\pm 0.04 -1.77 ±\pm 0.06
Our method -9.69 ±\pm 1.94 -0.28 ±\pm 0.04 0.47 ±\pm 0.04 -2.11 ±\pm 0.11

Earth and climate science datasets on the sphere

Following Chen and Lipman (2024), we apply our method to datasets compiled from NGDC/WDS (2020a, 2020b), Brakenridge (2017), and EOSDIS (2020) by Mathieu and Nickel (2020). In Table 4, we see uniform improvement relative to our reproduction of the baseline. While our method, like RFM, struggles on the earthquake and flood datasets, it improves over prior work on the volcano and fire datasets, which are the smallest and largest datasets respectively and have highly concentrated regions requiring high fidelity (see plots in De Bortoli et al. 2022). The models outperforming our method and RFM (Reproduced) do not require implicitly specifying a particular transport path. This allows them to optimize the path. The trade-off is lack of scalability above low manifold dimension.

High-dimensional human pose data

We further evaluate on a large-scale dataset of human poses from amass (Mahmood et al. 2019), embedded in SO(3)19{\mathrm{SO}(3)}^{19}, following Dünkel et al. (2024) in the partition of the dataset we use. We train RFM, RG-VFM, and our method on 11,823,971 samples from this partition. We also compare with the released checkpoint of HuProSO3 (Dünkel et al. 2024), which was trained on the full partition, including our test samples. We see in Table 5 that our method outperforms according to both sample-based metrics. This supports the use of our method, especially in high-dimensional applications where sample quality is of particular importance.

Table 5: Human pose on SO(3)19{\mathrm{SO}(3)}^{19}. Mean±\pmstd, 5 seeds, except HuProSO3, which uses the released checkpoint id_0900. 20,000 samples per seed.
NLL ↓\downarrow Energy distance ↓\downarrow Gaussian MMD2^{\mathbf{2}} ↓\downarrow
Method w.r.t. Haar chordal, ×103\times 10^3 chordal, ×103\times 10^3
HuProSO3 -137.78 56.76 9.746
RG-VFM -150.58 ±\pm 0.41 18.60 ±\pm 1.72 3.601 ±\pm 0.308
RFM -198.11 ±\pm 0.81 2.16 ±\pm 0.20 0.379 ±\pm 0.035
Our method -197.41 ±\pm 0.44 1.68 ±\pm 0.04 0.293 ±\pm 0.008

6 Limitations

Similar to RFM (Chen and Lipman 2024) and RG-VFM (Zaghen et al. 2026), our method requires specialization per manifold. Both RFM and RG-VFM have the advantage of only requiring well-studied manifold objects. Tables of metric tensors and logarithmic maps are readily available; our method brings the added work of devising an efficient way to compute and invert the mean map and pretabulate the covariance components. This generally involves identifying a symmetry that reduces the integration to low-dimensional quadrature, differentiating under the integral sign, and crafting a numerically stable implementation. We have not implemented our method on general geometries as extensively as Chen and Lipman (2024) have for RFM. For manifolds without closed-form geodesics, even RFM is costly and complex. In this setting, probability paths are defined via diffusive or biharmonic premetrics, so our method would need to perform quadrature over these or estimate the mean and variance via Monte Carlo, which may be prohibitive. We discuss these potential extensions in Appendix C. As in RG-VFM, we target data with known symmetries and geometric structure rather than arbitrary 3D meshes, but it may be possible to extend our method to these settings. Unlike RG-VFM, we do not require homogeneity, although it is useful in practice.

Guzmán-Cordero et al. (2025) previously suggested, based on the ideas of Eijkelboom et al. (2024), that likelihoods over endpoints should be exponential families with a parameter of interest as the sufficient statistic. Their work targets heterogeneous tabular data, relying on the identity ut(xt)=E⁡[utcond(xt∣x1)]=utcond(xt∣E⁡[x1])u_t(x_t)={\operatorname{\mathbb{E}}}[{u_t^{\text{cond}}}(x_t\mid x_1)]={u_t^{\text{cond}}}(x_t\mid{\operatorname{\mathbb{E}}}[x_1]) via linearity of conditional paths to estimate the marginal field from the endpoint prediction, similar to RG-VFM. As this work establishes, the nonlinearity of conditional paths on manifolds means that such constructions do not generally possess compatibility.

Prior intrinsic generative models include Riemannian CNFs (Mathieu and Nickel 2020), Moser Flow (Rozen et al. 2021), CNF Matching (Ben-Hamu et al. 2022), and score-based (De Bortoli et al. 2022) and ELBO-based diffusion (Huang et al. 2022). However, as Chen and Lipman (2024) discuss, these require simulated random walks (Huang et al. 2022; De Bortoli et al. 2022), approximations to the heat kernel (De Bortoli et al. 2022), heavy divergence computation (Huang et al. 2022) or Hutchinson estimation (Mathieu and Nickel 2020). Earlier simulation-free methods (Rozen et al. 2021; Ben-Hamu et al. 2022) scale poorly to high dimensions and general geometries.

With the exception of RG-VFM, recent manifold extensions of flow matching mostly specialize RFM to particular geometries or applications (as in Cheng et al. 2024; Miller et al. 2024; A. H. Cheng et al. 2025), or propose an alternative method for a single manifold class (as in Collas et al. 2025). An orthogonal line of work focuses on accelerated inference. Consistency models (Song et al. 2023) distil one-step maps from intermediate states to data, and Riemannian consistency models (C. Cheng et al. 2025) port this idea to manifolds. Similarly, flow maps (Boffi et al. 2025) use self-distillation for few-step inference, and Davis et al. (2026) propose Generalized Flow Maps for manifolds.

8 Conclusion

At population optima, likelihood maximization generically fails to recover the true marginal velocity. Our compatibility condition characterizes when it succeeds. Our residual bound shows that compatibility is enough to avoid this source of error even if the likelihood is misspecified. On compact manifolds, prior work satisfying the condition assigns Gaussian likelihood to infeasible velocities. We propose an exponential family in endpoint space that preconditions the loss while being both compatible and support-aware. Empirically, our method recovers the expected velocity in the analytic test case, improves NLL on two spherical benchmarks, and improves sample-based metrics on high-dimensional tori and human poses. More broadly, in choosing a likelihood for flow matching, we must consider not only the intrinsic geometry, but also whether optimizing yields the right flow.

Acknowledgements

This research is supported through the EPSRC ROSEHIPS grant [EP/W005816/1].

Appendix

Organization of the appendix

We prove and derive the main theoretical results of interest in Appendix A; we share more experiments and ablations in Appendix B; we describe implementation details and training algorithms in Appendix C; we specialize the method to some common manifolds of interest in Appendix D; we outline the experimental protocols and hyperparameters in Appendix E; and we report measurements of computational performance in Appendix F.

A Proofs and theoretical derivations

A.1 Compatibility bound

See Theorem 1.

Proof. The residual rx,tr_{x,t} is defined as that of the least-squares problem

(Ax,t∗,bx,t∗)∈arg⁡min⁡A,bE⁡qθ∗[∥ψx,t(z)−As∗(z)−b∥g2].(A_{x,t}^*,b_{x,t}^*) \in \arg\min_{A,b} {\operatorname{\mathbb{E}}}_{q^{\theta^*}}\left[ \|\psi_{x,t}(z)-As^*(z)-b\|_g^2 \right].

In particular,

ψx,t=Ax,t∗s∗+bx,t∗+rx,t.\psi_{x,t}=A_{x,t}^*s^*+b_{x,t}^*+r_{x,t}.

Now taking expectations under each distribution pp and qθ∗q^{\theta^*},

E⁡p[ψx,t]=Ax,t∗E⁡p[s∗]⏟0+bx,t∗+E⁡p[rx,t],E⁡qθ∗[ψx,t]=Ax,t∗E⁡qθ∗[s∗]⏟0+bx,t∗+E⁡qθ∗[rx,t].\begin{aligned} {\operatorname{\mathbb{E}}}_p[\psi_{x,t}] &=A_{x,t}^*\underbrace{{\operatorname{\mathbb{E}}}_p[s^*]}_{0}+b_{x,t}^*+{\operatorname{\mathbb{E}}}_p[r_{x,t}],\\ {\operatorname{\mathbb{E}}}_{q^{\theta^*}}[\psi_{x,t}] &=A_{x,t}^*\underbrace{{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[s^*]}_{0}+b_{x,t}^* +{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[r_{x,t}]. \end{aligned}

In the subtraction of these expressions, the bx,t∗b_{x,t}^* terms cancel and we are left with

E⁡p[ψx,t]−E⁡qθ∗[ψx,t]=E⁡p[rx,t]−E⁡qθ∗[rx,t]=E⁡qθ∗[(dpdqθ∗−1)rx,t].\begin{aligned} {\operatorname{\mathbb{E}}}_p[\psi_{x,t}] -{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[\psi_{x,t}] &={\operatorname{\mathbb{E}}}_p[r_{x,t}] -{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[r_{x,t}]\\ &={\operatorname{\mathbb{E}}}_{q^{\theta^*}}\left[ \left(\frac{\mathrm dp}{\mathrm d q^{\theta^*}}-1\right) r_{x,t} \right]. \end{aligned}

For any unit vector w∈TxMw\in T_x\mathcal M, Cauchy–Schwarz yields

∣⟨w, E⁡p[ψx,t]−E⁡qθ∗[ψx,t]⟩g∣≤χ2(p∥qθ∗)E⁡qθ∗[⟨w,rx,t⟩g2]=χ2(p∥qθ∗)⟨w, E⁡qθ∗[rx,t⊗rx,t]w⟩g≤χ2(p∥qθ∗)∥E⁡qθ∗[rx,t⊗rx,t]∥op,g.\begin{aligned} \left| \left\langle w,\, {\operatorname{\mathbb{E}}}_p[\psi_{x,t}] -{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[\psi_{x,t}] \right\rangle_g \right|&\le \sqrt{\chi^2(p\|q^{\theta^*})} \sqrt{{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[ \langle w,r_{x,t}\rangle_g^2 ]}\\ &= \sqrt{\chi^2(p\|q^{\theta^*})} \sqrt{ \left\langle w,\, {\operatorname{\mathbb{E}}}_{q^{\theta^*}}[r_{x,t}\otimes r_{x,t}]w \right\rangle_g }\\ &\le \sqrt{\chi^2(p\|q^{\theta^*})} \sqrt{ \left\|{\operatorname{\mathbb{E}}}_{q^{\theta^*}}[ r_{x,t}\otimes r_{x,t}] \right\|_{\mathrm{op},g} }. \end{aligned}

Taking supremum over unit vectors ww concludes the proof.

A.2 Motivating example with smooth data on T1\mathbb T^1

Here, we check whether the example of Section 3.1 survives after smoothing the mixture of Diracs into that of wrapped Gaussians,

p0=12WN(−α,σ02)+12WN(+α,σ02),p1=12WN(−β,σ12)+12WN(+β,σ12).\begin{aligned} p_0 &= \frac12\mathcal{WN}(-\alpha,\sigma_0^2) + \frac12\mathcal{WN}(+\alpha,\sigma_0^2),\\ p_1 &= \frac12\mathcal{WN}(-\beta,\sigma_1^2) + \frac12\mathcal{WN}(+\beta,\sigma_1^2). \end{aligned}

As before, let τ∈(0,12)\tau\in(0,\tfrac12), β∈(π2,π(1−τ))\beta\in(\tfrac\pi2,\pi(1-\tau)), and α=τβ1−τ\alpha=\frac{\tau\beta}{1-\tau}. Geodesics joining the component centres (+α,−β)(+\alpha,-\beta) and (−α,+β)(-\alpha,+\beta) meet at xτ=0x_\tau=0. For a coupled pair with geodesic velocity w=log⁡x0(x1)∈[−π,π]w=\log_{x_0}(x_1)\in[-\pi,\pi] at xt=xx_t=x, the endpoints satisfy x0=x−twx_0=x-tw and x1=x+(1−t)wx_1=x+(1-t)w (modulo 2π2\pi). As the change of variables has unit Jacobian, under independent coupling the conditional density satisfies

pt(w∣x)∝p0(x−tw)p1(x+(1−t)w).p_t(w\mid x)\propto p_0(x-tw)p_1(x+(1-t)w).

Both mixtures satisfy pi(x)=pi(−x)p_i(x)=p_i(-x). Hence, pt(w∣0)=pt(−w∣0)p_t(w\mid0)=p_t(-w\mid0). For all σ0,σ1>0\sigma_0,\sigma_1>0 and 0≤t<10\le t<1,

ut(0)=∫−ππw pt(w∣0) dw=0.u_t(0)=\int_{-\pi}^{\pi}w\,p_t(w\mid0)\,\mathrm dw=0.

Local behaviour of the marginal velocity

The derivative uτ′(0)u_\tau'(0) determines the direction of the true marginal field near the crossing. Let τ=14\tau=\tfrac14, α=13β\alpha=\tfrac13\beta, and σ0=σ1=σ\sigma_0=\sigma_1=\sigma. For small σ\sigma, the two crossing component pairs dominate p14(w∣x)p_{\frac14}(w\mid x) near x=0x=0. Via the corresponding Gaussian components on R\mathbb R, we calculate the conditional mean of ww for each crossing pair. For pairs centred at (+α,−β)(+\alpha,-\beta) and (−α,+β)(-\alpha,+\beta), we have, via completion of the square,

N(x−14w; ±α,σ2)N(x+34w; ∓β,σ2)∝exp⁡(−(x−14w∓α)2+(x+34w±β)22σ2)=exp⁡(−516σ2(w+4x5±(α+β))2−4x25σ2).\begin{aligned} \mathcal N\left(x-\frac14w;\,\pm\alpha,\sigma^2\right) \mathcal N\left(x+\frac34w;\,\mp\beta,\sigma^2\right) &\propto \exp\left( -\frac{(x-\tfrac14w\mp\alpha)^2+(x+\tfrac34w\pm\beta)^2}{2\sigma^2} \right)\\ &= \exp\left( -\frac{5}{16\sigma^2} \left(w+\frac{4x}{5}\pm(\alpha+\beta)\right)^2 -\frac{4x^2}{5\sigma^2} \right). \end{aligned}

The two Gaussian products have the same dependence on xx (after integration over w∈Rw\in\mathbb R), so they also have equal posterior weights. Averaging over the two crossing pairs cancels the terms in α+β\alpha+\beta,

E⁡[w∣x14=x, crossing pairs]=12(−(α+β)−45x+(α+β)−45x)=−45x.\begin{aligned} {\operatorname{\mathbb{E}}}\left[w\mid x_{\frac14}=x,\text{ crossing pairs}\right] &=\frac12\left(-(\alpha+\beta)-\frac45x +(\alpha+\beta)-\frac45x\right)\\ &=-\frac45x. \end{aligned}

For pairs whose endpoints are of the same sign, the mean of x14x_{\frac14} is ±12β\pm\tfrac12\beta; for crossing pairs, it is zero. For all four cases, the variance is 58σ2\tfrac58\sigma^2. For each pair whose endpoints are of the same sign, the distribution of x14x_{\frac14} has density at zero equal to e−β2/(5σ2)e^{-\beta^2/(5\sigma^2)} times that for a crossing pair. To obtain the derivative for the wrapped distributions, we must also account for periodic copies and the restriction ∣w∣≤π|w|\le\pi. We have

ut(x)=∫−ππw p0(x−tw)p1(x+(1−t)w) dw∫−ππp0(x−tw)p1(x+(1−t)w) dw.u_t(x) =\frac{\int_{-\pi}^{\pi}w\,p_0(x-tw)p_1(x+(1-t)w)\,\mathrm dw} {\int_{-\pi}^{\pi}p_0(x-tw)p_1(x+(1-t)w)\,\mathrm dw}.

Since ut(0)=0u_t(0)=0, differentiating gives

ut′(0)=∫−ππw[p0′(−tw)p1((1−t)w)+p0(−tw)p1′((1−t)w)] dw∫−ππp0(−tw)p1((1−t)w) dw=E⁡pt(⋅∣0)[w(p0′(−tw)p0(−tw)+p1′((1−t)w)p1((1−t)w))].\begin{aligned} u_t'(0) &=\frac{\int_{-\pi}^{\pi}w\left[p_0'(-tw)p_1((1-t)w) +p_0(-tw)p_1'((1-t)w)\right]\,\mathrm dw} {\int_{-\pi}^{\pi}p_0(-tw)p_1((1-t)w)\,\mathrm dw}\\ &= {\operatorname{\mathbb{E}}}_{p_t(\cdot\mid0)} \left[ w\left( \frac{p_0'(-tw)}{p_0(-tw)} +\frac{p_1'((1-t)w)}{p_1((1-t)w)} \right) \right]. \end{aligned}

At x14=0x_{\frac14}=0, the endpoints satisfy x0=−14wx_0=-\frac14w and x1=34wx_1=\frac34w. Both endpoints coincide with their Gaussian means for only the crossing pairs, at w=±43β∈(−π,π)w=\pm\tfrac43\beta\in(-\pi,\pi). For the other pairs, no value of ww puts both endpoints at their Gaussian means. The crossing peaks lie some fixed distance from the integration boundaries. Hence, other Gaussian terms and the tails, added when extending the crossing integrals to R\mathbb R, change the derivative of the numerator and the value of the denominator by at most Cσ−Ke−c/σ2C\sigma^{-K}e^{-c/\sigma^2} for some C,c>0C,c>0 and finite KK. The crossing terms contribute a denominator of order σ−1\sigma^{-1}, so

u14′(0)=−45+O(e−c′/σ2)u'_{\frac14}(0)=-\frac45+\mathcal O(e^{-c'/\sigma^2})

for some c′>0c'>0. Reflection means u14(x)u_{\frac14}(x) is odd, implying that

u14(x)=(−45+O(e−c′/σ2))x+Oσ(x3).u_{\frac14}(x)= \left(-\frac45+\mathcal O(e^{-c'/\sigma^2})\right)x +\mathcal O_\sigma(x^3).

That is to say, for sufficiently narrow components, the true marginal velocity points toward zero on both sides of the crossing.

Global optimum of the RG-VFM loss for smooth data

RG-VFM minimizes the Fréchet function of the conditional endpoint distribution. At xτ=0x_\tau=0, the endpoint corresponding to ww is x1=(1−τ)wx_1=(1-\tau)w, so

F(μ)=∫−ππdist⁡g((1−τ)w,μ)2pτ(w∣0) dw.F(\mu)=\int_{-\pi}^{\pi} {\operatorname{dist}}_g((1-\tau)w,\mu)^2p_\tau(w\mid0)\,\mathrm dw.

By symmetry, F(π+δ)=F(π−δ)F(\pi+\delta)=F(\pi-\delta), meaning μ=π\mu=\pi is always a stationary point. Let Y=(1−τ)∣w∣Y=(1-\tau)|w| be the magnitude of the endpoint, where pτ(w∣0)p_\tau(w\mid0) induces the density ρ\rho of YY. Again by symmetry, it will suffice to compare π\pi with μ=π−δ\mu=\pi-\delta for 0≤δ≤π0\le\delta\le\pi. For symmetric endpoints ±y\pm y, the Fréchet function changes by

12dist⁡g(π−δ,y)2+12dist⁡g(π−δ,−y)2−(π−y)2={δ2,δ≤y,δ2−2π(δ−y),δ>y=δ2−2π[δ−y]+.\begin{aligned} \frac12 {\operatorname{dist}}_g(\pi-\delta,y)^2+ \frac12{\operatorname{dist}}_g(\pi-\delta,-y)^2 -(\pi-y)^2 &=\begin{cases} \delta^2,&\delta\le y,\\ \delta^2-2\pi(\delta-y),&\delta>y \end{cases}\\ &=\delta^2-2\pi[\delta-y]_+. \end{aligned}

Now, averaging over Y,Y,

F(π−δ)−F(π)=δ2−2π∫0δ(δ−y)ρ(y) dy.F(\pi-\delta)-F(\pi) =\delta^2-2\pi\int_0^\delta (\delta-y)\rho(y)\,\mathrm dy.

Only endpoint magnitudes Y<δY<\delta contribute to the second term, which offsets the quadratic cost of moving away from π\pi. Choose b∈(π/2,β)b\in(\pi/2,\beta) and let M=sup⁡0≤y≤bρ(y)M=\sup_{0\le y\le b}\rho(y). If M<1/πM<1/\pi and bP⁡(Y≥b)>π/2b\operatorname{\mathbb{P}}(Y\ge b)>\pi/2, then, for 0<δ≤b0<\delta\le b,

F(π−δ)−F(π)≥δ2−2πM∫0δ(δ−y) dy=(1−πM)⏟>0δ2.\begin{aligned} F(\pi-\delta)-F(\pi) &\ge\delta^2-2\pi M\int_0^\delta(\delta-y)\,\mathrm dy\\ &=\underbrace{(1-\pi M)}_{>0}\delta^2. \end{aligned}

For b≤δ≤πb\le\delta\le\pi,

F(π−δ)−F(π)=δ2−2πE⁡[[δ−Y]+]=δ2−2πδ+2πE⁡[min⁡(δ,Y)]≥(π−δ)2+2πbP⁡(Y≥b)−π2⏟>0.\begin{aligned} F(\pi-\delta)-F(\pi) &=\delta^2-2\pi{\operatorname{\mathbb{E}}}\left[[\delta-Y]_+\right]\\ &=\delta^2-2\pi\delta+2\pi{\operatorname{\mathbb{E}}}[\min(\delta,Y)]\\ &\ge(\pi-\delta)^2 +\underbrace{2\pi b\operatorname{\mathbb{P}}(Y\ge b)-\pi^2}_{>0}. \end{aligned}

For the wrapped Gaussian mixtures, YY concentrates at β\beta as σ0,σ1→0\sigma_0,\sigma_1\to0, so M→0M\to0 and P⁡(Y≥b)→1\operatorname{\mathbb{P}}(Y\ge b)\to1. The strict inequalities hold for sufficiently small component variances, persisting for small perturbations (within the family of symmetric mixtures). Hence μ=π\mu=\pi is the unique global optimum for RG-VFM on an open region within the parameterized family of symmetric smooth mixtures. At μ=π\mu=\pi, either minimum-length geodesic from zero has length π\pi. Because of this, the smoothed case has the same branch ambiguity as for the mixture of Diracs. While symmetry gives uτ(0)=0u_\tau(0)=0, RG-VFM decodes this endpoint into a velocity of magnitude π1−τ\frac{\pi}{1-\tau}. Again, the velocity error at the population optimum is

∥vτθ∗(0)−uτ(0)∥g=π1−τ.\left\|v_\tau^{\theta^*}(0)-u_\tau(0)\right\|_g =\frac{\pi}{1-\tau}.

A.3 Characterization of the Gaussian carrier

As the theory of compatibility does not select a universal carrier, we impose a small number of heuristic desiderata. We desire for the carrier to be centred, isotropic, factorizable on product manifolds, give ordinary CFM in the Euclidean case, linearize to RFM in the limit t→1t\to1, and be normalizable on manifolds of interest. For a radially isotropic carrier, coordinates on product manifolds enter only through the joint norm ∥utcond∥g\lVert{u_t^{\text{cond}}}\rVert_g. Following the same derivation as for Herschel–Maxwell, we write such a carrier as f(∥u∥g2)f(\lVert u\rVert_g^2) and use factorization to obtain

f(a+b)f(0)=f(a)f(0)f(b)f(0),\frac{f(a+b)}{f(0)}=\frac{f(a)}{f(0)}\frac{f(b)}{f(0)},

where a,b≥0a,b\geq0. Hence, by continuity, f(a)=f(0)e−βaf(a)=f(0)e^{-\beta a}. Geodesic exponentials provide a natural setting in which to vary the tailedness of the carrier in ablation (see Appendix B.3). Terminal locality excludes the constant and growing choices. This means that β>0\beta>0, and equating the Euclidean covariance to II selects β=12\beta=\tfrac12 uniquely. The requirements narrow to the present choice of Gaussian carrier.

A.4 Limiting behaviour and relationship to Riemannian flow matching

Manifolds with diffeomorphic exponential map

On these noncompact manifolds, a special choice of carrier recovers Riemannian flow matching. We see that the Jacobian term introduces an artificial linearization of the likelihood model over endpoints, collapsing the variance to the identity. Let the carrier be

cx,t(x1)=exp⁡(−12∥utcond∥g2)∣det⁡Dutcond∣.c_{x,t}(x_1)=\exp\left(-\frac12\lVert{u_t^{\text{cond}}}\rVert_g^2\right) \left|\det D{u_t^{\text{cond}}}\right|.

Here, ∣det⁡Dutcond∣\left|\det D{u_t^{\text{cond}}}\right| is the Jacobian determinant with respect to the Riemannian volume measures. The exponential family over endpoints

qt(dx1∣xt;η)=cx,t(x1)exp⁡(⟨η,utcond⟩g−Ax,t(η)) dVolg(x1)q_{t}(\mathrm{d}x_1 | x_t; \eta)=c_{x,t}(x_1)\exp\left(\langle\eta,{u_t^{\text{cond}}}\rangle_g-A_{x,t}(\eta)\right)\, \mathrm{dVol}_g(x_1)

pushes forward under utcond{u_t^{\text{cond}}} to a density on TxMT_x\mathcal M,

qu(u;η)∝exp⁡(−12∥u∥g2+⟨η,u⟩g)∣det⁡Dutcond∣⏞carrier∣det⁡Dutcond∣−1⏟change of variables=exp⁡(−12∥u−η∥g2+12∥η∥g2).\begin{aligned} q_u(u;\eta) &\propto\exp\left(-\frac12\lVert u\rVert_g^2+\langle\eta,u\rangle_g\right) \overbrace{\left|\det D{u_t^{\text{cond}}}\right|}^{\text{carrier}} \underbrace{\left|\det D{u_t^{\text{cond}}}\right|^{-1}}_{\text{change of variables}}\\ &=\exp\left(-\frac12\lVert u-\eta\rVert_g^2+\frac12\lVert\eta\rVert_g^2\right). \end{aligned}

Thus the pushforward is N(η,g−1)\mathcal N(\eta,g^{-1}), and

Ax,t(η)=log⁡∫TxMexp⁡(−12∥u∥g2+⟨η,u⟩g) dVolg(u)=12∥η∥g2+d2log⁡(2π).\begin{aligned} A_{x,t}(\eta) &=\log\int_{T_x\mathcal M} \exp\left(-\frac12\lVert u\rVert_g^2+\langle\eta,u\rangle_g\right)\,\mathrm{dVol}_g(u)\\ &=\frac12\lVert\eta\rVert_g^2+\frac d2\log(2\pi). \end{aligned}

In consequence, mx,t(η)=ηm_{x,t}(\eta)=\eta, Vx,t=IV_{x,t}=I, and the likelihood-based loss is equivalent to RFM up to the factor 12\frac12. On flat manifolds like product tori, this carrier is equivalent to our choice up to a constant factor, but the pushforward for product tori is truncated, as in Appendix D.1.

Asymptotic convergence as t→1t\to 1

Under our choice of carrier, as t→1t\to1, the endpoint distribution concentrates around xtx_t, with typical distances of order 1−t1-t. In this limit, the geometry becomes locally Euclidean by linearization of the exponential map, and the covariance operator Vx,t(vtθ(xt))V_{x,t}({v_t^\theta}(x_t)) converges to the identity, so the sample loss approaches 12∥vtθ(xt)−utcond∥g2\frac12\lVert{v_t^\theta}(x_t)-{u_t^{\text{cond}}}\rVert_g^2, the RFM sample loss up to the factor 12\frac12. Examples of this limit can be found in Appendix D.

B Supplementary experimental results

B.1 Profiles of the vector fields for the analytic test case on T1\mathbb T^1

In the absence of compatibility, first-order conditions for likelihood maximization do not fully determine the learned marginal velocity in the sense we discuss in Section 3.2. Here, we study the learned field corresponding to the analytic example in Section 3.1, in particular its behaviour with respect to ODE solvers. The analytic predictions are visible in vtθ(x=0)v^{\theta}_t(x{=}0) along t∈[0,1]t\in[0,1], as shown in Figure 4. Here, there is a branch ambiguity in that the RG-VFM decoder has the arbitrary choice of two shortest paths to π\pi, which approach from opposing directions. The upper cluster for RG-VFM (the globally optimal case, defined as in Figure 2) exhibits what is nearly a discontinuity at t=τ=14t=\tau=\tfrac14, with the one-sided limits matching the ±4π3\pm\tfrac{4\pi}{3} values predicted in Section 3.1. The lower cluster is smooth but converges to the local minimum at zero velocity, which is not globally optimal. RFM and our method are smooth throughout. We attribute the high NFE with dopri5 reported in Table 2 to the high local Lipschitz constant of the field in the upper cluster at t≈14t\approx\tfrac14. The kink at t=0.9t=0.9 in both RG-VFM clusters is due to the clipping of 11−t\frac{1}{1-t} to a maximum of 10. This is necessary because the pole at t=1t=1 is not automatically separable in the same way as it is for RFM and our method, as the network output is not guaranteed to match the rate necessary for pole cancellation. We take the clamp bounds from the implementation provided by Zaghen et al. (2026).

Predicted velocity at x equals zero as a function of time for RFM, our method, and the two RG-VFM clusters.
Figure 4: vtθ(x=0)v^{\theta}_t(x{=}0) as a function of tt. One representative seed for RFM, our method, and each RG-VFM cluster. The vertical dashed line marks τ=14\tau=\tfrac14. RG-VFM (Upper) jumps between the two globally minimizing branches at ±4π3\pm\tfrac{4\pi}{3} predicted in Section 3.1. It takes many small steps for the ODE solver to resolve the stiff field.

B.2 Evaluating the NLL for RG-VFM

To check that the uniform violations of the entropic bound we find in the RG-VFM NLLs in Table 3 are not an artefact of our implementation, we reproduce the checkerboard task of Zaghen et al. (2026) on S2\mathbb{S}^2. We use the published codebase on the same task (intrinsic variant, 3,000 epochs at the published hyperparameters) and study the resulting NLL of the continuous normalizing flow under a wide range of solvers. We compute the CNF likelihood via change of variables with exact divergence (per-coordinate torch.autograd.grad), reporting values in bits. Here, we observe values that are too large rather than too small. We cannot predict which way the NLL will diverge, but we hypothesize this to be a function of the data and solver.

Increasing the number of steps

Figure 5 shows a sweep over the number NN of Euler steps. RFM stabilizes at approximately 2.51 bits (below the entropic upper bound log⁡2(4π)≈3.65\log_2(4\pi)\approx3.65 bits for the uniform distribution on S2\mathbb{S}^2) by N=200N=200 and stays there. RG-VFM rises from 1.7 bits at N=50N=50 to 723.7 bits at N=10,000N=10,000. Repeating the sweep with Heun (2nd order) and rk4 (4th order) gives qualitatively identical behaviour, exceeding 50 bits by N=500N=500 for both. This eliminates the possibility of this phenomenon being an artefact of discretization to first order.

Negative log likelihood on the sphere checkerboard task for RFM and RG-VFM as the number of Euler integration steps increases.
Figure 5: NLL of the continuous normalizing flow on the S2\mathbb{S}^2 checkerboard task of Zaghen et al. (2026) as a function of the number NN of Euler integration steps (log xx, linear yy). 1,000 samples. RFM converges to approximately 2.5 bits; RG-VFM appears to diverge monotonically. Exact divergence.

Reducing the tolerance of dopri5

Table 6 exhibits the same divergence under dopri5 at tightening tolerances. RFM stays around 2.47 bits while RG-VFM rises from 16.6 bits to 533.5 bits as tolerance drops from 10−210^{-2} to 10−510^{-5}. At tolerance 10−510^{-5}, RG-VFM requires ∼70×\sim 70\times as many function evaluations as RFM. RG-VFM at tolerances ≤10−6\le 10^{-6} exceeds the 300 seconds time limit; RFM completes in under 2 seconds at the tolerances we test.

Table 6: Varying the tolerance of dopri5 on the S2\mathbb{S}^2 checkerboard. 1,000 samples. We allow 300 seconds for each call to the solver.
RFM RG-VFM
NLL ↓\downarrow NFE ↓\downarrow NLL ↓\downarrow NFE ↓\downarrow
Tolerance (bits) (bits)
10−210^{-2} 2.48 32 16.6 452
10−310^{-3} 2.47 50 130.0 2,318
10−410^{-4} 2.47 134 312.3 10,328
10−510^{-5} 2.47 494 533.5 34,694
10−610^{-6} 2.47 2,216 timeout - —
10−710^{-7} 2.47 9,902 timeout - —

Specialized solvers for stiff ODEs

After increasing the time limit to 900 seconds per call, we also test SciPy’s stiff integrators lsoda, bdf and Radau via torchdiffeq. We use tolerances {10−2,10−3,10−5,10−7}\{10^{-2},10^{-3},10^{-5},10^{-7}\}, resulting in 12 runs per model. For RFM, 10 runs complete, taking between 0.2 seconds and 399 seconds. Their NLLs are within 0.04 bits of 2.47 bits. lsoda and Radau time out at tolerance 10−710^{-7}. For RG-VFM, all 12 runs reach the time limit.

B.3 Carrier ablation

Here, as a natural setting to compare our choice of carrier against potential alternatives, we consider the family of geodesic exponential carriers

cp={exp⁡ ⁣[−(∥utcond∥gap)p],p∈{1,2,3,4},1,p=0,c_p=\begin{cases} \exp\!\left[-\left(\dfrac{\|{u_t^{\text{cond}}}\|_g}{a_p}\right)^p\right], & p\in\{1,2,3,4\},\\ 1, & p=0, \end{cases}

where, for p>0p>0,

ap=2Γ(2/p)Γ(4/p).a_p=\sqrt{2}\sqrt{\frac{\Gamma(2/p)}{\Gamma(4/p)}}.

We choose apa_p so that, in two-dimensional Euclidean space at η=0\eta=0, the covariance is V=IV=I. This is for the same reason that we omit the factor of 12\frac12 in the loss—it allows us to compare based on shape and not global rescaling. A global rescaling would largely correspond to just a factor change in the learning rate. We choose c0c_0 as a degenerate carrier that does not localize the endpoint distribution around xtx_t as t→1t\to1. Clearly, this is inefficient density assignment in the t=1t=1 limit, and more so than RFM, whose Gaussian tails decay outside the feasible velocity support.

Unlike c0c_0 and c2c_2, the other carriers c1c_1, c3c_3, and c4c_4 do not factor coordinate-wise on product manifolds. For c2c_2, factorization follows from the additive separability of the squared product norm. Hence, we conduct the ablation on S2\mathbb{S}^2, where pretabulating works for all carriers via quadrature in 1D. Specifically, we compare under the wrapped Gaussian target (a Gaussian in the tangent space pushed forward onto the manifold) described in Section 5 for the Td\mathbb{T}^d experiments. We use RFM as a baseline. As well as the target, the uniform base, coupling, and manifold geometry determine the posterior.

In Table 7, many negative medians occur for energy distance and MMD as the finite sample estimators exhibit skew although the population mean must be non-negative. KL is computed from the difference of the test/NLL and the wrapped Gaussian entropy estimated from the same test samples (i.e., acting as a Monte Carlo control variate). The lowest variance comparison is by KL. Ranked by KL, c0c_0 is clearly worst. Except for p=0p=0, the other powers do not show a clear difference, consistent with the carrier being a robust secondary choice after discarding alternatives filtered out by desiderata such as normalizability.

Table 7: Carrier ablation on S2\mathbb{S}^2. Mean±\pmstd [median], 15 seeds. 20,000 samples per seed.
KL ↓\downarrow Energy distance ↓\downarrow Laplace MMD2^{\mathbf{2}} ↓\downarrow
×103\times 10^3 ×106\times 10^6 ×106\times 10^6
RFM 0.1765 ±\pm 0.1447 [0.1607] 0.945 ±\pm 5.453 [-0.336] 2.026 ±\pm 7.359 [-0.187]
p=0p=0 0.5485 ±\pm 0.2773 [0.4488] 9.811 ±\pm 7.990 [5.828] 15.173 ±\pm 11.696 [9.467]
p=1p=1 0.1398 ±\pm 0.1339 [0.1070] 1.389 ±\pm 4.884 [-0.306] 2.681 ±\pm 6.189 [-0.098]
p=2p=2 0.1350 ±\pm 0.1091 [0.1037] 0.584 ±\pm 5.086 [-1.432] 1.465 ±\pm 6.405 [-1.383]
p=3p=3 0.1779 ±\pm 0.1667 [0.1215] 0.713 ±\pm 4.996 [-0.819] 1.649 ±\pm 6.420 [-1.138]
p=4p=4 0.1617 ±\pm 0.1567 [0.1078] 0.876 ±\pm 5.740 [-1.237] 1.872 ±\pm 7.662 [-1.641]

C Implementation details

C.1 Network output and domain of the mean map

For a full, regular exponential family with positive carrier and bounded sufficient statistic, under minimality Ax,tA_{x,t} is strictly convex. Hence, mx,t(η)=∇ηAx,tm_{x,t}(\eta)=\nabla_\eta A_{x,t} is one-to-one and maps the natural-parameter space onto the relative interior of the convex hull of feasible conditional velocities. Thus, mx,t−1(v)m^{-1}_{x,t}(v) exists when vv lies in that interior. At finite interior parameters, Vx,t=∇η2Ax,tV_{x,t}=\nabla_\eta^2 A_{x,t} is positive definite under minimality. If vv approaches the boundary, some eigenvalues of the covariance can tend to zero. That is, Vx,t−1V^{-1}_{x,t} does have the potential to become ill-conditioned or diverge in the limit. Our notion of support awareness relies on the conditional velocity field being well defined. This is the same prerequisite already required by RFM for the regression target, and by RG-VFM in the decoder from endpoints to velocities—both assume that the set of coupled pairs with non-unique probability paths has measure zero. That is to say, we do not introduce branch dependence at cut loci as an additional assumption or limitation of our method. Our endpoint likelihood induces density only on velocities produced by the conditional map from endpoints to velocities, relative to a fixed choice of branch.

In implementation, the network predicts an unconstrained velocity vtθ(xt)∈TxtM{v_t^\theta}(x_t)\in T_{x_t}\mathcal{M}. We evaluate the surrogate loss where the mean map is invertible. Outside this region, we use a barrier-style extension, which we obtain by clamping the argument of the mean parameter prior to inversion of the table. This has no effect on the population minimizer, provided it lies in the interior. This is because the effective loss we implement in practice is larger outside that interior and the gradients of the penalty all point inwards. On tori we clamp per coordinate while on spheres we clamp the norm. Across the selected checkpoints in our reported experiments, the fraction of predictions for which the barrier remained active was zero. Notwithstanding potentially large gradients as the mean parameter approaches the boundary of its domain, we do not observe any stability issues in practice and did not require gradient clipping, warmup, or other special techniques to train our method. We scale our loss to be on the same scale as the RFM loss by omitting the factor of 12\frac12.

C.2 Training algorithms

In Figure 6, we compare our method and RFM on simple geometries in algorithmic terms.

Algorithm 1: Riemannian Flow Matching

Inputs: base distribution p0(x0)p_0(x_0), target distribution p1(x1)p_1(x_1)


Initialize parameters θ\theta of vtθ(x){v_t^\theta}(x)
while not converged do
    sample time t∼U(0,1)t \sim \mathcal U(0,1)
    sample training example x1∼p1x_1 \sim p_1
    sample noise x0∼p0x_0 \sim p_0
    xt←exp⁡x0 ⁣(t log⁡x0(x1))x_t \gets \exp_{x_0}\!\left(t\,\log_{x_0}(x_1)\right)
    Δ←vtθ(xt)−utcond(xt∣x1)\Delta \gets {v_t^\theta}(x_t)-{u_t^{\text{cond}}}(x_t\mid x_1)
    ℓ(θ)←∥Δ∥g2\ell(\theta) \gets \|\Delta\|_g^2
    θ←optimizer_step⁡(ℓ(θ))\theta \gets \operatorname{optimizer\_step}(\ell(\theta))
end while

Algorithm 2: Our method

Inputs: base distribution p0(x0)p_0(x_0), target distribution p1(x1)p_1(x_1)

Pretabulate components of Vx,t(v)V_{x,t}(v)
Initialize parameters θ\theta of vtθ(x){v_t^\theta}(x)
while not converged do
    sample time t∼U(0,1)t \sim \mathcal U(0,1)
    sample training example x1∼p1x_1 \sim p_1
    sample noise x0∼p0x_0 \sim p_0
    xt←exp⁡x0 ⁣(t log⁡x0(x1))x_t \gets \exp_{x_0}\!\left(t\,\log_{x_0}(x_1)\right)
    Δ←vtθ(xt)−utcond(xt∣x1)\Delta \gets {v_t^\theta}(x_t)-{u_t^{\text{cond}}}(x_t\mid x_1)
    ℓ(θ)←⟨Δ, sg⁡(Vx,t(vtθ(xt)))−1 Δ⟩g\ell(\theta) \gets \langle\Delta,\,{\operatorname{sg}}(V_{x,t}({v_t^\theta}(x_t)))^{-1}\,\Delta\rangle_g
    θ←optimizer_step⁡(ℓ(θ))\theta \gets \operatorname{optimizer\_step}(\ell(\theta))
end while
Figure 6: Side-by-side training procedures for RFM and our method on simple geometries. The figure highlights the differing steps in our method in red. We omit the factor of 12\frac{1}{2} from our loss to keep it on the same scale as RFM.

C.3 Implementation on less symmetric manifolds

In principle, the usual steps of our method work on less symmetric manifolds—compute the mean and covariance of the conditional velocity under the endpoint family, numerically invert the mean map, and cache the resulting functions. Instead of quadrature, Monte Carlo could be feasible; the structure of the exponential family lets us express these quantities as expectations. Computing them offline and interpolating seems the most plausible route. Neural or piecewise optimization is plausibly most useful in either inverting the mean map, or selecting good choices of nodes and weights for quadrature. Generally, if there is a particular high-dimensional manifold supporting several datasets of interest, it would be prudent to learn the function approximations once, reusing them across datasets.

D Specialization to common geometries

The surrogate loss of our method is preconditioned by the covariance Vx,t(v)V_{x,t}(v) of the conditional velocity. For the purposes of this section, let v=vtθ(xt)v={v_t^\theta}(x_t) and η=mx,t−1(v)\eta=m_{x,t}^{-1}(v) so that Vx,t(v)=∇η2Ax,t(η)V_{x,t}(v)=\nabla_\eta^2 A_{x,t}(\eta). It will also be particularly convenient to adopt the definition

Δ=v−utcond(xt∣x1).\Delta=v-{u_t^{\text{cond}}}(x_t\mid x_1).

The range of geodesic velocities that are feasible and the Riemannian volume measure determine the log-partition function. In each case considered here, we find that symmetries of the manifold reduce the covariance to a small number of scalar functions. This makes offline pretabulation tractable.

D.1 Flat torus Td\mathbb T^d

As each coordinate of Td\mathbb T^d satisfies [log⁡xt(x1)]i∈[−π,π){[\log_{x_t}(x_1)]}_i\in[-\pi,\pi), we have [utcond]i∈[−π1−t,π1−t){[{u_t^{\text{cond}}}]}_i\in\left[-\tfrac\pi{1-t},\tfrac\pi{1-t}\right). Since the metric is flat, the map from endpoints to velocities has constant Jacobian. Hence, the likelihood is a product of N(ηi,1)\mathcal N(\eta_i,1) distributions truncated to [−π1−t,π1−t)\left[-\tfrac\pi{1-t},\tfrac\pi{1-t}\right). Now, let z±,i=ηi±π1−tz_{\pm,i}=\eta_i\pm \tfrac\pi{1-t}. With ϕ\phi and Φ\Phi as the standard normal density and CDF respectively, the log-partition function separates across coordinates into

Ax,t(η)=∑i=1dlog⁡∫−π/(1−t)π/(1−t)eηiu−u2/2 du+terms independent of η=∑i=1d[ηi22+log⁡(Φ(z+,i)−Φ(z−,i))]+terms independent of η.\begin{aligned} A_{x,t}(\eta) &=\sum_{i=1}^d\log\int_{-\pi/(1-t)}^{\pi/(1-t)} e^{\eta_i u-u^2/2}\,\mathrm du +\text{terms independent of }\eta\\ &= \sum_{i=1}^d\left[ \frac{\eta_i^2}{2} +\log\left(\Phi(z_{+,i})-\Phi(z_{-,i})\right) \right] +\text{terms independent of }\eta. \end{aligned}

The mean velocity is

vi=∂ηiAx,t(η)=ηi+ϕ(z+,i)−ϕ(z−,i)Φ(z+,i)−Φ(z−,i).\begin{aligned} v_i&=\partial_{\eta_i}A_{x,t}(\eta)\\ &=\eta_i+ \frac{\phi(z_{+,i})-\phi(z_{-,i})} {\Phi(z_{+,i})-\Phi(z_{-,i})}. \end{aligned}

The covariance is diagonal, with

[Vx,t(v)]ii=∂ηi2Ax,t(η)=1+z−,iϕ(z−,i)−z+,iϕ(z+,i)Φ(z+,i)−Φ(z−,i)−(vi−ηi)2.\begin{aligned} {[V_{x,t}(v)]}_{ii} &=\partial_{\eta_i}^2 A_{x,t}(\eta)\\ &=1+ \frac{z_{-,i}\phi(z_{-,i})-z_{+,i}\phi(z_{+,i})} {\Phi(z_{+,i})-\Phi(z_{-,i})} -{(v_i-\eta_i)}^2. \end{aligned}

Hence, we need just one scalar coefficient per coordinate to form the surrogate loss,

ℓ=12∑i=1dΔi2sg⁡([Vx,t(v)]ii).\ell=\frac12\sum_{i=1}^d \frac{\Delta_i^2}{{\operatorname{sg}}({[V_{x,t}(v)]}_{ii})}.

As t→1t\to1, the interval [−π1−t,π1−t)\left[-\tfrac\pi{1-t},\tfrac\pi{1-t}\right) expands to all of R\mathbb R, meaning [Vx,t(v)]ii{[V_{x,t}(v)]}_{ii} tends to one. As a result, the loss approaches 12∥Δ∥g2\frac12\|\Delta\|_g^2, which is that of RFM up to a factor of 12\tfrac12.

D.2 Complete simply connected manifolds of constant curvature

Here, let M\mathcal M be a complete simply connected dd-dimensional manifold of constant sectional curvature κ\kappa where d≥2d\ge2. Rotating around xtx_t preserves both distance and volume. Hence, the log-partition function depends on η\eta only via s=∥η∥gs=\|\eta\|_g. To emphasize this radial dependence, we write this function as At=At(s)A_t=A_t(s). The prediction vv of the velocity is parallel to η\eta and ∥v∥g=At′(s)\|v\|_g=A_t'(s). As ∇ηAx,t(η)=At′(s)ηs\nabla_\eta A_{x,t}(\eta)=A_t'(s)\frac{\eta}{s}, the covariance is

Vx,t(v)=∇η(At′(s)ηs)=At′′(s)η⊗ηs2+At′(s)s(I−η⊗ηs2)=At′(s)sI+(At′′(s)−At′(s)s)v⊗v∥v∥g2.(12)\begin{aligned} V_{x,t}(v) &=\nabla_\eta\left(A_t'(s)\frac{\eta}{s}\right)\\ &=A_t''(s)\frac{\eta\otimes\eta}{s^2} +\frac{A_t'(s)}s\left(I-\frac{\eta\otimes\eta}{s^2}\right)\\ &= \frac{A_t'(s)}{s}I+ \left(A_t''(s)-\frac{A_t'(s)}{s}\right) \frac{v\otimes v}{\|v\|_g^2}. \end{aligned} \tag{12}

At v=0v=0, the continuous extension is Vx,t(0)=At′′(0)IV_{x,t}(0)=A_t''(0)I; a directional decomposition is unneeded. Now, let Δ∥\Delta_\parallel and Δ⊥\Delta_\perp be the components of Δ\Delta which are, respectively, parallel and perpendicular to vv. Then, the surrogate loss is

ℓ=12[∥Δ∥∥g2sg⁡(At′′(s))+∥Δ⊥∥g2sg⁡(At′(s)s)].(13)\ell=\frac12\left[ \frac{\|\Delta_\parallel\|_g^2}{{\operatorname{sg}}(A_t''(s))} +\frac{\|\Delta_\perp\|_g^2}{{\operatorname{sg}}\left(\frac{A_t'(s)}{s}\right)} \right]. \tag{13}

We find that the loss weights errors parallel and perpendicular to the predicted velocity differently. As shown in Figure 7, the parallel component has greater weight than the perpendicular one on S2\mathbb S^2. This reflects the intuition that, when curvature is positive, geodesic convergence means that errors in the magnitude of the predicted velocity matter more than those in the direction.

Surrogate-loss weight for velocity errors parallel to the predicted velocity on the sphere.

Weight parallel to vv.

Surrogate-loss weight for velocity errors perpendicular to the predicted velocity on the sphere.

Weight perpendicular to vv.
Figure 7: Weighting of the surrogate loss on S2\mathbb S^2. The vertical axes show λ∥−1=1At′′(s)\lambda_\parallel^{-1}=\tfrac{1}{A_t''(s)} and λ⊥−1=sAt′(s)\lambda_\perp^{-1}=\tfrac{s}{A_t'(s)}, respectively. Errors parallel to the predicted velocity are given more weight than those perpendicular, but both tend to one as t→1t\to1.

Radial integration

We evaluate At(s)A_t(s) in polar coordinates around xtx_t. Let r=dist⁡g(xt,x1)1−tr=\tfrac{{\operatorname{dist}}_g(x_t,x_1)}{1-t} and ϑ\vartheta be the angle between η\eta and utcond{u_t^{\text{cond}}}. The radial part of the Riemannian volume measure is (up to a factor independent of ss)

Jt(r)={(sin⁡((1−t)κ r)(1−t)κ)d−1,κ>0,rd−1,κ=0,(sinh⁡((1−t)−κ r)(1−t)−κ)d−1,κ<0.J_t(r)= \begin{cases} \left(\frac{\sin((1-t)\sqrt{\kappa}\,r)}{(1-t)\sqrt{\kappa}}\right)^{d-1}, &\kappa>0,\\ r^{d-1}, &\kappa=0,\\ \left(\frac{\sinh((1-t)\sqrt{-\kappa}\,r)}{(1-t)\sqrt{-\kappa}}\right)^{d-1}, &\kappa<0. \end{cases}

For a conditional velocity vector of magnitude rr making an angle ϑ\vartheta with η\eta, the exponent in the likelihood is −12r2+srcos⁡ϑ-\tfrac12r^2+sr\cos\vartheta. Over the sphere of possible directions, the area between angles ϑ\vartheta and ϑ+dϑ\vartheta+\mathrm d\vartheta is proportional to sin⁡d−2ϑ dϑ\sin^{d-2}\vartheta\,\mathrm d\vartheta. Together with the radial factor in the volume measure Jt(r)J_t(r), this means the log-partition function reduces to

At(s)=log⁡∫0diameter⁡(M)1−te−12r2Jt(r)∫0πesrcos⁡ϑsin⁡d−2ϑ dϑ dr+terms independent of s.(14)A_t(s)=\log\int_0^{\frac{\operatorname{diameter}(\mathcal M)}{1-t}} e^{-\tfrac12r^2}J_t(r) \int_0^\pi e^{sr\cos\vartheta}\sin^{d-2}\vartheta\,\mathrm d\vartheta \,\mathrm dr+\text{terms independent of }s. \tag{14}

Computation of the derivatives

Employing the modified Bessel function IνI_\nu of the first kind, we write the integral over ϑ\vartheta as

∫0πesrcos⁡ϑsin⁡d−2ϑ dϑ=π Γ(d−12)(2sr)d2−1Id2−1(sr).\int_0^\pi e^{sr\cos\vartheta}\sin^{d-2}\vartheta\,\mathrm d\vartheta =\sqrt{\pi}\,\Gamma\left(\frac{d-1}{2}\right) \left(\frac{2}{sr}\right)^{\frac d2-1} I_{\frac d2-1}(sr).

For ν=d2−1\nu=\tfrac d2-1, the derivatives of the Bessel term satisfy the identities

ddz(z−νIν(z))=z−νIν+1(z),d2dz2(z−νIν(z))=z−ν(Iν+2(z)+Iν+1(z)z).\begin{aligned} \frac{\mathrm d}{\mathrm dz}\left(z^{-\nu}I_\nu(z)\right) &=z^{-\nu}I_{\nu+1}(z),\\ \frac{\mathrm d^2}{\mathrm dz^2}\left(z^{-\nu}I_\nu(z)\right) &=z^{-\nu}\left(I_{\nu+2}(z)+\frac{I_{\nu+1}(z)}{z}\right). \end{aligned}

Differentiating Equation 14 under the integral sign enables the calculation of both At′(s)A_t'(s) and At′′(s)A_t''(s) via quadrature in just one dimension. We tabulate these and the inverse of the map s↦At′(s)s\mapsto A_t'(s) prior to the training loop. For numerical stability, we use exponentially scaled Bessel functions for large arguments and a series expansion near zero. We accumulate the quadrature sums via log-sum-exp.

Euclidean limit

As t→1t\to1, the radial factor in the volume measure converges as Jt(r)→rd−1J_t(r)\to r^{d-1}. Hence, the integral tends to its Euclidean form for which

At(s)⟶s22+terms independent of s.A_t(s)\longrightarrow \frac{s^2}{2}+\text{terms independent of }s.

As a result, At′(s)→sA_t'(s)\to s and At′′(s)→1A_t''(s)\to1. Both weights in the loss tend to one, meaning ℓ→12∥Δ∥g2\ell\to\tfrac12\|\Delta\|_g^2. Up to a factor of 12\tfrac12, this again recovers the loss of RFM.

D.3 Rotation groups and products SO(3)n\mathrm{SO}(3)^n

On SO(3)\mathrm{SO}(3), we use the canonical bi-invariant metric where the distance from the identity to a rotation is given by its angle. Let a tangent vector at RR be denoted Ru^R\widehat u, where u^ w=u×w\widehat u\,w=u\times w. Identifying Ru^↔u∈R3R\widehat u\leftrightarrow u\in\mathbb R^3 is isometric as

gR(Ru^,Rw^)=u⊤w.g_R(R\widehat u,R\widehat w)=u^\top w.

Under this metric, SO(3)\mathrm{SO}(3) has sectional curvature κ=14\kappa=\tfrac14. The manifold is of constant curvature, albeit not simply connected. The largest possible geodesic distance between two rotations is π\pi, meaning the conditional velocity satisfies ∥utcond∥g≤π1−t\|{u_t^{\text{cond}}}\|_g\le\tfrac\pi{1-t}.

Radial integration

As before, rotational symmetry means the log-partition function depends on η\eta only via s=∥η∥gs=\|\eta\|_g. Let At=At(s)A_t=A_t(s) denote this function (for a single rotation factor) and let rr be the magnitude of the conditional velocity, corresponding to a rotation angle of (1−t)r(1-t)r. The radial part of the volume measure is proportional to sin⁡2(1−t2r)\sin^2(\tfrac{1-t}{2}r). In order to integrate over directions, let ϑ\vartheta be the angle between η\eta and the conditional velocity. In three dimensions, the average over directions is

12∫0πesrcos⁡ϑsin⁡ϑ dϑ=12∫−11esrz dz=sinh⁡(sr)sr.\begin{aligned} \frac12\int_0^\pi e^{sr\cos\vartheta} \sin\vartheta\,\mathrm d\vartheta &=\frac12\int_{-1}^1 e^{srz}\,\mathrm dz\\ &=\frac{\sinh(sr)}{sr}. \end{aligned}

These together reduce the log-partition function to

At(s)=log⁡∫0π1−te−r2/2sinh⁡(sr)srsin⁡2(1−t2r) dr+terms independent of s.A_t(s)=\log\int_0^{\frac{\pi}{1-t}} e^{-r^2/2}\frac{\sinh(sr)}{sr} \sin^2\left(\frac{1-t}{2}r\right)\,\mathrm dr +\text{terms independent of }s.

To evaluate the covariance, we use some helpful derivatives,

ddz(sinh⁡zz)=zcosh⁡z−sinh⁡zz2,d2dz2(sinh⁡zz)=(z2+2)sinh⁡z−2zcosh⁡zz3.\begin{aligned} \frac{\mathrm d}{\mathrm dz}\left(\frac{\sinh z}{z}\right) &=\frac{z\cosh z-\sinh z}{z^2},\\ \frac{\mathrm d^2}{\mathrm dz^2}\left(\frac{\sinh z}{z}\right) &=\frac{(z^2+2)\sinh z-2z\cosh z}{z^3}. \end{aligned}

Differentiating (under the integral sign) lets us evaluate At′(s)A_t'(s) and At′′(s)A_t''(s) via quadrature in one dimension. For numerical stability, we use series expansions near zero, scaled hyperbolic functions for large arguments, and log-sum-exp for the quadrature sums.

Product structure

Here, nn is the number of rotation factors, so the intrinsic dimension is d=3nd=3n. On SO(3)n\mathrm{SO}(3)^n, the metric is the sum of the metrics of the individual rotation groups. As both the likelihood and the volume measure factorize across rotation factors,

AR,t(η)=∑j=1nAt(sj),A_{R,t}(\eta)=\sum_{j=1}^n A_t(s_j),

where sj=∥η(j)∥gs_j=\|\eta^{(j)}\|_g is the norm of the natural parameter for the jjth rotation factor. The covariance has a 3×33\times3 block per rotation factor. Each of these takes the form in Equation 12, where At′(sj)=∥v(j)∥gA_t'(s_j)=\|v^{(j)}\|_g determines the sjs_j. Let Δ∥(j)\Delta_\parallel^{(j)} and Δ⊥(j)\Delta_\perp^{(j)} be the components of the error in the jjth factor parallel and perpendicular to v(j)v^{(j)}, respectively. Then, by Equation 13, the surrogate loss is

ℓ=12∑j=1n[∥Δ∥(j)∥g2sg⁡(At′′(sj))+∥Δ⊥(j)∥g2sg⁡(At′(sj)sj)].\ell=\frac12\sum_{j=1}^n\left[ \frac{\|\Delta_\parallel^{(j)}\|_g^2} {{\operatorname{sg}}(A_t''(s_j))} +\frac{\|\Delta_\perp^{(j)}\|_g^2}{{\operatorname{sg}}\left(\frac{A_t'(s_j)}{s_j}\right)} \right].

The network uses all nn rotation factors to predict the velocity in each factor. As t→1t\to1, both weights tend to one. Up to a factor of 12\tfrac12, this again recovers the RFM loss. Due to the product structure and identical factors, we pretabulate just the two scalar functions, reusing them across all rotation factors.

E Experimental methodology and evaluation

E.1 Evaluation framework

Accurate measurement of generative performance on manifolds is important, but many tools from the Euclidean setting are not immediately to hand. Here we discuss validity of common evaluation metrics and lay out our choices.

Wasserstein distances

Wasserstein distances are a natural way to measure generative performance (Villani 2009) but are costly to compute. Sliced Wasserstein mitigates this in Euclidean space by reducing optimal transport via projection, but generalizing requires injectivity of the Radon transform (Kolouri et al. 2019). This is automatic in Euclidean space but for manifolds it requires choosing a family of projections. Hence, attempts to apply sliced Wasserstein to manifolds introduce additional geometric structure. For example, Bonet et al. (2025) propose global projections on Cartan–Hadamard manifolds, where geodesic structure is well behaved, while Rustamov and Majumdar (2023) suggest spectral slicing based on Laplace–Beltrami eigenfunctions. Their metric guarantees rely on the chosen family of projections being separating. In practice, the implementations use approximations via truncating to a finite number of terms.

Kernel methods

Methods based on kernels can work well, but their validity depends on RKHS conditions. The energy distance [ED; Székely and Rizzo (2013)] is a nonparametric discrepancy requiring the space to have strong negative type to be a valid metric. On T1\mathbb{T}^1, geodesic distance has negative type but not strong negative type (Lyons 2020). We can convert to strong negative type by square root (Lyons 2013, Corollary 3.18), setting dED(x,y)=dist⁡g(x,y)d_{\mathrm{ED}}(x,y) = \sqrt{{\operatorname{dist}}_g(x,y)} in the ED formula. Kokkendorff (2002) proves that compact Riemannian manifolds of negative type and dimension ≥2\geq 2 are simply connected, so geodesic distance on Td\mathbb{T}^d is not of negative type and the same trick does not work for d≥2d\geq 2. Maximum mean discrepancy [MMD; Gretton et al. (2012)] is a related discrepancy defined often with a Gaussian kernel parametrized by its bandwidth. Feragen et al. (2015) show the Riemannian generalization of this kernel is not positive definite on manifolds, suggesting the Laplace kernel specifically for Sd\mathbb{S}^d (which includes T1\mathbb{T}^1). In our experiments, we use the median heuristic to set the Laplace kernel bandwidth.

Our choices

Based on the above, we report Wasserstein distances for our analytic test case, where the data distribution is an equally weighted mixture of two Diracs, simplifying optimal transport (alongside the pedagogical reasons, we chose the singular form of the distributions precisely so that Wasserstein is feasible), alongside the unbiased forms of energy distance with the square-root trick and MMD with the Riemannian Laplace kernel. For the real-world geospatial benchmarks, we found the small size of the test set commonly resulted in negative values for the unbiased kernel methods despite their population validity. As these are well-established benchmarks in the literature with many prior reported results, we think it reasonable to only report NLL. However, this means we cannot compare to RG-VFM as its NLLs are uninformative; see Appendix B.2 for further discussion. As Zaghen et al. (2026) do not report NLLs in their experiments, we were unable to validate our replication directly according to this metric.

E.2 Evaluating on tori in high dimensions via an MMD with Fourier kernel

For high-dimensional product tori, we report NLL so as to compare to prior work, but felt it was necessary to supplement this with a more robust metric, one reason being for a fairer and clearer comparison to RG-VFM. However, the Riemannian energy distance and Laplace-kernel MMD are neither metrics nor pseudometrics for d>1d>1. Here, we construct an MMD pseudometric with a Fourier kernel designed specifically for the wrapped Gaussian target of our experiment. This uses the known closed form of the characteristic function to calculate the RKHS representation of the data distribution without estimation, thus eliminating this source of experimental uncertainty.

We first note that a translation-invariant kernel on Td\mathbb{T}^d is characteristic if and only if its Fourier coefficients are positive on the whole Fourier spectrum Zd\mathbb{Z}^d (Fukumizu et al. 2008; Sriperumbudur et al. 2010). We use the Fourier kernel

k(x,y)=∑m∈Zdameim⊤(x−y),k(x,y)=\sum_{m\in\mathbb{Z}^d} a_m e^{\mathrm{i}m^\top(x-y)},

with am≥0a_m\ge 0, ∑mam<∞\sum_m a_m<\infty, and wavevector mm for which we choose am=exp⁡(−λMMD∥m∥22)a_m=\exp(-{\lambda_{\mathrm{MMD}}}\|m\|_2^2) with parameter λMMD{\lambda_{\mathrm{MMD}}}. The associated MMD is the RKHS distance between mean embeddings (Gretton et al. 2012),

MMD⁡2=∑m∈Zdam∣P^(m)−Q^(m)∣2,\operatorname{MMD}^2 = \sum_{m\in\mathbb{Z}^d} a_m \left|\hat{P}(m)-\hat{Q}(m)\right|^2,

where Q^(m)=1N∑i=1Neim⊤xi\hat{Q}(m)=\frac{1}{N}\sum_{i=1}^N e^{\mathrm{i}m^\top x_i} is the empirical Fourier embedding of generated samples x1,x2,…,xN∼p1θx_1, x_2, \ldots, x_N\sim p_1^\theta. In the case of wrapped Gaussian data x1∼WN(μ,Σ)x_1\sim \mathcal{WN}(\mu, \Sigma), we use the closed-form expression for the Fourier embedding of the data distribution, P^(m)=E⁡p1[eim⊤X]=exp⁡(im⊤μ−12m⊤Σm)\hat{P}(m)={\operatorname{\mathbb{E}}}_{p_1}[e^{\mathrm{i}m^\top X}]=\exp\left(\mathrm{i}m^\top\mu-\frac{1}{2}m^\top\Sigma m\right). In practice, we truncate to a finite set of frequencies {m:m∈Ω}\{m:m\in\Omega\} for some Ω⊆Zd\Omega\subseteq\mathbb{Z}^d. Then the empirical MMD2^2 V-statistic at parameter λMMD{\lambda_{\mathrm{MMD}}} is

MMD⁡^λMMD2=∑m∈Ωe−λMMD∥m∥22∣eim⊤μ−12m⊤Σm−1N∑i=1Neim⊤xi∣2.\widehat{\operatorname{MMD}}^2_{{\lambda_{\mathrm{MMD}}}} = \sum_{m\in\Omega} e^{-{\lambda_{\mathrm{MMD}}}\|m\|_2^2} \left|e^{\mathrm{i}m^\top\mu-\frac{1}{2}m^\top\Sigma m}-\frac{1}{N}\sum_{i=1}^N e^{\mathrm{i}m^\top x_i}\right|^2.

We use the set of wavevectors Ω={wei:i∈{1,…,d};w∈{−10,−9,…,9,10}}∖{0}\Omega = \{ we_i : i \in\{1,\ldots,d\}; w \in \{-10, -9, \ldots, 9, 10\}\}\setminus \{0\} with eie_i the iith standard basis vector, and average over a grid centred at λMMD=12σ2=0.02{\lambda_{\mathrm{MMD}}}=\frac12\sigma^2=0.02, namely λMMD∈ΛMMD={0.005,0.01,0.02,0.04,0.08}{\lambda_{\mathrm{MMD}}}\in{\Lambda_{\mathrm{MMD}}}=\{0.005,0.01,0.02,0.04,0.08\} to get a more robust estimate of performance giving

MMD⁡^2=1∣ΛMMD∣∑λMMD∈ΛMMD1α(λMMD)MMD⁡^λMMD2,\widehat{\operatorname{MMD}}^2 = \frac{1}{|{\Lambda_{\mathrm{MMD}}}|}\sum_{{\lambda_{\mathrm{MMD}}}\in{\Lambda_{\mathrm{MMD}}}}\frac{1}{\alpha({\lambda_{\mathrm{MMD}}})}\widehat{\operatorname{MMD}}^2_{{\lambda_{\mathrm{MMD}}}},

where α(λMMD)=∑m∈Ωe−λMMD∥m∥22\alpha({\lambda_{\mathrm{MMD}}})=\sum_{m\in\Omega} e^{-{\lambda_{\mathrm{MMD}}}\|m\|_2^2} normalizes for total Fourier weight. The result is a scalable squared pseudometric of finite resolution. As it detects discrepancies only in the marginal distributions of individual coordinates, it may miss pairwise interactions at high dimensions. Consideration of all pairs of basis vectors is infeasible at 400 dimensions and the data distribution is in any case isotropic. At low dimensions we found that pairs and higher-order interactions had negligible contribution to the MMD, especially compared with the effect of varying the bandwidth λMMD{\lambda_{\mathrm{MMD}}}.

E.3 Protocols for training and evaluation

The analytic test case, torus sweep, and geospatial experiments use a single NVIDIA A100-SXM GPU with 80 GB of memory. The efficiency studies use the hardware specified in Appendix F. We follow the RFM setup published by Chen and Lipman (2024) and extend its codebase to support our method and additional evaluation metrics. This splits the data into 80 % train, 10 % validation, and 10 % test, giving us the same data splits as in the RFM paper. We use seed values 0–29, 0–4, and 0–4 for our training runs on the analytic test case, high-dimensional torus, and geospatial datasets respectively. Our backbone is a standard multilayer perceptron with time concatenated to the input. We use Swish (Ramachandran et al. 2018) with a learnable parameter and Adam with an exponential moving average (Polyak and Juditsky 1992) (decay 0.999). For synthetic datasets, we train for 50,000 iterations with batch size 512 and 3 hidden layers of width 512. For the geospatial datasets, we train for 1,000,000 iterations with batch size and hidden width following Chen and Lipman (2024). The analytic test case uses dopri5 as the ODE solver with tolerance 0.000010.00001 while the high-dimensional torus uses 1,000 Euler steps with projection at each step for scalability following Chen and Lipman (2024). In the latter case it was not feasible to use dopri5 (even if desired) as RG-VFM did not complete in a reasonable time beyond low dimensions. At these low dimensions we observe that the Euler solver appears most favourable for RG-VFM; this is also the solver used by Zaghen et al. (2026). Evaluation on the geospatial datasets uses dopri5 with tolerance 0.00000010.0000001 also following Chen and Lipman (2024). We modify the RFM codebase to torch.compile without graph breaks, training in default mode for these experiments. We disable compilation for the runtime benchmark in Appendix F.2. In Appendix F.3, we compare execution in both modes, eager and compiled. We are aware that RG-VFM is sensitive to solver choice and tolerance, and we investigate a variety of solvers and tolerances in Appendix B.2.

E.4 Training and evaluation on human pose data

We use human pose data expressed in SO(3)19{\mathrm{SO}(3)}^{19}, following Dünkel et al. (2024), who train their normalizing flow model, HuProSO3, on a partition of the amass dataset collection (Mahmood et al. 2019), namely: cmu (Carnegie Mellon University, n.d.), PosePrior (Akhter and Black 2015), TotalCapture (Trumble et al. 2017), EyesJapanDataset (Eyes JAPAN Co. Ltd., n.d.), kit and ekut (Mandery et al. 2015, 2016; Krebs et al. 2021), BMLrub (Troje 2002), TCDHands (Hoyet et al. 2012), and accad (Advanced Computing Center for the Arts and Design, n.d.). Whereas Dünkel et al. (2024) are concerned with cross-dataset performance—the unconditional HuProSO3 is trained on the whole of the above partition and tested on an aggregate of remaining datasets from amass—we are concerned with in-distribution performance. We train RFM, RG-VFM, and our method with an 80/10/10 training/validation/test split of this partition, resulting in 11,823,971 training samples. Using an MLP of 6 layers and width 1,024, we train for 150,000 steps.

We report NLL with respect to the Haar measure. For both energy distance and Gaussian MMD, we evaluate via the chordal distance (i.e., implicitly embedding into R171\mathbb{R}^{171}). The embedding into Euclidean space is injective, so these metrics are valid for distributions of poses. The Gaussian MMD metric uses the median heuristic for the bandwidth, calibrated uniformly using the test set.

F Computational performance

F.1 Timing dopri5 sampling on SO(3)19\mathrm{SO}(3)^{19}

Sampling for our human pose experimental results in Table 5 used Euler integration with 1,000 steps (following the original RG-VFM implementation and for the reasons we outline in Appendix B.2). Here, we also report the NFE and wall time required for sampling with dopri5 (Table 8). Our method only differs from RFM in the backward pass, while the forward pass is through an MLP of the same architecture. Therefore, under Euler sampling they have the same sampling cost, while under adaptive sampling the sampling time depends on the neural approximation learned.

In many cases, flow matching under independent coupling has optimal solutions exhibiting significant spatiotemporal variation (motivating ideas around rectification and choosing better couplings). For methods possessing compatibility, we posit that their relative ordering measured by adaptive solver NFE depends on the true marginal field induced by the data. Notably, at a tolerance of 10−510^{-5}, the wall times for our method and RFM are comparable to that of a forward pass through HuProSO3’s autoregressive normalizing flow. Although HuProSO3 does not require numerical integration, it has a relatively heavier neural architecture and its authors note they have not optimized all potential parallelism (Dünkel et al. 2024, sec. B.1).

Table 8: Sampling 20,000 poses. Mean±\pmstd, 5 runs after warm-up, using distinct trained checkpoints except for HuProSO3 (id_0900). Flow matching models use adaptive dopri5; HuProSO3 uses its autoregressive forward pass.
Time ↓\downarrow NFE ↓\downarrow
Method Tolerance (s)
HuProSO3 - — 5.4655.465 ±\pm 0.025 - —
RFM 10−510^{-5} 4.1534.153 ±\pm 0.132 550.4550.4 ±\pm 17.3
RG-VFM 10−510^{-5} 57.45657.456 ±\pm 1.581 1,212.01,212.0 ±\pm 30.2
Our method 10−510^{-5} 4.2144.214 ±\pm 0.047 558.8558.8 ±\pm 6.6
RFM 10−710^{-7} 9.4799.479 ±\pm 0.279 1,254.81,254.8 ±\pm 37.1
RG-VFM 10−710^{-7} 118.052118.052 ±\pm 17.562 2,584.02,584.0 ±\pm 385.6
Our method 10−710^{-7} 10.12710.127 ±\pm 0.355 1,341.21,341.2 ±\pm 46.6

F.2 Throughput of training without compilation

We additionally benchmark the runtime of the full training loop in the same pipeline and report iterations per second (it/s). The results are in Table 9. We measure wall time from the start to the end of each run. Across methods, we keep the model architecture and execution setup fixed and change only the training loss. The hardware is an NVIDIA GeForce RTX 3090 (24 GB) with an AMD Ryzen 9 5950X 16-Core CPU. All methods use the same architecture and run configuration: a three-layer MLP with width 512, batch size 512, with 1,000 training steps per run and 5 repetitions with torch.compile turned off. We disable the evaluation of validation NLL during this benchmark; differences in runtime reflect the cost of pretabulation, table lookups and training iterations. The reduction in throughput with our method is largest at low dimensions and shrinks at high dimensions. This is consistent with the Vx,tV_{x,t} lookup being a small per-sample cost relative to the initial pretabulation, reducing at high dimensions as other costs increase.

Table 9: Training iterations per second (it/s)↑\uparrow. Mean±\pmstd, 5 runs. torch.compile disabled. We use the same full training loop for all methods and only change the loss. Thus this data does not reflect the high inference time of RG-VFM.
Method T2\mathbb{T}^{2} T500\mathbb{T}^{500} S2\mathbb{S}^{2} S500\mathbb{S}^{500}
RFM 48.33 ±\pm 1.11 15.32 ±\pm 0.08 46.35 ±\pm 0.65 14.62 ±\pm 0.04
RG-VFM 46.44 ±\pm 0.19 14.82 ±\pm 0.02 44.50 ±\pm 0.29 14.25 ±\pm 0.03
Our method 40.51 ±\pm 0.81 14.58 ±\pm 0.11 34.30 ±\pm 0.50 12.98 ±\pm 0.05

F.3 Wall time and memory use

In Table 10, we report wall time and memory use for T5\mathbb{T}^5 and S2\mathbb{S}^2 in eager and compiled execution.

Timing methodology:

  • We use eager execution and compilation via torch.compile for T5\mathbb{T}^5 and S2\mathbb{S}^2 (wrapped_torus and flood configs respectively).

  • Each run has 40 steps for warm-up followed by 1,000 timed steps.

  • After synchronizing CUDA, we use time.perf_counter() to time the construction of ManifoldFMLitModule(cfg).

  • We call torch.cuda.synchronize() at the end of each timed batch. This ensures that timing measures completed GPU work (not async CPU dispatch).

Memory methodology:

  • We initialize the CUDA context with torch.zeros(1, device="cuda:0") first and then reset the peak memory statistics tracked by the allocator.

  • Cpk = peak memory recorded by the allocator during construction, i.e. torch.cuda.max_memory_allocated() at on_train_start.

  • Clive = live memory recorded by the allocator after construction, i.e. torch.cuda.memory_allocated(), at on_train_start.

  • Cdrv = memory usage reported by the driver after construction, i.e. (total - free) from torch.cuda.mem_get_info() at on_train_start.

  • Mpk = peak memory recorded by the allocator during training, i.e. torch.cuda.max_memory_allocated() over the timed window after the reset following warm-up.

  • Mdrv = maximum memory usage reported by the driver during training, i.e. total - min(free) from torch.cuda.mem_get_info() over samples taken at the end of each batch timed, after synchronization.

We give both allocator and driver metrics as the former are only exact at byte level for live allocations tracked by PyTorch. (They omit memory pools for CUDA graphs and direct cuSOLVER/cuBLAS or other CUDA allocations. Hence, they report apparently lower memory usage under torch.compile.) The latter also capture memory usage across the device. Measurements were taken on an AMD Ryzen Threadripper and NVIDIA RTX A6000. The allocator memory overhead is just a few MiB. We find it of particular note that compilation via torch.compile makes the runtime overhead per iteration near negligible.

Table 10: Wall time for construction, wall time per training iteration, and memory use on T5\mathbb{T}^5 and S2\mathbb{S}^2. Mean±\pmstd, 5 runs. We omit standard deviation where all runs have identical values. Memory identifiers as defined above.
Time Memory
Constructor ↓\downarrow Step ↓\downarrow Cpk ↓\downarrow Clive ↓\downarrow Cdrv ↓\downarrow Mpk ↓\downarrow Mdrv ↓\downarrow
Mode Method (s) (ms) (MiB) (MiB) (MiB) (MiB) (MiB)
T5\mathbb{T}^5 Eager RFM 0.01460.0146 ±\pm 0.0015 3.78 ±\pm 0.14 3.80 3.80 418 54.206 492
Eager RG-VFM 0.01550.0155 ±\pm 0.0014 3.91 ±\pm 0.10 3.80 3.80 418 54.206 492
Eager Ours 0.03240.0324 ±\pm 0.0002 6.50 ±\pm 0.07 4.84 4.84 420 55.268 494
Compiled RFM 0.78310.7831 ±\pm 0.0070 2.30 ±\pm 0.06 21.08 11.93 508 7.717 ±\pm 0.005 492
Compiled RG-VFM 0.77010.7701 ±\pm 0.0077 2.27 ±\pm 0.05 21.08 11.93 508 7.721 ±\pm 0.010 492
Compiled Ours 0.79150.7915 ±\pm 0.0138 2.32 ±\pm 0.06 22.11 12.97 510 8.782 496
S2\mathbb{S}^2 Eager RFM 0.20950.2095 ±\pm 0.0062 91.82 ±\pm 0.48 166.39 166.39 582 4493.520 5112
Eager RG-VFM 0.20620.2062 ±\pm 0.0068 92.13 ±\pm 0.13 166.39 166.39 582 4493.520 5110
Eager Ours 1.91581.9158 ±\pm 0.0540 93.72 ±\pm 0.08 172.03 172.03 602 4499.190 5112
Compiled RFM 0.85670.8567 ±\pm 0.0120 65.93 ±\pm 0.32 2782.98 174.52 3268 332.999 3414
Compiled RG-VFM 0.86040.8604 ±\pm 0.0048 66.52 ±\pm 0.38 2782.98 174.52 3266 332.999 3412
Compiled Ours 2.54142.5414 ±\pm 0.0509 65.63 ±\pm 0.36 2788.62 180.16 3268 338.669 3436

F.4 Compute resources

For the T1\mathbb{T}^1 experiment, the 30 seeds complete in under 2 hours across all three trained methods, as each run finishes in under 1 minutes. On product tori in high dimensions, training takes approximately 1 minutes per run. We find this to be essentially independent of dimension. Evaluation of test/NLL becomes more expensive as dd increases. This brings the total time per run from a few minutes at low dd to around 1 hours at d=400d=400. The full sweep over 5 seeds, 3 methods, and all dimensions that we report consumes roughly 30 hours of A100 time. On the geospatial datasets, a single run of training and evaluation completes in under 5 hours. For one method on one dataset, the sweep over 5 seeds takes under 24 hours. Across the four datasets and the two methods we train ourselves (our method and our reproduction of RFM), this totals roughly 200 hours of A100 time. The analytic test case, experiments on product tori in high dimensions, and geospatial experiments together account for approximately 250 hours of A100 time. The training benchmark in Appendix F.2 contributes a negligible amount of extra compute. Some additional compute was used for preliminary experiments, including the solver investigations in Appendix B.2, as well as early prototypes.

References

Advanced Computing Center for the Arts and Design. n.d. ACCAD MoCap Dataset. https://accad.osu.edu/research/motion-lab/mocap-system-and-data.
Akhter, Ijaz, and Michael J. Black. 2015. “Pose-Conditioned Joint Angle Limits for 3D Human Pose Reconstruction.” IEEE Conf. On Computer Vision and Pattern Recognition (CVPR) 2015, June. https://doi.org/10.1109/CVPR.2015.7298751.
Albergo, Michael Samuel, and Eric Vanden-Eijnden. 2023. “Building Normalizing Flows with Stochastic Interpolants.” The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=li7qeBbCR1t.
Ben-Hamu, Heli, Samuel Cohen, Joey Bose, et al. 2022. “Matching Normalizing Flows and Probability Paths on Manifolds.” In Proceedings of the 39th International Conference on Machine Learning, edited by Kamalika Chaudhuri, Stefanie Jegelka, Le Song, Csaba Szepesvari, Gang Niu, and Sivan Sabato, vol. 162. Proceedings of Machine Learning Research. PMLR. https://proceedings.mlr.press/v162/ben-hamu22a.html.
Boffi, Nicholas Matthew, Michael Samuel Albergo, and Eric Vanden-Eijnden. 2025. “Flow Map Matching with Stochastic Interpolants: A Mathematical Framework for Consistency Models.” Transactions on Machine Learning Research. https://openreview.net/forum?id=cqDH0e6ak2.
Bonet, Clément, Lucas Drumetz, and Nicolas Courty. 2025. “Sliced-Wasserstein Distances and Flows on Cartan-Hadamard Manifolds.” Journal of Machine Learning Research 26 (32): 1–76. https://jmlr.org/papers/v26/24-0359.html.
Brakenridge, G. R. 2017. Global Active Archive of Large Flood Events. Dartmouth Flood Observatory, University of Colorado. http://floodobservatory.colorado.edu/Archives/index.html.
Carnegie Mellon University. n.d. CMU MoCap Dataset. http://mocap.cs.cmu.edu.
Carrasco-Pollo, Jorge, Floor Eijkelboom, and Jan-Willem van de Meent. 2026. “Pawsterior: Variational Flow Matching for Structured Simulation-Based Inference.” ICLR 2026 Workshop on Geometry-Grounded Representation Learning and Generative Modeling. https://openreview.net/forum?id=QeiyEvdyVq.
Chen, Ricky T. Q., and Yaron Lipman. 2024. “Flow Matching on General Geometries.” The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=g7ohDlTITL.
Chen, Ricky T. Q., Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. 2018. “Neural Ordinary Differential Equations.” In Advances in Neural Information Processing Systems, edited by S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, vol. 31. Curran Associates, Inc. https://proceedings.neurips.cc/paper/2018/hash/69386f6bb1dfed68692a24c8686939b9-Abstract.html.
Cheng, Austin Henry, Alston Lo, Kin Long Kelvin Lee, Santiago Miret, and Alan Aspuru-Guzik. 2025. “Stiefel Flow Matching for Moment-Constrained Structure Elucidation.” The Thirteenth International Conference on Learning Representations. https://openreview.net/forum?id=84WmbzikPP.
Cheng, Chaoran, Jiahan Li, Jian Peng, and Ge Liu. 2024. “Categorical Flow Matching on Statistical Manifolds.” The Thirty-Eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=5fybcQZ0g4.
Cheng, Chaoran, Yusong Wang, Yuxin Chen, Xiangxin Zhou, Nanning Zheng, and Ge Liu. 2025. “Riemannian Consistency Model.” The Thirty-Ninth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=SAlCQdk5lx.
Collas, Antoine, Ce Ju, Nicolas Salvy, and Bertrand Thirion. 2025. “Riemannian Flow Matching for Brain Connectivity Matrices via Pullback Geometry.” The Thirty-Ninth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=NY3LzmUXl7.
Davis, Oscar, Michael Samuel Albergo, Nicholas Matthew Boffi, Michael M. Bronstein, and Joey Bose. 2026. “Generalised Flow Maps for Few-Step Generative Modelling on Riemannian Manifolds.” The Fourteenth International Conference on Learning Representations. https://openreview.net/forum?id=1YHF7B8Yjk.
De Bortoli, Valentin, Emile Mathieu, Michael John Hutchinson, James Thornton, Yee Whye Teh, and Arnaud Doucet. 2022. “Riemannian Score-Based Generative Modelling.” In Advances in Neural Information Processing Systems, edited by Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho. https://openreview.net/forum?id=oDRQGo8I7P.
Dünkel, Olaf, Tim Salzmann, and Florian Pfaff. 2024. “Normalizing Flows on the Product Space of SO(3) Manifolds for Probabilistic Human Pose Modeling.” Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2285–94. https://doi.org/10.1109/CVPR52733.2024.00222.
Eijkelboom, Floor, Grigory Bartosh, Christian A. Naesseth, Max Welling, and Jan-Willem van de Meent. 2024. “Variational Flow Matching for Graph Generation.” The Thirty-Eighth Annual Conference on Neural Information Processing Systems. https://openreview.net/forum?id=UahrHR5HQh.
EOSDIS. 2020. Active Fire Data. Land, Atmosphere Near Real-time Capability for EOS (LANCE) system operated by NASA’s Earth Science Data and Information System (ESDIS). https://earthdata.nasa.gov/earth-observation-data/near-real-time/firms/active-fire-data.
Eyes JAPAN Co. Ltd. n.d. Eyes Japan MoCap Dataset. http://mocapdata.com.
Feragen, Aasa, Francois Lauze, and Soren Hauberg. 2015. “Geodesic Exponential Kernels: When Curvature and Linearity Conflict.” 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (Los Alamitos, CA, USA), June, 3032–42. https://doi.org/10.1109/CVPR.2015.7298922.
Fukumizu, Kenji, Arthur Gretton, Bernhard Schölkopf, and Bharath K. Sriperumbudur. 2008. “Characteristic Kernels on Groups and Semigroups.” In Advances in Neural Information Processing Systems, edited by D. Koller, D. Schuurmans, Y. Bengio, and L. Bottou, vol. 21. Curran Associates, Inc. https://proceedings.neurips.cc/paper/2008/hash/d07e70efcfab08731a97e7b91be644de-Abstract.html.
Girolami, Mark, and Ben Calderhead. 2011. “Riemann Manifold Langevin and Hamiltonian Monte Carlo Methods.” Journal of the Royal Statistical Society Series B: Statistical Methodology 73 (2): 123–214. https://doi.org/10.1111/j.1467-9868.2010.00765.x.
Gretton, Arthur, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Schölkopf, and Alexander Smola. 2012. “A Kernel Two-Sample Test.” Journal of Machine Learning Research 13 (25): 723–73. https://jmlr.org/papers/v13/gretton12a.html.
Guzmán-Cordero, Andrés, Floor Eijkelboom, and Jan-Willem van de Meent. 2025. “Exponential Family Variational Flow Matching for Tabular Data Generation.” Forty-Second International Conference on Machine Learning. https://openreview.net/forum?id=kjtvCSkSsy.
Ho, Jonathan, Ajay Jain, and Pieter Abbeel. 2020. “Denoising Diffusion Probabilistic Models.” In Advances in Neural Information Processing Systems, edited by H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, vol. 33. Curran Associates, Inc. https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html.
Hoyet, Ludovic, Kenneth Ryall, Rachel McDonnell, and Carol O’Sullivan. 2012. “Sleight of Hand: Perception of Finger Motion from Reduced Marker Sets.” Proceedings of the ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games, 79–86. https://doi.org/10.1145/2159616.2159629.
Hu, Vincent Tao, Wei Zhang, Meng Tang, Pascal Mettes, Deli Zhao, and Cees Snoek. 2024. “Latent Space Editing in Transformer-Based Flow Matching.” Proceedings of the AAAI Conference on Artificial Intelligence 38 (3): 2247–55. https://doi.org/10.1609/aaai.v38i3.27998.
Huang, Chin-Wei, Milad Aghajohari, Joey Bose, Prakash Panangaden, and Aaron Courville. 2022. “Riemannian Diffusion Models.” In Advances in Neural Information Processing Systems, edited by Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho. https://openreview.net/forum?id=ecevn9kPm4.
Jin, Yang, Zhicheng Sun, Ningyuan Li, et al. 2025. “Pyramidal Flow Matching for Efficient Video Generative Modeling.” The Thirteenth International Conference on Learning Representations. https://openreview.net/forum?id=66NzcRQuOq.
Kokkendorff, Simon Lyngby. 2002. “Geometry and Combinatorics.” {Ph.D.} thesis, Department of Mathematics, Technical University of Denmark. https://orbit.dtu.dk/en/publications/geometry-and-combinatorics.
Kolouri, Soheil, Kimia Nadjahi, Umut Simsekli, Roland Badeau, and Gustavo Rohde. 2019. “Generalized Sliced Wasserstein Distances.” In Advances in Neural Information Processing Systems, edited by H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, vol. 32. Curran Associates, Inc. https://proceedings.neurips.cc/paper/2019/hash/f0935e4cd5920aa6c7c996a5ee53a70f-Abstract.html.
Krebs, Franziska, Andre Meixner, Isabel Patzer, and Tamim Asfour. 2021. “The KIT Bimanual Manipulation Dataset.” IEEE/RAS International Conference on Humanoid Robots (Humanoids), 499–506. https://doi.org/10.1109/HUMANOIDS47582.2021.9555788.
Lipman, Yaron, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. 2023. “Flow Matching for Generative Modeling.” The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=PqvMRDCJT9t.
Liu, Xingchao, Chengyue Gong, and Qiang Liu. 2023. “Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow.” The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=XVjTT1nw5z.
Lyons, Russell. 2013. “Distance Covariance in Metric Spaces.” The Annals of Probability 41 (5): 3284–305. https://doi.org/10.1214/12-AOP803.
Lyons, Russell. 2020. “Strong Negative Type in Spheres.” Pacific Journal of Mathematics 307 (2): 383–90. https://doi.org/10.2140/pjm.2020.307.383.
Mahmood, Naureen, Nima Ghorbani, Nikolaus F. Troje, Gerard Pons-Moll, and Michael J. Black. 2019. “AMASS: Archive of Motion Capture as Surface Shapes.” Proceedings of the IEEE/CVF International Conference on Computer Vision, 5441–50. https://doi.org/10.1109/ICCV.2019.00554.
Mandery, Christian, Ömer Terlemez, Martin Do, Nikolaus Vahrenkamp, and Tamim Asfour. 2015. “The KIT Whole-Body Human Motion Database.” International Conference on Advanced Robotics (ICAR), 329–36. https://doi.org/10.1109/ICAR.2015.7251476.
Mandery, Christian, Ömer Terlemez, Martin Do, Nikolaus Vahrenkamp, and Tamim Asfour. 2016. “Unifying Representations and Large-Scale Whole-Body Motion Databases for Studying Human Motion.” IEEE Transactions on Robotics 32 (4): 796–809. https://doi.org/10.1109/TRO.2016.2572685.
Mathieu, Emile, and Maximilian Nickel. 2020. “Riemannian Continuous Normalizing Flows.” Proceedings of the 34th International Conference on Neural Information Processing Systems (Red Hook, NY, USA), NIPS ’20, 2503–15. https://proceedings.neurips.cc/paper/2020/hash/1aa3d9c6ce672447e1e5d0f1b5207e85-Abstract.html.
Matişan, Răzvan-Andrei, Vincent Tao Hu, Grigory Bartosh, et al. 2026. “Purrception: Variational Flow Matching for Vector-Quantized Image Generation.” The Fourteenth International Conference on Learning Representations. https://openreview.net/forum?id=SA8xDYrUYB.
Miller, Benjamin Kurt, Ricky T. Q. Chen, Anuroop Sriram, and Brandon M Wood. 2024. “FlowMM: Generating Materials with Riemannian Flow Matching.” Forty-First International Conference on Machine Learning. https://openreview.net/forum?id=W4pB7VbzZI.
National Geophysical Data Center / World Data Service (NGDC/WDS). 2020a. NCEI/WDS Global Significant Earthquake Database. NOAA National Centers for Environmental Information. https://doi.org/10.7289/V5TD9V7K.
National Geophysical Data Center / World Data Service (NGDC/WDS). 2020b. NCEI/WDS Global Significant Volcanic Eruptions Database. NOAA National Centers for Environmental Information. https://doi.org/10.7289/V5JW8BSH.
Papamakarios, George, Eric Nalisnick, Danilo Jimenez Rezende, Shakir Mohamed, and Balaji Lakshminarayanan. 2021. “Normalizing Flows for Probabilistic Modeling and Inference.” Journal of Machine Learning Research 22 (57): 1–64. https://jmlr.org/papers/v22/19-1028.html.
Pennec, Xavier. 2006. “Intrinsic Statistics on Riemannian Manifolds: Basic Tools for Geometric Measurements.” Journal of Mathematical Imaging and Vision 25 (1): 127–54. https://doi.org/10.1007/s10851-006-6228-4.
Polyak, B. T., and A. B. Juditsky. 1992. “Acceleration of Stochastic Approximation by Averaging.” SIAM Journal on Control and Optimization 30 (4): 838–55. https://doi.org/10.1137/0330046.
Ramachandran, Prajit, Barret Zoph, and Quoc V. Le. 2018. Searching for Activation Functions. https://openreview.net/forum?id=SkBYYyZRZ.
Rezende, Danilo, and Shakir Mohamed. 2015. “Variational Inference with Normalizing Flows.” In Proceedings of the 32nd International Conference on Machine Learning, edited by Francis Bach and David Blei, vol. 37. Proceedings of Machine Learning Research. PMLR. https://proceedings.mlr.press/v37/rezende15.html.
Rohatgi, Ankit. 2026. WebPlotDigitizer. Version 5.2. https://automeris.io.
Rozen, Noam, Aditya Grover, Maximilian Nickel, and Yaron Lipman. 2021. “Moser Flow: Divergence-Based Generative Modeling on Manifolds.” In Advances in Neural Information Processing Systems, edited by A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan. https://openreview.net/forum?id=qGvMv3undNJ.
Rustamov, Raif M., and Subhabrata Majumdar. 2023. “Intrinsic Sliced Wasserstein Distances for Comparing Collections of Probability Distributions on Manifolds and Graphs.” Proceedings of the 40th International Conference on Machine Learning, 29388–415. https://proceedings.mlr.press/v202/rustamov23a.html.
Sohl-Dickstein, Jascha, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. 2015. “Deep Unsupervised Learning Using Nonequilibrium Thermodynamics.” In Proceedings of the 32nd International Conference on Machine Learning, edited by Francis Bach and David Blei, vol. 37. Proceedings of Machine Learning Research. PMLR. https://proceedings.mlr.press/v37/sohl-dickstein15.html.
Song, Yang, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever. 2023. “Consistency Models.” In Proceedings of the 40th International Conference on Machine Learning, edited by Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, vol. 202. Proceedings of Machine Learning Research. PMLR. https://proceedings.mlr.press/v202/song23a.html.
Sriperumbudur, Bharath K., Arthur Gretton, Kenji Fukumizu, Bernhard Schölkopf, and Gert R. G. Lanckriet. 2010. “Hilbert Space Embeddings and Metrics on Probability Measures.” Journal of Machine Learning Research 11 (50): 1517–61. https://jmlr.org/papers/v11/sriperumbudur10a.html.
Székely, Gábor J., and Maria L. Rizzo. 2013. “Energy Statistics: A Class of Statistics Based on Distances.” Journal of Statistical Planning and Inference 143 (8): 1249–72. https://doi.org/10.1016/j.jspi.2013.03.018.
Tabak, E. G., and Cristina V. Turner. 2013. “A Family of Nonparametric Density Estimation Algorithms.” Communications on Pure and Applied Mathematics 66 (2): 145–64. https://doi.org/10.1002/cpa.21423.
Troje, Nikolaus F. 2002. “Decomposing Biological Motion: A Framework for Analysis and Synthesis of Human Gait Patterns.” Journal of Vision 2 (5): 2–2. https://doi.org/10.1167/2.5.2.
Trumble, Matt, Andrew Gilbert, Charles Malleson, Adrian Hilton, and John Collomosse. 2017. “Total Capture: 3D Human Pose Estimation Fusing Video and Inertial Sensors.” 2017 British Machine Vision Conference (BMVC). https://doi.org/10.5244/C.31.14.
Villani, Cédric. 2009. Optimal Transport: Old and New. Vol. 338. Springer. https://doi.org/10.1007/978-3-540-71050-9.
Zaghen, Olga, Floor Eijkelboom, Alison Pouplin, et al. 2026. “Riemannian Variational Flow Matching for Material and Protein Design.” The Fourteenth International Conference on Learning Representations. https://openreview.net/forum?id=NlnDselrtl.

  1. This is computable without clamping the 1−t1-t denominator as it is ddtxt\frac{\mathrm{d}}{\mathrm{d}t}x_t with xt=exp⁡x0(tlog⁡x0(x1))x_t=\exp_{x_0}(t\log_{x_0}(x_1)). Considering nonuniqueness of log⁡xt(x1)\log_{x_t}(x_1) is nonessential as the set of coupled pairs (x0,x1)(x_0, x_1) with multiple geodesics has measure zero.↩︎

  2. Any likelihood over endpoints can be reparameterized as a likelihood over conditional velocities via the map x1↦utcond(xt∣x1)x_1 \mapsto {u_t^{\text{cond}}}(x_t\mid x_1), but not vice versa; we discuss the implications of this further in Section 3.4.↩︎

  3. The bound is locally sharp with χ2\chi^2. All ff-divergences with f′′(1)>0f''(1)>0 are locally equivalent so KL has the same rate.↩︎

  4. Vx,tV_{x,t} is self-adjoint under gg.↩︎