arXiv(opens in a new tab)stat.MLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.03483

AREX: Affine-Residual Exponential Integrator for Few-Step Sampling in Flow Matching

Shizheng Lin, Soon Hoe Lim, N. Benjamin Erichson

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

Shizheng Lin 1,2^{1,2} Soon Hoe Lim ∗1,2^{*1,2} N. Benjamin Erichson 3,4^{3,4}

1^{1}Department of Mathematics, KTH Royal Institute of Technology

2^{2}Nordita, KTH Royal Institute of Technology and Stockholm University

3^{3}International Computer Science Institute

4^{4}Lawrence Berkeley National Laboratory

Abstract. We introduce AREX, a training-free sampler for pretrained flow matching models that uses the target mean and covariance to capture an analytically tractable part of the sampling dynamics. We show that the velocity field of the moment-matched Gaussian target is the L2L^{2}-optimal affine approximation to the marginal velocity field. This motivates decomposition of the learned dynamics into an affine component over the whole sampling path, determined by the first two target moments, and a neural residual term. AREX keeps the affine component and integrates it using an explicit matrix-valued propagator. In turn, we only require to integrate over the residual term. This differs from scalar exponential integrators, which analytically handle only isotropic linear dynamics. Across image and text-to-image generation tasks, AREX consistently improves sample fidelity in the few-step sampling regime without retraining the underlying model.

Code: https://github.com/glasgow233/AREX

Figure

Figure 1 Few-step text-to-image generation with AREX. Qualitative samples from the pretrained FLUX.1-dev model using AREX-C with only 8 network evaluations. AREX analytically propagates the moment-matched affine component of the learned flow and numerically integrates only the residual. All samples are generated without retraining the model.

1 Introduction

Flow matching (FM) (Lipman et al., 2022) and related variants are ODE-based generative modeling frameworks based on dynamical measure transport. Given a prescribed probability path from a simple reference distribution to the data distribution, FM learns the associated velocity field with a neural network and generates samples by integrating the resulting ODE. The computational bottleneck is sampling: resolving the learned flow accurately can require many neural network evaluations, and efficient few-step generators can reduce the number of function evaluations (NFEs).

∗^{*}Work done while visiting ICSI/UC Berkeley.

There are two main lines of work. On the training side, Mean Flow (Geng et al., 2026a,b) proposes to learn the average velocity, while Align Your Flow (Sabour et al., 2026) and pi-Flow (Chen et al., 2026) distill a few-step generator from a teacher. On the sampling side, training-free samplers such as DDIM (Song et al., 2020), DPM-Solver (Lu et al., 2022), DPM-Solver++ (Lu et al., 2025), DPM-Solver-v3 (Zheng et al., 2023), DEIS (Zhang and Chen, 2022), UniPC (Zhao et al., 2023), CAB (Roy and Nair, 2026), A-FloPS (Jin et al., 2026), and STORK (Tan et al., 2026) can be deployed to any pretrained model without further training. Several of them have a similar structure. DDIM, the DPM-Solver family, DEIS, UniPC, A-FloPS and CAB split the generative dynamics into a linear part, which can be integrated exactly, and a residual part, which can be integrated by a quadrature. The linear part is typically a scalar multiple of the identity. In A-FloPS the scalar is fixed by the noise schedule first and then refit to the trajectory at every step. However, these methods ignore the underlying data geometry and the fact that the distribution a sampler moves towards can be strongly anisotropic. Since the scalar linear part could not help in capturing the anisotropy, the neural network is exposed to the larger challenge of dealing with both the anisotropy and the residual part.

In this work, we focus on the sampling side and ask:

How can we leverage both the analytical structure of the flow dynamics and the geometry of the target data to design a better training-free sampler in the low-NFE regime?

To tackle this question we use the insight that the first two moments of the target distribution induce a nontrivial part of the flow dynamics. The target covariance describes how the data vary along different directions. Replacing the target by a Gaussian with the same mean and covariance preserves this directional information while making the corresponding velocity field affine. Along each eigenvector of the covariance, the dynamics then expand or contract at a rate determined by the corresponding eigenvalue. For a general target, this affine field is the L2L^{2}-optimal affine approximation to the population velocity field at every time. It also admits a closed-form solution. Since the same target covariance determines the principal directions throughout the trajectory, the dynamics decouple along these directions and can be solved independently.

This gives us a principled affine component that does not need to be approximated numerically. We introduce Affine-Residual Exponential Integrator (AREX), which decomposes the learned velocity field into this moment-matched affine component and a residual term. AREX solves the affine part analytically and applies numerical quadrature only to the residual, so the direction-dependent dynamics captured by the target covariance do not have to be recovered using network evaluations. We use an Adams-Bashforth (AB) scheme that reuses residual evaluations from previous steps while requiring only one new network evaluation per step. Gaussian teleportation (Wang and Vastola, 2024) similarly exploits a Gaussian approximation, but only over the initial part of the trajectory before switching to a conventional solver; AREX retains the affine component over the full trajectory. We further extend this construction to conditional generation with AREX-C, using the within-condition covariance for the affine dynamics and estimating the condition-specific mean using the first network evaluation. Figure 2 illustrates the resulting few-step behavior.

Our main contributions are as follows.

• Method. We introduce AREX, a training-free exponential integrator that uses the target mean and covariance to separate a moment-matched affine component from the learned velocity field. AREX solves this affine component analytically and applies Adams–Bashforth quadrature only to the remaining residual, requiring one new network evaluation per step. We further extend the construction to conditional generation with AREX-C using a shared within-condition covariance and a condition-specific mean estimated using the first network evaluation.

• Theory. We provide theoretical results and organize them under three principles to justify AREX. We show that the moment-matched affine field is L2L^{2}-optimal (Proposition 1), connect the residual term to non-Gaussian score correction (Proposition 2), derive a closed-form formula

Reference (Euler-1000)

Euler

SharpEuler

DPM-Solver++

Figure

UniPC

CAB

DPM-Solver-v3

AREX

Figure 2 Unconditional sampling on the two-moons target at NFE 4. The Euler-1000 solution is shown as a high-accuracy reference. At the same four-evaluation budget, AREX recovers the target geometry better than the competing training-free samplers.

for the propagator for the affine component (Proposition 3), quantify the resulting discretization error (Proposition 4), and provide a distributional error bound for AREX-ABp (Theorem 1).

• Results. We evaluate AREX and AREX-C on unconditional CIFAR-10, class-conditional ImageNet-256, and text-conditional MJHQ-30K generation. Across these settings, AREX gives the best FID among the compared training free samplers in the low NFE regime, from NFE 2–8 on CIFAR-10 and ImageNet-256, and from NFE 4–10 on MJHQ-30K, without retraining the flow.

References (25)