Riemannian MeanFlow Dongyeop Woo, Marta Skreta, Seonghyun Park, Kirill Neklyudov, Sungsoo Ahn Abstract Diffusion and flow models have become the dominant paradigm for generative modeling on Riemannian manifolds, with successful applications in protein backbone generation and DNA sequence design. However, these methods require tens to hundreds of neural network evaluations at inference time, which can become a computational bottleneck in large-scale scientific sampling workflows. We introduce Riemannian MeanFlow (RMF), a framework for learning flow maps directly on manifolds, enabling high-quality generations with as few as one forward pass. We derive three equivalent characterizations of the manifold average velocity (Eulerian, Lagrangian, and semigroup identities), and analyze parameterizations and stabilization techniques to improve training on high-dimensional manifolds. In promoter DNA design and protein backbone generation settings, RMF achieves comparable sample quality to prior methods while requiring up to 10 × \times fewer function evaluations. Finally, we show that few-step flow maps enable efficient reward-guided design through reward look-ahead, where terminal states can be predicted from intermediate steps at minimal additional cost. † † affiliationnotice: Equal advising 1 Introduction Many scientific data types possess intrinsic geometric structure that is not faithfully captured by Euclidean representations. For example, protein backbones are naturally described as sequences of rigid-body transformations, where each residue frame encodes both position and orientation ( 29 ; 51 ; 54 ; 56 ; 4 ) . DNA and RNA sequences are distributions over nucleotides constrained to the probability simplex ( 47 ; 13 ; 9 ) , while molecular conformations are parameterized by torsion angles lying on circles ( 28 ) . Naively embedding such data in \mathbb{R}^{d} ignores these constraints, leading to invalid samples, e.g., unnormalized token probabilities or discontinuous angles, and inefficient learning. Figure 1 : Protein backbone samples from RMF (ours), FrameDiff, and FrameFlow for different inference budgets. RMF produces well-formed structures in one step, while baselines require more. Riemannian geometry provides a natural mathematical framework for modeling such data. By defining generative models directly on the appropriate manifold, such as \mathrm{SE}(3)^{N} for protein backbones or the simplex \Delta^{d-1} for sequences, geometric constraints are satisfied by construction. Building on the success of diffusion models and flow matching in Euclidean settings ( 46 ; 34 ; 1 ) , recent work has extended these continuous-time generative models to Riemannian manifolds, learning vector fields that transport noise to data along geodesic paths ( 27 ; 14 ; 8 ) . These geometric generative models have achieved notable success in protein backbone generation ( 54 ; 56 ; 4 ) and DNA sequence design ( 13 ; 9 ) . Despite this progress, the inference cost of manifold generative models remains a critical bottleneck. Sampling requires numerically integrating an ODE or SDE along the manifold, often demanding tens to hundreds of neural network evaluations ( 46 ; 34 ) . This computational burden is particularly problematic in scientific design pipelines, where generative models serve not as one-off samplers, but as a proposal mechanism within iterative loops, e.g., for property-guided optimization ( 53 ; 39 ; 22 ) . When each proposal requires hundreds of forward passes, the scope of exploration can become limited. In Euclidean settings, this challenge has driven extensive research into few-step generation. Consistency models ( 44 ; 45 ) enforce self-consistency along trajectory paths, while flow map methods ( 18 ; 59 ; 20 ; 3 ) learn to transport between arbitrary time points via average-velocity regression. These approaches achieve high-quality generation with far fewer function evaluations, narrowing the gap with multi-step methods. However, these methods remain underexplored in the Riemannian manifold setting, limiting their applicability in scientific domains. Contributions. To address this gap, we present Riemannian MeanFlow ( RMF ), a framework for few-step generation on Riemannian manifolds. Our contributions are: 1. Riemannian MeanFlow identities: We derive three equivalent and complete characterizations of the manifold average velocity, each with a distinct training objective: Eulerian, Lagrangian, and semigroup. We find that differential objectives (Eulerian, Lagrangian) can exhibit high variance due to differential terms related to manifold curvature in the regression targets, while the algebraic semigroup objective avoids this and provides more stable optimization in high dimensions. 2. Scalable parameterization: We propose x_{1} -prediction for manifold flow maps, where the network predicts a manifold-valued endpoint rather than a tangent vector. In our experiments, x_{1} -prediction performs comparably or better than v -prediction and scales well to high dimensions (up to D=2048 ), making it compatible with existing scientific architectures that output manifold-valued points. We identify that the best combination for stable training on high-dimensional manifolds is the semigroup objective with x_{1} -prediction. 3. Applications in scientific design: Recent works have generalized consistency models ( 10 ) and flow-map learning ( 12 ) to manifolds, but validation remains limited to low-dimensional benchmarks ( \mathbb{S}^{2} , \mathrm{SO}(3) , torsion angles). We demonstrate that RMF can scale to real scientific tasks, showing that few-step generation is viable in high dimensions. On DNA promoter design (simplex in \mathbb{R}^{1024\times 4} ) and protein backbone generation ( \mathrm{SE}(3)^{N} with N up to 128), RMF matches the performance of the state-of-the-art multi-step generative models ( 54 ; 13 ) with up to 10\times fewer function evaluations. We further demonstrate reward-guided generation via reward look-ahead, which has not been previously shown on manifolds. 2 Riemannian MeanFlow Identities 2.1 Background on Riemannian Geometry We consider a smooth, connected Riemannian manifold \mathcal{M} and its Riemannian metric g . At each point x\in\mathcal{M} , the tangent space T_{x}\mathcal{M} is a vector space of velocities with inner product \langle\cdot,\cdot\rangle_{g} and norm \|\cdot\|_{g} . The disjoint union of all tangent spaces forms a tangent bundle T\mathcal{M}:=\bigsqcup_{x\in\mathcal{M}}T_{x}\mathcal{M} . For manifolds embedded in ambient d -dimensional Euclidean space \mathcal{M}\subset\mathbb{R}^{d} , we let \mathrm{Proj}_{x}:\mathbb{R}^{d}\rightarrow T_{x}\mathcal{M} denote tangential projection of vectors from the ambient space onto the tangent space at x . We provide a self-contained tutorial on Riemannian geometry in Appendix A and summarize key concepts needed for our framework below. Exponential and logarithmic maps. The exponential map \exp_{x}:T_{x}\mathcal{M}\to\mathcal{M} takes a tangent vector v and returns the endpoint of the unit-time geodesic (locally shortest path) starting at x with initial velocity v . Its local inverse, the logarithmic map \log_{x}:\mathcal{M}\to T_{x}\mathcal{M} , returns the initial velocity needed to reach a target point. Covariant derivatives. To realize differentiation of vector fields on the manifold, we use the Levi-Civita connection \nabla . For a vector field V(t) along a curve \gamma(t) , the covariant derivative D_{t}V\coloneqq\nabla_{\dot{\gamma}}V measures how the vector field V changes along the curve \gamma while accounting for the manifold’s curvature. For a manifold embedded in Euclidean space, this corresponds to projecting the standard Euclidean derivative onto the tangent space: D_{t}V=\mathrm{Proj}_{\gamma(t)}(\frac{d}{dt}V) . Derivatives of the logarithmic map. Since \log:\mathcal{M}\times\mathcal{M}\to T\mathcal{M} is a function of two arguments, we distinguish its partial derivatives: \nabla^{1}_{v}\log_{x}(y) denotes the covariant derivative with respect to the first argument x in direction v , while d(\log_{x})_{y}[w] denotes the differential with respect to the second argument y in direction w . These quantities appear in our training objectives and have closed-form expressions for manifolds of interest (spheres, simplices, \mathrm{SE}(3) ); see Appendix A for details. 2.2 Flow Maps and Average Velocity on Manifolds We now define the central objects of our framework. Our goal is to learn a generative model that transports a prior distribution p_{0} to a data distribution p_{1} . This transport is governed by the ODE \frac{dx_{t}}{dt}=v_{t}(x_{t}) , where v_{t}:\mathcal{M}\to T\mathcal{M} is a time-dependent vector field. We assume a chosen interpolant determines a family of intermediate marginals \{p_{t}\}_{t\in[0,1]} , where p_{t} denotes the distribution at time t . In this setting, rather than learning v_{t} and integrating it at inference time (as in flow matching), we directly learn the flow map that transports from one time point to another. Definition 2.1 (Integral curve) . Given a time-dependent vector field v:[0,1]\times\mathcal{M}\to T\mathcal{M} , an integral curve is a smooth path x:[0,1]\to\mathcal{M} satisfying \frac{d}{dt}x_{t}=v_{t}(x_{t}) . We use the notation x_{s},x_{t},x_{r} to denote points on the same integral curve at times s,t,r respectively. Definition 2.2 (Flow map) . The flow map \Phi_{s,t}:\mathcal{M}\to\mathcal{M} of a vector field v_{t} is the mapping that transports points along integral curves: \Phi_{s,t}(x_{s})=x_{t} for any integral curve (x_{t})_{t\in[0,1]} . The flow map satisfies the semigroup property \Phi_{r,t}\circ\Phi_{s,r}=\Phi_{s,t} , which states that flowing from s to r and then from r to t agrees with the direct flow from s to t . In Euclidean space, the flow map can be parameterized through the average velocity : the constant velocity that, if maintained from time s to t , would transport x_{s} to the same final point x_{t} . On manifolds, constant-velocity motion corresponds to traveling along geodesics. The Euclidean difference x_{t}-x_{s} generalizes to the logarithmic map \log_{x_{s}}x_{t} , leading to the following definition: Definition 2.3 (Average velocity) . The average velocity u_{s,t}:\mathcal{M}\to T\mathcal{M} for a vector field v_{t} is defined as u_{s,t}(x_{s})=\begin{cases}\dfrac{1}{t-s}\log_{x_{s}}x_{t},&t\neq s,\\[6.0pt] v_{s}(x_{s}),&t=s,\end{cases} (1) for any integral curve (x_{t})_{t\in[0,1]} and times s,t\in[0,1] . Geometrically, u_{s,t}(x_{s}) is the constant velocity that would transport x_{s} to x_{t} over time of t-s along a geodesic. The flow map can be recovered via the exponential map: \Phi_{s,t}(x)=\exp_{x}\bigl((t-s)\,u_{s,t}(x)\bigr),\quad\forall~s,t\in[0,1]. (2) 2.3 Riemannian MeanFlow Identities We present three equivalent characterizations of the average velocity. Each identity provides a necessary and sufficient condition: any vector field satisfying the identity must be the true average velocity. These identities form the basis of our training objectives in Section 3.1 . The first two identities are obtained from differentiating the defining relation: (t-s)\,u_{s,t}(x_{s})=\log_{x_{s}}x_{t} (3) with respect to either s or t . Following conventions in fluid mechanics, we call differentiation with respect to the source time s the Eulerian perspective, and differentiation with respect to the target time t the Lagrangian perspective. Proposition 2.1 (Eulerian RMF) . A vector field u_{s,t}:\mathcal{M}\to T\mathcal{M} is the average velocity associated with v_{t} if and only if it satisfies u_{s,t}(x_{s})=(t-s)\,D_{s}u_{s,t}(x_{s})-\nabla^{1}_{v_{s}}\log_{x_{s}}x_{t}, (4) for any integral curve (x_{t})_{t\in[0,1]} and any s,t\in[0,1] . Proof sketch. Differentiating Eq. 3 with respect to s gives -u_{s,t}(x_{s})+(t-s)\,D_{s}u_{s,t}(x_{s})=D_{s}(\log_{x_{s}}x_{t}), (5) where the covariant derivatives appear due to differentiating vector fields along the integral curve at x_{s} . The right-hand side equals \nabla^{1}_{v_{s}}\log_{x_{s}}x_{t} by the chain rule for covariant derivatives, where v_{s}=\frac{d}{ds}x_{s} is the velocity along the integral curve. Rearranging yields Eq. 4 . See Section B.1 for the complete proof. ∎ Proposition 2.2 (Lagrangian RMF) . A vector field u_{s,t}:\mathcal{M}\to T\mathcal{M} is the average velocity associated with v_{t} if and only if it satisfies u_{s,t}(x_{s})=d(\log_{x_{s}})_{x_{t}}[v_{t}]-(t-s)\,\partial_{t}u_{s,t}(x_{s}), (6) for any integral curve (x_{t})_{t\in[0,1]} and any s,t\in[0,1] . Proof sketch. Differentiating Eq. 3 with respect to t gives u_{s,t}(x_{s})+(t-s)\,\partial_{t}u_{s,t}(x_{s})=d(\log_{x_{s}})_{x_{t}}[v_{t}], (7) where the right-hand side is the differential of \log_{x_{s}} at x_{t} applied to v_{t}=\frac{d}{dt}x_{t} . Rearranging yields Equation 6 . For the complete proof, refer to Section B.1 . ∎ The third identity is algebraic rather than differential, following directly from the semigroup property \Phi_{r,t}\circ\Phi_{s,r}=\Phi_{s,t} . We provide the proof in Section B.1 . Proposition 2.3 (Semigroup RMF) . A vector field u_{s,t}:\mathcal{M}\to T\mathcal{M} is the average velocity associated with v_{t} if and only if the following two conditions hold: (i) Boundary condition: u_{s,s}(x)=v_{s}(x),\,\,\forall\,x\in\mathcal{M} ; (ii) Semigroup consistency: for any s\neq t and intermediate time r\in[s,t] , u_{s,t}(x_{s})=\frac{1}{t-s}\log_{x_{s}}\Phi_{r,t}\bigl(\Phi_{s,r}(x_{s})\bigr), (8) where \Phi_{s,t}(x)\coloneqq\exp_{x}\!\bigl((t-s)\,u_{s,t}(x)\bigr) is the flow map induced by u_{s,t} . 3 Flow Map Learning with Riemannian MF 3.1 Training Objectives To learn a flow map transporting a prior p_{0} to data distribution p_{1} , we parameterize the average velocity via a neural network u_{s,t}^{\theta}:\mathcal{M}\to T\mathcal{M} . The induced flow map is then: \Phi_{s,t}^{\theta}(x)\coloneqq\exp_{x}\bigl((t-s),u_{s,t}^{\theta}(x)\bigr). (9) From identities to objectives. Each identity from Section 2.3 yields a training objective by converting the consistency condition into a regression target. Proposition 3.1 (Riemannian MeanFlow objectives) . Let u_{s,t}^{\theta}:\mathcal{M}\to T\mathcal{M} be a parameterized average velocity with induced flow map \Phi_{s,t}^{\theta} as in Eq. 9 . The following objectives are valid for learning the average velocity: 1. Eulerian RMF: Sample x_{s}\sim p_{s} and s,t\sim p(s,t) . The objective is \mathcal{L}_{\mathrm{EMF}}(\theta)=\mathbb{E}_{x_{s},s,t}\Bigl[\bigl\|u_{s,t}^{\theta}(x_{s})-\mathrm{sg}(\hat{u}_{\mathrm{tgt}})\bigr\|_{g}^{2}\Bigr], (10) where \hat{u}_{\mathrm{tgt}}=(t-s)\,D_{s}u_{s,t}^{\theta}(x_{s})-\nabla^{1}_{v_{s}}\log_{x_{s}}\Phi_{s,t}^{\theta}(x_{s}) . 2. Lagrangian RMF: Sample x_{t}\sim p_{t} and s,t\sim p(s,t) . Let \hat{x}_{s}=\Phi_{t,s}^{\theta}(x_{t}) . The objective is \mathcal{L}_{\mathrm{LMF}}(\theta)=\mathbb{E}_{x_{t},s,t}\Bigl[\bigl\|u_{s,t}^{\theta}(\hat{x}_{s})-\mathrm{sg}(\hat{u}_{\mathrm{tgt}})\bigr\|_{g}^{2}\Bigr]+\mathcal{L}_{\mathrm{cyc}}(\theta), (11) where \hat{u}_{\mathrm{tgt}}=\mathrm{d}(\log_{\hat{x}_{s}})_{x_{t}}[v_{t}]-(t-s)\,\partial_{t}u_{s,t}^{\theta}(\hat{x}_{s}) , and the cycle-consistency regularizer is defined as: \mathcal{L}_{\mathrm{cyc}}(\theta)=\mathbb{E}_{x_{t},s,t}\bigl[d_{g}(\Phi_{s,t}^{\theta}(\Phi_{t,s}^{\theta}(x_{t})),x_{t})^{2}\bigr], (12) where d_{g} denotes the geodesic distance. 3. Semigroup RMF: Sample x_{s}\sim p_{s} and times s,r,t\sim p(s,r,t) . The objective is \mathcal{L}_{\mathrm{SMF}}(\theta)=\mathbb{E}_{x_{s},s,r,t}\Bigl[\bigl\|u_{s,t}^{\theta}(x_{s})-\mathrm{sg}(\hat{u}_{\mathrm{tgt}})\bigr\|_{g}^{2}\Bigr], (13) where \hat{u}_{\mathrm{tgt}}=\frac{1}{t-s}\log_{x_{s}}\Phi_{r,t}^{\theta}\bigl(\Phi_{s,r}^{\theta}(x_{s})\bigr) for t\neq s , and \hat{u}_{\mathrm{tgt}}=v_{s} for t=s . Here, \mathrm{sg}(\cdot) denotes the stop-gradient operator. Full proofs are in Section B.2 . The key step in deriving our objectives lies in converting the average velocity characterizations from Section 2.3 into self-consistent regression targets. Specifically, the Eulerian characterization requires evaluation at x_{t} , necessitating integration over the unknown v_{t} starting from x_{s} . Instead, we replace x_{t} with the current model prediction \Phi_{s,t}^{\theta}(x_{s}) . The Lagrangian case is analogous, with (x_{s},x_{t},\Phi_{s,t}^{\theta}(x_{s})) replaced by (x_{t},x_{s},\Phi_{t,s}^{\theta}(x_{t})) . For Lagrangian RMF, we add a cycle-consistency loss to encourage weak invertibility, as the regression input is model-predicted. Conversely, the semigroup identity is inherently self-consistent and directly yields a regression target. Stop-gradient and bias. The stop-gradient operator \mathrm{sg}(\cdot) treats the target as a constant during backpropagation, preventing gradients from flowing through \hat{u}_{\mathrm{tgt}} . This avoids expensive higher-order derivatives (e.g., gradients through Jacobian–vector products (JVPs)) and stabilizes optimization. Importantly, this is unbiased at convergence: when u_{s,t}^{\theta} matches the true average velocity, the underlying identity is satisfied, and the gradient of the loss vanishes, regardless of whether gradients are propagated through the target. Approximating the marginal velocity. In practice, the marginal velocity v_{s} or v_{t} is intractable. As in flow matching, we replace it with a tractable conditional velocity. Importantly, in all of our objectives, the velocity appears only through linear differential operators. As a result, taking the expectation over the conditioning variable commutes with these operators, so this replacement does not affect the objective in expectation. We show this proof in Section B.2 . Computation of differential terms. The covariant derivative D_{s}u_{s,t}^{\theta} and partial derivative \partial_{t}u_{s,t}^{\theta} in the differential objectives can be computed efficiently using forward-mode automatic differentiation via JVPs, which adds less than 20% overhead compared with a standard forward pass ( 18 ) . For embedded manifolds, the covariant derivative can be obtained by computing the JVP in the ambient space and projecting the result onto the tangent space: D_{s}u_{s,t}^{\theta}(x_{s})=\mathrm{Proj}_{x_{s}}\bigl(\frac{d}{ds}u_{s,t}^{\theta}(x_{s})\bigr) . The differential quantities \nabla^{1}\log and \mathrm{d}(\log_{x_{s}}) admit closed-form expressions for manifolds of interest. In practice, we implement these operations using automatic differentiation, enabling efficient and flexible evaluation across different manifold choices. 3.2 Parameterization of the Flow Map We consider three parameterizations for the average velocity u_{s,t}^{\theta} : prediction of v , x_{t} , or x_{1} , and identify x_{1} -prediction as the best-suited for manifold settings. v -prediction. The most direct approach parametrizes the average velocity: u_{s,t}^{\theta}(x_{s})=\mathrm{Proj}_{x_{s}}\bigl(\texttt{net}^{\theta}(x_{s},s,t)\bigr)\in T_{x_{s}}\mathcal{M}, (14) where \mathrm{Proj}_{x_{s}} projects the network output onto the tangent space. The instantaneous velocity is recovered as v_{s}^{\theta}(x_{s})=u_{s,s}^{\theta}(x_{s}) , and the flow map follows from Eq. 9 . This parameterization is conceptually simple and commonly adopted in prior work on Euclidean flow maps. x_{t} -prediction. An alternative is to directly model the flow map: \Phi_{s,t}^{\theta}(x_{s})=\texttt{net}^{\theta}(x_{s},s,t) . The average velocity is then recovered via the logarithmic map. However, training requires enforcing the boundary condition \Phi_{s,s}^{\theta}(x_{s})=x_{s} and matching the instantaneous velocity \frac{d}{dt}\Phi_{s,t}^{\theta}(x_{s})\big|_{t=s}=v_{s}(x_{s}) , which requires differentiating through the network at every step. This introduces significant computational overhead and instability. x_{1} -prediction. We propose an x_{1} -prediction scheme that inherits the benefits of endpoint prediction from flow matching while accommodating the two-time structure of flow maps. The network predicts a point on the manifold, which we interpret as an estimate of the trajectory endpoint: \displaystyle\hat{x}_{1}^{\theta}(x_{s},s,t) \displaystyle=\texttt{net}^{\theta}(x_{s},s,t), (15) \displaystyle u_{s,t}^{\theta}(x_{s}) \displaystyle=\frac{1}{1-s}\log_{x_{s}}\hat{x}_{1}^{\theta}(x_{s},s,t). (16) Unlike standard x_{1} -prediction in flow matching, the predicted endpoint depends on both times s and t , since u_{s,t} is a function of both time variables. A practical advantage of this parameterization is compatibility with existing architectures that output manifold-valued points. For protein backbones, models such as FrameDiff ( 56 ) , FrameFlow ( 54 ) and FoldFlow ( 4 ) naturally predict \mathrm{SE}(3) frames. Thus, x_{1} -prediction can reuse such architectures without modification, which is convenient for repurposing pre-trained flow matching models as flow maps, whereas v -prediction would require modifying the output to produce tangent vectors. Numerical stability near s=1 . The factor (1-s)^{-1} in Eq. 16 diverges as s\to 1 , which can destabilize training. To mitigate this issue, we reweight the per-sample error inside the norm using a factor w(s) : w(s)=\frac{1-s}{\max(1-s,\epsilon)}, (17) where we set \epsilon\in\{0.05,0.1\} in our experiments, following common practices in flow matching with x_{1} -prediction ( 54 ; 4 ; 31 ) . In practice, this weighting stabilizes x_{1} -prediction in all tested settings. 3.3 Stabilizing Riemannian MF Training We identify several sources of optimization difficulty and present practical stabilization techniques below. Section G.1 provides empirical support for these choices. Time sampling distribution. We find that stable optimization requires different time-sampling schemes across the three objectives. For Eulerian MF, while the objective is agnostic to time ordering, we sample ordered time pairs with s\leq t , covering half the unit square (s,t)\in[0,1]^{2} . For Lagrangian MF, we sample time pairs in both directions, including both s -C 3 -Tm 0.8 -noalign where is the path for a text file containing the list of paths to PDB files. Novelty. Novelty evaluates how different the generated backbones are from known protein structures. For each designable sample, we use FoldSeek ( 49 ) to search the PDB database and compute the highest TM-score to any matching chain ( 57 , pdbTM) . Afterwards, we report the average pdbTM across all samples. The FoldSeek command used to compute this metric is given by foldseek easy-search --format-output query,target,alntmscore where is the path for PDB files containing the generated structure, and is the path of the dataset used as reference, for which we use the Protein Data Bank (PDB). E.4 Protein Reward Guidance Reward function. We design a differentiable reward function as based on PyDSSP 1 1 1 https://github.com/ShintaroMinami/PyDSSP , an open-source implementation of the Define Secondary Structure of Proteins (DSSP) algorithm ( 30 ) , which is the standard method secondary structure assignment to protein residues. PyDSSP implements DSSP in PyTorch. PyDSSP first computes a hydrogen-bond energy map using the DSSP electrostatic model, where hydrogen bond energies are calculated from interatomic distances between backbone atoms (O–N, C–H, O–H, and C–N), and then uses a smooth, differentiable approximation to determine hydrogen bond presence. Secondary structure elements are then identified from this map following DSSP-style rules: turns are detected from diagonal hydrogen bonds between residues separated by three to five positions, helices are defined by consecutive turns, and \beta -bridges are identified via parallel and antiparallel hydrogen-bond patterns using a local unfolding window. However, in order to identify these structural elements, non-differentiable boolean tensors are produced and gradients are broken. Instead, we construct a soft score for each each structural class independently, which we call DiffDSSP. First, we compute pairwise electrostatic H-bond energies between all residue pairs using the DSSP energy formula: e=0.084\cdot(\frac{1}{\text{d}_{\text{ON}}}+\frac{1}{\text{d}_{\text{CH}}}-\frac{1}{\text{d}_{\text{OH}}}-\frac{1}{\text{d}_{\text{CN}}})\cdot 332 (100) Then, we pass energies through a sigmoid: \text{hydrogen\_bond\_map}=\texttt{sigmoid}(-(e-0.5+\text{margin})) (101) where -0.5 is the cutoff value for hydrogen-bond presence. We extract differentiable pattern scores from the hydrogen-bond map corresponding to \alpha -helices and \beta -sheets. These scores quantify the extent to which each residue participates in helix- or strand-like hydrogen-bond patterns, without requiring hard assignments or binary decisions as in the original DSSP algorithm. We compute the helix and strand fractions by averaging the per-residue helix and strand scores across residues to get scalar fractions in [0,1], denoted as \text{DiffDSSP}_{\alpha}(x) and \text{DiffDSSP}_{\beta}(x) . Finally, we compute the mean-squared error between the predicted fractions and the target fractions ( w_{\alpha} or w_{\beta} ), and return the negative value so the reward can be maximized: r(x)=-\left((w_{\alpha}-\text{DiffDSSP}_{\alpha}(x))^{2}+(w_{\beta}-\text{DiffDSSP}_{\beta}(x))^{2}\right)\,, (102) When steering toward increased \beta -sheet content, we set w_{\beta}=1 and w_{\alpha}=-1 , while for \alpha -helix guidance, we set w_{\beta}=-1 and w_{\alpha}=1 . Final evaluation. To evaluate the final generated sequences, we used the original DSSP algorithm ( 30 ) , which is the standard way for assigning structural classes to a protein. We used dssp-2.0.4-linux-amd64 2 2 2 https://swift.cmbi.umcn.nl/gv/dssp/ with the following command: dssp -i Ablations on reward guidance scale. In Table A4 and Table A5 , we compute the \alpha -helix and \beta -sheet content, respectively, of generated proteins at different guidance scales ( \lambda ) for each reward state ( \zeta_{t} ) and each NFE. In Table A5 , we ablate scaling the reward by t (i.e., r_{t}(x)=t\cdot r(x) ), similar to ( 41 ) , although we find this generally does not help in our ad-hoc setting. We keep the settings with the best top-10 mean for each \zeta_{t} and NFE, and report these values in Table 4 . We also evaluated the performance at 1 NFE, although there was no significant difference compared to no guidance. Table A4 : Ablation over the guidance scale \lambda in Eq. 19 for guiding \alpha -helix generation in proteins. We report mean squared error (MSE) \pm standard deviation across 100 samples of length 128 for two reward evaluations, the naive approach based on the current state ( \nabla r(x_{t}) ) and using x_{1} look-ahead ( \nabla r(\Phi_{t,1}^{\theta}(x_{t})) ), as well as no guidance ( — ). NFE \zeta_{t} Guidance scale (\lambda) Mean (\uparrow) Top-10 mean (\uparrow) Max (\uparrow) Frac. improved (\uparrow) 5 — — 0.29_{\pm 0.20} 0.68_{\pm 0.08} 0.80 — 5 \nabla r(x_{t}) 1 0.29_{\pm 0.20} 0.69_{\pm 0.08} 0.80 0.02 5 \nabla r(x_{t}) 10 0.29_{\pm 0.20} 0.68_{\pm 0.08} 0.80 0.05 5 \nabla r(x_{t}) 100 0.29_{\pm 0.20} 0.68_{\pm 0.08} 0.80 0.17 5 \nabla r(x_{t}) 1000 0.27_{\pm 0.19} 0.66_{\pm 0.07} 0.77 0.24 5 \nabla r(x_{t}) 10000 0.14_{\pm 0.12} 0.40_{\pm 0.08} 0.62 0.03 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1 0.30_{\pm 0.20} 0.69_{\pm 0.09} 0.85 0.32 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10 0.33_{\pm 0.21} 0.71_{\pm 0.06} 0.81 0.65 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 100 0.39_{\pm 0.22} 0.76_{\pm 0.04} 0.83 0.75 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1000 0.24_{\pm 0.17} 0.59_{\pm 0.06} 0.70 0.39 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10000 0.03_{\pm 0.03} 0.09_{\pm 0.01} 0.11 0.08 10 — — 0.30_{\pm 0.20} 0.70_{\pm 0.07} 0.80 — 10 \nabla r(x_{t}) 1 0.30_{\pm 0.20} 0.70_{\pm 0.07} 0.80 0.05 10 \nabla r(x_{t}) 10 0.30_{\pm 0.20} 0.70_{\pm 0.07} 0.80 0.06 10 \nabla r(x_{t}) 100 0.29_{\pm 0.20} 0.70_{\pm 0.07} 0.80 0.19 10 \nabla r(x_{t}) 1000 0.27_{\pm 0.19} 0.65_{\pm 0.08} 0.79 0.23 10 \nabla r(x_{t}) 10000 0.16_{\pm 0.13} 0.41_{\pm 0.07} 0.59 0.06 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1 0.30_{\pm 0.20} 0.70_{\pm 0.07} 0.80 0.36 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10 0.35_{\pm 0.21} 0.74_{\pm 0.05} 0.82 0.68 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 100 0.45_{\pm 0.22} 0.80_{\pm 0.03} 0.84 0.82 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1000 0.45_{\pm 0.23} 0.81_{\pm 0.04} 0.86 0.75 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10000 0.03_{\pm 0.03} 0.08_{\pm 0.01} 0.09 0.05 Table A5 : Ablation over the guidance scale \lambda in Eq. 19 for guiding \beta -sheet generation in proteins. We report mean squared error (MSE) \pm standard deviation across 100 samples of length 128 for two reward evaluations, the naive approach based on the current state ( \nabla r(x_{t}) ) and using x_{1} look-ahead ( \nabla r(\Phi_{t,1}^{\theta}(x_{t})) ), as well as no guidance ( — ). We also ablate over time-dependent reward guidance, where r_{t}(x)=t\cdot r(x) as in ( 41 ) . NFE \zeta_{t} Guidance scale (\lambda) Time-dependent reward? Mean (\uparrow) Top-10 mean (\uparrow) Max (\uparrow) Frac. improved (\uparrow) 5 — — — 0.18_{\pm 0.12} 0.41_{\pm 0.06} 0.51 — 5 \nabla r(x_{t}) 1 No 0.18_{\pm 0.12} 0.41_{\pm 0.05} 0.51 0.01 5 \nabla r(x_{t}) 10 No 0.18_{\pm 0.12} 0.41_{\pm 0.05} 0.51 0.01 5 \nabla r(x_{t}) 100 No 0.18_{\pm 0.12} 0.41_{\pm 0.05} 0.51 0.04 5 \nabla r(x_{t}) 1000 No 0.18_{\pm 0.12} 0.41_{\pm 0.04} 0.48 0.28 5 \nabla r(x_{t}) 10000 No 0.16_{\pm 0.11} 0.37_{\pm 0.04} 0.44 0.31 5 \nabla r(x_{t}) 10 No 0.18_{\pm 0.12} 0.41_{\pm 0.05} 0.51 0.01 5 \nabla r_{t}(x_{t}) 10 Yes 0.18_{\pm 0.12} 0.41_{\pm 0.06} 0.51 0.01 5 \nabla r(x_{t}) 100 No 0.18_{\pm 0.12} 0.41_{\pm 0.05} 0.51 0.04 5 \nabla r_{t}(x_{t}) 100 Yes 0.18_{\pm 0.12} 0.41_{\pm 0.06} 0.51 0.01 5 \nabla r(x_{t}) 1000 No 0.18_{\pm 0.12} 0.41_{\pm 0.04} 0.48 0.28 5 \nabla r_{t}(x_{t}) 1000 Yes 0.18_{\pm 0.12} 0.41_{\pm 0.06} 0.51 0.15 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1 No 0.18_{\pm 0.12} 0.41_{\pm 0.05} 0.48 0.26 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10 No 0.19_{\pm 0.12} 0.44_{\pm 0.04} 0.52 0.42 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 100 No 0.23_{\pm 0.12} 0.46_{\pm 0.04} 0.53 0.60 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1000 No 0.24_{\pm 0.14} 0.49_{\pm 0.03} 0.55 0.63 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10000 No 0.12_{\pm 0.12} 0.40_{\pm 0.05} 0.49 0.29 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10 No 0.19_{\pm 0.12} 0.44_{\pm 0.04} 0.52 0.42 5 \nabla r_{t}(\Phi_{t,1}^{\theta}(x_{t})) 10 Yes 0.18_{\pm 0.12} 0.41_{\pm 0.06} 0.51 0.11 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 100 No 0.23_{\pm 0.12} 0.46_{\pm 0.04} 0.53 0.60 5 \nabla r_{t}(\Phi_{t,1}^{\theta}(x_{t})) 100 Yes 0.18_{\pm 0.12} 0.42_{\pm 0.06} 0.53 0.36 5 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1000 No 0.24_{\pm 0.14} 0.49_{\pm 0.03} 0.55 0.63 5 \nabla r_{t}(\Phi_{t,1}^{\theta}(x_{t})) 1000 Yes 0.20_{\pm 0.13} 0.44_{\pm 0.05} 0.54 0.48 10 — — — 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 — 10 \nabla r(x_{t}) 1 No 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 0.05 10 \nabla r(x_{t}) 10 No 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 0.04 10 \nabla r(x_{t}) 100 No 0.20_{\pm 0.13} 0.44_{\pm 0.05} 0.52 0.15 10 \nabla r(x_{t}) 1000 No 0.20_{\pm 0.13} 0.44_{\pm 0.05} 0.56 0.30 10 \nabla r(x_{t}) 10000 No 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 0.37 10 \nabla r(x_{t}) 10 No 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 0.04 10 \nabla r_{t}(x_{t}) 10 Yes 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 0.01 10 \nabla r(x_{t}) 100 No 0.20_{\pm 0.13} 0.44_{\pm 0.05} 0.52 0.15 10 \nabla r_{t}(x_{t}) 100 Yes 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 0.03 10 \nabla r(x_{t}) 1000 No 0.20_{\pm 0.13} 0.44_{\pm 0.05} 0.56 0.30 10 \nabla r_{t}(x_{t}) 1000 Yes 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 0.22 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1 No 0.20_{\pm 0.13} 0.45_{\pm 0.04} 0.52 0.24 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10 No 0.22_{\pm 0.13} 0.45_{\pm 0.05} 0.55 0.43 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 100 No 0.25_{\pm 0.13} 0.47_{\pm 0.03} 0.52 0.65 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1000 No 0.26_{\pm 0.14} 0.52_{\pm 0.05} 0.61 0.61 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10000 No 0.27_{\pm 0.16} 0.51_{\pm 0.02} 0.55 0.59 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 10 No 0.22_{\pm 0.13} 0.45_{\pm 0.05} 0.55 0.43 10 \nabla r_{t}(\Phi_{t,1}^{\theta}(x_{t})) 10 Yes 0.20_{\pm 0.13} 0.44_{\pm 0.04} 0.52 0.19 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 100 No 0.25_{\pm 0.13} 0.47_{\pm 0.03} 0.52 0.65 10 \nabla r_{t}(\Phi_{t,1}^{\theta}(x_{t})) 100 Yes 0.21_{\pm 0.12} 0.44_{\pm 0.04} 0.52 0.36 10 \nabla r(\Phi_{t,1}^{\theta}(x_{t})) 1000 No 0.26_{\pm 0.14} 0.52_{\pm 0.05} 0.61 0.61 10 \nabla r_{t}(\Phi_{t,1}^{\theta}(x_{t})) 1000 Yes 0.23_{\pm 0.13} 0.46_{\pm 0.03} 0.53 0.58 Appendix F Experiment Details F.1 Promoter DNA Design We model promoter DNA sequences as continuous, relaxed representations of length 1024 , i.e., arrays in \mathbb{R}^{1024\times 4} with support restricted to the positive orthant, and interpret them as points on a product of spheres. We learn a time-dependent velocity field on this manifold using the average-velocity parameterization of Riemannian MeanFlow. For n -step evaluation, we discretize the time horizon [0,1] into n uniform sub-intervals and apply flow-map inference sequentially over this grid. All experiments are conducted on a single NVIDIA RTX 3090 GPU. Code is available at https://github.com/dongyeop3813/Riemannian-MeanFlow . Dataset. We use the FANTOM5 ( 26 ) dataset consisting of 100{,}000 transcription start sites (TSSs), following the same preprocessing and train/validation/test splits as prior work ( 47 ) ( 88{,}470/3{,}933/7{,}497 ). During training, we apply a random offset of up to \pm 10 bp around each TSS, while validation and test splits use fixed windows. Architecture. We adopt the same 1D CNN backbone as in prior promoter models ( 47 ; 13 ) , consisting of an initial embedding layer followed by 20 residual convolutional blocks (kernel size 9 ) with progressively increasing dilation. The model conditions on two time variables by embedding both the absolute time s and the time gap (t-s) using Gaussian Fourier features, which are concatenated and injected into all time-conditioned layers. This doubles the time-embedding dimension and results in a modest parameter increase (13.27M \rightarrow 14.65M). Depending on the parameterization, the output is either projected onto the tangent space ( v -prediction) or mapped back to the manifold ( x_{1} -prediction). Training and objectives. Models are trained for 200 epochs with batch size 128 (138,400 steps total) using AdamW with learning rate 10^{-3} , zero weight decay, and global-norm gradient clipping at 1.0 . For evaluation, we maintain an exponential moving average (EMA) of the model parameters with decay 0.9999 to reduce the variance induced by differential objectives. For the Eulerian and Lagrangian RMF objectives, we apply adaptive loss weighting with exponent p=0.5 and clip neural-network derivatives with threshold 100.0 ; for this task, Lagrangian RMF is trained without the cyclic consistency loss. For the semigroup RMF objective, we set w_{\mathrm{semigroup}}=5.0 and use adaptive loss weighting ( p=0.5 ), except for the s=r=t (flow-matching) case where adaptive weighting is disabled. For x_{1} -prediction, we down-weight losses near s=1 using a time clipping threshold \epsilon=0.1 . The best checkpoint is selected based on validation MSE between the true promoter signal and the signal predicted by the Sei model conditioned on generated sequences. Time sampling and interpolant. We sample time points from a log-normal distribution with parameters \mu=-0.4 and \sigma=1.0 . For objectives requiring two time points, samples are ordered accordingly, with 75\% boundary samples following 18 . For the semigroup objective, we sample (s,t) as above and draw the intermediate time r uniformly from [s,t] . We use a linear geodesic interpolant throughout, following prior work ( 13 ) . F.2 Protein Backbone Design We provide code for the protein backbone experiments at https://github.com/dongyeop3813/Protein-RMF . SCOPe dataset. The Structural Classification of Proteins—extended (SCOPe) ( 6 ) organizes protein structures from the Protein Data Bank (PDB) ( 2 ; 5 ) into domains according to structural similarity and evolutionary relationships, providing curated coordinate files and hierarchical labels (e.g., class, fold, superfamily, and family). Following 54 , we use experimentally determined single-chain backbones with sequence lengths between 60 and 128 residues (3,938 examples) and evaluate on the protein monomer generation setting. Baselines. We compare against three prior methods for backbone generation: GENIE ( 32 ) , FrameDiff ( 56 ) , and FrameFlow ( 54 ) . Model architecture. We adopt the FrameDiff architecture used in FrameFlow ( 54 ) , an SE(3)-equivariant model built around IPA blocks. We report the architecture variants (S/M/L) in Table A6 . Table A6 : Architectural differences across IPA models. Model Total # params # of blocks Node emb. dim Edge emb. dim Attn. heads RMF/S 0 16.3 M 6 256 128 4 RMF/M 0 91.7 M 12 512 128 8 RMF/L 437.4 M 16 768 384 12 To adapt FrameDiff into a flow-map parameterization, we condition each IPA normalization layer via adaptive layer-normalization (AdaLN) scaling applied to the node embeddings. Training setup. For both translations and rotations, we use a linear noise schedule with a geodesic interpolant. Training minimizes a weighted combination of (i) flow-matching losses on translations and rotations, (ii) a semigroup consistency loss, and (iii) auxiliary geometric losses on backbone atom coordinates and local C \alpha –C \alpha distances, as commonly used in protein backbone generation ( 54 ; 56 ; 4 ) . Auxiliary losses are applied only at late times ( t>0.75 ). The final objective uses adaptive loss reweighting with exponent p=0.5 . Unless otherwise stated, we set the semigroup loss weight to 1.0 , the translation loss weight to 2.0 , and use x_{1} -prediction down-weighting with \epsilon=0.1 . We maintain an exponential moving average (EMA) of model parameters with decay 0.9999 and use the EMA weights for evaluation. We train with AdamW (learning rate 10^{-4} , no weight decay) for up to 1000 epochs (up to 1000K optimization steps), with gradient clipping and no learning-rate scheduling. For flow-map training, we sample time points from the beta–uniform mixture proposed by 17 : p(t)=0.02\,\mathcal{U}[0,1]+0.98\,\mathcal{B}(1.9,1.0) . To form a time interval, we draw two time points i.i.d. from p(t) and sort them to obtain s