AREX: Affine-Residual Exponential Integrator for Few-Step Sampling in Flow Matching
Organizations: Department of Mathematics, KTH Royal Institute of Technology · Nordita, KTH Royal Institute of Technology and Stockholm University · International Computer Science Institute · 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 -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.
Figures & tables
| Sampler | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|
| Euler | 166.24 | 51.88 | 17.46 | 9.15 | 6.28 |
| DPM-Solver++ | 166.24 | 43.18 | 11.48 | 6.74 | 4.99 |
| UniPC | 166.24 | 36.53 | 10.49 | 7.14 | 5.29 |
| A-FloPS | 145.63 | 29.27 | 10.29 | 7.14 | 6.02 |
| CAB | 145.05 | 23.77 | 8.91 | 5.85 | 4.23 |
| DPM-Solver-v3 | 112.04 | 24.69 | 6.95 | 3.92 | 3.55 |
| Sampler | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|
| Euler | 154.29 | 53.98 | 11.02 | 4.17 | 2.65 |
| DPM-Solver++ | 154.28 | 31.37 | 4.20 | 2.56 | 2.12 |
| UniPC | 154.28 | 22.08 | 3.57 | 2.22 | 2.05 |
| A-FloPS | 129.73 | 20.74 | 3.34 | 2.39 | 2.39 |
| CAB | 132.94 | 12.37 | 4.04 | 2.26 | 2.02 |
| STORK-4 | 132.95 | 12.59 | 3.98 | 2.48 | 2.19 |
| Sampler | NFE 4 | NFE 5 | NFE 6 | NFE 7 | NFE 8 | NFE 9 | NFE 10 |
|---|---|---|---|---|---|---|---|
| DPM-Solver++(2M) | 23.39 | 14.96 | 11.59 | 9.84 | 8.85 | 8.24 | 7.99 |
| UniPC | 25.25 | 15.47 | 12.06 | 10.31 | 9.36 | 8.69 | 8.38 |
| A-FloPS | 62.48 | 33.88 | 21.72 | 15.68 | 12.68 | 10.98 | 9.91 |
| CAB | 60.00 | 48.88 | 41.68 | 32.20 | 23.99 | 18.05 | 13.45 |
| STORK-4 | 73.34 | 37.30 | 16.33 | 9.68 | 7.70 | 7.07 | 6.70 |
| DPM-Solver-v3 | 10.56 | 8.80 | 7.95 | 7.58 | 7.11 | 6.98 | 6.87 |
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | AREX | Euler | best baseline | ||
|---|---|---|---|---|---|
| SANA-0.6B / MJHQ-30K | – | (DPM-Solver-v3) | |||
| I-CFM / CIFAR-10 | (STORK-4) | ||||
| SiT-XL/2 / ImageNet | (DPM-Solver-v3) |
| Parameter | CIFAR-10 | ImageNet-256 | MJHQ-30K |
|---|---|---|---|
| Model | I-CFM (TorchCFM) | SiT-XL/2 | SANA-0.6B, px |
| Space | pixel | latent (SD-VAE) | latent |
| Dimension | |||
| Precision | fp32 | bf16 | bf16 |
| Conditioning | none | class, CFG | text, CFG |
| Conditions | – | classes, cycled | MJHQ prompts |
| Method | Implementation | Options selected on the held-out split |
|---|---|---|
| Euler | forward Euler on the learned field | – |
| DPM-Solver++ Lu et al. (2025) | DPMSolverMultistepScheduler ( dpmsolver++ , flow prediction) | solver order ( , or ); factory order on SANA |
| UniPC Zhao et al. (2023) | UniPCMultistepScheduler , same configuration | solver order ( , or ); factory order on SANA |
| A-FloPS Jin et al. (2026) | authors’ AEuler , constraint | time grid (unshifted or shifted), once per pipeline |
| CAB Roy and Nair (2026) | released scheduler | solver order ( or ) |
| STORK-4 Tan et al. (2026) | authors’ scheduler | on CIFAR-10 and SiT-XL/2; published configuration ( , first order) on SANA |
| Method | Option | CIFAR-10 | SiT-XL/2 | SANA-0.6B |
|---|---|---|---|---|
| DPM-Solver++ | solver order | (factory) | ||
| UniPC | solver order | (factory) | ||
| CAB | solver order | |||
| A-FloPS | grid shift (per pipeline) | |||
| STORK-4 | , , , , | , then | (published) | |
| DPM-Solver-v3 | order |
| Model | Rule | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|---|
| CIFAR-10 | one-node | |||||
| AB2 | ||||||
| AB3 | ||||||
| SiT-XL/2 | one-node | |||||
| AB2 | ||||||
| AB3 |
| Model | Rule | NFE | |||||
|---|---|---|---|---|---|---|---|
| CIFAR-10 | AB2 | 4 | 15.37 | 14.11 | 14.72 | 18.11 | 26.02 |
| AB2 | 8 | 8.52 | 7.92 | 7.39 | 8.69 | 13.13 | |
| AB3 | 4 | 18.34 | 15.85 | 14.23 | 16.27 | 24.07 | |
| AB3 | 8 | 11.22 | 9.54 | 7.58 | 7.96 | 12.33 | |
| SiT-XL/2 | AB2 | 4 | 22.34 | 23.48 | 28.01 | 40.24 | – |
| AB2 | 8 | 16.33 | 16.39 | 17.19 | 19.90 | – |
| Model | batch | Network | AREX step | overhead | DPM++ step | |
|---|---|---|---|---|---|---|
| CIFAR-10, I-CFM (fp32) | 3,072 | 1000 | 0.140 | 0.0021 | 1.5% | 0.0003 |
| SiT-XL/2, | 4,096 | 125 | 2.12 | 0.0058 | 0.3% | 0.0027 |
| SANA-0.6B, | 8,192 | 25 | 3.72 | 0.041 | 1.1% | 0.010 |
| AREX: profile | AREX: moments | DPM-Solver-v3: EMS | ||||
|---|---|---|---|---|---|---|
| Model | evals | wall-clock | evals | wall-clock | evals (+JVP) | wall-clock |
| CIFAR-10 | s | – | min | |||
| SiT-XL/2, | min | min | min | |||
| SANA-0.6B | min | min | min | |||
| Model | Rule | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|---|
| CIFAR-10 | one node | 54.63 | 26.13 | 11.45 | 5.34 | 3.66 |
| AB2 | 39.24 | 12.20 | 5.39 | 3.50 | 3.64 | |
| AB3 | 39.24 | 12.35 | 5.58 | 3.60 | 3.69 | |
| SiT-XL/2 | one node | 134.79 | 34.14 | 9.70 | 4.14 | 2.72 |
| AB2 | 84.15 | 9.58 | 3.23 | 2.38 | 2.17 | |
| AB3 | 84.15 | 8.18 | 3.02 | 2.24 | 2.12 |
| Model | Integrator | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|---|
| CIFAR-10 | Euler | 166.24 | 51.88 | 17.46 | 9.15 | 6.28 |
| AB2 | 145.06 | 29.23 | 10.46 | 6.98 | 5.19 | |
| AB3 | 145.06 | 25.52 | 9.30 | 6.21 | 4.67 | |
| Heun | 412.44 | 295.30 | 119.29 | 48.64 | 18.07 | |
| RK4 | 412.44 | 198.53 | 76.15 | 26.79 | 7.99 | |
| AREX-AB2 | 39.24 | 12.20 | 5.39 | 3.50 | 3.64 |
| Model | Sampler | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|---|
| CIFAR-10 | AREX (one node), flat | 59.62 | 29.04 | 13.21 | 6.23 | 4.01 |
| AREX (one node), profile | 54.63 | 26.13 | 11.45 | 5.34 | 3.66 | |
| AREX-AB2, flat | 55.73 | 23.67 | 9.07 | 4.10 | 3.63 | |
| AREX-AB2, profile | 39.24 | 12.20 | 5.39 | 3.50 | 3.64 | |
| AREX-AB3, flat | 55.73 | 21.23 | 8.06 | 3.88 | 3.73 | |
| AREX-AB3, profile | 39.24 | 12.35 | 5.58 | 3.60 | 3.69 |
| Model | Rule | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|---|
| CIFAR-10 | AB2 | 145.06 | 29.23 | 10.46 | 6.98 | 5.19 |
| AB2 | 216.19 | 32.26 | 7.22 | 5.12 | 4.56 | |
| AB3 | 145.06 | 25.52 | 9.30 | 6.21 | 4.67 | |
| AB3 | 216.19 | 29.55 | 6.54 | 4.60 | 4.15 | |
| AREX-AB2 | 39.24 | 12.20 | 5.39 | 3.50 | 3.64 | |
| SiT-XL/2 | AB2 | 132.95 | 15.74 | 4.19 | 2.46 | 2.12 |
| SiT-XL/2 | SANA-0.6B | |||
|---|---|---|---|---|
| Covariance, mean | NFE 4 | NFE 8 | NFE 4 | NFE 8 |
| pooled , | 12.58 | 3.18 | 9.49 | 6.38 |
| , | 12.54 | 3.21 | 7.81 | 6.44 |
| , | 8.18 | 3.02 | 8.15 | 6.33 |
| Residual integrator | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|
| AREX-AB2, flat (1 NFE/step) | 55.73 | 23.67 | 9.07 | 4.10 | 3.63 |
| AREX-AB3, flat (1 NFE/step) | 55.73 | 21.23 | 8.06 | 3.88 | 3.73 |
| ETD-RK2m (2) | 106.63 | 31.06 | 11.66 | 4.46 | 3.59 |
| ETD-RK2 (2) | 91.89 | 26.75 | 10.49 | 4.20 | 3.67 |
| ETD-RK3 (3) | 91.89 | 75.62 | 14.06 | 15.58 | 3.63 |
| ETD-RK4 (4) | 91.89 | 29.43 | 7.93 | 3.95 | 3.94 |
| Sampler | Metric | NFE 2 | NFE 4 | NFE 8 | NFE 16 | NFE 32 |
|---|---|---|---|---|---|---|
| Euler | sFID | 200.0 | 46.0 | 10.5 | 6.1 | 4.9 |
| IS | 4.8 | 60.7 | 180.5 | 241.0 | 264.3 | |
| P / R | .058/.123 | .365/.440 | .702/.505 | .779/.562 | .796/.590 | |
| DPM-Solver++ | sFID | 200.0 | 22.7 | 7.4 | 5.5 | 4.7 |
| IS | 4.8 | 98.3 | 233.6 | 265.7 | 275.9 | |
| P / R | .058/.123 | .517/.455 | .793/.546 | .801/.582 | .804/.588 |
Flow-Based Generative Modeling
Flow-based generative modeling learns probability transports from simple noise to data for fast sampling, density estimation, and controllable generation.
See all 563 papers