Low-Bit, High-Fidelity: Optimal Transport Quantization for Flow Matching
Dara Varam, Diaa A. Abuhani, Imran Zualkernan, Raghad AlDamani, Lujain Khalil
TL;DR
This work addresses the challenge of deploying Flow Matching FM generative models on resource-constrained devices by introducing optimal-transport OT post-training quantization to minimize the $W_2$ distance between original and quantized weights. The authors derive theoretical bounds showing both uniform and OT quantization scale with $2^{-2b}$ in the $FID$ metric, but with different front constants, and demonstrate that equal-mass OT quantization yields tighter bounds (ratio $\rho(b) \approx 0.25$–$0.4$) under realistic weight tail assumptions. Empirically, OT quantization preserves both generation quality (PSNR/SSIM) and latent-space stability across five benchmarks (MNIST, FashionMNIST, CIFAR-10, ImageNet, CelebA), maintaining fidelity down to 2–3 bits per parameter where other schemes fail. The results support OT quantization as a principled, effective approach for edge and embedded AI deployment of FM models, with avenues for hardware-aware optimizations and extension to other architectures.
Abstract
Flow Matching (FM) generative models offer efficient simulation-free training and deterministic sampling, but their practical deployment is challenged by high-precision parameter requirements. We adapt optimal transport (OT)-based post-training quantization to FM models, minimizing the 2-Wasserstein distance between quantized and original weights, and systematically compare its effectiveness against uniform, piecewise, and logarithmic quantization schemes. Our theoretical analysis provides upper bounds on generative degradation under quantization, and empirical results across five benchmark datasets of varying complexity show that OT-based quantization preserves both visual generation quality and latent space stability down to 2-3 bits per parameter, where alternative methods fail. This establishes OT-based quantization as a principled, effective approach to compress FM generative models for edge and embedded AI applications.
