Preconditioned Flow Matching
Organizations: University of British Columbia, Vancouver, Canada · University of Cambridge, Cambridge, United Kingdom
Abstract
Flow matching (FM) learns vector fields by regressing stochastic velocity targets along intermediate distributions . We identify a geometric optimization bottleneck in this regression problem: when the covariance of is ill-conditioned, gradient-based training rapidly fits high-variance directions while making slow progress along low-variance ones. In an exactly solvable Gaussian setting, we prove that the excess risk is weighted by , and that both gradient descent and stochastic gradient descent inherit condition-number-dependent convergence. We then extend the analysis to Gaussian mixtures, showing that multimodality does not average away this effect; instead, the slowest and worst-conditioned component can control optimization. Motivated by this analysis, we propose , a precondition-then-match framework that transforms the target distribution into a more isotropic representation, trains the main flow in the transformed space, and maps generated samples back through the inverse transformation. We show theoretically that preconditioning reshapes the intermediate FM path and improves its conditioning. Across controlled Gaussian and Gaussian-mixture experiments, latent MNIST and other high resolution image datasets up to resolution, preconditioning improves path-conditioning diagnostics, low-eigenvalue recovery, FID, MMD, precision, and recall. Compute-matched baselines and preconditioner-quality ablations further show that the gains are not explained merely by additional preconditioner parameters, but by improved geometry of the downstream flow matching problem. GitHub: https://github.com/ahxmeds/preconditioned-flow-matching.git.
Figures & tables
| Preconditioning method | Compute matched? | # Params | FID | MMD ( ) | Precision | Recall |
| No preconditioning | No | 2.32M | 5.97 | 77.10 | 0.5774 | 0.2856 |
| No preconditioning | Yes | 3.37M | 5.42 | 75.46 | 0.5869 | 0.2618 |
| ZCA whitening (Ours) | No | 2.32M | 4.20 | 6.25 | 0.6022 | 0.3107 |
| ZCA whitening (Ours) | Yes | 3.37M | 4.02 | 7.02 | 0.6117 | 0.2885 |
| NF preconditioner (Ours) | No | 3.37M | 2.74 | 2.95 | 0.7271 | 0.3561 |
| FM preconditioner (Ours) | No | 3.37M | 3.98 | 3.02 | 0.8440 | 0.5486 |
| Dataset | Method | FID | Precision | Recall |
| LSUN Churches | No preconditioner | 19.53 | 0.4540 | 0.3239 |
| FM preconditioner (Ours) | 14.47 | 0.5313 | 0.3255 | |
| Oxford Flowers-102 | No preconditioner | 23.82 | 0.5213 | 0.2761 |
| FM preconditioner (Ours) | 22.64 | 0.5428 | 0.2854 | |
| AFHQ Cats | No preconditioner | 7.11 | 0.7764 | 0.5396 |
| FM preconditioner (Ours) | 4.86 | 0.8320 | 0.5297 |
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Direction | No preconditioner | NF preconditioner | FM preconditioner |
| Method | Additional training | Additional inference operation | Main-flow NFE | Inverse-prec. NFE | Total NFE | FID |
| FM | – | – | 60 | 0 | 60 | 5.97 |
| NF preconditioning (Ours) | Train NF preconditioner | One direct NF inverse pass | 60 | N/A | 2.74 | |
| FM preconditioning (Ours) | Train FM preconditioner | Integrate inverse preconditioner | 60 | 60 | 120 | 3.98 |
| RF | – | – | 60 | 0 | 60 | 6.86 |
| RF + Reflow | Pair generation and RF retraining | – | 60 | 0 | 60 | 5.15 |
| Dataset | Training space | Baseline | Precond. | Cond. reduction | FID: no precond. | FID: FM precond. | Relative FID gain | Diagnostic |
| MNIST | Latent | 52.83 | 2.02 | 5.97 | 3.98 | 33.3% | Preconditioning beneficial | |
| LSUN Churches | Latent | 102.63 | 5.54 | 19.53 | 14.47 | 25.9% | Preconditioning beneficial | |
| Oxford Flowers-102 | Latent | 83.47 | 47.92 | 23.82 | 22.64 | 5.0% | Limited benefit | |
| AFHQ Cats | Latent | 64.75 | 2.36 | 7.11 | 4.86 | 31.6% | Preconditioning beneficial | |
| CIFAR-10 | Pixel | 755.92 | 453.68 | 4.15 | 4.02 | 3.1% | Limited benefit | |
| ImageNet-1k | Latent | 84.37 | 1.90 | 8.66 | 4.98 | 42.5% | Preconditioning beneficial |
| Distribution | Peak path | Final MMD | |||
| Bimodal | |||||
| Anisotropic ring |
| Points evaluated | median / p95 / max | median / p95 | Random amplification median / p95 | Worst-direction amplification median / p95 |
| Real preconditioned samples | ||||
| Generated endpoints |
| Deblurring | |||||
| Method | Params/FLOPs | SSIM | PSNR (posterior mean) | Posterior std. | Misfit |
| Baseline FM | 0.803 | 22.4 | 0.135 | 5.8 | |
| Parameter-matched | 0.756 | 22.6 | 0.156 | 5.8 | |
| FLOPs-matched | 0.817 | 22.5 | 0.128 | 5.8 | |
| Preconditioned (Ours) | 0.834 | 21.7 | 0.128 | 6.2 | |
| super-resolution | |||||
| Setting | No Preconditioning | NF Preconditioning | FM Preconditioning |
| Training space | Latent | Latent | Latent |
| Latent dim | 64 | 64 | 64 |
| Interpolation | |||
| FM generator model | |||
| Network | CNN | CNN | CNN |
| Setting | LSUN Churches | Oxford Flowers-102 | AFHQ Cats | CIFAR-10 | ImageNet-1k |
| Image resolution | |||||
| Training space | Latent | Latent | Latent | Pixel | Latent |
| VAE / latent encoder | Stable Diffusion VAE | Stable Diffusion VAE | Stable Diffusion VAE | – | Stable Diffusion VAE |
| Latent dim | – | ||||
| Interpolation | |||||
Flow Matching
Flow matching learns continuous-time vector fields that transport simple noise distributions into data for efficient generative modeling.
See all 656 papers