Fast generation on manifolds is important for scientific applications such as protein design, yet existing one-step generators often produce spurious samples in low-density gaps between data modes. Our analysis highlights the mismatch between uniform noise and concentrated data, motivating a statistical prior that captures the data's coarse structure. We first estimate this prior by fitting mixtures of tangent-space Gaussians through geometry-aware moment matching. However, independent noise-data pairing can still connect different modes and weaken the benefit of the fitted prior. We therefore introduce posterior coupling, which samples a latent component conditioned on each data point and draws its paired noise from that component. To extend this approach to long torsion-angle chains, where full-covariance mixtures become costly, we use a hidden Markov prior to model sequential dependence with shared parameters. The resulting framework plugs into existing one-step training pipelines while retaining the generator architecture, training objective, and single network evaluation at inference. Experiments on spheres, tori, and SO(3) demonstrate substantial improvements across multiple generators, reducing distributional error by up to 125× and the protein Ramachandran outlier rate from 12.1% to 0.55%.
Figures & tables
Figure 1: Reducing spurious samples in low-density regions. Held-out data (left), samples from a one-step baseline using a uniform prior and independent pairing (middle), and samples from our method using a fitted statistical prior and posterior coupling (right). Both generators use the same architecture and loss formulation. The baseline places excess probability mass between conformational modes and away from the observed seismic belts, while our method reduces these artifacts.
Figure 2: Overview. (a) A mixture of tangent-space Gaussians is fitted once to the training data; colors mark mixture components. (b) Each data point x draws a component k from its posterior, then noise from that component, so the pairs are short, unlike independent pairing, and the noise still follows p0 ; only uθ is trained. (c) With the same one-step network, uniform noise yields samples between modes, while the statistical prior yields samples on the data.
Figure 3: Hidden Markov prior for a chain of L residues. Latent states zj form a Markov chain ( ν , A ); each emits its residue’s angles θj (shaded) and, in the coupling, the noise εj (blue).
Figure 4: Effects of concentration and dimension. (a) Log-likelihood lost against the concentration of von Mises–Fisher mixtures. (b) Loss per dimension on synthetic tori.
required
folded (%)
displacement
Dataset
U
S
U
S
U
S
Volcano
4.25
0.04
33.6
28.9
0.66
0.05
Fire
3.10
0.46
22.3
8.2
0.76
0.03
Proline
3.35
0.41
44.9
0.3
1.76
0.09
Pre-Pro
2.34
0.35
37.8
1.2
1.53
0.10
RNA ( T7 )
16.84
1.63
51.0
13.0
3.92
0.30
Table 1: How trained maps meet the demand on representative datasets: required contraction (nats), folded prior samples (%) and displacement (rad). U, S: uniform, statistical prior. All nine datasets: Supp. F.1.
Prior alone
Riemannian MeanFlow
Generalized flow map
Dataset
(no network)
RMF [ 64 ]
RMF-E [ 58 ]
RMF-L [ 58 ]
RMF-S [ 58 ]
G-LSD [ 10 ]
Volcano
1.2
4.6 →≤ 1
4.8 →≤ 1
4.1 → 1.1
4.6 →≤ 1
1.3 →≤ 1
Earthquake
8.6
24 → 5.7
28.3 → 8.4
21.6 → 6.9
25.0 → 6.6
7.0 → 4.4
Flood
8.1
15 → 9.0
11.0 → 6.2
7.4 → 4.8
12.4 → 5.1
7.7 → 5.8
Fire
35
110 → 20
57.5 → 13.2
49.8 → 12.7
69.1 → 12.3
16.5 → 8.6
General
149
442 → 13
289 → 46.0
434 → 5.7
403 → 3.2
49.1 → 3.5
Table 2: The statistical prior improves every one-step generator. One-step error, uniform → statistical prior, at the finest scale in noise-floor multiples ( ≤1 : within the estimated noise floor). Prior alone: samples drawn from the fitted prior without any network, compared with the uniform prior of RMF. RMF-E, RMF-L, RMF-S: the Eulerian, Lagrangian and semigroup formulations of the Riemannian MeanFlow of [ 58 ] . Bold: separated by more than three standard deviations. Avg. improvement: geometric mean over the nine datasets of the ratio of the uniform-prior error to the statistical-prior error, with ≤1 counted as 1.
uniform prior
statistical prior
Dataset
1 step
4 steps
1 step
Fire
5.37
5.19
0.98
Earthquake
2.37
1.69
0.57
Glycine
2.18
1.44
0.19
Proline
15.85
16.12
0.53
RNA ( T7 )
2.80
1.93
0.17
Table 3: One step from the statistical prior against more steps from the uniform prior (Riemannian MeanFlow of Zhong et al. [64] , same network and training budget; MMD 2×103 at the finest scale; lower is better). All eight datasets: Supp. F.3.
Figure 5: Protein geometry diagnostics of one-step samples. (a, b) Usable-fragment and Ramachandran-outlier rates for backbone fragments sampled for 5000 real sequences, as a function of the number of sampling steps. (c) Rotamer-outlier rates for 14 residue types.
Figure 6: Side-chain angles (χ1,χ2) of proline, leucine and phenylalanine. From the uniform prior, samples form bands through empty regions; ours stay on the rotamer modes.
Method
Cone
Fisher
Line
Swiss
RFM [ 8 ]
0.311
0.154
0.095
0.346
G-LSD [ 10 ]
0.044
0.073
0.037
0.032
RMF [ 64 ]
0.057
0.076
0.038
0.080
RMF-MT [ 64 ]
0.049
0.039
0.035
0.061
RMF + statistical prior (ours)
0.012
0.025
0.025
0.017
Table 4: One-step generation on SO(3) : MMD against the baselines reported by Zhong et al. [64] (lower is better; bold: lowest).
clash
helix
sheet
W1
Held-out fragments
0.012
0.496
0.415
–
RMF + uniform prior
0.164
0.417
0.225
2.24
Kernel density estimate
0.149
0.459
0.324
0.78
RMF + mixture prior
0.055
0.486
0.341
0.40
RMF + hidden-Markov prior
0.043
0.501
0.407
0.58
Table 5: Backbone fragments of 10 residues ( T20 ) rebuilt in 3D: clash rate (lower is better), helix and sheet fractions (closer to held-out is better), and W1 distance between end-to-end distances (Å; lower is better). RMF rows are one-step samples of the generator trained with each prior. Bold: closest to held-out fragments. Fragments of 20 residues are in Supp. F.4.
RMF kernel
finest scale
uniform
fitted prior
+ coupling
uniform
fitted prior
+ coupling
Cone
14
≤ 1
≤ 1
158
≤ 1
≤ 1
Pre-Pro
83
2.8
≤ 1
58
52
6.5
Fire
1.6
≤ 1
≤ 1
110
123
20
Table 6: The prior places the mass; the coupling recovers its shape (noise-floor standard deviations; ≤ 1: within the noise floor). Fitted prior: paired independently with the data; + coupling: paired by the posterior.
Figure S1 : Exact transport on the circle from the uniform prior (left) and from a statistical prior (right) onto three narrow von Mises modes; each line joins a quantile of p0 to its image under T=F1−1∘F0 .
Pairing
local
prior kept
Independent
no
yes
Most likely component
yes
not in general
Posterior component (ours)
yes
at EM fixed points
+ component-wise matching
shorter
as above
Table S1 : Pairing schemes and their properties. Local: the noise is drawn near its data point. Prior kept: the training noise follows the prior p0 used for sampling ( Proposition 2 ); component-wise matching only permutes noise that has been drawn.
Figure S2 : The posterior coupling keeps moves short. Distance between paired noise and data on Pre-Pro.
time per step (ms)
Dataset
batch
uniform
hierarchical OT
memory
Fire ( S2 )
8192
202
264 (1.3)
11.7 GB
Cone ( SO(3) )
1024
14.7
26.6 (1.8)
0.3 GB
Pre-Pro ( T2 )
4096
11.2
34.3 (3.1)
0.6 GB
Table S3 : Cost of hierarchical OT on one NVIDIA L40S GPU. (a) Time per training step (ratio to the uniform prior) and peak memory. (b) Time (ms) to pair one minibatch, by block size.
Dataset
ntest
Floor
Lowest baseline
Within floor
Neg. eig.
Volcano
82
0.121±0.035
0.092
3/4
36
Earthquake
612
0.044±0.015
0.032
3/4
156
Flood
487
0.047±0.011
0.048
3/4
179
Fire
1280
0.029±0.010
0.027
3/4
63
General
13820
0.006±0.002
0.020
0/4
400
Glycine
1328
0.025±0.007
0.030
2/4
630
Table S4 : Examination of the RMF protocol using real data only. Top: Floor is the MMD between two disjoint real subsets of test-set size (20 repetitions), the score of a perfect model; Within floor counts the baselines below floor mean +2 s.d.; Neg. eig. counts negative eigenvalues of the Gram matrix on 1500 points. Bottom: real data with ψ and higher angles permuted, scored with the RMF kernel and with a joint kernel.
Dataset
uniform
statistical
Dataset
uniform
statistical
Fire
1.6
≤ 1
General
176
≤ 1
Earthquake
≤ 1
≤ 1
Glycine
1.3
≤ 1
Flood
2.9
2.7
Proline
31
≤ 1
Volcano
≤ 1
≤ 1
Pre-Pro
49
≤ 1
RNA ( T7 )
146
≤ 1
Table S5 : One-step error under the RMF kernel of Zhong et al. [64] , in noise-floor standard deviations (lower is better; ≤ 1: within the estimated noise floor).
Pre-Pro ( T2 )
Fire ( S2 )
Cone ( SO(3) )
Prior
precision
coverage
precision
coverage
precision
coverage
uniform
−2.96
−0.67
−4.18
−1.09
−117.3
−2.92
statistical, independent coupling
−0.42
−0.30
−2.43
−1.15
−0.03
−0.02
statistical, posterior coupling
−0.07
−0.04
−0.23
−0.19
−0.07
−0.03
Table S6 : Log-likelihood proxies of one-step samples. In nats per point relative to a perfect model (0: as good as real data; negative: nats lost). MeanFlow; mean over 2–3 seeds × 2 draws.
Figure S3 : Sensitivity to the kernel bandwidth. One-step MMD 2 in multiples of the noise-floor standard deviation as a function of γ ; values within the floor are drawn at the dashed line. MeanFlow, 2–3 seeds, two draws of 5000 samples.
Data
Manifold
Type
Size
Use
Volcano, Earthquake, Flood, Fire
S2
real
827–12,809
main comparison, evaluation
General, Glycine, Proline, Pre-Pro
T2
real
6910–138,208
main comparison, evaluation
RNA backbone
T7
real
9478
main comparison
Torsion windows ( k=2,3,5 )
T4 – T10
real
32,756–82,711
dimension
Backbone fragments ( k=10,20 )
T20 , T40
real
7795–16,111
dimension, physical statistics
Side chains (χ1,χ2) , 14 residue types
T2
real
14 types
conditional, rotamer validation
Table S7 : Datasets. Real data are measurements; synthetic data have known densities and serve controlled analyzes. Details below.
Figure S4 : Divergence and harm on the eight synthetic datasets on S2 , ordered by KL(p1∥U) : log-likelihood lost by one-step samples. Ring and arc widths in mrad.
Laplace γ=10
Laplace γ=50
LL
κ
Uniform
vMF
Uniform
vMF
Uniform
vMF
LL (true)
5
0.112
0.531
0.008
0.093
−2.187
−2.180
−2.165
25
1.323
0.286
0.340
0.130
−1.160
−0.998
−0.999
100
4.825
0.178
2.691
0.092
−0.742
0.312
0.301
250
13.07
1.017
7.278
0.359
−3.397
0.984
1.208
Table S8 : Controlled experiments on S2 . (a) Data concentration (vMF prior); LL: mean true log-likelihood of the samples, with the target in the last column. (b) Rings and arcs; LL gap: true minus sample log-likelihood. Floors: 0.005–0.024 ( γ=10 ) and 0.001–0.006 ( γ=50 ).
Figure S5 : Geometry of the learned one-step maps on 1000 prior samples. (a) Achieved contraction (bars) and the contraction an injective map requires (ticks). (b) Inverse stretch (bars) and the lower bound on Lip(T−1) (ticks).
required
folded (%)
displacement
Dataset
U
S
U
S
U
S
Volcano
4.25
0.04
33.6
28.9
0.66
0.05
Earthquake
2.10
0.33
18.4
14.2
0.64
0.06
Flood
1.55
0.33
15.5
8.6
0.57
0.06
Fire
3.10
0.46
22.3
8.2
0.76
0.03
General
2.54
0.32
28.9
0.2
1.38
0.09
Table S9 : All nine datasets. How trained maps meet the demand. Required contraction (nats), folded prior samples (%) and displacement (rad). U, S: uniform, statistical prior.
Figure S6 : One-step samples on the four Earth datasets. From the uniform prior, samples spread away from the seismic belts across the open ocean; from the statistical prior, they follow the data.
Figure S7 : Backbone angles of Glycine and Proline (Pre-Pro in Fig. 1 ). Samples from the uniform prior cross forbidden regions; ours match the data.
Method
steps
favored
clashes
helix
sheet
Uniform prior
1
74.5
5.1
45.2
35.1
4
89.6
3.8
49.3
36.3
Statistical prior
1
96.7
3.0
50.1
40.7
4
97.4
2.7
50.4
40.9
Independent held-out draws
n/a
97.7
3.1
49.9
41.3
Real segments
n/a
98.4
0.5
50.4
41.1
Table S10 : Protein applications : what Fig. 5 does not show (percentages, two seeds). (a) Fragments of eight residues for 5000 real sequences: favored residues, clashes per fragment, helix and sheet. (b) Side chains of 14 residue types: samples in the favored region (98% contour). n/a: not applicable.
Figure S8 : Ramachandran densities from a single model conditioned on the residue type (held-out data and one-step samples, seed 0).
Figure S9 : Switching the prior helps across objectives and generators , at the finest scale. (a) Four MeanFlow objectives and G-LSD, from one and four steps of the uniform prior to one step of ours. (b) Improvement factor (error from the uniform prior over error from ours) of three one-step generators on nine real datasets; for Woo et al. [58] , median and range over three formulations.
Figure S10 : One step from the statistical prior beats four steps from the uniform prior on five real datasets (Riemannian MeanFlow of Zhong et al. [64] ; the three SO(3) benchmarks in Fig. S12 ).
Figure S11 : One-step samples on SO(3) , each rotation drawn as its three axes. Samples from the uniform prior spread or collapse; ours reproduce the data.
Objective
Prior
Cone ( SO(3) )
Fire ( S2 )
Pre-Pro ( T2 )
MeanFlow
uniform
2.17 (14)
0.659 (1.6)
13.0 (83)
statistical
−0.043 ( ≤ 1)
−0.221 ( ≤ 1)
−0.079 ( ≤ 1)
iMF
uniform
3.68 (24)
0.492 (1.2)
318 (2027) ∗
statistical
−0.109 ( ≤ 1)
−0.279 ( ≤ 1)
−0.031 ( ≤ 1)
α -Flow
uniform
240 (1539) ∗
131 (324)
26.6 (169)
statistical
−0.064 ( ≤ 1)
−0.177 ( ≤ 1)
11.6 (74)
Table S11 : Other one-step objectives : what Fig. S9 does not show. (a) The RMF kernel (noise-floor multiples in parentheses); ∗ no one-step map was learned. (b) α -Flow tuned to the same extent for both priors.
Figure S12 : Number of sampling steps on the SO(3) benchmarks , which Fig. S10 does not show (Riemannian MeanFlow of Zhong et al. [64] , unbiased MMD 2 at the finest scale; values within the noise floor drawn at the floor).
RMF kernel, 1 step
finest, 2 steps
finest, 4 steps
Dataset
Generator
U
S
U
S
U
S
Volcano
Woo et al., Eulerian
≤ 1
≤ 1
4.4
1.0
3.9
≤ 1
Woo et al., Lagrangian
≤ 1
≤ 1
2.5
1.1
1.8
1.4
Woo et al., semigroup
≤ 1
≤ 1
4.3
≤ 1
3.9
≤ 1
G-LSD
≤ 1
≤ 1
≤ 1
≤ 1
Earthquake
Woo et al., Eulerian
≤ 1
≤ 1
22.3
7.3
17.3
5.5
Table S12 : The other one-step frameworks : the RMF kernel and two and four steps, which Tab. 2 does not show (noise-floor multiples, two seeds). G-LSD was run with one and four steps. U: uniform; S: statistical prior.
Figure S13 : How the gap scales , all panels. (a, b) As in Fig. 4 . (c) One conditional model against one model per residue type. (d) Real torsion windows of k residues on T2k .
clash
helix
sheet
W1
Held-out fragments
0.071
0.516
0.398
–
RMF + uniform prior
0.405
0.392
0.233
0.40
Kernel density estimate
0.418
0.437
0.286
1.47
RMF + mixture prior
0.264
0.469
0.259
2.99
RMF + hidden-Markov prior
0.160
0.504
0.403
5.83
Table S14 : Backbone fragments of 20 residues ( T40 ) rebuilt in 3D, as in Tab. 5 : clash rate (lower is better), helix and sheet fractions (closer to held-out is better), and W1 distance between end-to-end distances (Å; lower is better). Bold: closest to held-out fragments.
finest scale
Residue
Model
Prior
1 step
4 steps
General
per-type models
uniform
246
186
per-type models
statistical
10
5.1
conditional model
uniform
880
351
conditional model
statistical
35
8.1
Glycine
per-type models
uniform
22
14
Table S16 : Residue-type-conditioned generation at the finest scale (noise-floor multiples; Fig. S13 c shows the RMF kernel): one conditional model for four residue types (300 epochs, two seeds) against the per-type models.
Condition
Data
unif. → stat.
factor
Fitted on 500 points
Pre-Pro
54 → 12
4.5 ×
Fire
110 → 23
4.8 ×
EM, three iterations
Pre-Pro
54 → 5.8
9.3 ×
Fire
110 → 45
2.4 ×
Misspecified shapes
rings, arcs
Sec. F.1
3.7–19 ×
Uniform: 5 × training, 4 steps
Proline
6.3 → 3.4
1.9 ×
Table S17 : Stress tests and cost. (a) Finest scale, uniform → statistical prior (noise-floor standard deviations). (b) One-time cost of fitting the prior and time per training step on one NVIDIA L40S GPU; sampling cost is unchanged.
Figure S14 : What the network adds : distance from held-out data of the fitted prior alone ( s=2 ) and of one-step samples trained with it; numbers: improvement factor. Kernels: Laplace γ=20 ( SO(3) ) and γ=10 (Earth), joint Laplace γ=3 (torus). On synthetic arcs and rings, the network lowers the log-likelihood lost from 0.87 to 0.14 and from 0.72 to 0.20 nats.
Figure S15 : Number of components K (MeanFlow, one step, finest scale): the fitted prior alone and one-step samples trained with it; numbers: improvement factor. BIC: the selected K ; other values from one seed.
Figure S16 : Couplings with the statistical prior fixed ( s=2 unless stated). (a) Mean geodesic distance between paired noise and data (Fire, independent: uniform prior). (b) One-step error at the finest scale (arcs and rings: 30 mrad; no hard coupling on Fire). (c) SO(3) at γ=20 .
Generative modeling over discrete structures underpins applications across deep learning, from biological sequence design and code generation to large language models, yet generation often remains sequential, relying on autoregressive decoding or iterative refinement. In this work, we introduce Coupling Models(Coupling Models), a one-step discrete generative model that learns a direct coupling between discrete sequences and Gaussian latents. Unlike recent distillation methods that compress a pretrained multi-step sampler into a few steps, Coupling Model trains a purpose-built decoder to invert this coupling and generate samples in a single step. The model also avoids complex continuous flows over the simplex and hand-specified data-to-noise couplings. Empirically,Coupling Model improves the strongest one-step baselines in each domain: it reduces LM1B text-generation perplexity by 33% at its lowest-perplexity operating point, Fly Brain enhancer-design FBD by 18%, and MNIST-Binary FID by 46%. These results suggest that effective one-step discrete generation depends strongly on how data and noise are coupled before decoding. Code is available at https://github.com/pengzhangzhi/Coupling-Models.
Fred Zhangzhi Peng, Avishek Joey Bose, Anru R. Zhang +1
Duke University · Imperial College London · AITHYRA
Flow matching models learn to transport samples from a simple prior distribution to a complex data distribution. When prior-data pairs are coupled via optimal transport (OT), the learned trajectories are straight and non-crossing, enabling fast, even single-step, generation. However, computing the OT coupling in high dimensions is intractable, and existing methods attempt to solve the OT problem, at the cost of persistent bias or significant overhead. Rather than solving for the OT coupling, we reformulate the problem. Once the prior is treated as a design choice rather than a fixed input, the OT coupling between prior and data is no longer unique. Many priors admit an OT-optimal identity coupling to the data, leaving us free to choose one that is also tractable to sample. We identify low-frequency projection of natural images as such a choice. The identity coupling between data and its low-frequency representation is empirically OT-optimal, the prior is structured enough to be sampled by a lightweight model at inference, and the remaining flow-matching task reduces to synthesizing high-frequency detail. Interpolating the prior with Gaussian noise further improves generation quality while preserving the OT coupling. The approach requires no modifications to the flow model itself, and integrates naturally with latent-space models, classifier-free guidance, and one-step generation frameworks. Across all benchmarks, our method reduces trajectory curvature by more than 2× compared to existing flow matching methods, yielding better generation quality in the few-step regime.
Physics-constrained generative models aim to generate physical fields that match a target distribution and satisfy prescribed constraints. However, enforcing these constraints often increases sampling costs through iterative corrections or training costs through residual optimization and trajectory unrolling. To address this issue, we introduce Preconditioned Manifold one-step Flow Matching (PMosFM), a preconditioned manifold matching framework for one-step physics-constrained generation. By encoding constraints in a manifold decoder, PMosFM learns transport in intrinsic coordinates without separate residual losses or terminal residual unrolling. A geometric preconditioner rescales coordinates using the decoder-induced metric, while a regularized covariance transform approximately whitens the interpolation-state inputs. A finite-interval objective couples velocity supervision with consistency between decoded endpoints in physical space. We show that exact parameterization removes residual-induced Gauss--Newton curvature, that geometric and covariance effects separate in a local conditioning bound, and that physical flow-map error bounds endpoint distributional error. Controlled ablations examine conditioning, and experiments evaluate optimizer-update time and memory footprint. At inference, PMosFM uses one neural transport evaluation followed by physical decoding. Experiments across benchmarks show lower training and sampling time than the multi-step baselines at comparable physical and distributional fidelity. Code and datasets will be released publicly.
Zhangyong Liang, Haibin Ling
Department of Artificial Intelligence Westlake University