Manuscript Offprint

arXiv:2609.01746

CAT-Flow: Curvature-Adaptive sTeps for Flow Matching

Qinchan Li, Pedro Cisneros-Velarde, Keru Fu, Samuel Antunes Miranda, Sharan Vaswani, Hao Zhang

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

Abstract

Flow Matching has emerged as a leading framework for generative modeling, powering state-of-the-art systems such as FLUX and Stable Diffusion 3.5. However, the iterative nature of its ODE-based sampling process creates a fundamental efficiency bottleneck: the quality of generated samples is highly sensitive to the choice of step-sizes, and current models typically require 20 to 30 steps for good quality. In this work, we propose two lightweight, training-free algorithms, CAT-OV and CAT-OT that adapt step-sizes at inference time based on a novel connection between Flow Matching sampling and gradient flow. Our algorithms are computed efficiently by not requiring additional neural function evaluations. Specifically, CAT-OT estimates curvature over time via a finite-difference approximation of the time-derivative of the vector field, while CAT-OV approximates curvature over the state space via a gradient of the vector field. Under suitable conditions, both methods have truncation error bounds of constant order. Empirically, CAT-OV and CAT-OT outperform existing step-size heuristics in image quality metrics across four text-to-image Flow Matching models, reducing the number of generation steps required to reach comparable quality by up to 40%.

1 Introduction

Flow Matching [Lipman et al., 2023, Liu et al., 2023] is one of the most prominent frameworks for generative modeling, powering state-of-the-art text-to-image systems such as FLUX [Labs et al., 2025] and Stable Diffusion 3.5 [Esser et al., 2024], and finding application across various modalities including audio [Xu et al., 2025] and 3D generation [Voleti et al., 2024]. At its core, Flow Matching generates samples by numerically solving an ordinary differential equation (ODE), iteratively transporting noise towards the target data distribution. However, this comes at a cost: the quality of the generated samples is highly sensitive to how the integration interval is discretized, i.e., to the choice of step-sizes. Indeed, the design of step-sizes is a central bottleneck in inference efficiency: very few steps lead to large discretization errors and degraded sample quality, while very many steps are computationally prohibitive.

Determining appropriate step-sizes for Flow Matching generation has been an active area of research. The simplest approach, based on Euler discretization, uses fixed, uniform step-sizes, which is straightforward but ignores the varying difficulty of the ODE trajectory at different time-steps. Heuristic methods such as the dynamic shifting [Esser et al., 2024] in the Hugging Face Diffusers library partially address this with monotonically increasing step-sizes. Moreover, several works use additional neural networks to learn step-size schedules [Chen et al., 2024, Li et al., 2025b, Hu et al., 2024] at the cost of extra training and potential domain overfitting. Alternatively, classical adaptive ODE solvers such as Dopri5 [Hairer et al., 1993] and recent flow-specific variants [Jolicoeur-Martineau et al., 2021, Fang et al., 2026] adapt step-sizes at inference time, but require multiple neural function evaluations per step, which is particularly costly for billion-parameter models. Finally, step-skipping methods [Bajpai et al., 2026] provide a limited degree of adaptation since they are limited to choosing step-sizes from a predefined discrete set of options.

¹{qinchan_li, keru_fu, saa159, sharan_vaswani, haoz}@sfu.ca ²pacisne@gmail.com

Figure

(a) male king arthur and his squirrel wife, photo, man wearing crown

Figure

(c) photo taken of an epic intricate exquisitely weathered animatronic man, creature created by weta workshop

Figure

(b) the statue david from michelangelo sitting at a poker table with many chips

Figure

(d) a rendering of building airport by john howe, flowers morning sun reclaimed by nature cgsociety sunset infrared nightvision lake thermal imaging myst made of glass

Figure 1: Text-prompted image generation via Flow Matching using our method, CAT-OV (“OURs”), for choosing step-sizes vs. FLUX with the default (“Default”) heuristics from the Diffusers library. Text prompts were from the DiffDB dataset [Wang et al., 2023]. For each method and prompt, we highlight, in green squares, the steps after which image visual quality stops improving. Regions circled in red exhibit observable artifacts in the generated images.

Our key observation is that none of the above approaches directly account for the geometry of the ODE trajectory landscape when determining step-sizes. Our geometric intuition is that highly curved regions of the trajectory require small steps to maintain sufficient accuracy, while flatter regions can be effectively traversed using large step-sizes. This was exactly the motivation behind adaptive step-sizes in optimization, such as Adam [Kingma and Ba, 2014] and RMSProp [Hinton et al., 2012]. Crucially, we show that Flow Matching generation can be recasted as a gradient flow, establishing a formal bridge to justify borrowing this intuition.

Thus, motivated by this bridge between adaptive methods in optimization and Flow Matching, we propose two lightweight and training-free Flow Matching ODE solvers: Curvature Aware Time-step Over Time (CAT-OT) and Curvature Aware Time-step Over Values (CAT-OV). They adapt step-sizes at inference time using information about changes on the vector field already available from the generation process, requiring no additional neural function evaluations. Specifically, CAT-OT estimates curvature over time via a finite-difference approximation of the time-derivative of the vector field, while CAT-OV estimates curvature over all past values via a variance of the vector field. Under suitable conditions, both methods are guaranteed to have truncation error bounds of constant order.

Our main contributions are summarized below:

  • We present a formal connection between Flow Matching (under straight flows) and gradient flow: they have the same solution if they share the same initial condition.

  • Based on the above connection, we propose two adaptive step-size methods for Flow Matching sampling: CAT-OT and CAT-OV. They use curvature information which is incorporated along time and historic values, respectively, and are implemented by using efficient approximations without additional neural function evaluations or training.

  • We show that our methods outperform diverse baselines in terms of efficiency: our methods achieve with less steps—or, equivalently in our case, NFEs—the performance on image quality scores that baseline methods otherwise achieve with a larger number of steps. This is done with negligible wall-clock time and additional FLOPs.

  • We show that our methods outperform baselines in terms of image quality scores for a similar of steps, with more noticeable performance improvements for smaller numbers of steps.

All experiments were done using a diverse set of real-world user prompts (DiffDB [Wang et al., 2023]) and three complementary quality metrics: prompt alignment (CLIP), aesthetic quality (AES), and human preference (HPSv3)—the latter two are image quality metrics.

We hope that the efficient performance of our methods evidences that the connection between Flow Matching and gradient flow can be a good reference for the design of sampling algorithms.

References (64)