Generative Modeling with Continuous Flows: Sample Complexity of Flow Matching

Mudit Gaur, Prashant Trivedi, Shuchin Aeron, Amrit Singh Bedi, George K. Atia, Vaneet AggarwalarXiv 2025 · DOI

Introduction

Flow matching is rapidly emerging as a faster, simpler alternative to diffusion models for generative AI. While its empirical success is evident, its theoretical foundations have historically lagged behind. This paper provides the first realistic "sample complexity" bounds for flow matching, proving that a model requires $\mathcal{O}(\epsilon^{-4})$ training samples to achieve an error of $\epsilon$. Crucially, this analysis moves beyond the unrealistic assumption that training finds a mathematically perfect global minimum, accounting instead for the practicalities of stochastic optimization.

The Shift to Flow Matching

In generative AI, diffusion models—which utilize Stochastic Differential Equations (SDEs)—have been the dominant paradigm. However, they are often slow to sample from due to the iterative nature of solving SDEs. Flow matching offers a powerful alternative by using deterministic Ordinary Differential Equations (ODEs) to learn a continuous vector field, or "flow." This flow smoothly transforms simple noise into complex data distributions, such as images. This approach simplifies the training objective and significantly accelerates the generation process.

Addressing Theoretical Gaps

Despite its practical advantages, the theoretical understanding of flow matching's efficiency—specifically its sample complexity—has been incomplete. Previous research often relied on two problematic assumptions:

  1. The ERM Assumption: Earlier models assumed the training algorithm could reach the Empirical Risk Minimizer (ERM). In practice, neural networks are trained using Stochastic Gradient Descent (SGD), which rarely reaches the absolute global minimum.
  2. The Curse of Dimensionality: Previous theoretical bounds suggested that the required sample size grew exponentially with data dimensionality (e.g., image resolution), a finding that contradicts the real-world success of these models.

This research addresses these gaps by providing a realistic sample complexity bound that accounts for imperfect optimization and avoids exponential scaling.

Methodology: Principled Error Decomposition

To determine the required sample size, the authors analyze the discrepancy between the ideal "true" velocity field and the "learned" velocity field produced by the neural network. They employ a principled error decomposition, splitting the total velocity estimation error into three components:

  • Approximation Error: The inherent limitation of a neural network's expressiveness based on its width and depth.
  • Statistical Error: The error arising from training on a finite dataset rather than the true underlying distribution.
  • Optimization Error: The error resulting from stopping SGD after a finite number of steps before reaching the loss landscape's minimum.

By bounding these errors individually using statistical learning theory and the Polyak-Łojasiewicz (PL) condition—which ensures convergence in non-convex landscapes—the authors construct a comprehensive bound for the entire system.

Key Insights and Results

The study yields several critical insights that bridge the gap between theory and practice:

  • Beating the Curse of Dimensionality: The authors demonstrate that sample complexity has a polynomial, rather than exponential, relationship with data dimension ($d$) and network architecture.
  • Sample Complexity Bound: To ensure the Wasserstein-2 distance between generated and true data is within $\mathcal{O}(\epsilon)$, the model requires $\mathcal{O}(\epsilon^{-4})$ samples.
  • Architectural Scaling: The required number of samples $n$ scales as: $$n = \Omega\left(\frac{W^{2D-2}d^2}{\epsilon^4} \log \frac{1}{\delta}\right)$$ where $W$ is network width, $D$ is depth, $d$ is data dimension, and $\delta$ is the confidence level.

  • Optimization Guarantees: The paper proves that standard SGD with a diminishing learning rate is sufficient to bound optimization error to $\mathcal{O}(1/n)$, confirming that practical training processes converge to useful states.

Limitations and Future Work

While this work provides a robust framework, it relies on certain assumptions. The approximation error is treated as a fixed constant ($\epsilon_{approx}$), and the proofs utilize the Polyak-Łojasiewicz condition. While more realistic than strict convexity, the PL condition still makes specific assumptions about the loss landscape's geometry. Future research may focus on relaxing these conditions or developing tighter bounds for approximation error to further refine the theoretical model.

This three-part decomposition (Approximation + Statistical + Optimization) provides a modular blueprint for analyzing other continuous-time generative models, paving the way for more rigorous theoretical explorations in the field.

Summary updated

BibTeX
@misc{gaur2025generative,
  author = {Mudit Gaur and Prashant Trivedi and Shuchin Aeron and Amrit Singh Bedi and George K. Atia and Vaneet Aggarwal},
  title = {{Generative Modeling with Continuous Flows: Sample Complexity of Flow Matching}},
  year = {2025},
  eprint = {2512.01286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01286},
}
Figure