arXiv:2610.13225cs.LGOct 2026

Manuscript Offprint

arXiv:2610.13225

ReSFlow: Rectifying Categorical Flows on Statistical Manifolds for One-Step Generation

Xiaohuan Jia, Renzhe Xu, Xiao Wang, Jiayun Wu, Shaohua Fan

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

Abstract

Generative modeling for discrete data has been significantly advanced by learning continuous vector fields on the statistical manifolds to transport simple priors to target discrete distributions. However, because these continuous-time flows are not constrained to follow geodesics on the statistical manifold, thereby requiring multi-step numerical integration for simulation and leading to substantial computational costs during inference. In this work, drawing inspiration from the “straight and fast” properties of Rectified Flow in continuous Euclidean space, we propose the Rectified Statistical Flow (ReSFlow) model, which enables one-step categorical generation on statistical manifolds by explicitly learning geodesic trajectories that adhere to the intrinsic Riemannian geometry. By rectifying the flow on the statistical manifold, we theoretically guarantee that trajectories between prior and target distributions approximate geodesics. This rectification significantly reduces the transport cost by aligning the learned trajectories directly along geodesics on the statistical manifold, allowing the model to map pure noise to target discrete data in a single step. Through extensive experiments on diverse real-world generative tasks, ranging from image and text to biological domains, we demonstrate ReSFlow’s superior one-step generation quality, which truly embodies geodesically optimal and rapid categorical generation. Our code is available at https://github.com/xiaohuanjia/ReSFlow.

1 Introduction

Generative modeling has advanced rapidly, with diffusion and flow-based methods achieving state-of-the-art performance across continuous domains such as image synthesis [1, 2], molecule and protein design [3, 4, 5], and sequence generation [6, 7]. A key idea is to learn continuous-time dynamics, especially through flow matching, which formulates ODEs with continuous vector fields and provides a simulation-free, theoretically grounded training framework [8]. However, extending these methods to discrete data—common in NLP, drug discovery, and protein engineering—remains difficult, since discrete variables do not have the differentiable structure required by continuous flows. Most existing flow-based generative models for discrete data act directly on the native discrete space by optimizing the categorical probabilities of tokens [9, 10, 11, 12]. Rather than operating strictly within this discrete realm, a promising direction maps discrete variables to statistical manifolds, treating each categorical distribution as a point on the probability simplex with Riemannian geometry [13]. This allows smooth

∗^{*}Corresponding author.

Preprint.

vector fields and continuous-time flows to transport priors to target discrete distributions, bridging continuous generative modeling and discrete data synthesis.

However, a critical limitation persists: The learned ODE trajectories deviate from geodesics because the conditional vector fields arising from independent couplings of prior and target samples yield a mixture of intersecting geodesics that, once marginalized, produce highly curved aggregate flows not aligned with any single geodesic path [14]. Simulating these tortuous trajectories demands multi-step numerical integration with fine temporal discretization, incurring substantial computational overhead during inference. This stands in stark contrast to the desiderata of modern generative systems, where rapid, ideally single-step, sampling is essential for scalable deployment. The fundamental tension between the geometric complexity of learned flows and the practical need for efficient generation thus constitutes a major bottleneck for categorical generative models.

In the continuous Euclidean setting, an elegant solution to this problem has emerged through the concept of Rectified Flow [15]. Rectified Flow enforces straight-line trajectories between paired noise and data samples, yielding flows that are both geometrically simple and computationally efficient to simulate. The resulting “straight and fast” property enables high-quality generation with very few or even a single integration step, dramatically accelerating inference. Naturally, one might ask: can we bring the same benefits of trajectory rectification to categorical generation on statistical manifolds?

The answer, however, is far from straightforward. The probability simplex, when equipped with the Fisher-Rao metric [16], forms a Riemannian manifold whose geometry is fundamentally non-Euclidean. Straight paths in ambient Euclidean space do not respect the intrinsic curvature of this manifold—they may leave the simplex, violate probability constraints, or deviate substantially from the true shortest paths. In this curved geometric setting, the natural analogue of a “straight path” is a geodesic: the length-minimizing curve that faithfully adheres to the manifold’s intrinsic Riemannian structure. Consequently, achieving efficient one-step categorical generation requires not Euclidean straightening, but rather a fundamentally geometric approach that aligns learned trajectories with the geodesics of the underlying statistical manifold.

In this work, we propose Rectified Statistical Flow (ReSFlow), a framework that enables one-step discrete data generation by rectifying flows on statistical manifolds. The core idea is to map data from the probability simplex onto the positive orthant of the hypersphere via their natural diffeomorphism, and then perform flow rectification in this spherical space where geodesics admit closed-form great-circle expressions. By iteratively recoupling the learned ODE marginals and retraining the vector field on the hypersphere, ReSFlow progressively straightens transport paths toward geodesics, reducing both transport cost and path curvature. Extensive evaluations across vision, NLP, and bioinformatics benchmarks demonstrate that ReSFlow, requiring only a single sampling step, matches or outperforms state-of-the-art methods that rely on hundreds of steps.