Manuscript Offprint
arXiv:2611.01559Generative Modeling with Continuous Flows: Sample Complexity of Flow Matching
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Flow matching has emerged as a promising alternative to diffusion-based generative modeling, offering a continuous-time ordinary differential equation formulation with fast sampling and a simple regression-based training objective. Despite its empirical success, some theoretical analyses idealize the learning procedure by assuming that the velocity field is obtained by exact empirical risk minimization. This assumption does not reflect the practical finite-dataset setting, where the empirical flow-matching loss is only approximately minimized by a finite number of stochastic-gradient updates. We develop an empirical-risk-minimizer-free analysis for flow matching that explicitly accounts for both finite-sample statistical error and finite-time empirical optimization error. Our analysis considers a finite dataset of flow-matching samples and a learned parameter obtained after stochastic gradient updates on the empirical objective. Under regularity assumptions on the interpolation path, sub-exponential source and target distributions, approximation by a bounded-parameter smooth neural velocity class, empirical-loss optimization, and uniform flow stability, we prove a guarantee that holds with high probability over the finite training dataset and in expectation over the stochastic-gradient randomness. The resulting bound separates approximation error, statistical error from the finite dataset, tail error from unbounded source and target distributions, and empirical optimization error from approximate minimization of the finite-sample objective. For a prescribed bounded-parameter smooth neural velocity class, the statistical term is controlled through a metric-entropy/Rademacher uniform-convergence bound for the induced truncated squared-loss class. The empirical optimization term is controlled by an expected finite-time stochastic-gradient guarantee under an empirical Polyak-Łojasiewicz condition and a finite-dataset stochastic-gradient oracle. The sub-exponential endpoint tails are handled through an explicit endpoint-magnitude truncation argument. Under the stated approximation, tail, flow-stability, smooth-network-complexity, and empirical optimization conditions, the bound yields Wasserstein-2 error of order with dataset size and optimization budget , up to the corresponding problem-dependent and logarithmic factors. Our result provides an ERM-free finite-dataset analysis of flow matching that explicitly separates finite-sample statistical error from finite-time stochastic-gradient optimization error on the empirical flow-matching objective.
1 Introduction
Generative models have become a central component of modern machine learning, with applications in image synthesis, scientific modeling, computational biology, and reinforcement learning. Diffusion and score-based generative models have achieved strong empirical performance by transforming a simple source distribution into a target data distribution through a learned reverse-time stochastic process (Song et al., 2021). Their success has motivated a substantial theoretical literature on score estimation, denoising objectives, numerical discretization, optimization error, and statistical guarantees for accurate generation. At the same time, diffusion-based sampling can require many numerical integration steps, and its training objective is tied to estimating score functions along a noisy probability path.
Flow matching provides an alternative framework for continuous-time generative modeling (Lipman et al., 2023). Rather than learning a score function, flow matching learns a time-dependent velocity field whose associated ordinary differential equation transports samples from a source distribution to a target distribution. The learned model is a deployable velocity field of the form
which depends only on the current state and time. This viewpoint leads to a regression-based training objective and can enable efficient deterministic sampling through ODE simulation. Several variants have been proposed, including rectified flow, conditional flow matching, optimal-transport flow matching, and stochastic interpolants (Lipman et al., 2023; Liu et al., 2023; Tong et al., 2023; Albergo et al., 2023). These works demonstrate that both the interpolation path and the coupling between source and target samples can substantially affect the geometry, regularity, and computational efficiency of the resulting generative flow.
Despite this empirical and methodological progress, the theoretical understanding of how flow-matching velocity fields are learned from finite data remains incomplete. In the diffusion setting, recent works study sample complexity and convergence guarantees for score estimation and score-based generation (Chen et al., 2023; Gupta et al., 2024; Gaur et al., 2025; Guan et al., 2025), as well as discrete diffusion models (Srikanth et al., 2026b). These results address questions such as how accurately a learned vector field must approximate its population target and how many samples or optimization steps are sufficient for the generated distribution to approach the desired target distribution. In the flow-matching setting, existing work has established stability and error-propagation guarantees for learned flows (Benton et al., 2024), while recent analyses study statistical, approximation, and sample-complexity properties of flow matching and rectified flows (Zhou and Liu, 2025; Sahoo et al., 2026). These results provide important complementary perspectives on velocity estimation and terminal distributional error.
This paper focuses on a distinction between statistical and optimization error that arises in practical finite-dataset training. A flow-matching model is commonly trained using a fixed stored dataset and a finite number of stochastic-gradient updates. Consequently, the empirical flow-matching objective is generally only approximately minimized. This setting differs both from an idealized exact empirical-risk-minimization formulation and from a population-oracle or fresh-sample optimization model. Two distinct effects must therefore be controlled. The first is the statistical error incurred by replacing the population objective with a finite empirical objective. The second is the empirical optimization error incurred by performing only finitely many stochastic-gradient updates on that fixed objective.
We develop an empirical-risk-minimizer-free analysis for this finite-dataset setting. Given a training dataset of flow-matching samples, we study the parameter obtained after stochastic-gradient updates on the empirical objective . Our analysis explicitly separates the discrepancy between the population loss and the empirical loss from the error caused by only approximately minimizing . An empirical risk minimizer is introduced only as a theoretical comparator and is not assumed to be available to the training algorithm.
Our formulation is based on a coupling between a source distribution and a target distribution , together with a linear, or rectified, interpolation path. The regression target is the associated pathwise velocity, while the deployable target is its conditional mean given the current state and time. This marginal velocity field depends only on the current state and time and can therefore be used during generation. We explicitly assume that the marginal velocity field is path-consistent with the prescribed interpolation path, so that the corresponding reference ODE reproduces the path marginals and reaches at terminal time. A uniform flow-stability argument then converts integrated velocity-field error along the reference path into Wasserstein-2 error for the generated terminal distribution.
A further distinction from compact-support formulations is that we allow sub-exponential source and target distributions. This is important because standard source distributions used in generative modeling, including Gaussian noise, are unbounded. We handle unbounded data through endpoint-magnitude truncation. On the event that both coupled endpoints have bounded norm, the linear interpolation state, pathwise velocity, and induced squared-loss class are uniformly controlled. The contribution of the complementary event is then bounded using the assumed endpoint-tail behavior. This construction avoids truncation arguments involving singular factors near the terminal time and is naturally compatible with linear and rectified interpolation paths.
The central question addressed in this work is:
How many training samples and stochastic-gradient updates are sufficient for a neural velocity field trained by flow matching to generate a distribution close to the target distribution?
Our proof proceeds in two stages. First, uniform flow stability converts excess population flow-matching risk into terminal Wasserstein-2 error. Second, the excess population risk is decomposed into approximation, finite-dataset statistical, and empirical optimization contributions. Under unbounded endpoint distributions, the statistical term further separates into a truncated uniform-convergence contribution and an endpoint-tail contribution. For a prescribed bounded-parameter smooth neural velocity class, the truncated statistical contribution is controlled through a metric-entropy and Rademacher uniform convergence argument for the induced scalar squared-loss class. The empirical optimization contribution is controlled through an expected finite time stochastic gradient guarantee under empirical smoothness, an empirical proximal Polyak Łojasiewicz condition, and a finite dataset stochastic gradient oracle.
The resulting theorem holds with high probability over the draw of the finite training dataset and in conditional expectation over the stochastic-gradient randomness. Under the stated approximation, endpoint-tail, flow-stability, neural-class-complexity, and empirical-optimization conditions, the bound yields expected Wasserstein-2 error of order with dataset size and optimization budget , up to the displayed problem-dependent and logarithmic factors. These rates should be interpreted for a prescribed bounded-parameter smooth neural velocity class. In particular, dimension and architecture dependence may enter through the neural-class complexity, approximation error, endpoint-tail parameters, flow-stability constant, and empirical optimization constants. We do not claim that these quantities are dimension free or uniformly controlled over arbitrary architectures.
We complement the theoretical analysis with synthetic experiments designed to illustrate the mechanisms represented in the bound. The experiments examine how velocity-estimation and terminal distributional errors vary with the dataset and optimization budgets, compare fixed finite-dataset training with a one-pass fresh-sample procedure, and study the effect of different couplings for a linear interpolation path. These experiments are not intended to verify the formal asymptotic rates or to compete with large-scale generative-model benchmarks. Rather, they provide controlled diagnostic evidence for the approximation-statistical-optimization structure underlying the analysis.
The main contributions of this work are summarized as follows:
-
Finite-dataset ERM-free analysis for flow matching. We analyze a velocity field trained on a fixed finite empirical flow-matching objective without assuming that the training algorithm has access to an exact empirical risk minimizer. The learned parameter is the output of a finite number of stochastic-gradient updates.
-
Separation of finite-sample statistical and empirical optimization error. We distinguish the error incurred by replacing the population objective with a finite empirical objective from the error incurred by only approximately minimizing that empirical objective. This makes explicit the separate roles of the dataset size and the optimization budget .
-
Sub-exponential endpoints and explicit tail control. We replace compact-support assumptions with sub-exponential source and target distributions. Endpoint-magnitude truncation yields a bounded squared-loss class on a high-probability event, while the contribution of its complement is controlled through an explicit tail term. This permits standard unbounded source distributions such as Gaussian noise.
-
Metric-entropy control for a smooth neural squared-loss class. For a prescribed bounded-parameter smooth neural velocity class, we derive a uniform-convergence bound for the induced truncated scalar squared-loss class using parameter-space covering numbers and Rademacher complexity. This yields a squared-loss-level statistical contribution of order , up to the displayed network-complexity, truncation-envelope, and logarithmic factors.
-
Path-based formulation with a deployable marginal velocity field. We formulate the learning problem using interpolation paths induced by couplings between the source and target distributions while ensuring that the learned velocity field depends only on the current state and time. The coupling is treated as part of the prescribed path and can affect the associated velocity-regression problem and its learning difficulty.
-
Finite-time empirical optimization guarantee. Under empirical smoothness, an empirical proximal-PL condition, bounded conditional gradient variance, and the stated uniform empirical regularity conditions, we control the expected empirical suboptimality after finite-dataset stochastic-gradient updates. Combined with the statistical and flow-stability arguments, this produces a finite-sample and finite-time terminal distributional guarantee.
Zhou and Liu (2025) performed a sample complexity analysis for flow matching models wherein the Wasserstein distance between the true and estimated distributions is bounded by decomposing the error in calculating the velocity function into errors incurred due to the limited approximation power of the neural network function class, as well as the finite sample size. As stated earlier, this work assumes access to the ERM of the velocity estimation loss. Additionally, the sample complexity result obtained in Zhou and Liu (2025) is exponential in the data dimension. Our result avoids this exponential dependence by assuming a constant error due to the limited approximation power of the class of neural networks used to approximate the velocity function. We do this since the focus of our work is to analyze the statistical and optimization errors incurred in flow matching. Similar assumptions have been used in previous works on diffusion modeling, such as Gupta et al. (2024) and Guan et al. (2025).
Recently, Benton et al. (2024) presented error bounds for the generative process using flow matching, assuming that the true velocity field lies within an neighborhood of the learned velocity field. Their analysis provides error bounds under the assumption of upper bounded approximation error and certain regularity conditions on the data distribution. However, their results do not address the finite time sample complexity, a crucial aspect for understanding the number of training samples required for estimating the velocity field. This work is inspired by existing theoretical analyses such as (Gaur et al., 2023a), (Gaur et al.,
2023b),(Gaur et al., 2024) as well as diffusion models (Gaur et al., 2026; Srikanth et al., 2026a). We adopt a similar high-level decomposition as a conceptual starting point.
2 Preliminaries and Problem Formulation
We introduce the flow-matching setup used throughout the paper. The goal is to learn a continuous-time generative model that transports samples from a source distribution to a target distribution by solving an ordinary differential equation. We first define the source and target distributions, specify probability paths through couplings, introduce the associated marginal velocity field, and then state the finite-dataset learning objective analyzed in this work.
Source and target distributions. Let denote a source distribution on , such as a standard Gaussian distribution, and let denote the target data distribution. The goal of generative modeling is to construct a sampling procedure that transforms an initial sample from into a sample whose distribution is close to .
Given a time-dependent velocity field
the associated ODE is
If the terminal law of is close to , then this ODE defines a generative model.
Probability paths and couplings. Flow matching specifies a reference probability path connecting and . Let
where is a coupling between the source and target distributions. Let
be an interpolation map satisfying the endpoint conditions
The associated path is
Thus,
When the interpolation map is differentiable in time, define the pathwise velocity by
This quantity describes the velocity of a particle moving along the interpolation path associated with the coupled endpoint pair .
Marginal velocity field. The pathwise velocity depends on the coupled endpoints . During generation, however, these endpoints are not observed. A generative ODE can only depend on the current state and time. The relevant deployable target velocity field is therefore the conditional mean
The field depends only on and is the ideal deployable target that the learned velocity field seeks to approximate. The fact that the ODE driven by reproduces the prescribed path marginals is not inferred solely from the conditional-mean definition above. Instead, the required path-consistency property is imposed explicitly in Assumption 3.7.
The linear interpolation path. The main theorem in this work is stated for the linear, or rectified, interpolation path
For this path,
The corresponding marginal velocity field is
This formulation includes the standard rectified-flow setup and allows different choices of the coupling , such as independent couplings or optimal-transport-inspired couplings. The coupling is part of the probability-path specification: changing changes the regression target and can affect the difficulty of learning the marginal velocity field, even when the interpolation map itself remains linear.
Learned velocity field. We approximate the marginal velocity field using a neural network
The learned velocity field is deployable because it takes only the current state x and time t as inputs. For a fixed parameter , samples are generated by solving
We denote the terminal law of this learned flow by
For the final learned parameter , the generated terminal distribution is . The objective is to make this distribution close to the target distribution .
Population flow-matching objective. For the linear interpolation path, a population flow-matching sample is
The corresponding state and pathwise velocity are
For a parameter , define the single-sample flow-matching loss
The population flow-matching loss is
Equivalently,
Let
where the infimum is over all measurable deployable velocity fields
The minimizer is the marginal velocity field . By the projection identity,
Thus, controlling the excess population flow-matching loss is equivalent to controlling the integrated squared error between the learned deployable velocity field and the target marginal velocity field along the reference path.
Empirical flow-matching objective. In practice, the population objective is replaced by a finite empirical objective. Given an i.i.d. training dataset
where
the empirical flow-matching loss is
Equivalently,
Let
denote an empirical risk minimizer. This parameter is used only as a theoretical comparator; the algorithm is not assumed to have access to it. Instead, the learned parameter is obtained by running a finite number T of stochastic-gradient updates on the empirical objective . We denote the resulting parameter by . Thus, the analysis distinguishes two resources:
The dataset size controls the statistical error between and , while the optimization budget controls how closely approaches the empirical minimizer .
Problem statement. This work studies the following question:
How many training samples and stochastic-gradient updates are sufficient for a neural velocity field trained by flow matching to generate a distribution close to the target distribution?
More precisely, if denotes the parameter obtained after stochastic-gradient updates on the finite empirical objective , we seek to bound . The remainder of the paper develops a finite-sample and finite-time analysis of this quantity without assuming access to the exact empirical risk minimizer .
3 Our Approach
We now describe the assumptions and proof strategy used to obtain an ERM-free finite-dataset sample-complexity guarantee for flow matching. The goal is to control the terminal distributional error of the learned flow in terms of the finite-sample and finite-time errors incurred while learning the velocity field. The main ingredients are a sub-exponential data condition, an approximation condition for the neural velocity class, a statistical uniform-convergence bound for the empirical flow-matching objective, an empirical optimization condition for projected finite-dataset stochastic-gradient training, and a path-consistent uniform flow-stability condition converting velocity-field error into Wasserstein error.
3.1 Assumptions
We first collect the assumptions used in the main result.
Assumption 3.1 (Sub-exponential source and target distributions). There exist constants such that, for every ,
Here
is the coupling used to define the interpolation path.
Assumption 3.1 replaces compact support of the source and target distributions. This is important because standard source distributions used in generative modeling, such as Gaussian noise, are unbounded. Sub-exponential and related tail assumptions are standard in high-dimensional probability and statistical learning theory (Vershynin, 2018; Wainwright, 2019), and analogous tail-control conditions are common in recent analyses of diffusion and generative models (Gupta et al., 2024; Gaur et al., 2025). In our proof, this assumption is used only to control the contribution of the endpoint-truncation complement.
Assumption 3.2 (Approximation error). Let denote the minimum population flow-matching risk over all measurable deployable velocity fields. Let be a population minimizer within the prescribed neural velocity class. There exists such that
Assumption 3.2 isolates the approximation power of the prescribed neural velocity class. We keep explicit throughout the theorem rather than optimizing over architectures. This separates approximation effects from finite-dataset statistical error and finite-time optimization error.
Assumption 3.3 (Empirical proximal-PL condition). For the finite dataset , let
denote an empirical risk minimizer over the compact convex set . For , define the constrained gradient-mapping quantity
where is the empirical smoothness constant from Assumption 3.4. The empirical flow-matching loss satisfies the proximal Polyak–Łojasiewicz condition on : there exists such that, for every ,
The proximal Polyak–Łojasiewicz condition is the constrained analogue of the usual gradient-domination condition used in the analysis of projected and proximal first-order methods (Karimi et al., 2016). When , or whenever the constraint is inactive in the relevant optimization region, we have
and Assumption 3.3 reduces to the ordinary Polyak–Łojasiewicz inequality
The empirical minimizer is a theoretical comparator; the algorithm is not assumed to have access to it.
Assumption 3.4 (Empirical smoothness, projected SGD, and interior operating regime). For the finite dataset
the empirical loss
is differentiable in and is -smooth on the compact convex parameter region . That is, for every ,
For the smooth-activation network class described in Section 3.2, this differentiability requirement is compatible with the architecture. In particular, for every fixed finite dataset , bounded parameters and bounded activation derivatives imply that a finite empirical smoothness constant exists on . The value of may depend on the fixed dataset, the architecture, the parameter bound, the activation constants, and the endpoint magnitudes in the dataset.
Conditioned on , the algorithm is initialized at and performs projected finite-dataset stochastic-gradient updates
where is sampled independently of the past optimization history and denotes Euclidean projection onto .
Let denote the filtration generated by the optimization process up to iteration , conditioned on . The stochastic-gradient oracle is conditionally unbiased for the empirical objective:
Moreover, there exists such that
\mathbb{E}\left[\left\|g_k-\nabla\widehat{L}_N(\theta_k)\right\|_2^2\right|\mathcal{F}_k,\mathcal{D}_N\right]\leq \sigma_N^2.Finally, to obtain the clean optimization bound under the bounded conditional-variance assumption above, we work in an interior operating regime: for every , the projected update is inactive both for the realized stochastic step and for the corresponding mean-gradient step, namely
almost surely conditional on . Equivalently, the projection acts as the identity along the optimization trajectory and the corresponding mean-gradient trajectory.
Lemma 3.5 (Automatic containment). Since and maps into , the projected recursion in Assumption 3.4 satisfies , . In particular, .
Smoothness and bounded conditional gradient variance are standard assumptions in stochastic-gradient analysis (Ghadimi and Lan, 2013; Ajalloeian and Stich, 2020; Koloskova et al., 2022). In the present finite-dataset setting, the stochastic gradient is unbiased for the empirical gradient , rather than for the population gradient . This distinction is central to the analysis because the statistical error of the empirical objective and the optimization error from approximately minimizing it are controlled separately.
The projection guarantees that the iterates remain in the compact parameter region on which the empirical smoothness and network regularity properties are imposed. The separate interior-operating-regime clause is used only to retain the clean bounded-variance optimization recursion without an additional boundary-active error term. If projection is active at non-negligible frequency, one would instead require an interpolation-type noise condition or a separate boundary analysis.
Assumption 3.6 (Uniform-in-N empirical-constant regularity). There exist deterministic constants
all independent of , and for each an event over the draw of such that . On , the empirical proximal-PL constant , the empirical smoothness constant , the conditional gradient-variance bound , and the initialization gap
satisfy simultaneously .
Assumption 3.6 makes explicit the -uniformity required for the displayed optimization scaling. It is a regularity condition on the realized empirical optimization landscape that is stated rather than derived. Deriving , or more generally characterizing the -dependence of the empirical constants for a particular architecture and initialization scheme, is outside the scope of the present modular guarantee.
Assumption 3.7 (Flow regularity, path consistency, and uniform stability). For every , the learned ODE
admits a unique solution on for every initial condition. The reference ODE driven by the marginal velocity field also admits a unique solution on for every initial condition. For every , , let be a spatial Lipschitz constant of . That is,
for every . Assume that there exists a deterministic constant such that
Define the uniform flow-stability constant
Assume moreover that the marginal velocity field is path-consistent with the prescribed interpolation path. That is, if denotes the unique solution of
then
In particular,
Assumption 3.7 is used to convert velocity-field estimation error into terminal distributional error. The constant is a deterministic class-level quantity associated with the prescribed bounded-parameter velocity class and its regularity regime, rather than with a particular random realization of the stochastic-gradient algorithm. The main theorem is stated for the exact learned ODE flow. If a numerical ODE solver is used in implementation, an additional solver error can be added separately by the triangle inequality, but we do not include this term in the main sample-complexity statement.
3.2 Neural Velocity Class
The learned velocity field is parameterized by a fully connected feedforward network taking as input and returning a vector in . Let the network have depth , hidden width , and parameter count
Thus,
The parameter set is a nonempty compact convex subset of the finite-dimensional parameter space. Compactness is used to obtain uniform bounds on the network output, its spatial Lipschitz constants, and the empirical Hessian on a fixed finite dataset. Convexity ensures that line segments between points in remain inside the parameter region on which empirical smoothness is imposed. By Lemma 3.5, projected
SGD ensures that these bounded-parameter properties apply to every optimization iterate and to the final learned parameter .
Unlike the ReLU case, which is only piecewise smooth as a function of the parameters, we work with a smooth activation function
Specifically, we assume
Softplus and tanh are canonical examples satisfying these conditions. This smooth-activation setup makes the empirical loss differentiable in the parameters and is therefore compatible with finite-time projected-SGD analysis under empirical smoothness. The empirical proximal-PL condition remains a separate optimization assumption.
We use two standard consequences of this bounded-parameter smooth network class. First, the class has uniform linear growth. There exist constants , depending only on the architecture, the parameter bound, and the activation constants, such that, for every
, we have
This fact is proved in Lemma D.3. It is used to control both the loss on the endpoint-truncation event and the contribution of the sub-exponential tail region. We do not require a dimension-free approximation theorem for the neural velocity class.
Second, we use a metric-entropy uniform-convergence bound for the induced truncated squared-loss class. For a sample
define
and
For R > 0, let
and define the truncated squared-loss class
On , the linear path satisfies
Together with the uniform linear-growth bound, this implies
where
The relevant statistical complexity object is the scalar truncated squared-loss class , not merely the raw vector-valued velocity class. For bounded-parameter smooth networks, the map
is uniformly Lipschitz over , uniformly for samples satisfying . Since is bounded, this yields the covering-number bound
where
depends on the architecture, parameter bound, activation derivative bounds, and truncation radius. The detailed argument is given in Lemma D.5. Although the lemma label is retained for notational continuity, the result used here is a metric-entropy uniform-convergence bound rather than a ReLU pseudo-dimension bound.
Define the N-dependent entropy radius
Since
we have
Define the corresponding smooth-network complexity quantity by
With this notation, the statistical term appearing in the main theorem has the form
3.3 Population and Empirical Objectives
The population flow-matching loss is
Equivalently,
Given an independent finite training dataset
where
the empirical flow-matching loss is
That is,
The parameter
is used only as a theoretical comparator and is not assumed to be available to the algorithm. The learned parameter is instead obtained after projected stochastic-gradient updates on . Thus, denotes the number of training samples used for statistical control, while denotes the number of stochastic-gradient updates used to approximately minimize the fixed empirical objective.
3.4 Projection Identity
The regression target in the flow-matching loss is the pathwise velocity
which depends on the coupled endpoint pair. The deployable target velocity is the conditional mean
Let
where the infimum is over all measurable deployable velocity fields
By the projection identity, minimizes this population risk over all measurable deployable velocity fields. Moreover, for every , we have
Thus, the excess population flow-matching loss is exactly the integrated squared error between the learned deployable velocity field and the target marginal velocity field along the reference path.
3.5 From Velocity Error to Distributional Error
Let denote the terminal law generated by the exact learned ODE driven by :
Let denote the reference flow driven by :
By the path-consistency clause in Assumption 3.7,
In particular,
For every , Assumption 3.7 provides the deterministic uniform bound
and defines
The uniform flow-stability argument then gives
Since , this can be written equivalently as
By the projection identity,
The factor is a uniform stability amplification constant for the prescribed learned velocity-field class. It is treated as an explicit problem-dependent regularity quantity; we do not claim that it is dimension free or automatically bounded uniformly over arbitrary neural architectures.
3.6 Error Decomposition
Let denote the parameter obtained after projected stochastic-gradient updates on the finite empirical objective . By Lemma 3.5, . Let be an empirical risk minimizer, used only as a theoretical comparator. Also let be a population minimizer within the prescribed neural velocity class. Then
Define
and
Then
The approximation term is controlled by Assumption 3.2, the statistical term by uniform convergence over the finite dataset, and the optimization term by the projected empirical proximal-PL stochastic-gradient analysis. While the algebraic decomposition above contains approximation, statistical, and optimization terms, under unbounded data the bound on the statistical term further separates into a truncated uniform-convergence contribution and a tail contribution. Combining this decomposition with uniform flow stability gives
This decomposition follows a general pattern in learning theory: one separates the limitation of the prescribed function class, the error incurred by replacing a population objective with a finite empirical objective, and the error incurred by only approximately optimizing that empirical objective. In large-scale statistical learning, related approximation–estimation–optimization tradeoffs are used to distinguish model-class limitations, finite-sample generalization, and incomplete numerical optimization (Bottou and Bousquet, 2008; Daneshmand et al., 2016).
3.7 Statistical Control Under Sub-Exponential Data
For , define the endpoint-truncation event
On , the linear path satisfies
The uniform linear-growth property gives
on . Define the tail contribution by
The linear-growth property implies that there exists a constant such that
uniformly over . Since
the endpoint-tail calculation in Lemma D.6 gives
The metric-entropy uniform-convergence result for the truncated squared-loss class gives the statistical contribution
For every truncation radius satisfying
with probability at least
over the draw of , we have
where the leading factor 2 from the error decomposition has been absorbed into the constants.
Choosing
makes the tail contribution lower order up to logarithmic factors. Thus, the finite-dataset statistical contribution scales as
at the squared-loss level, up to the truncation-dependent envelope and other logarithmic factors.
3.8 Optimization Control
Conditioned on the finite dataset , the projected stochastic-gradient updates are
where
By Lemma 3.5, , . Because is convex and is -smooth on , the smoothness descent inequality applies along every update segment.
For the projected recursion, define the stochastic gradient-mapping quantity
Under the interior operating regime in Assumption 3.4, the projection is inactive along the relevant trajectory, so that and the resulting one-step recursion agrees with the standard empirical PL-SGD recursion:
where
We use a dataset-independent decreasing-stepsize choice based on the uniform constants in Assumption 3.6:
On the event , we have
and
Thus,
for every
Lemma 4.8 shows that, conditional on , the empirical optimization error satisfies
where, up to universal numerical constants,
On the event , this quantity is bounded by the deterministic envelope
Since
we may equivalently write
Therefore, on ,
The smooth-activation setup makes differentiability and empirical smoothness compatible with bounded parameter finite dataset training. The empirical proximal-PL condition, the uniform-in- regularity condition, and the interior operating regime remain optimization assumptions; they are not implied by smoothness alone. The main theorem uses the conditional expectation guarantee above. A fully high-probability optimization result would require additional martingale-tail assumptions and a separate concentration analysis.
3.9 Summary of the Proof Strategy
The preceding subsections identify the ingredients required for the finite-dataset analysis. The approximation condition controls the best achievable population error within the prescribed neural velocity class. The statistical argument controls the discrepancy between the population objective and the fixed empirical objective through endpoint truncation, sub-exponential tail control, and metric-entropy uniform convergence. The projected empirical proximal-PL stochastic-gradient analysis controls the error from running only a finite number of updates on that fixed empirical objective.
More precisely, the error decomposition in Section 3.6 separates the excess population flow-matching loss into an approximation contribution, a finite-dataset statistical contribution, and an empirical optimization contribution. The endpoint-tail term arises when bounding the statistical contribution under unbounded source and target distributions. The optimization term is controlled on the uniform regularity event from
Assumption 3.6. The deterministic uniform flow-stability constant from Assumption 3.7 then converts the resulting integrated velocity-field error into a Wasserstein-2 bound for the terminal distribution generated by the exact learned ODE.
The formal finite-sample and finite-time guarantee combines the statistical event from Lemma 4.7 with the event . Accordingly, its conclusion holds with high probability over the sampled finite dataset and in conditional expectation over the stochastic-gradient randomness. The resulting theorem and sample-complexity consequence are stated in Theorem 4.1 in Section 4.
4 Theoretical Results
In this section, we state the main finite-sample and finite-time guarantee for flow matching under sub-exponential data and projected finite-dataset stochastic-gradient training. The theorem combines the approximation condition, the metric-entropy statistical bound for the smooth neural velocity class, the empirical projected-optimization bound, and the path-consistent uniform flow-stability argument described in the previous section.
Throughout this section, denotes the terminal law of the exact learned ODE flow driven by the learned velocity field . The dataset size controls the statistical error incurred by replacing the population objective with the empirical objective , whereas denotes the number of projected stochastic-gradient updates used to approximately minimize that fixed empirical objective.
The learned velocity field
is parameterized by the bounded-parameter smooth-activation network class described in Section 3.2. The network has depth , hidden width , and parameter count
Thus,
For R > 0, define the endpoint-truncation event
On this event, the single-sample flow-matching loss is bounded by
where , are the constants from the uniform linear-growth property of the bounded-parameter smooth neural velocity class.
Recall that
denotes the raw metric-entropy radius of the truncated squared-loss class. Define the corresponding N-dependent entropy radius by
Since
we have
The associated smooth-network complexity quantity is
This is the complexity quantity appearing in the theorem and in Lemma D.5. Under Assumption 3.7, the quantity is a deterministic uniform flow-stability constant satisfying
By Lemma 3.5, projected SGD guarantees that every optimization iterate, including the final learned parameter , belongs to . Hence the same deterministic flow-stability constant applies to every iterate and to the final learned velocity field.
Theorem 4.1 (Finite-sample and finite-time guarantee for flow matching). Suppose Assumptions 3.1, 3.2, 3.3, 3.4, 3.6, and 3.7 hold. Suppose that the velocity field is parameterized by the bounded-parameter smooth-activation network class described in Section 3.2.
Let be the output of the projected finite-dataset stochastic-gradient recursion in Assumption 3.4, with the decreasing stepsizes
For
and any truncation radius satisfying
define
Then, with probability at least
over the draw of the finite dataset
the following conditional expected excess-risk bound holds:
Equivalently, by the projection identity,
Consequently, the terminal distribution of the exact learned ODE flow satisfies
By Jensen's inequality,
Remark 4.2 (Exact learned flow versus numerical sampling). Theorem 4.1 is stated for the exact learned ODE flow. This matches the main theoretical focus of the paper: controlling the finite-dataset statistical and finite-time optimization errors incurred in learning the velocity field. If the learned ODE is solved numerically in implementation, a separate solver error can be added by the triangle inequality. We do not include this numerical term in the main sample-complexity statement.
Remark 4.3 (Sample-complexity consequence). Choose
where is sufficiently large that the truncation condition in Theorem 4.1 holds and the tail contribution is lower order up to logarithmic factors.
Suppose that the approximation and tail contributions satisfy
For example, it is sufficient to require
and to choose sufficiently large that the tail term is at most . Then a sufficient dataset-size condition for
on the event in Theorem 4.1 is
for a sufficiently large constant . A sufficient optimization-budget condition is , for a sufficiently large constant .
Because the truncation radius R and the entropy quantity depend logarithmically on N, the preceding display is an implicit sufficient condition on the dataset size.
The optimization requirement is deterministic conditional on the displayed uniform constants in Assumption 3.6. In particular, does not depend on the realized dataset once have been fixed. When the approximation, tail, flow-stability, smooth-network-complexity, and uniform empirical-optimization quantities are treated as fixed or displayed separately, the shorthand scaling is .
Remark 4.4 (Status of the displayed constants). The bound is stated modularly. The quantities , and the uniform empirical constants , which enter through , are displayed problem-dependent constants and are not derived in this work.
In particular, is not claimed to vanish for an arbitrary fixed architecture. The factor is a deterministic class-level amplification factor in the terminal Wasserstein bound; it is not claimed to be dimension free or uniformly bounded over arbitrary neural architectures or parameter balls. Finally, the shorthand optimization scaling is conditional on the uniform lower bound and the other uniform empirical-constant bounds in Assumption 3.6.
The contribution of the theorem is an explicit reduction of terminal Wasserstein-2 error to these displayed approximation, statistical, optimization, and flow-stability quantities.
Remark 4.5 (High-probability optimization variant). Theorem 4.1 uses the optimization guarantee implied by the bounded conditional-variance assumption in Assumption 3.4. Accordingly, its conclusion holds with high probability over the finite dataset and in conditional expectation over the stochastic-gradient randomness.
A fully high-probability optimization guarantee would require additional explicit assumptions on the stochastic gradient noise, together with a separate martingale-concentration analysis of the resulting recursion. For example, one could impose a conditional Bernstein-type or conditionally sub-Gaussian martingale-difference assumption. We do not require such a strengthening here and therefore do not state a high-probability optimization rate in the main result.
The proof of Theorem 4.1 follows by combining the next three lemmas.
Lemma 4.6 (Approximation error). Under Assumption 3.2,
Proof. This is exactly Assumption 3.2. By the projection identity,
Therefore,
Lemma 4.7 (Statistical error under sub-exponential data). Suppose Assumption 3.1 holds, and suppose the bounded-parameter smooth neural velocity class has the uniform linear-growth and metric-entropy properties stated in Section 3.2. For R > 0, define
and
If
then, with probability at least over the draw of , we have
Choosing with sufficiently large makes the tail contribution lower order up to logarithmic factors. Thus,
up to logarithmic factors arising from the truncation radius and smooth-network entropy radius.
The proof of Lemma 4.7 is given in Appendix A. The proof uses endpoint truncation, sub-exponential tail control, and the metric-entropy/Rademacher uniform-convergence bound for the smooth-network truncated squared-loss class.
Lemma 4.8 (Empirical optimization error). Let
be an empirical risk minimizer. Let be obtained after projected stochastic-gradient updates on the fixed finite empirical objective:
Suppose Assumptions 3.3, 3.4, and 3.6 hold. In particular, the projected recursion guarantees , , by Lemma 3.5, and the clean recursion below uses the interior operating regime in Assumption 3.4. On the event , choose
Then for every .
Define . Then, conditional on , the empirical optimization error satisfies
where the bound follows from
Moreover, on , and hence
The proof of Lemma 4.8 is given in Appendix B. The proof uses the stochastic gradient mapping associated with the projected update and the empirical proximal-PL condition. Under the interior operating regime, the projection is inactive along the relevant stochastic and mean-gradient steps, and the resulting recursion reduces to
where
This is the same form as the unconstrained empirical PL-SGD recursion, but its validity here follows from the projected update, automatic containment, and the interior operating regime.
Proof sketch of Theorem 4.1. Let denote the event supplied by Lemma 4.7. By that lemma, . By Assumption 3.6, . Hence, by the union bound, .
Fix a dataset realization in . The error decomposition gives
The first term is bounded by Lemma 4.6, the second by Lemma 4.7, and the third in conditional expectation by Lemma 4.8. Taking conditional expectation with respect to the stochastic-gradient randomness yields
By Lemma 3.5, . The deterministic uniform stability inequality from Lemma D.7 may therefore be applied pointwise to . Taking conditional expectation and using Jensen's inequality gives the stated Wasserstein guarantees. The full proof is given in Appendix C.
Remark 4.9 (Pure population-oracle version). For comparison, suppose instead that the optimization algorithm has access to a population stochastic-gradient oracle and that the corresponding population objective satisfies suitable population proximal-PL, smoothness, and stochastic-gradient conditions. The finite-dataset statistical term is then absent. Under those distinct assumptions, the corresponding flow-stability argument gives
where is the optimization constant associated with the distinct population-oracle assumptions. This comparison highlights that the dataset-size scaling in the finite-dataset result arises from the statistical contribution at the squared-loss level.
Remark 4.10 (Dependence on dimension and architecture). The theorem should be interpreted for a prescribed bounded-parameter smooth neural velocity class. The ambient dimension enters through the parameter count , the smooth-network metric-entropy complexity , the truncation envelope , the tail and truncation constants, the flow-stability factor , the approximation error , and the uniform empirical optimization quantity .
5 Conclusion
We developed a finite-sample and finite-time analysis of flow matching when the velocity field is learned by stochastic-gradient training on a fixed empirical objective. Rather than assuming that the learning algorithm can access an exact empirical risk minimizer, we analyze the parameter obtained after a finite number of stochastic-gradient updates on a finite stored dataset.
At the population-loss level, the analysis uses a three-term algebraic decomposition. The excess flow-matching loss is bounded by an approximation contribution associated with the prescribed bounded-parameter smooth neural velocity class, a finite-dataset statistical contribution arising from replacing the population objective with its empirical counterpart, and an empirical optimization contribution arising from approximate minimization of the fixed empirical objective. The empirical minimizer appears only as a theoretical comparator and is not assumed to be available to the learning algorithm.
Because the source and target distributions are allowed to be unbounded, the statistical contribution is controlled through endpoint-magnitude truncation. More specifically, its bound consists of a truncated metric-entropy or Rademacher uniform-convergence term together with an explicit endpoint-tail remainder under the sub exponential endpoint assumption. Consequently, the final theorem displays approximation, finite-dataset statistical, endpoint tail, and empirical optimization contributions separately, while the tail term arises as part of the control of the statistical component.
Combining these ingredients with the path-consistent uniform flow-stability condition yields a Wasserstein-2 guarantee for the terminal law of the exact learned ODE flow. The guarantee holds with high probability over the sampled finite dataset and in conditional expectation over the stochastic-gradient randomness. It makes explicit that the dataset size controls the finite-dataset statistical contribution, whereas the optimization budget controls the finite-time empirical optimization contribution.
For a prescribed bounded-parameter smooth neural velocity class, and after displaying the approximation, tail, flow stability, smooth-network-complexity, and empirical-optimization quantities, the result yields the shorthand requirements
for obtaining Wasserstein-2 error of order . These rates should be interpreted only under the stated assumptions. In particular, the ambient dimension and network architecture enter through the parameterization of the neural class, the metric-entropy quantity, the truncation envelope, the approximation error, the flow-stability factor, and the empirical optimization constant. We do not claim dimension-free approximation or dimension-free flow-stability guarantees.
Several directions remain open. First, deriving explicit approximation results for marginal velocity fields under structural assumptions on the target distribution would clarify the dependence on dimension, regularity, and network size. Second, replacing the empirical proximal Polyak-Łojasiewicz condition, the interior operating regime, and the uniform-in- empirical-constant regularity condition with weaker or more directly verifiable optimization requirements would broaden the scope of the result. Third, additional martingale-tail assumptions could support a fully high-probability optimization analysis jointly over the dataset and stochastic-gradient randomness. Fourth, incorporating numerical ODE solver error into the main theorem would yield an end-to-end guarantee for practical sampling. Finally, extending the analysis beyond linear or rectified interpolation paths to more general conditional flow-matching, optimal-transport, and stochastic-interpolant constructions remains an important direction for future work.
References
Ahmad Ajalloeian and Sebastian U Stich. On the convergence of sgd with biased gradients. arXiv preprint arXiv:2008.00051, 2020.
Michael S. Albergo, Nicholas M. Boffi, and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. arXiv preprint arXiv:2303.08797, 2023.
J Benton, G Deligiannidis, and A Doucet. Error bounds for flow matching methods. Transactions on Machine Learning Research, 2024.
Léon Bottou and Olivier Bousquet. The tradeoffs of large scale learning. In Advances in Neural Information Processing Systems, volume 20, 2008.
Sitan Chen, Giannis Daras, and Alex Dimakis. Restoration-degradation beyond linear diffusions: A non-asymptotic analysis for ddim-type samplers. In International Conference on Machine Learning, pages 4462–4484. PMLR, 2023.
Hadi Daneshmand, Aurélien Lucchi, and Thomas Hofmann. Starting small – learning with adaptive sample sizes. In Proceedings of the 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 1463–1471, 2016.
Mudit Gaur, Vaneet Aggarwal, and Mridul Agarwal. On the global convergence of fitted q-iteration with two-layer neural network parametrization. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 11013–11049. PMLR, 23–29 Jul 2023a. URL https://proceedings.mlr.press/v202/gaur23a.html.
Mudit Gaur, Amrit Singh Bedi, Di Wang, and Vaneet Aggarwal. On the global convergence of natural actor-critic with two-layer neural network parametrization. arXiv preprint arXiv:2306.10486, 2023b.
Mudit Gaur, Amrit Bedi, Di Wang, and Vaneet Aggarwal. Closing the gap: Achieving global convergence (Last iterate) of actor-critic under Markovian sampling with neural network parametrization. In Proceedings of the 41st International Conference on Machine Learning, pages 15153–15179, 2024.
Mudit Gaur, Prashant Trivedi, Sasidhar Kunapuli, Amrit Singh Bedi, and Vaneet Aggarwal. Improved sample complexity of diffusion model training without empirical risk minimizer access. arXiv preprint arXiv:2505.18344, 2025.
Mudit Gaur, Prashant Trivedi, Sasidhar Kunapuli, Amrit Singh Bedi, and Vaneet Aggarwal. Improved sample complexity bounds for diffusion model training without empirical risk minimizer access. Transactions on Machine Learning Research, 2026. ISSN 2835-8856. URL https://openreview.net/forum?id=CFdNqqlqOv.
Saeed Ghadimi and Guanghui Lan. Stochastic first- and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013. doi: 10.1137/120880811.
Yunrui Guan, Krishnakumar Balasubramanian, and Shiqian Ma. Mirror flow matching with heavy-tailed priors for generative modeling on convex domains. arXiv preprint arXiv:2510.08929, 2025.
Shivam Gupta, Aditya Parulekar, Eric Price, and Zhiyang Xun. Improved sample complexity bounds for diffusion model training. In The Thirty-eighth Annual Conference on Neural Information Processing Systems. PMLR, 2024.
Hamed Karimi, Julie Nutini, and Mark Schmidt. Linear convergence of gradient and proximal-gradient methods under the polyak-lojasiewicz condition. arXiv preprint arXiv:1608.04636, 2016. URL https://arxiv.org/abs/1608.04636.
Anastasiia Koloskova, Sebastian U Stich, and Martin Jaggi. Sharper convergence guarantees for asynchronous sgd for distributed and federated learning. Advances in Neural Information Processing Systems, 35:17202–17215, 2022.
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=PqvMRDCJT9t.
Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=XVjTT1nw5z.
Hari Krishna Sahoo, Mudit Gaur, and Vaneet Aggarwal. Order-optimal sample complexity of rectified flows, 2026. URL https://arxiv.org/abs/2601.20250.
Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=PxTIG12RRHS.
Aadithya Srikanth, Mudit Gaur, and Vaneet Aggarwal. Discrete state diffusion models: A sample complexity perspective. In The 29th International Conference on Artificial Intelligence and Statistics, 2026a. URL https://openreview.net/forum?id=dTneiZmFre.
Aadithya Srikanth, Mudit Gaur, and Vaneet Aggarwal. Discrete state diffusion models: A sample complexity perspective. In The 29th International Conference on Artificial Intelligence and Statistics, 2026b. URL https://openreview.net/forum?id=dTneiZmFre.
Alexander Tong, Kilian Fatras, Nikolay Malkin, Guillaume Huguet, Yanlei Zhang, Jarrid Rector-Brooks, Guy Wolf, and Yoshua Bengio. Improving and generalizing flow-based generative models with minibatch optimal transport. arXiv preprint arXiv:2302.00482, 2023.
Roman Vershynin. High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge University Press, Cambridge, 2018. ISBN 978-1-108-41519-4. doi: 10.1017/9781108231596.
Martin J. Wainwright. High-Dimensional Statistics: A Non-Asymptotic Viewpoint. Number 48 in Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge University Press, Cambridge, 2019. ISBN 978-1-108-49802-9.
Zhengyu Zhou and Weiwei Liu. An error analysis of flow matching for deep generative modeling. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=vES22INUKm.
A Proof of Lemma 4.7
Proof. Let
For the linear interpolation path,
For every , define the single-sample flow-matching loss
Thus,
where
consists of independent copies of . We seek a high-probability bound on
The source and target distributions are not assumed to be compactly supported, so the loss need not be uniformly bounded on the full sample space. We therefore use endpoint truncation.
For , define the endpoint-truncation event
For the -th sample, write
On , the linear path satisfies
and
By the uniform linear-growth property of the bounded-parameter smooth neural velocity class from Lemma D.3, there exist constants
such that
for every
Hence, on ,
Therefore,
Define the truncated-loss envelope
Define the truncated loss
and the truncated squared-loss class
Every function in takes values in . Recall that is the raw metric-entropy radius of this class. Let us define define
By the metric-entropy/Rademacher uniform-convergence result in Lemma D.5, there exists a constant such that, for every
with probability at least
Set . Since
it follows that, with probability at least ,
It remains to control the contribution outside the endpoint-truncation event. Define
By the linear-growth property,
Since
we have
and
Thus, after increasing a constant if necessary, there exists such that
uniformly over . Moreover,
Using Assumption 3.1 and the tail-integration identity for nonnegative random variables, there exist constants such that
We next connect the truncated empirical loss to the original empirical loss. Define the all-sample truncation event
On
Consequently, on ,
By Assumption 3.1 and the union bound,
Therefore, if
then
On the intersection of the truncated uniform-convergence event and , for every ,
Taking the supremum over , we obtain
Multiplying by 2 and absorbing the factor into the constants, there exist constants
such that
The truncated uniform-convergence event fails in the set with probability at most , and fails with probability at most . Hence, by the union bound, the preceding display holds with probability at least . This proves the first claim.
Finally, choosing
satisfies the all-sample truncation requirement and makes
lower order up to logarithmic factors. Hence,
where the suppressed factors include the truncation-dependent envelope, the smooth-network entropy factors, and logarithmic terms. This completes the proof.
B Proof of Lemma 4.8
Proof. Let
We analyze projected stochastic-gradient descent on the fixed finite empirical objective
where
is held fixed throughout the optimization analysis. The empirical minimizer is used only as a theoretical comparator; the algorithm is not assumed to have access to it.
Conditioned on , the projected stochastic-gradient recursion is
where
By Lemma 3.5,
Moreover, by the interior-operating-regime clause in Assumption 3.4, the projection is inactive along the analyzed stochastic trajectory. Thus, almost surely conditional on ,
Since and is convex, the line segment joining and lies in . Hence the -smoothness inequality for applies along this segment.
Let
denote the filtration generated by the optimization process up to iteration k, conditionally on . By Assumption 3.4,
and
Thus, the stochastic gradient is conditionally unbiased for the empirical gradient, rather than for the population gradient.
For convenience, define the random empirical suboptimality
Because and
we have .
We first record the consequence of the empirical proximal-PL condition needed below. For every , the definition of the constrained gradient-mapping quantity gives
Therefore, Assumption 3.3 implies
In particular,
By -smoothness of
we have
Taking conditional expectation given
conditional unbiasedness gives
Moreover,
Consequently,
Since
we have
Therefore,
Define
Taking expectation over the optimization randomness conditional on , we obtain
We first establish the bound for arbitrary positive parameters , satisfying
Substitute
Then
The step-size conditions imply
Hence, for every
Define
and
We claim that
For
the claim follows from
Suppose the claim holds for some
and write
Since
the recursion and the induction hypothesis imply
Because
we have
and hence
It follows that
Since
we have
Thus,
This completes the induction.
Consequently,
Therefore,
where we may take
It remains to derive the deterministic uniform bound used in the main theorem. On the event from Assumption 3.6, choose
Then
and
Moreover,
and
Hence, on
where
Therefore, on
A high-probability analogue would require an additional explicit conditional tail assumption on the stochastic-gradient noise and a separate martingale-concentration analysis. Under the bounded conditional-variance assumption used here, the conditional expectation guarantee above is the asserted conclusion.
C Additional Details for Theorem 4.1
This section provides the detailed proof of Theorem 4.1. The theorem and its supporting lemmas are stated in the main text, so we do not restate them here. The proof combines the projection identity, the finite-dataset statistical bound from Lemma 4.7, the projected empirical optimization bound from Lemma 4.8, and the deterministic uniform flow-stability bound from Lemma D.7.
Proof of Theorem 4.1. Let
be an empirical risk minimizer, and let
be a population minimizer within the prescribed neural velocity class. Both parameters are theoretical comparators: the algorithm is only required to produce the finite-time projected stochastic-gradient iterate . By Lemma 3.5, .
For every realization of the stochastic-gradient randomness, we decompose the excess population loss as
Since
we have
Therefore,
Define
and
Then
By Lemma 4.6,
Fix and a truncation radius satisfying
Let
denote the statistical event from Lemma 4.7. On this event,
and
By Assumption 3.6, there is an event such that
and, on , the uniform empirical-constant bounds hold. In particular, Lemma 4.8 gives
By the union bound,
Fix a dataset realization in
Taking conditional expectation over the stochastic-gradient randomness in the error decomposition gives
Equivalently,
By the projection identity,
Hence, on
It remains to convert velocity-field error into terminal distributional error. By Assumption 3.7, the flow-stability constant
is deterministic and uniform over . In particular, Lemma D.7 gives, for every ,
Applying this inequality to
yields
Since is deterministic and independent of the stochastic-gradient randomness, taking conditional expectation gives
Finally, Jensen's inequality gives
Since
this proves all conclusions of Theorem 4.1.
Sample-complexity consequence. Choose
where
is sufficiently large that the truncation condition in Theorem 4.1 is satisfied. Then the tail term
is lower order up to logarithmic factors.
Suppose that the approximation and tail terms satisfy
It is then sufficient to impose
and
In particular, there exists a sufficiently large constant C > 0 such that it is sufficient to choose
and
The quantity is deterministic once the constants in Assumption 3.6 have been fixed. Thus, the displayed optimization-budget requirement is no longer conditional on uncontrolled dataset-specific constants. Rather, it holds on the event , which is already included in the theorem's probability statement.
When the approximation, tail, flow-stability, smooth-network-complexity, and uniform empirical-optimization quantities are treated as fixed or displayed separately, the shorthand scaling is
The latter shorthand is conditional on the uniform empirical-constant regularity in Assumption 3.6 and on the interior operating regime in Assumption 3.4.
Pure population-oracle comparison. For comparison, suppose instead that the algorithm has access to a population stochastic-gradient oracle and that the population objective satisfies corresponding population proximal-PL, smoothness, and stochastic-gradient conditions. The finite-dataset statistical term is then absent. Under these distinct assumptions, the corresponding flow-stability argument gives
where is the optimization constant associated with the distinct population-oracle assumptions. This comparison highlights that the finite-dataset dataset-size scaling arises from the statistical contribution at the squared-loss level.
D Supplementary Lemmas
In this appendix, we collect auxiliary facts used in the proof of the main theorem. These lemmas are stated for the revised flow-matching formulation based on the linear, or rectified, path
They provide the pathwise bounds, projection identity, smooth-network properties, metric-entropy control, tail bound, flow-stability argument, and numerical-discretization observation used throughout the paper.
Lemma D.1 (Boundedness of the linear interpolation path). Suppose that the source and target variables satisfy
Then, for every
Proof. For the linear path,
By convexity of the Euclidean norm,
Moreover,
so the triangle inequality gives
Lemma D.2 ( projection identity for flow matching). Let
where the expectation is over and . Define the marginal velocity field by
Then minimizes over all measurable deployable velocity fields
Moreover, for every candidate field
In particular, for the neural velocity field
Proof. For every measurable deployable field
write
Squaring both sides and taking expectation gives
The cross term is zero. Indeed, conditioning on
we obtain
Therefore,
This proves both the optimality of and the excess-risk identity.
Lemma D.3 (Uniform linear growth and parameter regularity of bounded smooth networks). Let
be a fully connected feedforward network with depth , hidden width , and parameters . Suppose that is nonempty, compact, and convex. Suppose that the activation function satisfies , , , . Then there exist finite constants
depending only on the architecture, parameter constraint, and activation constants, such that
for every
Moreover, for every fixed finite dataset
the empirical flow-matching loss
is twice continuously differentiable in . There exists a finite constant , depending on the fixed dataset, architecture, parameter constraint, and activation constants, such that
for every . Thus, for smooth activations, empirical smoothness is compatible with bounded-parameter finite-dataset training on the compact convex region . The projected recursion in Assumption 3.4 ensures that all optimization iterates remain in by Lemma 3.5. The empirical proximal Polyak–Lojasiewicz condition, the interior operating regime, and the uniform-in-N empirical-constant condition remain separate optimization assumptions.
Proof. Let
denote the network input. Since
Write the hidden-layer recursion as
where is applied coordinatewise. Since has bounded first derivative,
Therefore, for a vector v,
Because is compact and the network has finitely many layers and parameters, there exist finite constants
such that, for every layer and every ,
Hence, after adjusting constants to absorb the finite layer widths, there exist
such that
Iterating this recursion over the finitely many layers gives finite constants
such that
The final affine output layer is controlled by the same compact-parameter argument. Thus, after enlarging the constants if necessary,
The linear-growth conclusion follows by taking
For the parameter-regularity claim, fix
For every sample
the corresponding input
and target velocity
are fixed finite vectors. Because the activation is , the map
is twice continuously differentiable. Consequently,
is twice continuously differentiable, and hence so is .
Since is compact and
is continuous in , the quantity
is finite. Since is convex, the line segment joining any two points
remains in . Applying the fundamental theorem of calculus to the gradient along this segment yields
This proves the empirical smoothness compatibility claim.
Lemma D.4 (Boundedness of the truncated flow-matching loss). Suppose the endpoint-truncation event
holds. Then, for every ,
where
Proof. On , Lemma D.1 gives
By the smooth-network linear-growth bound in Lemma D.3.
Therefore,
Lemma D.5 (Metric-entropy uniform-convergence bound for the truncated loss class). Let be a class of real-valued functions satisfying for every , where . Let be independent samples, and suppose that, for some and some entropy radius , the class satisfies
Define
Then
and, with probability at least ,
where C > 0 is a universal constant.
In particular, consider the truncated flow-matching squared-loss class
where
and
For the i-th sample, write
For the bounded-parameter smooth-activation neural velocity class in Lemma D.3, there exists a finite constant
such that
for every . Consequently, there exists a finite raw entropy radius
depending only on the architecture, parameter constraint, activation derivative bounds, and truncation radius, such that
Define
and
Then, with probability at least
Proof. We first prove the generic statement. Let
Since
the assumed covering-number bound implies that there exists an net
with cardinality satisfying
For every , Hoeffding's inequality gives
Applying the union bound over shows that, with probability at least ,
Because
and
we have
Now fix an arbitrary , and let satisfy
Then
Since
this approximation term is bounded by a universal constant multiple of
Taking the supremum over proves the generic claim.
We next verify the entropy condition for the truncated smooth-network loss class. On , Lemma D.1 gives
By Lemma D.4.
Because the activation is smooth and the parameter region is compact, the map is continuously differentiable jointly over and the compact truncated input-target domain. Hence there exists a finite constant such that
for every . Since the indicator does not depend on , the same inequality holds for the truncated losses.
Because is compact in , there exists a finite constant such that, for every , the parameter region has an net with cardinality at most . Consequently, for every ,
For larger , a one-element cover suffices after increasing if necessary. Therefore, defining
we obtain
Finally, apply the generic result with
Then
and the claimed uniform-convergence bound follows.
Lemma D.6 (Tail control under sub-exponential endpoints). Suppose Assumption 3.1 holds and the neural velocity class satisfies the uniform linear-growth bound from Lemma D.3. Define
where
Then there exist constants
such that
Proof. By the uniform linear-growth property from Lemma D.3,
For the linear path,
so
Also,
Therefore, after increasing constants if necessary, there exists such that
uniformly over . Moreover,
Thus,
Let
By Assumption 3.1,
for every
Moreover,
For the quadratic contribution, the tail-integration identity gives
Using the sub-exponential tail bound and setting
we obtain
After absorbing problem-dependent constants into and, if necessary, decreasing the exponential rate to , this gives
Applying this bound for
and enlarging if necessary, proves the claim.
Lemma D.7 (Uniform flow stability by Gronwall). Let be the target marginal velocity field, and let be a class of learned velocity fields. Fix . Let and solve
Suppose Assumption 3.7 holds. Then, by its path-consistency clause,
and, in particular,
Moreover,
where
is the deterministic uniform flow-stability constant from Assumption 3.7. Equivalently,
Proof. Fix
and couple the learned and reference flows through the same initial condition
By the path-consistency clause in Assumption 3.7,
Consequently, the joint construction of
is a coupling of
Therefore,
Define
Then
For almost every , the spatial Lipschitz property of gives
Since
Gronwall's inequality yields
where the second inequality follows from
By the Cauchy–Schwarz inequality,
Taking expectation and combining the result with the coupling inequality for gives
Taking square roots proves the first stated inequality. The equivalent formulation follows from
Lemma D.8 (Numerical ODE discretization). Suppose the learned velocity field
satisfies the regularity assumptions required by a chosen ODE solver. Let denote the terminal law of the exact learned ODE, and let denote the terminal law obtained by a numerical solver with K steps. If the solver has distributional discretization error
then
Proof. This follows immediately from the triangle inequality for
Substituting the assumed discretization bound proves the result.
E Simulation Results
This section reports mechanism-oriented simulations for the finite-dataset flow-matching analysis. The experiments are designed to illustrate the distinct roles of the stored dataset size , which controls the statistical discrepancy between the population objective and the fixed empirical objective , and the optimization budget , which controls the extent to which stochastic-gradient training minimizes that empirical objective.
The simulations are not proofs of the theorem and should not be interpreted as empirical verification of the formal sample-complexity exponent or the high-probability statement over datasets. Rather, they provide controlled diagnostics of whether the mechanisms separated in the theoretical decomposition are visible in a two-dimensional example. All reported numerical values are means over five independent seeds, with standard errors reported after the symbol unless otherwise stated. The raw seed-level measurements are included in the supplementary material.
All experiments use the standard Gaussian source distribution
and an eight-component Gaussian-mixture target distribution . For each stored-dataset experiment and each seed, a finite dataset
is sampled once and reused during stochastic-gradient training. The interpolation path is
The learned velocity field is a multilayer perceptron . Training uses projected stochastic gradient descent with projection onto a global Euclidean parameter ball of radius 25. The observed parameter norms are approximately 11, well below the projection radius, so the projection does not appear to be active in these runs. Velocity loss is evaluated on independent validation samples unless otherwise stated. Terminal quality is measured using sliced Wasserstein distance, empirical , MMD, and scatter plots of samples generated by numerical integration of the learned ODE.
E.1 Endpoint Sanity Check
The endpoint sanity check verifies the probability-path convention used in the theory. If the variable used as the terminal endpoint has law , then the interpolation does not terminate at the target distribution. In contrast, when the terminal endpoint is sampled as , the path reaches the target endpoint by construction.



Figure 1: Endpoint sanity check. The incorrect endpoint construction remains close to the Gaussian source, whereas the corrected construction terminates at the target mixture by construction.
Three scatter plots compare target samples, an incorrect endpoint construction, and the corrected endpoint construction. The target and corrected endpoint panels show eight compact clusters arranged in a ring. The incorrect endpoint panel shows samples from a diffuse Gaussian source distribution instead of the target mixture.
The quantitative diagnostics agree with the visual comparison in Figure 1. The incorrect endpoint construction has sliced Wasserstein distance , MMD , and empirical distance from the target samples. The corrected construction has zero sample discrepancy in this diagnostic because it directly uses the target endpoint samples themselves. Thus, this experiment is retained as an implementation and notation sanity check, rather than as evidence for the learning or sample-complexity claims of the theorem.
E.2 Dataset-Size Scaling
The dataset-size experiment varies N while training each fixed empirical objective for T = 4000 projected-SGD updates. This diagnostic examines the finite-dataset component of the analysis: as the stored dataset changes, the empirical objective may provide a more or less accurate approximation to the population flow-matching objective.
The mean validation velocity losses are , , , , and for N = 256, 512, 1024, 2048, and 4096, respectively. Terminal sliced Wasserstein distance decreases from at N = 256 to at N = 4096, although the trend is not monotone at intermediate values. Thus the experiment shows a modest finite-dataset effect under this optimizer and training budget. This is consistent with the theorem's decomposition, which separates the finite-dataset contribution from optimization and approximation effects, but it does not by itself identify a sample-complexity exponent.

Figure 2: Dataset-size diagnostic. Points show seed means and error bars show standard errors over five seeds.
Two side-by-side line plots show validation velocity loss and terminal sliced Wasserstein distance as functions of stored dataset size. Both horizontal axes use a logarithmic scale. Validation loss remains close to 3 across all dataset sizes, with a small improvement at the largest sizes. Terminal sliced Wasserstein distance decreases overall from the smallest to the largest dataset size, but not monotonically. Error bars show standard errors across five seeds.
E.3 Optimization-Budget Scaling
The optimization-budget experiment fixes and varies the number of empirical projected-SGD updates . Since the exact empirical minimizer is unavailable, the smallest empirical loss observed along each seed's training trajectory is used only as a visualization proxy for
The empirical optimization proxy decreases from at T = 250 to 0 at T = 4000, where the proxy minimum is attained by construction. Validation velocity loss decreases from at T = 250 to at T = 4000. Thus additional optimization visibly improves both the empirical proxy and held-out loss, but held-out validation improves more slowly than the empirical proxy. This illustrates that reducing empirical optimization error alone need not eliminate finite-dataset statistical error, approximation error, or endpoint-tail effects.
The plotted proxy should not be interpreted as the exact empirical suboptimality appearing in Lemma 4.8. It is included only as a qualitative diagnostic for finite-time optimization of the stored empirical objective.
E.4 Joint Dataset-Size and Optimization-Budget Diagnostic
The joint diagnostic varies N and T simultaneously. The theorem separates a finite-dataset statistical contribution from a finite-time empirical optimization contribution. Accordingly, this diagnostic examines whether the stored dataset size and the training budget can have visibly different effects on held-out velocity loss.
The heatmap in Figure 4 shows a consistent improvement as the projected-SGD budget increases. At , validation loss decreases from at to at .

Figure 3: Optimization-budget diagnostic. Points show seed means and error bars show standard errors over five seeds.
Two side-by-side line plots show how performance changes as the number of projected-SGD updates increases. The left plot shows empirical loss above a proxy minimum on logarithmic horizontal and vertical axes; it decreases sharply toward zero as the update budget increases. The right plot shows validation velocity loss on a logarithmic horizontal axis; it decreases more gradually and begins to flatten at larger budgets.

Figure 4: Joint N-versus-T diagnostic for mean held-out velocity loss over five seeds. A heatmap shows validation velocity loss for three dataset sizes and three optimization budgets. Dataset size is on the vertical axis and optimization updates are on the horizontal axis. Brighter colors indicate larger validation loss and darker colors indicate smaller validation loss. For each dataset size, the cells become darker as the optimization budget increases from 500 to 4000 updates.
At , it decreases from to , and at , it decreases from to . Across this limited grid, increasing has a clearer effect than increasing . The diagnostic therefore supports the qualitative distinction between optimization budget and stored sample size, but it does not imply that either effect is monotone in general or that the asymptotic theorem's rates can be read from this small grid.
E.5 Finite-Dataset Training Versus One-Pass Training
The main theorem analyzes stochastic-gradient training on a fixed empirical objective . As an ablation, we compare this finite-dataset protocol with a one-pass population-style protocol in which each update uses freshly generated flow-matching samples. These procedures optimize different objectives, so this comparison is outside the formal scope of the finite-dataset theorem.

Figure 5: Finite-dataset training versus one-pass training. Points show seed means and error bars show standard errors over five seeds.
A line plot compares validation velocity loss for finite-dataset training and one-pass population training as the number of updates increases. Both curves decrease with more updates. The one-pass population curve is slightly below the finite-dataset curve at most budgets, and the two curves are close at the largest budget.
Both protocols improve with additional optimization. At , the finite-dataset validation loss is , while the one-pass validation loss is . This does not contradict the theorem: the one-pass method receives fresh samples at each update and therefore does not repeatedly optimize a single fixed empirical objective. The comparison illustrates why the finite-dataset analysis separately accounts for statistical error from the stored dataset and optimization error from approximately minimizing its empirical objective.
E.6 Coupling Choice in the Linear Path
The coupling experiment compares independent coupling and minibatch optimal-transport coupling for the same linear interpolation path. The relevant velocity-loss comparison evaluates each trained model on
| Coupling | Same-coupling loss | Independent loss | Sliced W | Empirical |
|---|---|---|---|---|
| Independent | ||||
| Minibatch OT |
Table 1: Coupling comparison metrics. The same-coupling validation loss is the appropriate objective-specific velocity-regression quantity. The independent-coupling loss for the OT model is reported only as a cross-objective diagnostic.
held-out validation data drawn from the same coupling used during training. For context, we also report independent-coupling validation loss for the OT-trained model, but this cross-coupling quantity is not the objective optimized by that model.



Figure 6: Coupling comparison for the linear path. The scatter panels show one representative seed; the table reports five-seed summaries.
Three side-by-side scatter plots compare target samples, generated samples from independent coupling, and generated samples from minibatch optimal-transport coupling. The target distribution has eight compact clusters arranged in a ring. The independent-coupling samples form a broad diffuse cloud. The optimal-transport-coupling samples are still diffuse, but are more concentrated near the target support.
The same-coupling validation loss is substantially smaller for minibatch OT coupling than for independent coupling, and the terminal sliced Wasserstein and empirical metrics are also improved on average. However, the two couplings define different regression problems, so their loss values should not be interpreted as a common-objective comparison. The high independent-coupling loss of the OT-trained model confirms that changing the coupling changes the learning problem itself. This supports treating as part of the probability-path specification rather than as a cosmetic implementation detail.
E.7 Assumption Diagnostics
These plots are not proofs of the empirical proximal Polyak-Łojasiewicz condition, the interior operating regime required for inactive projection, the uniform-in- empirical-constant condition, or a conditional stochastic-gradient variance bound. They are included only to assess whether the assumed optimization behavior is qualitatively plausible for the finite empirical objective in this controlled setting.
The PL-style diagnostic is noisy and should not be interpreted as empirical verification of gradient dominance. The longer-run empirical-loss baseline is not known to equal

Figure 7: Empirical optimization diagnostics. The PL-style plot pools seed-level trajectory points, while the variance plot reports seed means and standard errors.
Two diagnostic plots are shown side by side. The left plot is a log-log scatter plot of empirical excess-loss proxy against squared gradient norm, pooling trajectory points from five seeds. The points form a noisy cloud rather than a clean line. The right plot is a log-log line plot of gradient variance versus minibatch size. Gradient variance decreases sharply as minibatch size increases, and error bars show standard errors across five seeds.
which is why the empirical PL condition remains an explicit assumption in the theory. The final parameter norms reported in the experiment logs are approximately 11, well below the projection radius 25. This observation is consistent with, but does not by itself verify, the interior operating regime assumed in the analysis.
The gradient-variance diagnostic is more direct. The estimated gradient variance decreases from for single-sample gradients to for minibatches of size 256. This observed reduction is consistent with the finite-dataset stochastic-gradient oracle formulation and with the appearance of a conditional variance quantity in the empirical optimization analysis. It does not, by itself, establish the uniform conditional variance assumption required by Lemma 4.8.