arXiv:2610.31981cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31981

Compatible Likelihoods for Flow Matching on Manifolds

Lucas Ng, Georgios Batzolis, Mark Girolami

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

On the simplest non-Euclidean manifold, the 1D flat torus, we exhibit a distribution where a recently proposed 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 give a general condition for compatibility, apply it to existing methods, and bound the worst-case error in terms of a residual component vanishing under compatibility. Next, we note that existing compatible objectives put density on velocities that are infeasible on compact manifolds. We propose an objective built from an exponential family over endpoints, with the conditional velocity as sufficient statistic, which is both compatible and supported only on feasible velocities. This manifests as a reweighting of the flow matching loss which, on constant-curvature manifolds, treats errors in flow speed and direction differently. Empirically, our method recovers the correct velocity field on the test case, outperforms prior methods on high-dimensional product tori, and obtains substantial NLL improvements over prior work on two of four standard geospatial benchmarks on the sphere at moderate runtime overhead. On a large dataset of high-dimensional human poses, our method outperforms prior work according to sample-based metrics.

1 Introduction

Much of the success of modern generative modelling can be attributed to the development of transport-based models, which learn to deform a simple base distribution into the target data distribution. These include 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]. These models learn the transport map in terms of a time-dependent vector field and thus fall within the model class of continuous normalizing flows [Chen et al., 2018]. To overcome the scalability challenges faced by other models in this category, flow matching decomposes the intractable marginal probability path into simpler conditional paths coupling 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 conditional 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] observed that the Euclidean flow matching objective can be seen as maximizing the likelihood of a fixed-covariance Gaussian model qtθ(x1∣xt)q_t^\theta(x_1 \mid x_t) of the true endpoint posterior pt(x1∣xt)p_t(x_1 \mid x_t). In

Affiliations. 1^{1} University of Cambridge; 2^{2} Devotion AI Labs Ltd.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Table 1: Comparison of our method against prior work.

MethodNetwork outputCompatible?Support-aware on compact manifolds?
RFMvelocity✓✕
RG-VFMendpoint✕✓
Oursvelocity✓✓

this framing, flow matching can be generalized to different data supports by appropriate choices of the parametric family qtθq_t^\theta. Applying this to manifolds, Zaghen et al. [2026] propose Riemannian Gaussian variational flow matching (RG-VFM), which maximizes the likelihood of a Riemannian Gaussian over conditional endpoints.

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). We delineate two properties. First, we say a loss function is compatible if its population optimum gives the true marginal flow induced by the data and coupling (section 3.2). This is a minimal correctness check for an objective to be generally useful. Second, we say it is support-aware if the corresponding likelihood puts mass only on velocities that are achievable (section 3.4). 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 (table 1). Our theoretical contributions are:

  • We derive a general compatibility condition for likelihood-based objectives, 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 most relevant in 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. The residual is zero for a compatible model, eliminating 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 evaluate on a simple distribution on T1\mathbb{T}^1 where the ideal behaviour of all models is analytic. When a model is incompatible, we see rapid spatiotemporal variation in the learned velocity field while ODE solvers have issues. We further evaluate on high-dimensional tori and four real-world 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.

References (54)