arXiv:2609.03443cs.LGSep 2026

Manuscript Offprint

arXiv:2609.03443

Beyond Straightness: Non-Crossing Flow Matching via Quantile AlignTree Coupling

Junyi Lin, Mengyu Li, Jingxuan Hu, Kejun He, Cheng Meng

ABSTRACT

The performance of Flow Matching largely depends on the quality of the coupling between the source and target distributions. However, independent coupling often leads to path crossings and local velocity ambiguity, while OT-based couplings typically incur high construction costs. To address this challenge, we propose Quantile AlignTree Flow Matching (QAT-FM), an efficient structured coupling strategy that constructs a hierarchical coupling between a Gaussian prior and the target data distribution via a quantile-aligned tree structure. QAT-FM constructs the coupling in O(Ndlog⁡N)\mathcal{O}(Nd\log N) time and supports per-pair source sampling with O(d)\mathcal{O}(d) complexity, enabling scalable training for large-scale high-dimensional generative tasks. Theoretically, we prove that the QAT coupling satisfies marginal consistency, induces non-crossing linear interpolation paths, and consistently improves path separation at intermediate times compared with independent coupling, thereby alleviating local velocity ambiguity. QAT-FM further extends naturally to conditional generation, enabling structured conditional coupling while preserving global Gaussian alignment. Experiments across diverse benchmark datasets demonstrate that QAT-FM achieves competitive generative performance while substantially reducing coupling construction cost.

1 INTRODUCTION

In recent years, continuous-time flow-based generative models have become increasingly prominent in generative modeling (Chen et al., 2018; Grathwohl et al., 2019; Lipman et al., 2023; Liu et al., 2023). A representative class is continuous normalizing flows (CNFs), which define continuous transformations as the solution flows of ordinary differential equations (ODEs) whose time-dependent velocity fields are parameterized by neural networks. During sampling, new data are generated by numerically integrating the learned ODE dynamics. To improve training efficiency, Flow Matching (Lipman et al., 2023) directly supervises the velocity field with targets derived from prespecified conditional probability paths, avoiding the repeated numerical ODE integration required by conventional CNF training, enabling scalable training of generative models. Flow Matching has achieved competitive performance across diverse domains, including image generation (Ma et al., 2024; Esser et al., 2024), speech synthesis (Le et al., 2023; Liu et al., 2024), and text generation (Hu et al., 2024; 2026).

Although Flow Matching improves the scalability of training continuous-time generative models, its performance remains sensitive to the conditional probability paths and source–target couplings constructed during training (Lipman et al., 2023; Tong et al., 2024; Pooladian et al., 2023). In common linear-path formulations, Flow Matching trains the velocity field by regressing target velocities along linear interpolation paths between noise and data samples; different coupling choices therefore directly alter the structure of the supervision signal. When training paths cross, or pass too closely through the same intermediate region with substantially different target velocities, velocity ambiguity arises locally; under mean-squared-error training, these inconsistent velocity directions

∗^{*}Corresponding author

†^{\dagger}Corresponding author are averaged, increasing the difficulty of fitting the velocity field (Guo & Schwing, 2025). By contrast, training paths with the non-crossing property or good path separation reduce this local ambiguity, yielding a more deterministic mapping from intermediate states to target velocities and thereby improving training stability. In conditional generation, coupling strategies must also preserve the alignment between samples and conditions, since couplings that ignore the conditioning information may produce geometrically favorable but conditionally inconsistent supervision signals (Chemseddine et al., 2025; Cheng & Schwing, 2025).

Several existing approaches seek to alleviate path crossing and velocity ambiguity by improving coupling quality. The reflow procedure in Rectified Flow (Liu et al., 2023) reconstructs pairings between noise and data using a learned model, yielding more deterministic and straighter generation trajectories; however, this requires additional sampling and re-training steps, imposing substantial computational overhead. OT-based methods (Villani et al., 2009) construct geometrically optimal pairings by minimizing transport cost; under a quadratic cost, the induced displacement interpolation exhibits a favorable non-crossing structure that alleviates velocity ambiguity. Nonetheless, exact empirical OT is computationally expensive and difficult to scale to large datasets; in conditional generation, maintaining conditioning consistency typically requires condition-aware constraints or condition-wise couplings, further increasing algorithmic complexity. Mini-batch OT (Pooladian et al., 2023; Tong et al., 2024) substantially reduces this cost by solving OT within each mini-batch, but the resulting coupling is primarily local and cannot strictly preserve the non-crossing structure at the full-dataset level. Most of the above methods construct couplings only over finite Gaussian samples; SD-FM (Mousavi-Hosseini et al., 2026) further improves the alignment of continuous Gaussian information via gradient-based optimization, but its iterative optimization incurs substantial sampling or optimization cost and does not yield an explicit low-cost global coupling construction.

Table 1: Comparison of Flow Matching coupling strategies.

MethodBuild Cost1^{1}Sample CostNon-CrossPath Sep.Gaussian Align.
FM—O(Nd)\mathcal{O}(Nd)✕✕✓✓
RecFlowO(NEΘ)\mathcal{O}(NE\Theta)O(NΘ)\mathcal{O}(N\Theta)✓✕✕
OT-FM(Full)O(N3+N2d)\mathcal{O}(N^{3} + N^{2}d)O(N2+Nd)\mathcal{O}(N^{2} + Nd)✓✓✕
OT-FM(Minibatch)O(NB+NBd)\mathcal{O}(NB + NBd)O(NB+Nd)\mathcal{O}(NB + Nd)✕✕✕
SD-FMO(NKd)\mathcal{O}(NKd)O(N2d)\mathcal{O}(N^{2}d)✓✓✓
QAT-FM(Ours)O(Ndlog⁡N)\mathcal{O}(Nd\log N)O(Nd)\mathcal{O}(Nd)✓✓✓2\checkmark\checkmark^{2}✓✓

1^{1} Notation. N: dataset size; B: mini-batch size; d: data dimension; K: SD optimization steps; E: reflow rounds; Θ\Theta : one network forward pass. Complexities are reported up to constant factors.

2^{2} ✓✓ indicates that the property is also preserved in conditional generation.

Table 1 compares representative Flow Matching coupling strategies along five axes: coupling construction cost (Build Cost), sampling cost (Sample Cost), whether the coupling induces non-crossing paths at the full-dataset level (Non-Cross), whether it improves path separation (Path Sep.), and whether the source marginal is aligned with a continuous Gaussian prior (Gaussian Align.). As shown, prior methods generally trade off computational efficiency, path geometry, and Gaussian-prior alignment. To address these limitations, we propose Quantile AlignTree Flow Matching (QAT-FM), a low-cost structured coupling strategy that achieves non-crossing paths, improved path separation, and continuous Gaussian-prior alignment, with several of these properties naturally extending to conditional generation.

Contributions. Our main contributions are as follows:

  1. We propose Quantile AlignTree (QAT), an efficient semi-discrete transport construction based on binary tree-structured quantile alignment. QAT induces an exact coupling between an empirical data distribution and a continuous Gaussian prior. With construction complexity O(Ndlog⁡N)\mathcal{O}(Nd\log N) and per-pair sampling complexity O(d)\mathcal{O}(d), QAT scales to large-scale, high-dimensional generative modeling tasks.

  2. The QAT coupling supports multiple tree-splitting strategies and can naturally incorporate conditioning information into both tree construction and coupling.

  3. We prove that QAT induces favorable path structure: the resulting linear interpolation paths satisfy the non-crossing property, and path separation at intermediate times is uniformly greater than that of standard independent-coupling flow matching, alleviating local velocity ambiguity.

  4. We conduct systematic experiments on low-dimensional synthetic data, unconditional generation, discrete class-conditional generation, continuous text-conditional generation, and large-scale image synthesis. Results show that QAT-FM achieves competitive generation quality with substantially lower coupling construction complexity than OT-based methods.

References (69)