TL;DR
Training generative flow models on curved spaces—like spheres or tori—requires pairing source and target points so the model can learn to follow the shortest paths between them. Finding good pairings usually demands $O(N^2)$ memory and $O(N^3)$ time, which bottlenecks large-batch training. GeoSliM sidesteps this by projecting manifold data onto simple 1D circles, solving optimal transport there in $O(N \log N)$ time, and picking the pairing that yields the lowest transport cost back on the original manifold.
What Problem Does This Paper Address?
Many scientific datasets don't live in flat Euclidean space. Protein backbone torsion angles wrap around a torus, and normalized text embeddings sit on a high-dimensional sphere. Riemannian conditional flow matching (RCFM) generates such data by learning a velocity field that pushes samples along geodesics (shortest paths) from a source distribution $q_0$ to a target distribution $q_1$.
The catch is the endpoint coupling—deciding which source point pairs with which target point. Independent random pairing is fast, but it creates tangled, crossing paths that make the velocity field harder to learn. Optimal transport (OT) pairings untangle these paths by minimizing the squared geodesic distance, but computing a full $N \times N$ pairwise cost matrix takes $O(N^2)$ time and memory, followed by $O(N^3)$ time for exact matching or $O(N^2)$ per Sinkhorn iteration. We need a way to find low-cost couplings without paying the quadratic-to-cubic price tag.
Methods
The authors introduce GeoSliM (Geodesic-Cost-Selected Circular Slicing on Manifolds), which adapts the idea of "sliced" optimal transport from flat spaces to curved manifolds using circles ($\mathbb{S}^1$) instead of real lines. It works in two steps:
- Generate candidate couplings on circles: Sample $L$ slice maps $s_\omega : \mathcal{M} \to \mathbb{S}^1$ (for spheres $\mathbb{S}^{D-1}$, great-circle projections; for tori $\mathbb{T}^D$, coprime integer dot products modulo $2\pi$). For each slice, project the batch of $N$ source and target points onto $\mathbb{S}^1$ and solve 1D circular optimal transport using Delon et al.'s binary-search algorithm in $O(N \log N)$ time. Lift that 1D matching back to the original manifold $\mathcal{M}$.
- Select the best candidate: Evaluate the actual squared geodesic endpoint cost on $\mathcal{M}$ for each of the $L$ candidates—which takes just $O(N)$ time per slice on spheres and tori—and keep the winner.
In total, GeoSliM constructs and scores all $L$ candidates in $O(LN \log N)$ time, completely avoiding the $O(N^2)$ cost matrix.
Datasets
- Synthetic: 4-component von Mises–Fisher (vMF) mixtures on spheres ($\mathbb{S}^{1023}$) and 4-component low-rank wrapped-Gaussian (LRWG) mixtures on tori ($\mathbb{T}^{1024}$).
- Real-world:
- SidechainNet: Protein backbone torsion angles, used both for a 2D torus ($\mathbb{T}^2$) coupling comparison (General vs. Pre-Pro residues) and a 512-dimensional torus ($\mathbb{T}^{512}$) flow-matching task.
- AG News: Business vs. Sports article embeddings encoded with
BGE-large-en-v1.5and normalized to unit length on $\mathbb{S}^{1023}$.
Key Insights and Ideas
- Universal realizability: Under mild geometric assumptions, the sphere and torus slice families can realize any finite-batch permutation coupling. In principle, the true empirical OT coupling is always reachable.
- Dimension-free sample complexity: Under regularity assumptions on the densities, the gap between the empirical minimum cost and the population minimum cost over $L$ slices shrinks at $O(N^{-1/2})$—completely independent of the manifold's dimension $D$.
- Lower endpoint cost isn't everything: In large-batch synthetic tests, hardened Sinkhorn achieved lower endpoint cost than GeoSliM. Yet when plugged into RCFM training on real-world data, GeoSliM-RCFM actually beat hardened Sinkhorn RCFM in both final distribution fit and wall-clock training time.
Key Results
- Circular vs. linear slicing (SidechainNet $\mathbb{T}^2$, $L=128$): GeoSliM achieved a normalized empirical-OT excess cost of 27.81% ($N=256$) and 27.40% ($N=512$), outperforming three linear-slicing baselines ($37.75\%$–$52.93\%$).
- Synthetic flow matching ($\mathbb{T}^{1024}$, $N=1024, L=1024$): GeoSliM-RCFM outperformed independent RCFM and hardened Sinkhorn RCFM on both test surrogate negative log-likelihood (5275.8 vs. 7729.8 and 6124.5) and test $W_2$ (12.012 vs. 13.321 and 12.310).
- Real-world flow matching ($N=1024, L=512$): Across all five seeds on both tasks, GeoSliM-RCFM achieved lower test $W_2$ than hardened Sinkhorn RCFM and reached its best validation $W_2$ in 31–47% less wall-clock time (1.21 vs. 1.76 hours on SidechainNet $\mathbb{T}^{512}$; 0.38 vs. 0.71 hours on AG News $\mathbb{S}^{1023}$).
Limitations and Future Work
- Slice probability: Realizability only guarantees a positive probability of drawing a slice that yields a good coupling; on uniform tori, low-cost candidates can be exponentially rare in $N$.
- Gap to true OT: The paper's sample-complexity bound compares against the best population cost over the sampled slices, not the true manifold OT cost, leaving a potential positive gap.
- Unexplained downstream win: The authors note they do not yet know why GeoSliM-RCFM surpasses hardened Sinkhorn RCFM on real-world tasks despite having a higher endpoint cost.
Summary updated