betaFeedback

WorksMathematics

On the Stability and Convergence of Flow Map Training

Abstract

Flow maps are a recent method of probabilistic generation that amortize diffusion trajectories into one-step samplers, unlocking efficient generation. While progress has been made in improving their empirical performance, there is still a lack of understanding behind the mechanisms underlying their success. Specifically, many flow map learning methods employ stop gradient operators as a crucial part of their training target. Adaptive weighting also drastically improves the generation capabilities of flow maps. Although many interpretations have been proposed to support the inclusion of these heuristics, none have analyzed the impact of these assumptions on the training dynamics of flow maps themselves. In this work, we address this issue by providing grounded theory explaining why such tricks are required. Analyzing the functional gradient flow induced by the MeanFlow and Lagrangian losses, we show their convergence to the true flow map, settling the validity of these objectives. For finite updates, we highlight a severe roadblock to the usage of these losses in practice: the possible unboundedness of the update. Adaptive normalization not only provides bounded updates, but, combined with a specific weighting, additionally provides convergence guarantees towards a neighborhood of the solution. On synthetic data, we show that our functional gradient flow analysis exactly describes the true training dynamics for flow maps. Experiments on standard image datasets demonstrate that a proper reweighting scheme is essential for strong empirical performance, which is only achieved for a specific range of reweighting strengths.

Introduction

Modern deep generative models, such as diffusion [34, 36] (Ho et al. 2020) and flow matching models [23, 1, 24], can now generate realistic data across a wide range of modalities. Diffusion and flow matching methods are able to generate samples that are indistinguishable from human-generated content, including images [3] (Stability AI 2023; Midjourney 2023), audio [6], and video [40, 7]. Diffusion and flow matching have also recently shown great performance on text, either with discrete or continuous approaches [32, 15, 31, 22, 9].

Once trained, sampling for flow matching models is typically done by numerically solving an ordinary differential equation, i.e., integrating the learned velocity over hundreds of steps, hence requiring hundreds of neural network evaluations. This high computational cost at inference has motivated the development of few-step generative models, either by straightening the flow [24, 10], or via distribution matching approaches ([41, 43]). Current promising one-step generative modeling approaches rely on distilling the inference trajectories and include techniques such as consistency models ([37]), which learn to directly predict the trajectory endpoint of the flow matching ordinary differential equation from any point along the trajectory. In the same spirit, flow maps ([12, 13, 4] (Lu et al. 2026)) learn the solution of the ordinary differential equation between any two times.

Function-space convergence, MeanFlow and Lagrangian flow illustrations

Figure 1. (Left) Illustration of the main results of the paper: i) gradient flow on the MeanFlow and Lagrangian objectives provably converges, ii) gradient descent can diverge on both objectives, and iii) normalized gradient descent on MeanFlow provably converges toward a neighborhood of the solution. (Right) The ground-truth velocity field v(⋅,t)v(\cdot,t) is chosen to be constant in time. Its associated flow map is Φ⋆(⋅,s,t)\Phi^\star(\cdot,s,t) for fixed s,ts,t. The black curves show the trajectories (Φ⋆(x,s,r))s≤r≤t(\Phi^\star(x,s,r))_{s\le r\le t} for several inputs xx (circles). The colored curves show the composite path that the input points (circles) traverse to reach the endpoint Φτ(x,s,t)\Phi_\tau(x,s,t) (diamonds): for MeanFlow, xx follows Φ⋆\Phi^\star until tτt_\tau and then Φ0\Phi_0; for Lagrangian, it follows Φ0\Phi_0 until sτs_\tau and then Φ⋆\Phi^\star.

A variety of approaches for training flow maps have been proposed ([12, 13, 4, 44, 14, 11, 42]), due to the abundance of possible training objectives. To stabilize training, several tricks are employed, including stop gradient operators, self-distillation from specialized velocity heads, loss reweighting, gradient normalization, and sampling time pairs from hand-picked distributions ([12, 13, 30] (Lu et al. 2026)). There is little understanding behind why certain losses work in practice, and whether the tricks used for training are theoretically sound. In particular, the inclusion of stop gradient operators has been found to substantially improve flow map training ([12]); however, it alters gradient directions and has yet to be shown to recover the true flow map.

Contributions. In this paper, we aim to understand the impact of the stop gradient operator and of adaptive normalization on the learning dynamics of flow maps, and to show how they provide tangible benefits to the convergence and stability of flow map training. We show the following:

  1. Functional convergence of flow maps. We show that, in a specific functional setting, the gradient flow of the MeanFlow and Lagrangian objectives converges to the desired flow map (Theorem 1). Importantly, the convergence results rely on the careful stop gradient placement in the MeanFlow and Lagrangian losses.

  2. Adaptive normalization. We show that a fundamental limitation of gradient descent is the unboundedness of the update (Proposition 1), which may amplify arbitrarily small errors. We demonstrate that, crucially, adaptive normalization of the loss, an empirically effective stabilization tool ([12]), counters this blow-up by bounding the update, and provides convergence guarantees under a specific weighting (Theorem 4).

  3. Empirical validation. In synthetic experiments where the true flow map can be calculated, we show that at intermediate training times, the learned maps obtained through training under the MeanFlow and Lagrangian objectives equal those predicted by our theory. Further experiments on CIFAR-10 and FFHQ 64×6464 \times64 show that reweighting using adaptive normalization with weights that guarantee stable updates results in learned flow maps with lower FID.

Organization. § 2 provides reminders on flow matching and flow map training objectives. § 3 includes our main results: we analyze the gradient flow and gradient descent dynamics of flow map training from a functional perspective. § 4 provides a summary of related work, and § 5 provides experiments on synthetic and image datasets that confirm the theory developed in § 3.

Background and preliminaries

Flow matching. Let p0p_0 be the source distribution, typically a Gaussian N(0,I)\mathcal{N}(0,I), and pdatap_{\mathrm{data}} the target data distribution. The goal of flow matching ([1, 24, 23]) is to find a velocity field v:Rd×[0,1]→Rdv : \mathbb{R}^{d} \times[0,1] \to\mathbb{R}^{d}, such that, if we solve the following ordinary differential equation on [0,1][0,1]:

{x˙(t)=v(x(t),t),x(0)=x0∈Rd,(1)\begin{cases} \dot{x}(t) = v(x(t),t),\\ x(0) = x_0 \in\mathbb{R}^{d}, \tag*{(1)} \end{cases}

then x(1)∼pdatax(1) \sim p_{\mathrm{data}} for x0∼p0x_0 \sim p_0. We denote by psp_s the distribution of x(s)x(s) if x0∼p0x_0 \sim p_0; in particular, p1=pdatap_1 = p_{\mathrm{data}}. If we know the velocity field vv, new samples can then be generated by sampling x0x_0 from p0p_0, solving the ordinary differential equation, and using x(1)x(1) as the generated point. Conditional flow matching learns a velocity field by minimizing the following loss:

LCFM(θ)=Ex0∼p0,x1∼pdata,t∼U(0,1)∥vθ((1−t)x0+tx1,t)−(x1−x0)∥2.(2)\mathcal{L}^{\mathrm{CFM}}(\theta) = \mathbb{E}_{x_0\sim p_0,x_1\sim p_{\mathrm{data}},t\sim U(0,1)}\left\|v_\theta((1-t)x_0+tx_1,t)-(x_1-x_0)\right\|^2. \tag*{(2)}

Numerical integration schemes typically rely on a discretization of the time interval. Achieving accurate samples generally requires a fine discretization, often corresponding to hundreds of function evaluations of the neural network. This can lead to prohibitive computational costs, particularly for high-dimensional data such as high-resolution images. Several approaches have therefore been proposed to reduce the computational cost of sampling ([24, 28, 39]). Below, we briefly review flow maps as an alternative approach to improving sampling efficiency.

Flow maps. Instead of learning the velocity field vv, one-step techniques aim to directly learn the flow, i.e., the solution of the ordinary differential equation (Equation (1)). Flow map techniques learn the flow Φ(xs,s,t)\Phi(x_s,s,t), which maps any starting point xsx_s at time ss to its corresponding solution at a later time t>st>s. More precisely, for a given velocity vv, the flow map Φ⋆(xs,s,t)\Phi^{\star}(x_s,s,t) is defined as the solution at time tt of the following ordinary differential equation, initialized at xsx_s at time ss:

Φ⋆(xs,s,t)\Phi^{\star}(x_s,s,t) is the solution of the following ODE{x˙(t)=v(x(t),t)x(s)=xs∈Rd\begin{cases}\dot{x}(t)=v(x(t),t)\\x(s)=x_s\in\mathbb{R}^{d}\end{cases}at time tt.

Table 3.

The velocity vv can be either a pre-trained network vθv_\theta or the exact closed-form v⋆v^{\star} of Equation (2) ([2]). Once such a flow map is learned, one can sample from pdatap_{\mathrm{data}} by sampling x0∼p0x_0\sim p_0 and then computing Φ(x0,0,1)\Phi(x_0,0,1), requiring only a single neural network evaluation.

Learning flow maps. One way to learn flow maps is to find a fixed-point equation that is satisfied by the optimal flow map defined in Equation (3). This can be done by differentiating the definition of the flow map (Equation (3)) with respect to ss: this yields the Eulerian identity ([4 Prop. 3.6])

∂sΦ⋆(x,s,t)+∇xΦ⋆(x,s,t)v(x,s)=0.(3)\partial_s\Phi^{\star}(x,s,t)+\nabla_x\Phi^{\star}(x,s,t)v(x,s)=0. \tag*{(3)}

Associated to each flow map Φ\Phi is the average velocity uu satisfying Φ(x,s,t)=x+(t−s)u(x,s,t)\Phi(x,s,t)=x+(t-s)u(x,s,t). The parametrizations are equivalent in theory, but in practice the average velocity parametrization ensures Φ(x,s,s)=x\Phi(x,s,s)=x while learning. The popular MeanFlow objective ([12]) can be seen as a post gradient version of the average velocity parametrization substituted into the Eulerian identity (Equation (3)):

LMF(u)=12Ex,s,t∥u(x,s,t)−sg⁡(utgtMF(x,s,t))∥2,utgtMF(x,s,t)=v(x,s)+(t−s)(∇xu(x,s,t)v(x,s)+∂∂su(x,s,t))(MeanFlow).(4)\begin{aligned} \mathcal{L}^{\mathrm{MF}}(u) &= \frac{1}{2}\mathbb{E}_{x,s,t}\left\|u(x,s,t)-\operatorname{sg}\left(u^{\mathrm{MF}}_{\mathrm{tgt}}(x,s,t)\right)\right\|^2,\\ u^{\mathrm{MF}}_{\mathrm{tgt}}(x,s,t) &= v(x,s)+(t-s)\left(\nabla_xu(x,s,t)v(x,s)+\frac{\partial}{\partial s}u(x,s,t)\right)\quad\text{(MeanFlow)}. \tag*{(4)} \end{aligned}

Here, sg denotes the stop gradient operator: if the gradient of the loss LMF\mathcal{L}^{\mathrm{MF}} is taken with respect to the average velocity uu or parameters that control uu, the terms within the sg function have their gradient artificially set to 0.

Differentiating the definition of the flow map (Equation (3)) with respect to tt instead yields the Lagrangian identity [4 Prop. 3.5]

∂tΦ⋆(x,s,t)=v(Φ⋆(x,s,t),t).(5)\partial_t\Phi^\star(x,s,t)=v(\Phi^\star(x,s,t),t). \tag*{(5)}

The same parametrization Φ(x,s,t)=x+(t−s)u(x,s,t)\Phi(x,s,t)=x+(t-s)u(x,s,t) with the Lagrangian identity leads to the Lagrangian objective. We show in Section B.5 that this recovers the AYF-LMD objective from Sabour et al. [30], up to reweighting:

LL(u)=12Ex,s,t[∥u(x,s,t)−sg⁡(utgtL(x,s,t))∥2],\mathcal{L}^{\mathrm{L}}(u)=\frac{1}{2}\mathbb{E}_{x,s,t}\left[\left\|u(x,s,t)-\operatorname{sg}(u_{\mathrm{tgt}}^{\mathrm{L}}(x,s,t))\right\|^2\right],
utgtL(x,s,t)=v(x+(t−s)u(x,s,t),t)−(t−s)∂u∂t(x,s,t)(Lagrangian).(6)u_{\mathrm{tgt}}^{\mathrm{L}}(x,s,t)=v(x+(t-s)u(x,s,t),t)-(t-s)\frac{\partial u}{\partial t}(x,s,t)\quad\text{(Lagrangian)}. \tag*{(6)}

Comments on Equations (4) and (6). Such stop gradient-based losses can be motivated in several ways. Computationally, since all partial derivatives of the network are contained within the stop gradient, this removes the need for double backpropagation. Theoretically, a minimizer of L\mathcal{L} is necessarily a flow map, since L≥0\mathcal{L}\geq0 with equality if and only if the Eulerian or Lagrangian identity holds. However, although a zero training loss implies being a flow map, the stop gradient operator might prevent optimization from necessarily decreasing the loss L\mathcal{L}: in practice, the MeanFlow loss has been shown not to converge to zero over iterations [13]. Furthermore, Goldstein et al. [14] theoretically showed that the model update induced by the MeanFlow loss cannot be the gradient of any scalar loss.

In conjunction with the concurrent work of Shen et al. [33], thoroughly discussed in § 4, this work provides the first (functional) convergence result of the flow map training dynamics for the MeanFlow and Lagrangian objectives.

Theoretical analysis of functional flow maps

We now present our main theoretical results and rigorously analyze the training dynamics of the MeanFlow and the Lagrangian methods. The main tools required to perform functional gradient descent are introduced in § 3.1. § 3.2 shows our main convergence results: the MeanFlow and Lagrangian gradient flow training dynamics converge towards the true flow map. This uncovers the non-obvious result: regressing against the stop gradient target not only yields practical benefits, but provably recovers the true flow map. In § 3.3, we analyze how, under gradient descent, MeanFlow and Lagrangian training can fail to recover the true flow map due to the divergence of iterates, and how a specific range of adaptive normalization strengths prevents such a failure.

Setting

Specific inner product choice. We consider losses of the form of Equation (4) and Equation (6). The choice of how to sample xx, ss and tt induces a density ρ\rho on Rd+2\mathbb{R}^{d+2}. For example, choosing (s,t)(s,t) uniformly from the triangle Δ={0≤s≤t≤1}\Delta=\{0\leq s\leq t\leq1\} and sampling xx from the interpolant distribution at time ss yields ρ(x,s,t)=2ps(x)\rho(x,s,t)=2p_s(x). With this notation, we can write the losses as

L(u)=∫x,s,t12∥u(x,s,t)−sg⁡(utgt(x,s,t))∥2ρ(x,s,t) dx ds dt.(7)\mathcal{L}(u)=\int_{x,s,t}\frac{1}{2}\left\|u(x,s,t)-\operatorname{sg}(u_{\mathrm{tgt}}(x,s,t))\right\|^2\rho(x,s,t)\,\mathrm{d}x\,\mathrm{d}s\,\mathrm{d}t. \tag*{(7)}

with utgtu_{\mathrm{tgt}} either the MeanFlow target (Equation (4)) or the Lagrangian target (Equation (6)). As the input space of L\mathcal{L} is infinite-dimensional, computing the gradient of L\mathcal{L} requires the choice of an inner product on the functional space. We use the notion of Fréchet derivatives (see Section A.1) with the L2(Rd×Δ)L^2(\mathbb{R}^d\times\Delta) inner product. Under this choice of inner product, one can compute the gradient of the loss in Equation (7) to be ∇uL(u)=ρ(u−utgt)\nabla_u\mathcal{L}(u)=\rho(u-u_{\mathrm{tgt}}).

Exact gradient (no stochasticity). For most machine learning applications, computing the true deterministic gradient is too expensive, and one has to resort to stochastic gradient algorithms. To simplify our analysis, we disregard the potential effects of stochasticity on the optimization dynamics, and assume access to the true gradients ∇uLMF\nabla_u\mathcal{L}^{\mathrm{MF}} and ∇uLL\nabla_u\mathcal{L}^{\mathrm{L}}.

Gradient flow. For a loss L\mathcal{L} and a fixed step size η>0\eta> 0, the gradient descent updates (uk)(u_k) write

1η(uk+1−uk)=−∇uL(uk).(8)\frac{1}{\eta}(u_{k+1}-u_k)=-\nabla_u\mathcal{L}(u_k). \tag*{(8)}

Gradient flow is the continuous-time limit of gradient descent as the step size η→0\eta\to0, where instead of taking discrete steps, we continuously follow the negative gradient −∇uL-\nabla_u\mathcal{L}. In terms of the optimization time τ\tau, the continuous analogue of the number of steps (τ=ηk)(\tau=\eta k), the gradient flow dynamics satisfy

∂τuτ=−∇uL(uτ).(9)\partial_\tau u_\tau=-\nabla_u\mathcal{L}(u_\tau). \tag*{(9)}

The gradient flow setting provides tractable analysis by avoiding finite step size issues, while remaining a relevant model for practical optimization.

Convergence results of the gradient flow dynamics

We first show that the flow-map training dynamics Φτ\Phi_\tau, induced by gradient flow (Equation (9)) with the MeanFlow and Lagrangian objectives, converge to Φ∗\Phi^*. Equipped with our functional inner product, the functional gradients of the objectives in Equations (4) and (6) write

∇uLMF(u)(x,s,t)=ρ(x,s,t)(u(x,s,t)−v(x,s)−(t−s)((∇xu)v(x,s)+∂u∂s)).(10)\nabla_u\mathcal{L}^{\mathrm{MF}}(u)(x,s,t)=\rho(x,s,t)\left(u(x,s,t)-v(x,s)-(t-s)\left((\nabla_xu)v(x,s)+\frac{\partial u}{\partial s}\right)\right). \tag*{(10)}
∇uLL(u)(x,s,t)=ρ(x,s,t)(u(x,s,t)−v(x+(t−s)u(x,s,t),t)+(t−s)∂u∂t).(11)\nabla_u\mathcal{L}^{\mathrm{L}}(u)(x,s,t)=\rho(x,s,t)\left(u(x,s,t)-v(x+(t-s)u(x,s,t),t)+(t-s)\frac{\partial u}{\partial t}\right). \tag*{(11)}

We now solve the gradient flow (Equation (9)) that arises from these values of ∇uL\nabla_u\mathcal{L}. We equip uu with another variable τ\tau, where uτu_\tau denotes the trained average velocity at optimization time τ\tau. Our main result Theorem 1 requires standard regularity assumptions on the velocity vv and the sampling density ρ\rho.

Assumption 1 (Regularity of the velocity vv and the sampling density ρ\rho). We assume that the velocity v(x,s)v(x,s) is locally Lipschitz in both xx and ss. We assume that the sampling density ρ(x,s,t)\rho(x,s,t) is locally Lipschitz in xx, ss and tt for all (x,s,t)∈Rd×Δ(x,s,t) \in\mathbb{R}^d \times\Delta, and ρ(x,s,t)>0\rho(x,s,t)>0 everywhere.

We also assume some regularity on the initial average velocity u0u_0 for the gradient flow dynamics.

Assumption 2 (Regularity of the average velocity initialization u0u_0). The average velocity initialization u0u_0 is C1C^1 on the interior of Rd×Δ\mathbb{R}^d \times\Delta, and continuous at the boundary.

Under these assumptions, we obtain one of our main results: flow map pointwise convergence.

Theorem 1. Assume the velocity and the sampling density satisfy Assumption 1, and suppose the initial average velocity u0u_0 satisfies Assumption 2. If the average velocity uτu_\tau satisfies the functional gradient flow Equation (9), then its associated flow map Φτ(x,s,t):=x+(t−s)uτ(x,s,t)\Phi_\tau(x,s,t) := x+(t-s)u_\tau(x,s,t) has a closed-form solution for the MeanFlow and Lagrangian objectives

ΦτMF(x,s,t)=Φ0(Φ∗(x,s,ττ),ττ,t),if L=LMF(MeanFlow),(12)\Phi_\tau^{\mathrm{MF}}(x,s,t)=\Phi_0(\Phi^*(x,s,\tau_\tau),\tau_\tau,t),\qquad\text{if }\mathcal{L}=\mathcal{L}^{\mathrm{MF}}\quad\text{(MeanFlow)}, \tag*{(12)}
ΦτL(x,s,t)=Φ∗(Φ0(x,s,στ),στ,t),if L=LL(Lagrangian).(13)\Phi_\tau^{\mathrm{L}}(x,s,t)=\Phi^*(\Phi_0(x,s,\sigma_\tau),\sigma_\tau,t),\qquad\text{if }\mathcal{L}=\mathcal{L}^{\mathrm{L}}\quad\text{(Lagrangian)}. \tag*{(13)}

where Φ0=x+(t−s)u0\Phi_0=x+(t-s)u_0 and ττ\tau_\tau (resp. στ\sigma_\tau) is an increasing (resp. decreasing) function in τ\tau with τ0=s\tau_0=s, ττ→t\tau_\tau\to t as τ→∞\tau\to\infty (resp. σ0=t\sigma_0=t, στ→s\sigma_\tau\to s), whose speed depends on ρ\rho. Hence, Φτ\Phi_\tau converges pointwise to the true flow map as τ→∞\tau\to\infty under LMF\mathcal{L}^{\mathrm{MF}}. If Φ∗\Phi^* is also continuous in (x,s)(x,s), the same holds for LL\mathcal{L}^{\mathrm{L}}.

The proof can be found in Section B.1. For the MeanFlow objective, the key idea is that the PDE induced by the MeanFlow target is a linear PDE, hence it can be solved by the method of characteristics. Under suitable conditions, the characteristics trace back to the initial conditions, and the speed at which the characteristics are traversed is given by our weighting ρ\rho. For the Lagrangian objective, although the PDE is now non-linear as uu appears in the velocity in Equation (11), the same method of characteristics can be used to show convergence.

The closed form in Theorem 1 also provides insights into how training under the MeanFlow loss structurally modifies the learned map: as training progresses, the MeanFlow map learns to transport samples using the true flow to increasingly later times tτt_{\tau}, and the initialization Φ0\Phi_0 estimates the remaining jump to the time tt. On the other hand, under the Lagrangian objective, training teaches the flow map to transport samples from increasingly earlier initial times sτs_{\tau}, with the initial transport up to time sτs_{\tau} given by our initialization Φ0\Phi_0. Both objectives learn the flow map, but by replacing the initialization with the true flow map from opposing directions.

Rates of convergence. Using the convergence results of Theorem 1, we can derive convergence rates for the learned maps in the L∞L^{\infty} (Theorem 2) and L2L^2-norm (Theorem 3).

Theorem 2. Assume Assumptions 1 and 2 hold. In addition, assume ρ(x,s,t)≥ρmin⁡>0\rho(x,s,t) \ge\rho_{\min} > 0 and ∥u0∥∞,∥v∥∞≤M\lVert u_0\rVert_{\infty}, \lVert v\rVert_{\infty} \le M. Then the MeanFlow closed-form satisfies

∥ΦτMF(x,s,t)−Φ⋆(x,s,t)∥∞≤2Me−ρmin⁡τ.(14)\lVert\Phi_{\tau}^{\mathrm{MF}}(x,s,t)-\Phi^{\star}(x,s,t)\rVert_{\infty} \le2Me^{-\rho_{\min}\tau}. \tag*{(14)}

In addition, if vv is uniformly LL-Lipschitz for all tt, then the Lagrangian closed-form satisfies

∥ΦτL(x,s,t)−Φ⋆(x,s,t)∥∞≤2MeLτe−ρmin⁡τ.(15)\lVert\Phi_{\tau}^{\mathrm{L}}(x,s,t)-\Phi^{\star}(x,s,t)\rVert_{\infty} \le2Me^{L\tau}e^{-\rho_{\min}\tau}. \tag*{(15)}

The proof of Theorem 2 and examples showing these bounds are tight (up to constants) can be found in Section B.2. The lower bound on ρ\rho is a mild assumption; it holds over compact domains when ρ\rho is positive.

Theorem 3. Theorem 3 formulates convergence rates with respect to the L2(ps/ρ)L^2(p_s/\rho) norm (with the abuse of notation that psp_s is a function of x,s,tx,s,t): for a function f:Rd×Δ→Rdf:\mathbb{R}^d \times\Delta\to\mathbb{R}^d, its norm L2(g)L^2(g) with respect to a function g:Rd×Δ→R≥0g:\mathbb{R}^d \times\Delta\to\mathbb{R}_{\ge0} is given by

∥f∥L2(g)2=∫Rd×Δg(x,s,t)∥f(x,s,t)∥2 dx ds dt.(16)\lVert f\rVert_{L^2(g)}^2 = \int_{\mathbb{R}^d \times\Delta} g(x,s,t)\lVert f(x,s,t)\rVert^2 \, dx\,ds\,dt. \tag*{(16)}

The complementary convergence results (Theorem 3) in the ∥⋅∥L2\lVert\cdot\rVert_{L^2}-norm require additional integrability conditions on the displacement of the average velocity solution uτu_{\tau} of the gradient flow dynamics Equation (9) versus the ground truth average velocity u⋆(x,s,t)=(Φ⋆(x,s,t)−x)/(t−s)u^{\star}(x,s,t)=(\Phi^{\star}(x,s,t)-x)/(t-s).

Assumption 3 (Integrability of the gradient flow average velocities uτu_{\tau}). Suppose uτ−u⋆∈C1u_{\tau}-u^{\star}\in C^1 on the interior of Rd×Δ\mathbb{R}^d\times\Delta and ps∥uτ−u⋆∥2+ps(t−s)∣(v⋅∇x+∂s)∥uτ−u⋆∥2∣p_s\lVert u_{\tau}-u^{\star}\rVert^2+p_s(t-s)\lvert(v\cdot\nabla_x+\partial_s)\lVert u_{\tau}-u^{\star}\rVert^2\rvert is dominated by an integrable function independent of τ\tau for τ∈[0,T]\tau\in[0,T], for all T<∞T<\infty.

Under the norm defined in Equation (16) and Assumption 3, we show convergence of the average velocity solution of the gradient flow uτu_{\tau} to the ground-truth average velocity u⋆(x,s,t)=(Φ⋆(x,s,t)−x)/(t−s)u^{\star}(x,s,t)=(\Phi^{\star}(x,s,t)-x)/(t-s). The proof of Theorem 3 can be found in Section B.2.

Theorem 3. Assume Assumptions 1 to 3 hold, and ρ(x,s,t)≥ρmin⁡>0\rho(x,s,t)\ge\rho_{\min}>0. If ∥u0MF−u⋆∥L2(ps/ρ)2<∞\lVert u_0^{\mathrm{MF}}-u^{\star}\rVert^2_{L^2(p_s/\rho)}<\infty then the MeanFlow trained average velocity uτMFu_{\tau}^{\mathrm{MF}} satisfies

∥uτMF−u⋆∥L2(ps/ρ)2≤e−ρmin⁡τ∥u0MF−u⋆∥L2(ps/ρ)2.(17)\lVert u_{\tau}^{\mathrm{MF}}-u^{\star}\rVert^2_{L^2(p_s/\rho)} \le e^{-\rho_{\min}\tau}\lVert u_0^{\mathrm{MF}}-u^{\star}\rVert^2_{L^2(p_s/\rho)}. \tag*{(17)}

hence, the average learned velocity uτMFu_{\tau}^{\mathrm{MF}} converges to u⋆u^{\star} with respect to the L2(ps/ρ)L^2(p_s/\rho)-norm.

Again the assumption ∥u0MF−u⋆∥L2(ps/ρ)2<∞\lVert u_0^{\mathrm{MF}}-u^{\star}\rVert^2_{L^2(p_s/\rho)}<\infty is mild as it is true on compact domains when ρ>0\rho>0. As stated in § 2, the MeanFlow objective crucially relies on the stop gradient operator, which alters the gradient direction. Specifically, the stop gradient may prevent the dynamics Φτ\Phi_{\tau} from converging toward the true flow map Φ⋆\Phi^{\star}. However, somewhat remarkably, Theorem 3 shows that the update direction induced by the MeanFlow loss implicitly leads us closer to the true flow map anyway: ΦτMF→Φ⋆\Phi_{\tau}^{\mathrm{MF}}\to\Phi^{\star}.

Instability and normalization of gradient descent

In practice, we cannot truly follow the gradient flow (Equation (9)). Instead, we may utilize gradient descent-like algorithms: a learning rate η≪1\eta\ll1 is chosen, and a gradient step is taken with step size η\eta

uk+1=uk−η∇uL(uk),(18)u_{k+1}=u_k-\eta\nabla_u\mathcal{L}(u_k), \tag*{(18)}

where L=LMF\mathcal{L} = \mathcal{L}^{\mathrm{MF}} or LL\mathcal{L}^{\mathrm{L}}. In contrast to the gradient flow results, we can show that gradient descent is not guaranteed to converge, even for the trivial velocity v=0\mathbf{v} = 0. The idea is that the differential operators present in both ∇uLMF\nabla_u\mathcal{L}^{\mathrm{MF}} and ∇uLL\nabla_u\mathcal{L}^{\mathrm{L}} are unbounded and can amplify errors. One can exhibit initial velocities u0u_0 such that gradient descent diverges when applied with the MeanFlow and Lagrangian objectives (see Section B.4 for the proof of Proposition 1 and details of the counterexample).

Proposition 1. For every η>0\eta> 0, ϵ>0\epsilon> 0, and ρ∈C∞\rho\in C^\infty, there exists u0u_0 with initial error u0−u⋆∈L2(ρ)∩Cc∞u_0 - u^\star\in L^2(\rho) \cap C^\infty_c and ∥u0−u⋆∥∞≤ϵ\lVert u_0 - u^\star\rVert_\infty\le\epsilon, but whose iterates under Equation (18) diverge for L=LMF\mathcal{L} = \mathcal{L}^{\mathrm{MF}}, or for L=LL\mathcal{L} = \mathcal{L}^{\mathrm{L}} with v=0\mathbf{v} = 0.

However, if we adapt our step size according to the magnitude of the update, we can avoid a blow-up. Since the residual uk−utgt,ku_k - u_{\mathrm{tgt},k} can become arbitrarily large, we consider an update of the form

uk+1=uk−ηρrk(∥rk∥L2(ρ)2+c)p,withrk:=uk−utgt,k,(19)u_{k+1} = u_k - \eta\rho\frac{r_k}{\left(\lVert r_k\rVert_{L^2(\rho)}^2 + c\right)^p}, \qquad\text{with}\quad r_k := u_k - u_{\mathrm{tgt},k}, \tag*{(19)}

for some small fixed c>0c > 0, and a choice of normalization weighting pp. We now show that choosing p≥0.5p \ge0.5 enables control over the update magnitude.

Theorem 4. Assume that the velocity v\mathbf{v}, the density ρ\rho and u0u_0 fulfill Assumptions 1 and 2. In addition, assume that the iterates of gradient descent satisfy the discrete equivalent of Assumption 3, and that psp_s is bounded above: ps(x)≤pmax⁡<∞p_s(x) \le p_{\max} < \infty, ρ\rho is bounded below: ρ(x,s,t)≥ρmin⁡>0\rho(x,s,t) \ge\rho_{\min} > 0 and ∥u0−u⋆∥L2(ps/ρ)<∞\lVert u_0 - u^\star\rVert_{L^2(p_s/\rho)} < \infty. Consider the update scheme given in Equation (19).

  • For p≥0.5p \ge0.5, the updates have uniformly bounded norms: ∥uk+1−uk∥L2(ps/ρ)2≤M<∞\lVert u_{k+1} - u_k\rVert_{L^2(p_s/\rho)}^2 \le M < \infty.

  • p=1p = 1 yields convergence for the MeanFlow objective to within a neighborhood: if ∥uk−utgt,k∥L2(ρ)2≤M(k+1)\lVert u_k - u_{\mathrm{tgt},k}\rVert_{L^2(\rho)}^2 \le M(k+1) for some M>0M > 0, i.e. the norm of the residual grows at most linearly, then

lim sup⁡k→∞∥ukMF−u⋆∥L2(ps/ρ)2≤ηpmax⁡(ρmin⁡−1+ηc−1).(20)\limsup_{k\to\infty} \lVert u_k^{\mathrm{MF}} - u^\star\rVert_{L^2(p_s/\rho)}^2 \le\eta p_{\max}\left(\rho_{\min}^{-1} + \eta c^{-1}\right). \tag*{(20)}

A proof is found in Section B.4. Theorem 4 shows that, for p=1p = 1, the iterates of the normalized gradient descent (defined in Equation (19)) on the MeanFlow objective eventually remain in an O(η1/2)\mathcal{O}(\eta^{1/2}) neighborhood of the true flow map Φ⋆\Phi^\star. In MeanFlow [12], normalization is done through taking adaptive loss weights w=1/(∥uk−utgt,kMF∥22+c)pw = 1/(\lVert u_k - u_{\mathrm{tgt},k}^{\mathrm{MF}}\rVert_2^2 + c)^p. Our result shows that, when the regression error is integrated over space, taking adaptive weights with this integrated error and p=1.0p = 1.0 has iterates that remain in an O(η1/2)\mathcal{O}(\eta^{1/2}) ball around the true solution. p=1.0p = 1.0 is the value that is found to work the best for from-scratch training on ImageNet 256×\times256 [12].

Related work

Trajectory distillation. One of the most relevant related works is consistency models [37, 35], which build a function f(xs,s)f(x_s, s) mapping directly to the trajectory endpoint x1x_1. Continuous-time consistency models are trained with a similar loss to the MeanFlow loss [30] (Lu and Song 2025), except with a fixed t=1t = 1, and hence are amenable to the same analysis as we have presented. In practice consistency models also require similar tricks such as tangent normalization for effective training (Lu and Song, 2025).

Flow maps. Many works have proposed learning schemes for flow maps. Boffi et al. [5] derive fundamental equations for flow maps and introduce the LSD and ESD objectives. Geng et al. [12] introduce the MeanFlow objective, which is further improved in Geng et al. [13] by replacing a stochastic estimate for v\mathbf{v} with a self-distilled diagonal term. Lu et al. (2026) reparametrize the objective as u=(x^(x,s,t)−x)/(1−s)u = (\hat{x}(x,s,t) - x)/(1-s). x^\hat{x} can then be shown to lie in the convex hull of p1p_1 [22]. Align Your Flow [30] introduces flow map distillation methods derived from consistency estimates. These are equivalent to the methods presented in this paper, up to reweighting. Terminal velocity matching [44] uses a modified LSD loss, where the stop gradient teacher velocity uu is replaced with an EMA version. In Goldstein et al. [14], the authors argue for an alternative loss to MeanFlow, due to the presence of spurious minimizers. While this logic is valid for the ESD objective, our results show that for the stop gradient MeanFlow objective, optimization does not stall in a local minimum.

Concurrent work. In very recent work, Shen et al. [33] derived a regression principle for stop gradient dynamics. Using this, they derive the same closed form for the functional gradient flow for the MeanFlow and Lagrangian losses that we have presented in Theorem 1 through a slightly different analysis, and achieve similar L∞L^\infty convergence guarantees. Shen et al. [33] encompasses a larger class of problems such as reinforcement learning, but their convergence results are only valid for ρ=1\rho= 1. Here we assume the existence of a density ρ\rho which alters the gradient dynamics, and show convergence in this broader setting. We also introduce novel L2L^2 convergence rates, and our results on gradient descent are independent of prior work.

Experiments

Experiments on synthetic data (Figure 2) validate the faithfulness of the gradient flow closed-form of the flow maps derived in Theorem 1. Experiments on standard image datasets (Figure 3 and Table 1) confirm the importance of proper adaptive normalization (Theorem 4).

Figure 2. Synthetic Gaussian-to-Gaussian dataset. Snapshots of grid function learned average velocities (uku_k, solid blue/orange lines) versus their theoretically predicted counterparts uτu_\tau at four optimization times τ\tau. The two show strong agreement across optimization times τ\tau and for both the MeanFlow (top) and Lagrangian average velocity target (bottom), and both relax towards the ground truth u⋆u^\star.

FFHQ dataset images across normalization exponents and numbers of function evaluations

Figure 3. FFHQ dataset. The images are generated from a fixed seed, over different numbers of function evaluations (NFE), with flow maps learned with different normalization exponents pp.

ppBounded updatesCIFAR-10 NFE 1CIFAR-10 NFE 2CIFAR-10 NFE 4FFHQ 64×64 NFE 1FFHQ 64×64 NFE 2FFHQ 64×64 NFE 4
0.00✗10.62 ± 0.2110.00 ± 0.699.60 ± 0.6115.38 ± 0.8412.67 ± 0.6012.49 ± 0.43
0.25✗6.81 ± 0.236.70 ± 0.306.49 ± 0.1810.92 ± 0.439.46 ± 0.979.72 ± 0.68
0.50✓5.51 ± 0.065.55 ± 0.364.93 ± 0.378.93 ± 0.217.89 ± 0.688.15 ± 0.53
0.75✓5.46 ± 0.065.05 ± 0.164.78 ± 0.048.67 ± 0.306.86 ± 0.917.69 ± 0.74
1.00✓5.61 ± 0.205.17 ± 0.054.69 ± 0.0410.11 ± 0.215.64 ± 1.117.85 ± 0.72
1.25✓5.93 ± 0.195.25 ± 0.084.46 ± 0.0412.70 ± 0.049.48 ± 4.699.89 ± 4.17
1.50✓6.32 ± 0.265.37 ± 0.545.48 ± 1.5320.25 ± 1.5657.25 ± 35.1413.92 ± 0.46

Table 1. FID ↓ for MeanFlow with different normalization exponents pp on CIFAR-10 and on FFHQ 64×64. Results are reported as mean ± standard deviation over three runs.

Synthetic experiments. First, we show that learned flow map training dynamics on synthetic data accurately reproduce the closed-form dynamics (ΦτMF\Phi_\tau^{\mathrm{MF}} and ΦτL\Phi_\tau^{\mathrm{L}}) derived in Theorem 1. Theorem 1 assumes functional (i.e., infinite dimensional) optimization: to recreate the assumed functional setting as accurately as possible, in Figure 2 we parametrize the average velocity uu pointwise on a discrete grid in R×Δ\mathbb{R} \times\Delta, removing spatial coupling between parameters. Average velocities are trained with grid function backbones to transport N(0,1)\mathcal{N}(0, 1) to N(1,0.36)\mathcal{N}(1, 0.36) through a linear interpolant path, regressing against the ground truth velocity vv. In this setting, Figure 2 displays the learned average velocities (solid blue and orange lines) and the closed form average velocities, uτMFu_\tau^{\mathrm{MF}} and uτLu_\tau^{\mathrm{L}} (black dashed lines), for multiple optimization times τ\tau. The solid gray line represents the ground-truth average velocity u⋆u^\star we try to amortize. For completeness, exhaustive empirical details can be found in Section C.1.

Comments on Figure 2. Figure 2 shows that the learned average velocities match their theorized snapshots uτMFu_\tau^{\mathrm{MF}} and uτLu_\tau^{\mathrm{L}} from Equations (12) and (13): the black dashed line exactly matches the solid blue/orange lines at each optimization time τ\tau. Further experiments analyzing the effect of loss weighting and step size on stability are in Section C.1.

Impact of adaptive gradient normalization. Our developed theory suggests that flow map training is susceptible to instability due to large magnitude updates, and that adaptive normalization offers a solution. We show that the empirical performance of flow maps distilled from pretrained velocity teachers improves when adaptive normalization is used. Here we perform experiments on standard image datasets CIFAR-10 (Krizhevsky and Hinton, [21]) and FFHQ 64×\times64 (Karras et al., [18]). For CIFAR-10, we used the pretrained velocity of Tong et al. [39]. For FFHQ 64×\times64, we used the variance exploding denoiser from Karras et al. [19] converted into a flow matching model. The backbone for the CIFAR-10 and FFHQ 64×\times64 flow maps is an EDM2 U-Net (Karras et al., [20]) with modified time-embeddings for added stability when computing temporal derivatives.

(Lu and Song, 2025). We use the MeanFlow loss as in Equation (4), weighted by a factor w=sg⁡((∥uk−utgt,k∥22+c)−p)w = \operatorname{sg}((\lVert u_k-u_{\mathrm{tgt},k}\rVert_2^2+c)^{-p}) for various choices of pp. Fréchet Inception Distances [16] were computed using torchmetrics [8]. In Table 1, we display FIDs of the models with exponential moving average obtained after 200K steps of training, for a variety of values of pp. Other experimental details, along with results for the Lagrangian loss on CIFAR-10, are in Section D.

Comment on Table 1 and Figure 3. Table 1 compares values of the adaptive normalization exponent p=0p = 0 to p=1.5p = 1.5 and multiple numbers of function evaluations (NFE 1, 2, 4), and for multiple high-dimensional datasets. We observe that p=0.5p = 0.5 to p=1p = 1 gives good performance across datasets. For p<0.5p < 0.5, the models have noticeably worse FIDs, which corresponds to the region in which the update is possibly unbounded. For a fixed seed, Figure 3 displays a generated image for multiple values of normalization exponent pp and NFE (1, 2, 4). Qualitatively p≤0.25p \le0.25 and p=1.25p = 1.25 yield the poorest generated images.

Conclusion

In this paper, we have analyzed the impact of stop gradient operators and adaptive normalization on flow map training. We have shown how the placement of stop gradients in the MeanFlow and Lagrangian losses leads to a gradient update that, when optimized with gradient flow, recovers the true flow map pointwise, in L∞L^\infty, and in L2L^2 for MeanFlow. In addition to preventing double backpropagation, stop gradient operators probably move learned flow maps closer to the ground truth.

However, gradient descent iterations, when applied on the MeanFlow and Lagrangian losses, can yield divergence. We demonstrate how adaptive normalization gives us both a theoretical and practical solution, enabling higher fidelity flow map learning on CIFAR-10 and FFHQ 64×6464 \times64 datasets.

Limitations and future directions. The scope of the results derived in this paper is limited to the losses discussed in Equations (4) and (6). In particular, we do not show convergence for the original ESD and LSD objectives or the Terminal Velocity Matching objective [5, 44]. Showing convergence for the gradient flow induced by any of these losses is future work. In addition, our convergence results are derived in a specific functional setting limiting the applicability of the derived results to neural networks, whose parametrization impacts the functional gradient. Extending these results to such parametrized functions would require analyzing the PDEs under preconditioned gradients. The main theory of this work is for the idealized gradient flow setting, where stochasticity-based challenges are ignored, as well as other tricks such as training with a fixed percentage of samples taken at the diagonal s=ts = t. Quantifying the effects of these design choices is left for subsequent studies.

Acknowledgments

The authors thank the Blaise Pascal Center for the computational means. It uses the SIDUS [29] solution. This work was performed using HPC resources from GENCI-IDRIS (Grant 2026-AD011017850).

AI Use Statement

In this work, we used generative AI tools for brainstorming, implementing methods, rephrasing sentences, and creating scientific visuals (e.g., helping with TikZ code for plots). AI provided us with critical ingredients for proving mathematical claims and assisted with the checking of proofs.

We have not used generative AI tools for generating synthetic data sets, helping develop theoretical models or conceptual frameworks, formulating mathematical claims, assisting in the preliminary write-up of proofs, proposing or refining hypotheses, designing or providing feedback on research methodology or experiments, assisting with translation, cleaning and reformatting datasets, supporting qualitative and thematic data analysis, and interpreting results.

We have reviewed all AI-assisted work. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.

Additional Reminders

Fréchet Derivatives

Our goal is to minimize the objective in Equation (7) over the infinite-dimensional function space u∈U⊂C1u \in\mathcal{U} \subset C^1. For such a loss, we can compute its Fréchet derivative with respect to uu. Since utgtu_{\mathrm{tgt}} is taken under stop gradient, it is considered constant as a function of uu. Hence, we can derive

DL(u)[h]=∫x,s,t(u(x,s,t)−utgt(x,s,t))⋅h(x,s,t)ρ(x,s,t) dxdsdt.(21)D\mathcal{L}(u)[h] = \int_{x,s,t} (u(x,s,t)-u_{\mathrm{tgt}}(x,s,t))\cdot h(x,s,t)\rho(x,s,t)\,\mathrm{d}x\mathrm{d}s\mathrm{d}t . \tag*{(21)}

This corresponds to the infinitesimal change in L\mathcal{L} when the input changes infinitesimally in the direction of hh. The gradient of L\mathcal{L} at uu then points in the direction that increases L\mathcal{L} the fastest under an infinitesimal change to the input. Mathematically, this is written as DL(u)[h]=⟨∇L(u),h⟩D\mathcal{L}(u)[h] = \langle\nabla\mathcal{L}(u),h\rangle. Importantly, the gradient depends on the choice of inner product on the function space U\mathcal{U}. To formally define the gradient, we fix a choice of inner product, namely the L2(Rd×Δ)L^2(\mathbb{R}^d \times\Delta) inner product.

This choice of metric is natural and can be motivated by homogeneity. More precisely, a change in uu is felt equally irrespective of its position in space and time. Furthermore, it also does not result in spatial mixing, which is a central ingredient for the success of our analysis. It should be noted that neural network parametrizations do not naturally have this geometry.

Under this inner product, we see that ∇L(u)=ρ(u−utgt)\nabla\mathcal{L}(u) = \rho(u-u_{\mathrm{tgt}}).

Main Proofs

Proofs of PDE convergence

Theorem 5. Under the PDE in Equation (9), with L=LMF\mathcal{L} = \mathcal{L}^{\mathrm{MF}}, under Assumptions 1 and 2, uτu_\tau can be written down in closed form:

uτ(x,s,t)=u0(Φ⋆(x,s,tτ),tτ,t)F−1(τ)+Φ⋆(x,s,tτ)−xt−s,(22)u_\tau(x,s,t)=u_0(\Phi^\star(x,s,t_\tau),t_\tau,t)F^{-1}(\tau)+\frac{\Phi^\star(x,s,t_\tau)-x}{t-s}, \tag*{(22)}

where tτ=t−(t−s)F−1(τ)t_\tau=t-(t-s)F^{-1}(\tau), and where F−1(τ)F^{-1}(\tau) is a decreasing function depending on ρ\rho that quantifies how close we are to tt. This implies uτ→u⋆u_\tau\to u^\star pointwise.

Proof. The key idea is that this is a linear PDE, hence it may be solved exactly. We fix tt and introduce variables X∈RdX \in\mathbb{R}^d and S∈[0,1]S \in[0,1] satisfying

dXdτ(τ)=−ρ(X,S,t)(t−S)v(X,S),\frac{\mathrm{d}X}{\mathrm{d}\tau}(\tau)=-\rho(X,S,t)(t-S)v(X,S),
dSdτ(τ)=−ρ(X,S,t)(t−S).\frac{\mathrm{d}S}{\mathrm{d}\tau}(\tau)=-\rho(X,S,t)(t-S).

Such SS and XX exist under the conditions given in Section B.3. Evaluating the total derivative, we find that

ddτuτ(X,S,t)=∂∂τuτ(X,S,t)+∇xuτdXdτ+∂uτ∂SdSdτ=−ρ(X,S,t)(uτ(X,S,t)−v(X,S)).\begin{aligned} \frac{\mathrm{d}}{\mathrm{d}\tau}u_\tau(X,S,t)=\frac{\partial}{\partial\tau}u_\tau(X,S,t)+\nabla_xu_\tau\frac{\mathrm{d}X}{\mathrm{d}\tau}+\frac{\partial u_\tau}{\partial S}\frac{\mathrm{d}S}{\mathrm{d}\tau} \\ &=-\rho(X,S,t)\left(u_\tau(X,S,t)-v(X,S)\right). \end{aligned}

Introducing an integrating factor FF satisfying dF/dτ=ρF\mathrm{d}F/\mathrm{d}\tau=\rho F and F(0)=1F(0)=1, we may write this as

ddτ(Fu)=F(τ)ρ(X,S,t)v(X,S).\frac{\mathrm{d}}{\mathrm{d}\tau}(Fu)=F(\tau)\rho(X,S,t)v(X,S).

Prescribing boundary conditions X(T)=xX(T)=x and S(T)=sS(T)=s, we find that S(τ)=t−(t−s)F(τ)/F(T)S(\tau)=t-(t-s)F(\tau)/F(T), and S(0)=t−(t−s)F−1(T):=tTS(0)=t-(t-s)F^{-1}(T):=t_T. Moreover,

dXdS=dXdτdτdS=v(X,S),\frac{\mathrm{d}X}{\mathrm{d}S}=\frac{\mathrm{d}X}{\mathrm{d}\tau}\frac{\mathrm{d}\tau}{\mathrm{d}S}=v(X,S),

hence XX follows the velocity field along the characteristic curves. This yields X(τ)=Φ⋆(x,s,S(τ))X(\tau)=\Phi^{\star}(x,s,S(\tau)). Solving the ODE now shows that, for s<ts<t,

uτ(x,s,t)=u0(Φ⋆(x,s,tτ),tτ,t)F−1(τ)+∫0τF(τ)ρ(X(τ),S(τ),t)F(T)v(X(τ),S(τ)) dτ=u0(Φ⋆(x,s,tτ),tτ,t)F−1(τ)+1t−s∫stτv(Φ⋆(x,s,S),S) dS,\begin{aligned} u_{\tau}(x,s,t)=u_{0}(\Phi^{\star}(x,s,t_{\tau}),t_{\tau},t)F^{-1}(\tau)+\int_{0}^{\tau}\frac{F(\tau)\rho(X(\tau),S(\tau),t)}{F(T)}v(X(\tau),S(\tau))\,\mathrm{d}\tau\\ &=u_{0}(\Phi^{\star}(x,s,t_{\tau}),t_{\tau},t)F^{-1}(\tau)+\frac{1}{t-s}\int_{s}^{t_{\tau}}v(\Phi^{\star}(x,s,S),S)\,\mathrm{d}S, \end{aligned}

which gives the closed form solution

uτ(x,s,t)=u0(Φ⋆(x,s,tτ),tτ,t)F−1(τ)+Φ⋆(x,s,tτ)−xt−s.(23)u_{\tau}(x,s,t)=u_{0}(\Phi^{\star}(x,s,t_{\tau}),t_{\tau},t)F^{-1}(\tau)+\frac{\Phi^{\star}(x,s,t_{\tau})-x}{t-s}. \tag*{(23)}

In terms of Φ\Phi, we obtain that

Φτ(x,s,t)=x+(t−s)uτ(x,s,t)(24)\Phi_{\tau}(x,s,t)=x+(t-s)u_{\tau}(x,s,t) \tag*{(24)}
=Φ⋆(x,s,tτ)+u0(Φ⋆(x,s,tτ),tτ,t)(t−s)F−1(τ)(25)=\Phi^{\star}(x,s,t_{\tau})+u_{0}(\Phi^{\star}(x,s,t_{\tau}),t_{\tau},t)(t-s)F^{-1}(\tau) \tag*{(25)}
=Φ0(Φ⋆(x,s,tτ),tτ,t).(26)=\Phi_{0}(\Phi^{\star}(x,s,t_{\tau}),t_{\tau},t). \tag*{(26)}

Under mild conditions on ρ\rho, for example if ρ\rho is bounded below on each trajectory (xr)st(x_{r})^{t}_{s}, which is true since ρ>0\rho>0 and each trajectory is a compact set, then F−1(τ)→0F^{-1}(\tau)\to0 as τ→∞\tau\to\infty, since F˙≥ρmin⁡F⟹F(τ)≥eρmin⁡τ\dot{F}\geq\rho_{\min}F\Longrightarrow F(\tau)\geq e^{\rho_{\min}\tau}. So, if u0u_{0} is locally bounded at the diagonal (which is true since u0u_{0} is continuous there), the first term disappears and

lim⁡τ→∞uτ(x,s,t)=Φ⋆(x,s,t)−xt−s=u⋆(x,s,t).(27)\lim_{\tau\to\infty}u_{\tau}(x,s,t)=\frac{\Phi^{\star}(x,s,t)-x}{t-s}=u^{\star}(x,s,t). \tag*{(27)}

We have thus shown that ideal training under the MeanFlow loss converges to the average velocity. Moreover, we have shown how the speed of convergence is dependent on a choice of weighting ρ\rho.

Φτ\Phi_{\tau} can be shown to satisfy a similar PDE,

∂∂τΦτ(x,s,t)=(t−s)ρ(x,s,t)((∇xΦτ)v(x,s)+∂Φτ∂s),(28)\frac{\partial}{\partial\tau}\Phi_{\tau}(x,s,t)=(t-s)\rho(x,s,t)\left((\nabla_{x}\Phi_{\tau})v(x,s)+\frac{\partial\Phi_{\tau}}{\partial s}\right), \tag*{(28)}

which can be solved in an analogous manner.

Theorem 6. Under the PDE in Equation (9), with L=LL\mathcal{L}=\mathcal{L}^{L}, under Assumptions 1 and 2, Φτ\Phi_{\tau} can be written down in closed form:

Φτ(x,s,t)=Φ⋆(Φ0(x,s,sτ),sτ,t),(29)\Phi_{\tau}(x,s,t)=\Phi^{\star}(\Phi_{0}(x,s,s_{\tau}),s_{\tau},t), \tag*{(29)}

where sτ=s+(t−s)F−1(τ)s_{\tau}=s+(t-s)F^{-1}(\tau), and where F−1(τ)F^{-1}(\tau) is a decreasing function depending on ρ\rho that quantifies how close we are to ss. In particular if Φ⋆\Phi^{\star} is continuous in (x,s)(x,s), then Φτ\Phi_{\tau} converges pointwise to the true flow map as τ→∞\tau\to\infty.

Proof. This is now a non-linear PDE, since Φτ\Phi_{\tau} appears inside the velocity vv. However, it can still be solved through characteristic methods. We first determine the PDE for Φ\Phi through the chain rule:

∂∂τΦτ(x,s,t)=(t−s)∂∂τuτ(x,s,t)=−(t−s)ρ(x,s,t)(∂Φτ(x,s,t)∂t−v(Φτ(x,s,t),t)).\begin{aligned} \frac{\partial}{\partial\tau}\Phi_{\tau}(x,s,t)=(t-s)\frac{\partial}{\partial\tau}u_{\tau}(x,s,t) \\ &=-(t-s)\rho(x,s,t)\left(\frac{\partial\Phi_{\tau}(x,s,t)}{\partial t}-v(\Phi_{\tau}(x,s,t),t)\right). \end{aligned}

Defining T˙=(T−s)ρ(x,s,T)\dot{T}=(T-s)\rho(x,s,T), we have

ddτΦτ(x,s,T)=(T−s)ρ(x,s,T)v(Φτ(x,s,T),T).\frac{\mathrm{d}}{\mathrm{d}\tau}\Phi_{\tau}(x,s,T)=(T-s)\rho(x,s,T)v(\Phi_{\tau}(x,s,T),T).

Let FF be an integrating factor for ρ\rho with F(0)=1F(0)=1, and assume FF is finite. If T(T)=tT(\mathcal{T})=t, we see that T=s+(t−s)F(τ)/F(T)T=s+(t-s)F(\tau)/F(\mathcal{T}), and so T(0)=s+(t−s)F−1(T)=:sTT(0)=s+(t-s)F^{-1}(\mathcal{T})=:s_{\mathcal{T}}. Then

dΦTdT=dΦTdτdτdT=v(ΦT,T),\frac{\mathrm{d}\Phi_{\mathcal{T}}}{\mathrm{d}T}=\frac{\mathrm{d}\Phi_{\mathcal{T}}}{\mathrm{d}\tau}\frac{\mathrm{d}\tau}{\mathrm{d}T}=v(\Phi_{\mathcal{T}},T),

so ΦT\Phi_{\mathcal{T}} flows along the velocity field vv. Since at τ=0\tau=0, T(0)=sTT(0)=s_{\mathcal{T}} and ΦT(x,s,T)=Φ0(x,s,sT)\Phi_{\mathcal{T}}(x,s,T)=\Phi_0(x,s,s_{\mathcal{T}}), we get that

ΦT(x,s,t)=Φ⋆(Φ0(x,s,sT),sT,t).(30)\Phi_{\mathcal{T}}(x,s,t)=\Phi^\star(\Phi_0(x,s,s_{\mathcal{T}}),s_{\mathcal{T}},t). \tag*{(30)}

If F−1(τ)→0F^{-1}(\tau)\to0, then sT→ss_{\mathcal{T}}\to s, and so Φ0(x,s,sT)→x\Phi_0(x,s,s_{\mathcal{T}})\to x since u0u_0 is locally bounded. Therefore under the continuity of Φ⋆\Phi^\star, ΦT→Φ⋆\Phi_{\mathcal{T}}\to\Phi^\star pointwise.

Convergence rates

Theorem 2. Assume Assumptions 1 and 2 hold. In addition, assume ρ(x,s,t)≥ρmin⁡>0\rho(x,s,t)\geq\rho_{\min}>0 and ∥u0∥∞,∥v∥∞≤M\lVert u_0\rVert_\infty,\lVert v\rVert_\infty\leq M. Then the MeanFlow closed-form satisfies

∥ΦTMF(x,s,t)−Φ⋆(x,s,t)∥∞≤2Me−ρmin⁡τ.(31)\lVert\Phi_{\mathcal{T}}^{\mathrm{MF}}(x,s,t)-\Phi^\star(x,s,t)\rVert_\infty\leq2M e^{-\rho_{\min}\tau}. \tag*{(31)}

In addition, if vv is uniformly LL-Lipschitz for all tt, then the Lagrangian closed-form satisfies

∥ΦTL(x,s,t)−Φ⋆(x,s,t)∥∞≤2MeLe−ρmin⁡τ.(32)\lVert\Phi_{\mathcal{T}}^{\mathrm{L}}(x,s,t)-\Phi^\star(x,s,t)\rVert_\infty\leq2M e^{L}e^{-\rho_{\min}\tau}. \tag*{(32)}

Proof. For the MeanFlow closed form, we have that

∣ΦTMF(x,s,t)−Φ⋆(x,s,t)∣=∣u0(Φ⋆(x,s,tT),tT,t)(t−s)F−1(τ)+Φ⋆(x,s,tT)−Φ⋆(x,s,t)∣≤(t−s)F−1(τ)(∥u0∥∞+1t−tT∫tTt∥v(Φ⋆(x,s,r),r)∥∞ dr)≤2M(t−s)F−1(τ).\begin{aligned} \left|\Phi_{\mathcal{T}}^{\mathrm{MF}}(x,s,t)-\Phi^\star(x,s,t)\right| &=\left|u_0(\Phi^\star(x,s,t_{\mathcal{T}}),t_{\mathcal{T}},t)(t-s)F^{-1}(\tau)+\Phi^\star(x,s,t_{\mathcal{T}})-\Phi^\star(x,s,t)\right|\\ &\leq(t-s)F^{-1}(\tau)\left(\lVert u_0\rVert_\infty+\frac{1}{t-t_{\mathcal{T}}}\int_{t_{\mathcal{T}}}^{t}\lVert v(\Phi^\star(x,s,r),r)\rVert_\infty\,\mathrm{d}r\right)\\ &\leq2M(t-s)F^{-1}(\tau). \end{aligned}

If ρ≥ρmin⁡\rho\geq\rho_{\min}, then F˙=Fρ≥Fρmin⁡\dot{F}=F\rho\geq F\rho_{\min} and F(0)=1F(0)=1 gives, by Grönwall, F(τ)≥eρmin⁡τF(\tau)\geq e^{\rho_{\min}\tau}, and hence F−1(τ)≤e−ρmin⁡τF^{-1}(\tau)\leq e^{-\rho_{\min}\tau}. This bound is uniform over all (x,s,t)(x,s,t): taking a supremum over all x,s,tx,s,t finishes.

A bound on the convergence for the Lagrangian solution requires stronger assumptions. The closed-form solution in Equation (30) shows the Lagrangian-trained flow map is Φ⋆(Φ0(x,s,sT),sT,t)\Phi^\star(\Phi_0(x,s,s_{\mathcal{T}}),s_{\mathcal{T}},t). To have this be close to Φ⋆(x,s,t)=Φ⋆(Φ⋆(x,s,sT),sT,t)\Phi^\star(x,s,t)=\Phi^\star(\Phi^\star(x,s,s_{\mathcal{T}}),s_{\mathcal{T}},t), we need Φ0(x,s,sT)\Phi_0(x,s,s_{\mathcal{T}}) close to Φ⋆(x,s,sT)\Phi^\star(x,s,s_{\mathcal{T}}), and a Lipschitz bound on the flow map depending on Φ⋆\Phi^\star.

Note that a Lipschitz bound on the flow map follows from a Lipschitz bound on the velocity: if vv is uniformly LL-Lipschitz in xx for all tt, then from Cauchy–Schwarz, we can obtain

ddt∣Φ⋆(x,s,t)−Φ⋆(y,s,t)∣≤∣v(Φ⋆(x,s,t),t)−v(Φ⋆(y,s,t),t)∣≤L∣Φ⋆(x,s,t)−Φ⋆(y,s,t)∣,∣Φ⋆(x,s,s)−Φ⋆(y,s,s)∣=∣x−y∣,\begin{aligned} \frac{\mathrm{d}}{\mathrm{d}t}\left|\Phi^\star(x,s,t)-\Phi^\star(y,s,t)\right| &\leq\left|v(\Phi^\star(x,s,t),t)-v(\Phi^\star(y,s,t),t)\right|\\ &\leq L\left|\Phi^\star(x,s,t)-\Phi^\star(y,s,t)\right|,\\ \left|\Phi^\star(x,s,s)-\Phi^\star(y,s,s)\right|&=|x-y|, \end{aligned}

which tells us that the flow map is eL(t−s)e^{L(t-s)}-Lipschitz for fixed (s,t)(s,t) by Grönwall.

Proof. First, we obtain a bound for the closeness of Φ0(x,s,sT)\Phi_0(x,s,s_{\mathcal{T}}) and Φ⋆(x,s,sT)\Phi^\star(x,s,s_{\mathcal{T}}), in a similar manner to above:

∣Φ0(x,s,sT)−Φ⋆(x,s,sT)∣≤∣Φ0(x,s,sT)−x∣+∣Φ⋆(x,s,sT)−x∣≤2M(t−s)F−1(τ),\begin{aligned} \left|\Phi_0(x,s,s_{\mathcal{T}})-\Phi^\star(x,s,s_{\mathcal{T}})\right| &\leq\left|\Phi_0(x,s,s_{\mathcal{T}})-x\right|+\left|\Phi^\star(x,s,s_{\mathcal{T}})-x\right|\\ &\leq2M(t-s)F^{-1}(\tau), \end{aligned}

from calculations similar to the above. Then the Lipschitzness of Φ⋆(⋅,sT,t)\Phi^\star(\cdot,s_{\mathcal{T}},t) gives

∣ΦTL(x,s,t)−Φ⋆(x,s,t)∣≤2M(t−s)eL(t−sT)F−1(τ).\left|\Phi_{\mathcal{T}}^{\mathrm{L}}(x,s,t)-\Phi^\star(x,s,t)\right|\leq2M(t-s)e^{L(t-s_{\mathcal{T}})}F^{-1}(\tau).

Again, if ρ≥ρmin⁡\rho\geq\rho_{\min}, we get F−1(τ)≤e−ρmin⁡τF^{-1}(\tau)\leq e^{-\rho_{\min}\tau}, which proves the claim.

We can show that the eLe^{L} factor cannot be removed. Take ρ=1\rho= 1, and the velocity

v(x,t)={1x≥1/L,Lxx∈[−1/L,1/L],−1x≤−1/L.(33)v(x,t)=\begin{cases} 1 & x \ge1/L,\\ Lx & x \in[-1/L,1/L],\\ -1 & x \le-1/L. \end{cases} \tag*{(33)}

The corresponding flow map is Φ⋆(x,s,t)=eL(t−s)x\Phi^{\star}(x,s,t)=e^{L(t-s)}x for ∣x∣<e−L/L|x|<e^{-L}/L. Suppose we have initialization u0(x,s,t)=1u_0(x,s,t)=1. Then the closed form gives that, for sufficiently large τ\tau,

ΦτL(0,0,1)=Φ⋆(Φ0(0,0,e−τ),e−τ,1)=Φ⋆(e−τ,e−τ,1)=eL(1−e−τ)e−τ\Phi^{L}_{\tau}(0,0,1)=\Phi^{\star}(\Phi_0(0,0,e^{-\tau}),e^{-\tau},1)=\Phi^{\star}(e^{-\tau},e^{-\tau},1) =e^{L(1-e^{-\tau})}e^{-\tau}

whereas Φ⋆(0,0,1)=0\Phi^{\star}(0,0,1)=0. This gives a separation of eLe−τe^{Le^{-\tau}}, which is tight against our upper bound up to a constant. We can verify the MeanFlow map is ΦτMF(0,0,1)=Φ0(0,1−e−τ,1)=e−τ\Phi^{\mathrm{MF}}_{\tau}(0,0,1)=\Phi_0(0,1-e^{-\tau},1)=e^{-\tau}, which avoids the eLe^{L} factor.

L2L^2 convergence. For the following proof, it will be useful to define the material derivative operator Dv=(v⋅∇+∂s)D_v=(v\cdot\nabla+\partial_s). Then the MeanFlow PDE is equivalent to

∂τuτ=−ρ(uτ−v−(t−s)Dvuτ).(34)\partial_{\tau}u_{\tau}=-\rho\left(u_{\tau}-v-(t-s)D_vu_{\tau}\right). \tag*{(34)}

We then note that, for an arbitrary field uu (not necessarily satisfying the MeanFlow PDE),

Dvu(Φ⋆(z,0,s),s)=∇u(Φ⋆(z,0,s),s)v(Φ⋆(z,0,s))+∂su(Φ⋆(z,0,s),s)=∇u(Φ⋆(z,0,s),s)∂sΦ⋆(z,0,s)+∂su(Φ⋆(z,0,s),s)=ddsu(Φ⋆(z,0,s),s).\begin{aligned} D_vu(\Phi^{\star}(z,0,s),s)&=\nabla u(\Phi^{\star}(z,0,s),s)v(\Phi^{\star}(z,0,s))+\partial_su(\Phi^{\star}(z,0,s),s)\\ &=\nabla u(\Phi^{\star}(z,0,s),s)\partial_s\Phi^{\star}(z,0,s)+\partial_su(\Phi^{\star}(z,0,s),s)\\ &=\frac{\mathrm{d}}{\mathrm{d}s}u(\Phi^{\star}(z,0,s),s). \end{aligned}

Theorem 3. Assume Assumptions 1 to 3 hold, and ρ(x,s,t)≥ρmin⁡>0\rho(x,s,t)\ge\rho_{\min}>0. If ∥u0MF−u⋆∥L2(ps/ρ)2<∞\lVert u^{\mathrm{MF}}_0-u^{\star}\rVert^2_{L^2(p_s/\rho)}<\infty then the MeanFlow trained average velocity uτMFu^{\mathrm{MF}}_{\tau} satisfying Equation (9) fulfills:

∥uτMF−u⋆∥L2(ps/ρ)2≤e−ρmin⁡τ∥u0MF−u⋆∥L2(ps/ρ)2,(35)\lVert u^{\mathrm{MF}}_{\tau}-u^{\star}\rVert^2_{L^2(p_s/\rho)}\le e^{-\rho_{\min}\tau}\lVert u^{\mathrm{MF}}_0-u^{\star}\rVert^2_{L^2(p_s/\rho)}, \tag*{(35)}

hence, the average learned velocity uτMFu^{\mathrm{MF}}_{\tau} converges to u⋆u^{\star} with respect to the L2(ps/ρ)L^2(p_s/\rho)-norm.

Proof. We note that uτ−u⋆u_{\tau}-u^{\star} follows the PDE

∂∂τ(uτ−u⋆)=−ρ(uτ−v−(t−s)Dvuτ)=−ρ(uτ−u⋆+(t−s)Dvu⋆−(t−s)Dvuτ)=−ρ(I−(t−s)Dv)(uτ−u⋆).\begin{aligned} \frac{\partial}{\partial\tau}(u_{\tau}-u^{\star})&=-\rho\left(u_{\tau}-v-(t-s)D_vu_{\tau}\right)\\ &=-\rho\left(u_{\tau}-u^{\star}+(t-s)D_vu^{\star}-(t-s)D_vu_{\tau}\right)\\ &=-\rho\left(I-(t-s)D_v\right)(u_{\tau}-u^{\star}). \end{aligned}

Now, we may differentiate under the integral sign, due to the regularity offered by Assumption 3:

ddτ∫ps(x)ρ(x,s,t)∥uτ−u⋆∥2 dxdsdt=−∫2ps(x)(I−(t−s)Dv)(uτ−u⋆)⋅(uτ−u⋆) dxdsdt=−∫ps(x)(2I−(t−s)Dv)∥uτ−u⋆∥2 dxdsdt=−2∥uτ−u⋆∥L2(ps)2+∫ps(x)(t−s)Dv∥uτ−u⋆∥2 dxdsdt.\begin{aligned} \frac{\mathrm{d}}{\mathrm{d}\tau}\int\frac{p_s(x)}{\rho(x,s,t)}\lVert u_{\tau}-u^{\star}\rVert^2\,\mathrm{d}x\mathrm{d}s\mathrm{d}t &=-\int2p_s(x)\left(I-(t-s)D_v\right)(u_{\tau}-u^{\star})\cdot(u_{\tau}-u^{\star})\,\mathrm{d}x\mathrm{d}s\mathrm{d}t\\ &=-\int p_s(x)\left(2I-(t-s)D_v\right)\lVert u_{\tau}-u^{\star}\rVert^2\,\mathrm{d}x\mathrm{d}s\mathrm{d}t\\ &=-2\lVert u_{\tau}-u^{\star}\rVert^2_{L^2(p_s)}+\int p_s(x)(t-s)D_v\lVert u_{\tau}-u^{\star}\rVert^2\,\mathrm{d}x\mathrm{d}s\mathrm{d}t. \end{aligned}

To analyze the last term we apply a change of variables x=Φ⋆(z,0,s)x = \Phi^\star(z, 0, s), noting that if x∼psx \sim p_s, then z∼p0z \sim p_0.

∫ps(x)(t−s)Dv∥uτ−u⋆∥2 dx ds dt=∫p0(z)(t−s)Dv∥uτ(Φ⋆(z,0,s),s,t)−u⋆(Φ⋆(z,0,s),s,t)∥2 dz ds dt=∫p0(z)(t−s)dds∥uτ(Φ⋆(z,0,s),s,t)−u⋆(Φ⋆(z,0,s),s,t)∥2 ds dz dt=∫p0(z)[(t−s)∥uτ(Φ⋆(z,0,s),s,t)−u⋆(Φ⋆(z,0,s),s,t)∥2]s=0 dz dt+∫p0(z)∥uτ(Φ⋆(z,0,s),s,t)−u⋆(Φ⋆(z,0,s),s,t)∥2 dz ds dt=−∫tp0(x)∥uτ(x,0,t)−u⋆(x,0,t)∥2 dx dt+∥uτ−u⋆∥L2(ps)2.\begin{aligned} \int p_s(x)(t-s)\mathcal{D}_v\|u_\tau-u^\star\|^2\,dx\,ds\,dt &= \int p_0(z)(t-s)\mathcal{D}_v\|u_\tau(\Phi^\star(z,0,s),s,t)-u^\star(\Phi^\star(z,0,s),s,t)\|^2\,dz\,ds\,dt \\ &= \int p_0(z)(t-s)\frac{d}{ds}\|u_\tau(\Phi^\star(z,0,s),s,t)-u^\star(\Phi^\star(z,0,s),s,t)\|^2\,ds\,dz\,dt \\ &= \int p_0(z)\left[(t-s)\|u_\tau(\Phi^\star(z,0,s),s,t)-u^\star(\Phi^\star(z,0,s),s,t)\|^2\right]_{s=0}\,dz\,dt \\ &\quad+ \int p_0(z)\|u_\tau(\Phi^\star(z,0,s),s,t)-u^\star(\Phi^\star(z,0,s),s,t)\|^2\,dz\,ds\,dt \\ &= -\int tp_0(x)\|u_\tau(x,0,t)-u^\star(x,0,t)\|^2\,dx\,dt+\|u_\tau-u^\star\|^2_{L^2(p_s)}. \end{aligned}

Combining with the other part gives

∂τ∥uτ−u⋆∥L2(ps/ρ)2=∂∂τ∫ps(x)ρ(x,s,t)∥uτ−u⋆∥2 dx ds dt=−∫ps(x)∥uτ−u⋆∥2 dx ds dt−∫tp0(x)∥uτ−u⋆∥2 dx dt≤−ρmin⁡∫ps(x)ρ(x,s,t)∥uτ−u⋆∥2 dx ds dt=−ρmin⁡∥uτ−u⋆∥L2(ps/ρ)2.\begin{aligned} \partial_\tau\|u_\tau-u^\star\|^2_{L^2(p_s/\rho)} &=\frac{\partial}{\partial\tau}\int\frac{p_s(x)}{\rho(x,s,t)}\|u_\tau-u^\star\|^2\,dx\,ds\,dt \\ &=-\int p_s(x)\|u_\tau-u^\star\|^2\,dx\,ds\,dt-\int tp_0(x)\|u_\tau-u^\star\|^2\,dx\,dt \\ &\leq-\rho_{\min}\int\frac{p_s(x)}{\rho(x,s,t)}\|u_\tau-u^\star\|^2\,dx\,ds\,dt \\ &=-\rho_{\min}\|u_\tau-u^\star\|^2_{L^2(p_s/\rho)}. \end{aligned}

Hence we have that ∥uτ−u⋆∥L2(ps/ρ)2≤e−ρmin⁡τ∥u0−u⋆∥L2(ps/ρ)2\|u_\tau-u^\star\|^2_{L^2(p_s/\rho)}\leq e^{-\rho_{\min}\tau}\|u_0-u^\star\|^2_{L^2(p_s/\rho)}.

Although the assumption that ρ≥ρmin⁡>0\rho\geq\rho_{\min}>0 cannot hold for a density over Rd\mathbb{R}^d, the same inequality holds when integrating over a compact domain {(Φ⋆(x,a,s),s,t)∣x∈K, a≤s≤t≤b}\{(\Phi^\star(x,a,s),s,t)\mid x\in K,\ a\leq s\leq t\leq b\}. Moreover if ρ≤ρmax⁡<∞\rho\leq\rho_{\max}<\infty, then ∥uτ−u⋆∥L2(ps/ρ)2≥ρmax⁡−1∥uτ−u⋆∥L2(ps)2\|u_\tau-u^\star\|^2_{L^2(p_s/\rho)}\geq\rho_{\max}^{-1}\|u_\tau-u^\star\|^2_{L^2(p_s)}, hence uτ→u⋆u_\tau\to u^\star in L2(ps)L^2(p_s).

Sufficient conditions for convergence

We now state sufficient conditions under which the above proofs are valid. The closed-form and L∞L^\infty proofs rely on the local existence and uniqueness of characteristics XX, SS and TT, and the application of the chain rule. This follows from the Picard–Lindelöf theorem under certain assumptions on the velocity vv and the density ρ\rho:

  • vv is locally Lipschitz in x,sx,s.

  • ρ\rho is locally Lipschitz in x,s,tx,s,t.

This gives local existence and uniqueness. We can extend these local characteristics until they either approach a boundary or X→∞X\to\infty. The latter cannot happen if the true flow Φ⋆\Phi^\star is well-defined everywhere. We analyze conditions under which the former is avoided below.

The above derivations only work if the quantity FF does not diverge in finite time, otherwise the characteristics hit the boundary s=ts=t, where the PDE is unspecified. If ρ\rho is upper bounded by MM, then this holds, since FF satisfies the ODE F˙=ρF≤MF\dot{F}=\rho F\leq MF and F(0)=1F(0)=1, giving F(τ)≤eMτ<∞F(\tau)\leq e^{M\tau}<\infty.

If we suspend the assumption that ρ\rho must be locally Lipschitz everywhere, the following proposition characterizes the choices of ρ\rho for which the characteristics satisfy s<ts<t for all τ\tau.

Proposition 2. Suppose that ρ(x,s,t)≍g(t−s)\rho(x,s,t)\asymp g(t-s), where 1/g1/g is bounded outside of a neighborhood of $0 and ρ\rho is bounded below on trajectories. Then F(τ)<∞F(\tau)<\infty for all $\tau if and only if

∫011rg(r) dr=∞.(36)\int_0^1\frac{1}{r g(r)}\,dr=\infty. \tag*{(36)}

Proof. Note that showing F(T)<∞F(\mathcal{T}) < \infty is equivalent to showing S(0)<tS(0) < t or T(0)>sT(0) > s for any choice of T\mathcal{T}, depending on whether we are in the Eulerian or Lagrangian frame. Define a new variable R(τ)R(\tau) by

R(τ)={t−S(T−τ)under the Eulerian loss,T(T−τ)−sunder the Lagrangian loss.(37)R(\tau) = \begin{cases} t - S(\mathcal{T} - \tau) & \text{under the Eulerian loss},\\ T(\mathcal{T} - \tau) - s & \text{under the Lagrangian loss}. \end{cases} \tag*{(37)}

Then we can note that in both formulations, R˙=−ρ(X,S,T)R\dot{R} = -\rho(X,S,T)R and R(0)=t−sR(0) = t-s. Letting τ0\tau_0 be the time until RR hits 0 (which is possibly ∞\infty), we obtain that

∫0t−s1rρ(r) dr=τ0.\int_{0}^{t-s} \frac{1}{r\rho(r)}\,\mathrm{d}r = \tau_0.

Assuming that ρ(X,S,T)≍g(T−S)=g(R)\rho(X,S,T) \asymp g(T-S) = g(R) gives that

τ0≍∫0t−s1rg(r) dr,\tau_0 \asymp\int_{0}^{t-s} \frac{1}{rg(r)}\,\mathrm{d}r,

hence τ0\tau_0 is finite if and only if the integral is finite, noting that 0<t−s≤10 < t-s \leq1, and the integral from t−st-s to 1 is finite by the boundedness of g−1g^{-1} away from 0.

Choosing g(r)=1g(r) = 1 ensures convergence while having ρ\rho remain bounded.

Gradient descent proofs

For the gradient descent iterates uku_k, let Φk(x,s,t)=x+(t−s)uk(x,s,t)\Phi_k(x,s,t) = x + (t-s)u_k(x,s,t).

Proposition 1. For every η>0\eta> 0, ε>0\varepsilon> 0, and ρ∈C∞\rho\in C^\infty, there exists u0u_0 with initial error u0−u⋆∈L2(ρ)∩Cc∞u_0-u^\star\in L^2(\rho) \cap C^\infty_c and ∥u0−u⋆∥∞≤ε\lVert u_0-u^\star\rVert_\infty\leq\varepsilon, but whose iterates under Equation (18) diverge for L=LMF\mathcal{L} = \mathcal{L}^{\mathrm{MF}}, or for L=LL\mathcal{L} = \mathcal{L}^{\mathrm{L}} with v=0v=0.

Proof. We first write down the recurrence in terms of the errors ek=uk−u⋆e_k = u_k-u^\star, using the fact that u⋆−v−(t−s)Dvu⋆=0u^\star-v-(t-s)D_vu^\star=0, and u⋆−v(Φ⋆)+(t−s)∂tu⋆=0u^\star-v(\Phi^\star)+(t-s)\partial_tu^\star=0. For the MeanFlow loss,

ek+1=ek−ηρ(ek−(t−s)Dvek),(38)e_{k+1}=e_k-\eta\rho\left(e_k-(t-s)D_ve_k\right), \tag*{(38)}

and for the Lagrangian loss,

ek+1=ek−ηρ[ek+(t−s)∂tek−(v(Φk,t)−v(Φ⋆,t))].(39)e_{k+1}=e_k-\eta\rho\left[e_k+(t-s)\partial_te_k-\left(v(\Phi_k,t)-v(\Phi^\star,t)\right)\right]. \tag*{(39)}

We give an example of a small error blowing up. Consider ρ=1\rho=1 and

e=e0=ε(t−s)ma(40)e=e_0=\varepsilon(t-s)^m a \tag*{(40)}

for some value m∈Nm\in\mathbb{N} with η(m+1)>2\eta(m+1)>2 and a constant vector aa with ∥a∥=1\lVert a\rVert=1. Then −(t−s)Dve=(t−s)∂te=mε(t−s)ma=me-(t-s)D_ve=(t-s)\partial_te=m\varepsilon(t-s)^m a=me, hence ek+1=(1−η(m+1))eke_{k+1}=(1-\eta(m+1))e_k by induction, for any velocity vv under the MeanFlow loss, and for v=0v=0 under the Lagrangian loss. So ek=ε(1−η(m+1))k(t−s)mae_k=\varepsilon(1-\eta(m+1))^k(t-s)^m a. Since η>2(m+1)−1\eta>2(m+1)^{-1}, this diverges as k→∞k\to\infty.

To construct e0∈L2(ρ)e_0\in L^2(\rho), we can simply multiply by a smooth cutoff function which is equal to one on a neighborhood of a compact set KK. Since this update is local, on KK we will still have ek=ε(1−η(m+1))k(t−s)mae_k=\varepsilon(1-\eta(m+1))^k(t-s)^m a, and hence still obtain divergence in both L2(ρ)L^2(\rho) and L∞L^\infty.

We now generalize our construction to smooth ρ\rho. We pick some point (x,s,t)(x,s,t) on which ρ>0\rho>0. By continuity, there is a neighborhood around this point on which ρ\rho is positive.

Within this neighborhood, we choose V={(Φ⋆(x,r,s),s,t)∣x∈K,s∈[s1,s2],t∈[t1,t2]}V=\{(\Phi^\star(x,r,s),s,t)\mid x\in K,s\in[s_1,s_2],t\in[t_1,t_2]\}, with t1>s2t_1>s_2, for some fixed reference time r<s1r<s_1. We would like to find an initial error e0e_0 such that

ρ(e0−(t−s)Dve0)=me0⟹Dve0(x,s,t)=1−m/ρt−se0(x,s,t),(41)\rho\left(e_0-(t-s)D_ve_0\right)=me_0 \Longrightarrow D_ve_0(x,s,t)=\frac{1-m/\rho}{t-s}e_0(x,s,t), \tag*{(41)}

at least in some neighborhood. Consider choosing e0(x,s,t)e_0(x,s,t) to be constant for all (x,s,t)∈{(Φ⋆(x,r,s1),s1,t)∣x∈K,t∈[t1,t2]}(x,s,t)\in\{(\Phi^\star(x,r,s_1),s_1,t)\mid x\in K,t\in[t_1,t_2]\}. Then, we may define e0e_0 implicitly on the rest of VV since

Dve0(Φ⋆(x,r,s),s,t)=ddse0(Φ⋆(x,r,s),s,t).(42)D_ve_0(\Phi^\star(x,r,s),s,t)=\frac{\mathrm{d}}{\mathrm{d}s}e_0(\Phi^\star(x,r,s),s,t). \tag*{(42)}

It can also be defined explicitly through

e0(Φ⋆(x,r,s),s,t)=Cεexp⁡(∫s1s1−m/ρ(Φ⋆(x,r,s′),s′,t)t−s′ ds′)a,(43)e_0(\Phi^\star(x,r,s),s,t)=C_\varepsilon\exp\left(\int_{s_1}^{s}\frac{1-m/\rho(\Phi^\star(x,r,s'),s',t)}{t-s'}\,\mathrm{d}s'\right)a, \tag*{(43)}

where aa is a constant vector with norm 1, and CεC_\varepsilon is carefully chosen to bound the L∞L^\infty norm of e0e_0 on VV by ε\varepsilon. This suffices as an example of e0e_0 satisfying ρ(e0−(t−s)Dve0)=me0\rho(e_0-(t-s)D_v e_0)=me_0, at least within VV. Hence we obtain that ek+1=(1−ηm)eke_{k+1}=(1-\eta m)e_k, and so if η>2m\eta>\frac{2}{m}, then this diverges within VV.

Again, we may make this well-defined by multiplying by a cutoff function that is one on a neighborhood of a compact subset KK of VV, but now we must also assume this cutoff is 0 on the exterior of some open subset of VV, so that the local e0e_0 counterexample above extends to a globally defined counterexample. Moreover e0e_0 must be non-zero somewhere, so we obtain that its iterates must diverge in both L∞L^\infty and L2L^2 norms.

A similar proof works for the Lagrangian loss with v=0v=0, which we do not detail here.

This counterexample for the MeanFlow loss is independent of the flow map we are trying to learn. The phenomenon that increasingly small η\eta is required to fully learn all modes of the solution is due to the inherent stiffness of the MeanFlow and Lagrangian PDEs.

Theorem 4. Assume that the velocity vv, the density ρ\rho and u0u_0 fulfill Assumptions 1 and 2. In addition, assume that the iterates of gradient descent satisfy the discrete equivalent of Assumption 3, and that psp_s is bounded above: ps(x)≤pmax⁡<∞p_s(x)\le p_{\max}<\infty, ρ\rho is bounded below: ρ(x,s,t)≥ρmin⁡>0\rho(x,s,t)\ge\rho_{\min}>0 and ∥u0−u⋆∥L2(ps/ρ)<∞\lVert u_0-u^\star\rVert_{L^2(p_s/\rho)}<\infty. Consider the update scheme given in Equation (19).

  • For p≥0.5p\ge0.5, the updates have uniformly bounded norms: ∥uk+1−uk∥L2(ps/ρ)≤M<∞\lVert u_{k+1}-u_k\rVert_{L^2(p_s/\rho)}\le M<\infty.

  • p=1p=1 yields convergence for the MeanFlow objective to within a neighborhood: if ∥uk−utgt,k∥L2(ρ)≤M(k+1)\lVert u_k-u_{\mathrm{tgt},k}\rVert_{L^2(\rho)}\le M(k+1) for some M>0M>0, i.e. the norm of the residual grows at most linearly, then

lim sup⁡k→∞∥ukMF−u⋆∥L2(ps/ρ)2≤ηpmax⁡(ρmin⁡−1+ηc−1).(44)\limsup_{k\to\infty}\lVert u_k^{\mathrm{MF}}-u^\star\rVert^2_{L^2(p_s/\rho)} \le\eta p_{\max}\left(\rho_{\min}^{-1}+\eta c^{-1}\right). \tag*{(44)}

Proposition 3. Assume Assumptions 1 and 2 and the discrete equivalent of Assumption 3 hold. Consider the update scheme given in Equation (19). Assume that psp_s is bounded above: ps(x)≤pmax⁡<∞p_s(x)\le p_{\max}<\infty. Suppose ∥u0−u⋆∥L2(ps/ρ)<∞\lVert u_0-u^\star\rVert_{L^2(p_s/\rho)}<\infty. Then for p≥1/2p\ge1/2, the updates have uniformly bounded norms:

∥uk+1−uk∥L2(ps/ρ)≤M<∞.(45)\lVert u_{k+1}-u_k\rVert_{L^2(p_s/\rho)}\le M<\infty. \tag*{(45)}

Proof. Note that

∥uk+1−uk∥L2(ps/ρ)2=∥ηprk(∥rk∥L2(ρ)2+c)p∥L2(ps/ρ)2(46)\lVert u_{k+1}-u_k\rVert^2_{L^2(p_s/\rho)} = \left\lVert\eta p\frac{r_k}{(\lVert r_k\rVert^2_{L^2(\rho)}+c)^p}\right\rVert^2_{L^2(p_s/\rho)} \tag*{(46)}
=η2∫Rd×Δpsρρ2∥rk∥2(∥rk∥L2(ρ)2+c)2p dxdsdt(47)=\eta^2\int_{\mathbb{R}^d\times\Delta}\frac{p_s}{\rho}\rho^2\frac{\lVert r_k\rVert^2}{(\lVert r_k\rVert^2_{L^2(\rho)}+c)^{2p}}\,\mathrm{d}x\mathrm{d}s\mathrm{d}t \tag*{(47)}
≤η2pmax⁡(∥rk∥L2(ρ)2+c)2p∫Rd×Δρ∥rk∥2 dxdsdt(48)\le\eta^2\frac{p_{\max}}{(\lVert r_k\rVert^2_{L^2(\rho)}+c)^{2p}}\int_{\mathbb{R}^d\times\Delta}\rho\lVert r_k\rVert^2\,\mathrm{d}x\mathrm{d}s\mathrm{d}t \tag*{(48)}
=η2pmax⁡∥rk∥L2(ρ)2(∥rk∥L2(ρ)2+c)2p.(49)=\eta^2p_{\max}\frac{\lVert r_k\rVert^2_{L^2(\rho)}}{(\lVert r_k\rVert^2_{L^2(\rho)}+c)^{2p}}. \tag*{(49)}

The function f(x)=x(x+c)2pf(x)=\frac{x}{(x+c)^{2p}} on x≥0x\ge0 is bounded for p≥1/2p\ge1/2, since it is continuous with f(0)=0f(0)=0 and f(x)≤1f(x)\le1 for x≥1x\ge1.

Proposition 4. Assume Assumptions 1 and 2 and the discrete equivalent of Assumption 3 hold. Consider the update scheme given in Equation (19), with p=1.0p=1.0. Assume that on a subset K+=K^+=

{(Φ⋆(x,a,s),s,t):x∈K,a≤s≤t≤b}\{(\Phi^\star(x,a,s),s,t):x\in K,a\leq s\leq t\leq b\}, we have that psp_s is bounded above: ps(x)≤pmax⁡<∞p_s(x)\leq p_{\max}<\infty, and ρ\rho is bounded below: 0<ρmin⁡≤ρ0<\rho_{\min}\leq\rho. Then we obtain

∥uk+1−u⋆∥L2(ps/ρ)2≤max⁡(∥uk−u⋆∥L2(ps/ρ)2,ηpmax⁡(ρmin⁡−1+ηc−1)).(50)\lVert u_{k+1}-u^\star\rVert_{L^2(p_s/\rho)}^2\leq\max\left(\lVert u_k-u^\star\rVert_{L^2(p_s/\rho)}^2,\eta p_{\max}\left(\rho_{\min}^{-1}+\eta c^{-1}\right)\right). \tag*{(50)}

Under the assumption that there exists MM for which ∥rk∥L2(ρ)2≤M(k+1)\lVert r_k\rVert_{L^2(\rho)}^2\leq M(k+1) for each kk, for all kk large enough we obtain ∥uk−u⋆∥L2(ps/ρ)2≤ηpmax⁡(ρmin⁡−1+ηc−1)\lVert u_k-u^\star\rVert_{L^2(p_s/\rho)}^2\leq\eta p_{\max}(\rho_{\min}^{-1}+\eta c^{-1}).

Proof. We consider all norms over K+K^+. Note that

ek+1=ek−ηρrk∥rk∥L2(ρ)2+c,(51)e_{k+1}=e_k-\eta\rho\frac{r_k}{\lVert r_k\rVert_{L^2(\rho)}^2+c}, \tag*{(51)}

so with x=(x,s,t)x=(x,s,t), we have that

∫psρ∥ek+1∥2dx=∫psρ∥ek∥2dx−2η∫ps∥rk∥L2(ρ)2+cek⋅rkdx(52)\int\frac{p_s}{\rho}\lVert e_{k+1}\rVert^2\mathrm{d}x = \int\frac{p_s}{\rho}\lVert e_k\rVert^2\mathrm{d}x -2\eta\int\frac{p_s}{\lVert r_k\rVert_{L^2(\rho)}^2+c}e_k\cdot r_k\mathrm{d}x \tag*{(52)}
+η2∫ps∥rk∥2(∥rk∥L2(ρ)2+c)2dx.(53)\qquad+\eta^2\int p_s\frac{\lVert r_k\rVert^2}{\left(\lVert r_k\rVert_{L^2(\rho)}^2+c\right)^2}\mathrm{d}x. \tag*{(53)}

Under the assumption that ps≤pmax⁡p_s\leq p_{\max}, the final term can be bounded as η2pmax⁡/(∥rk∥L2(ρ)2+c)\eta^2p_{\max}/(\lVert r_k\rVert_{L^2(\rho)}^2+c). For the former, we can use a change of variables, the expansion rk=uk−v−(t−s)Dvuk=ek−(t−s)Dvekr_k=u_k-v-(t-s)D_vu_k=e_k-(t-s)D_ve_k, and integration by parts to notice that

∫K+psek⋅(ek−(t−s)Dvek)dx=∫ps∥ek∥2dx−12∫(t−s)padds∥ek∥2dx=12∫ps∥ek∥2dx+12∫(t−a)pa∥ek∥2dxdt.\begin{aligned} \int_{K^+}p_se_k\cdot\left(e_k-(t-s)D_ve_k\right)\mathrm{d}x = \int p_s\lVert e_k\rVert^2\mathrm{d}x -\frac{1}{2}\int(t-s)p_a\frac{\mathrm{d}}{\mathrm{d}s}\lVert e_k\rVert^2\mathrm{d}x \\ &= \frac{1}{2}\int p_s\lVert e_k\rVert^2\mathrm{d}x +\frac{1}{2}\int(t-a)p_a\lVert e_k\rVert^2\mathrm{d}x\mathrm{d}t. \end{aligned}

Hence we get the inequality

∥ek+1∥L2(ps/ρ)2−∥ek∥L2(ps/ρ)2≤−η∥rk∥L2(ρ)2+c(∫ps∥ek∥2dx−ηpmax⁡)≤−η∥rk∥L2(ρ)2+c(ρmin⁡∫psρ∥ek∥2dx−ηpmax⁡)≤−η∥rk∥L2(ρ)2+c(ρmin⁡∥ek∥L2(ps/ρ)2−ηpmax⁡).\begin{aligned} \lVert e_{k+1}\rVert_{L^2(p_s/\rho)}^2-\lVert e_k\rVert_{L^2(p_s/\rho)}^2 \leq -\frac{\eta}{\lVert r_k\rVert_{L^2(\rho)}^2+c} \left(\int p_s\lVert e_k\rVert^2\mathrm{d}x-\eta p_{\max}\right) \\ &\leq -\frac{\eta}{\lVert r_k\rVert_{L^2(\rho)}^2+c} \left(\rho_{\min}\int\frac{p_s}{\rho}\lVert e_k\rVert^2\mathrm{d}x-\eta p_{\max}\right) \\ &\leq -\frac{\eta}{\lVert r_k\rVert_{L^2(\rho)}^2+c} \left(\rho_{\min}\lVert e_k\rVert_{L^2(p_s/\rho)}^2-\eta p_{\max}\right). \end{aligned}

In particular, if ∥ek∥L2(ps/ρ)2≥ηpmax⁡ρmin⁡\lVert e_k\rVert_{L^2(p_s/\rho)}^2\geq\eta\frac{p_{\max}}{\rho_{\min}}, then ∥ek+1∥L2(ps/ρ)2≤∥ek∥L2(ps/ρ)2\lVert e_{k+1}\rVert_{L^2(p_s/\rho)}^2\leq\lVert e_k\rVert_{L^2(p_s/\rho)}^2. If ∥ek∥L2(ps/ρ)2≤ηpmax⁡ρmin⁡\lVert e_k\rVert_{L^2(p_s/\rho)}^2\leq\eta\frac{p_{\max}}{\rho_{\min}}, then

∥ek+1∥L2(ps/ρ)2≤∥ek∥L2(ps/ρ)2+η2pmax⁡∥rk∥L2(ρ)2+c≤ηpmax⁡(1ρmin⁡+ηc).\lVert e_{k+1}\rVert_{L^2(p_s/\rho)}^2 \leq \lVert e_k\rVert_{L^2(p_s/\rho)}^2 +\frac{\eta^2p_{\max}}{\lVert r_k\rVert_{L^2(\rho)}^2+c} \leq \eta p_{\max}\left(\frac{1}{\rho_{\min}}+\frac{\eta}{c}\right).

Therefore, once we enter the ball with squared radius ηpmax⁡(ρmin⁡−1+ηc−1)=O(η)\eta p_{\max}(\rho_{\min}^{-1}+\eta c^{-1})=O(\eta), we always stay within it.

Let ∥ek∥L2(ps/ρ)2=Tk+ηpmax⁡ρmin⁡−1\lVert e_k\rVert_{L^2(p_s/\rho)}^2=T_k+\eta p_{\max}\rho_{\min}^{-1}. Then,

Tk+1≤Tk(1−ηρmin⁡∥rk∥L2(ρ)2+c).T_{k+1}\leq T_k\left(1-\frac{\eta\rho_{\min}}{\lVert r_k\rVert_{L^2(\rho)}^2+c}\right).

Suppose Tk≥0T_k\geq0 for all kk, otherwise we have already entered the energy ball. Then, we must have 1−ηρmin⁡∥rk∥L2(ρ)2+c≥01-\frac{\eta\rho_{\min}}{\lVert r_k\rVert_{L^2(\rho)}^2+c}\geq0, and so through telescoping, we can derive the inequality

Tk+1≤T0∏i=0k(1−ηρmin⁡∥ri∥L2(ρ)2+c)≤T0∏i=0kexp⁡(−ηρmin⁡∥ri∥L2(ρ)2+c)=T0exp⁡(−ηρmin⁡∑i=0k1∥ri∥L2(ρ)2+c).\begin{aligned} T_{k+1}\leq T_0\prod_{i=0}^{k}\left(1-\frac{\eta\rho_{\min}}{\lVert r_i\rVert_{L^2(\rho)}^2+c}\right) \leq T_0\prod_{i=0}^{k}\exp\left(-\frac{\eta\rho_{\min}}{\lVert r_i\rVert_{L^2(\rho)}^2+c}\right) \\ &=T_0\exp\left(-\eta\rho_{\min}\sum_{i=0}^{k}\frac{1}{\lVert r_i\rVert_{L^2(\rho)}^2+c}\right). \end{aligned}

Hence under the assumption

∑i=0∞1∥ri∥L2(ρ)2+c=∞,\sum_{i=0}^{\infty} \frac{1}{\lVert r_i\rVert_{L^2(\rho)}^2+c}=\infty,

we will have that Tk→0T_k \to0 as k→∞k \to\infty. Hence the squared norm is confined to a ball of squared radius O(η)\mathcal{O}(\eta). Finally, this condition holds true if ∥rk∥L2(ρ)2≤M(k+1)\lVert r_k\rVert_{L^2(\rho)}^2 \le M(k+1) for all kk.

This says that we converge under the assumption that the effective total step size

∑i=0∞1∥ri∥L2(ρ)2+c\sum_{i=0}^{\infty} \frac{1}{\lVert r_i\rVert_{L^2(\rho)}^2+c}

is infinite.

For p>1p>1 it is likely possible to formulate similar convergence guarantees; however the assumptions on the residual norms will be stricter.

Equivalence to Align Your Flow

We show that Equations (4) and (6) have the same gradient update as the losses in Align Your Flow ([30]). This is already proven for the AYF-EMD objective and the MeanFlow loss in Section D.5 of Sabour et al. [30].

For the AYF-LMD objective, note that

\nabla_\theta\mathcal{L}^{\mathrm{AYF\mathchar`-LMD}} = \nabla_\theta\mathbb{E}\left[w(s,t)(t-s)f_\theta(x,s,t)^{\mathsf{T}}_{\mathrm{sg}}\left(\partial_t f_\theta(x,s,t)-v(f_\theta(x,s,t),t)\right)\right]. \tag*{(54)}

Using the parametrization

fθ(x,s,t)=x+(t−s)uθ(x,s,t),f_\theta(x,s,t)=x+(t-s)u_\theta(x,s,t),

we have

∇θfθ=(t−s)∇θuθ,\nabla_\theta f_\theta=(t-s)\nabla_\theta u_\theta,
∂tfθ−v(fθ,t)=uθ+(t−s)∂tuθ−v(x+(t−s)uθ,t).\partial_t f_\theta-v(f_\theta,t)=u_\theta+(t-s)\partial_tu_\theta-v\left(x+(t-s)u_\theta,t\right).

Therefore,

\nabla_\theta\mathcal{L}^{\mathrm{AYF\mathchar`-LMD}} = \mathbb{E}\left[w(s,t)(t-s)^2\nabla_\theta u_\theta^{\mathsf{T}}{}_{\mathrm{sg}}\left(u_\theta+(t-s)\partial_tu_\theta-v\left(x+(t-s)u_\theta,t\right)\right)\right]. \tag*{(55)}

The term inside the stop gradient is precisely the residual of Equation (6). Hence AYF-LMD and our Lagrangian loss induce the same gradient update, up to their choice of loss weightings.

Experimental details

Additional experiments: validation of theoretical results

All experiments in this subsection were conducted on CPU.

Equivalence of experimental and theoretical trajectories. Figure 2 and Figure 4 show 1+21+2 dimensional lookup tables with 129×33×33129 \times33 \times33 parameters trained from a cosine initialization relaxing towards the true flow map. We choose a bounded region of space x∈[−4,5]x \in[-4,5], and initialize u0(x,s,t)=0.8cos⁡(1.3x+2s)−0.2tu_0(x,s,t)=0.8\cos(1.3x+2s)-0.2t. Choosing p0=N(0,1)p_0=\mathcal{N}(0,1), p1=N(1,0.62)p_1=\mathcal{N}(1,0.6^2), the linear interpolant has pt=N(t,(1−t)2+t20.62)p_t=\mathcal{N}\left(t,(1-t)^2+t^2 0.6^2\right). We take ρ=1\rho=1, and use learning rate 3×10−53 \times10^{-5} for both methods.

Figure 4. Synthetic Gaussian-to-Gaussian dataset. Each line corresponds to an optimization time τ\tau for the empirically learned average velocity (left) and the derived closed-form average velocity (right). As the optimization time increases, the average velocities converge towards the true one u∗u^*. The two average velocities, empirically learned and the closed-form, show strong agreement across optimization times τ\tau and for both the MeanFlow (top) and Lagrangian target (bottom).

Effect of loss weighting on convergence. In order to see how loss weighting affects convergence, we redo the same convergence experiments with ρ(x,s,t)=(t−s)a\rho(x,s,t)=(t-s)^a, for various values of aa. In order for the updates to remain stable at a=−1a=-1, we use a coarser grid, of size 65×17×1765 \times17 \times17. Results are plotted in Figure 5. We choose an LR of 10−510^{-5} for a=−1a=-1, 3×10−53 \times10^{-5} for a=−0.5a=-0.5, and 3×10−43 \times10^{-4} for a=0a=0 and 11.

Figure 5. A comparison of the convergence rates of flow maps trained with different loss weightings ρ=(t−s)a\rho=(t-s)^a, versus their theorized trajectories. For a=−1a=-1 and a=−0.5a=-0.5, the theoretical last diagonal hitting time is marked.

We can see that our derived convergence rates hold in practice. Moreover, for choices of a<0a<0 when interior characteristics are predicted to hit the boundary at finite time, convergence to the error floor happens at or shortly after this hitting time.

To quantify the dependence of each loss weighting on the diagonal, we consider a situation where the diagonal is not τ\tau-independent. Using the same experimental setup as with Figure 5, we now let uτ(x,t,t)=v(x,t)+sin⁡(πτ)/2u_\tau(x,t,t)=v(x,t)+\sin(\pi\tau)/2.

Figure 6 shows a comparison of the L2L^2 errors for a<0a<0. We see that for a=−0.5a=-0.5 and a=−1a=-1, the loss is consistently higher than the a=0a=0 loss, which matches our prediction that the interior of the PDE tracks the boundary for a<0a<0, whereas for a=0a=0 the solution of the PDE in the interior should be independent of the evolution of the boundary. The failure of the a=0a=0 runs to recover the true interior map is a discretization error that arises from our lookup table approximation.

Figure 6. Instead of keeping the diagonal u(x,s,s)u(x,s,s) fixed, we vary it with optimization time, keeping it centered at the true velocity. The learned flow maps for a<0a<0 have a higher MSE against the true flow map, compared to a=0a=0. We plot the errors achieved when the diagonal is fixed for comparison.

Mode-learning dependence on η\eta. We now show that learning higher modes is impossible with a fixed learning rate. Using the linear interpolant between N(0,1)\mathcal{N}(0,1) and N(0,0.62)\mathcal{N}(0,0.6^2), we consider initializing our map with error (t−s)k(t-s)^k, for choices of k=2k=2, 88 and 2424. We evaluate the largest error of the MeanFlow evolution on a 64×257×25764 \times257 \times257 grid for different values of η\eta.

Results are found in Figure 7. We see that if η\eta is too large compared to 1/k1/k, the table is unable to learn, and the error grows.

Three plots showing largest error in the grid for $k=2$, $k=8$, and $k=24$ at different values of $\eta$

Figure 7. The choice of η\eta impacts whether we learn an error of the form (t−s)k(t-s)^k. As kk increases, a smaller η\eta must be taken to ensure that gradient descent does not accumulate errors.

Additional experiments: qualitative behavior

We aim to show a difference in practice between learning using the MeanFlow and the Lagrangian objective. The following experiment ran in 90 minutes on a single RTX 5090.

Dependence on velocity Lipschitzness. We have shown that pointwise and L2L^2 convergence rates for the MeanFlow objective are independent of the Lipschitz constant of the velocity vv, whereas in the Lagrangian objective the convergence guarantees are exponentially weakened by the Lipschitz constant LL. To test whether this effect is visible in practice, we train neural flow map models to follow increasingly expansive velocities using both objectives, and measure their relative L2L^2 error to the true average velocity u∗u^*.

We train 3×2563 \times256 MLPs with Adam with learning rate 10−410^{-4} to learn the flow map associated to the velocity v(x,t)=λxv(x,t)=\lambda x for values of λ\lambda in [0.25,4][0.25,4], starting from the 64 dimensional Gaussian distribution N(0,I)\mathcal{N}(0,I). We train for 60k steps, using batch sizes of 1024. We plot the mean relative L2L^2 error obtained over 5 seeds along with min-max bands in Figure 8. The MeanFlow objective achieves lower error on this task than the Lagrangian objective over all values of λ\lambda considered, which is consistent with the convergence rate theory that we have developed. For values of λ\lambda above 3.5, the Lagrangian objective fails to learn the flow map.

Figure 8. For the linear flow v(x,t)=λxv(x,t)=\lambda x, we report the average relative L2(ps)L^2(p_s) error over 5 seeds for average velocity networks against the ground truth u⋆=(eλ(t−s)−1)x/(t−s)u^\star=(e^{\lambda(t-s)}-1)x/(t-s). Lagrangian is worse than MeanFlow for every λ\lambda tested, and is unstable at high λ\lambda.

To keep the input at bounded variance, we scale the network input by e−λe^{-\lambda}, and the network output by eλe^\lambda. We compute L2L^2 errors over 30k samples, sampled from ps(x)p_s(x) for s∼U[0,1]s \sim U[0,1].

CIFAR distilledFFHQ distilled
TeacherCFM (EMA)EDM VE (EMA)
ArchitectureEDM2-style U-NetEDM2-style U-Net
Parameters54.7M59.9M
Model Channels128128
Channel Mults[2, 2, 2][1, 2, 2, 2]
Attention Dims16, 816, 8
Training time (1×\timesH100)13.5h28.3h
Seeds0, 1, 20, 1, 2
Diagonal Proportion0.50.5
OptimizerAdamAdam
Learning rate2×10−32 \times10^{-3}1×10−31 \times10^{-3}
Dropout0.20.2
Batch size256256
Training steps200k200k
Warm-up2.5k2.5k
EMA0.99990.9999
Precisionbf16 AMPbf16 AMP

Table 3 (PDF p. 25). Training configuration for the CIFAR-10 and FFHQ experiments.

Additional experimental details for large scale experiments

We include the performance of Lagrangian-trained flow maps on CIFAR-10 in Table 2. Similarly to the MeanFlow trained flow maps, the lowest FIDs were produced when p≥0.5p \ge0.5, and p=0.0p = 0.0 gave the worst performance.

ppNFE 1NFE 2NFE 4
0.0074.01 ±\pm 8.7125.82 ±\pm 3.519.75 ±\pm 1.16
0.2556.61 ±\pm 1.4621.51 ±\pm 0.858.14 ±\pm 0.71
0.5051.99 ±\pm 8.5619.24 ±\pm 1.306.80 ±\pm 0.15
0.7542.54 ±\pm 1.8715.25 ±\pm 1.065.94 ±\pm 0.24
1.0039.58 ±\pm 5.9613.94 ±\pm 2.176.35 ±\pm 0.67
1.2554.33 ±\pm 7.5921.00 ±\pm 3.008.06 ±\pm 1.17
1.5045.85 ±\pm 2.9420.32 ±\pm 1.938.47 ±\pm 1.05

Table 2. FID on CIFAR-10 for the Lagrangian objective with different normalization exponents pp. Results are reported as mean ±\pm standard deviation over three runs.

We provide the hyperparameters used for training in Table 3. Note that we ablate over the pp parameter that decides the strength of the adaptive normalization w=sg⁡((∥uk−utgt,k∥22+c)−p)w = \operatorname{sg}((\lVert u_k - u_{\mathrm{tgt},k}\rVert_2^2 + c)^{-p}), with c=10−3c = 10^{-3}. We either use the MeanFlow or the Lagrangian loss with the OT-CFM teacher [39] for CIFAR-10, or the EDM teacher [19] for FFHQ 64×\times64. Times are measured for the MeanFlow loss. Each entry of Table 1 and Table 2 displays the mean and the standard deviation over 3 training runs.

Following Geng et al. [12], we use (s,t−s)(s, t - s) as the time embedding rather than (s,t)(s, t), and we pick (s,t)(s, t) from specialized distributions. For off-diagonal points, we use s∼LogitNormal⁡(0.6,1.62)s \sim\operatorname{LogitNormal}(0.6, 1.6^2) and t∼LogitNormal⁡(4.0,1.62)t \sim\operatorname{LogitNormal}(4.0, 1.6^2), then set (s,t)←(min⁡(s,t),max⁡(s,t))(s, t) \leftarrow(\min(s, t), \max(s, t)). For diagonal points, s∼LogitNormal⁡(0.6,1.62)s \sim\operatorname{LogitNormal}(0.6, 1.6^2).

References

  1. [1]M. S. Albergo and E. Vanden-Eijnden. Building normalizing flows with stochastic interpolants. In ICLR, 2023. 1, 3arxiv.org/abs/2209.15571
  2. [2]Q. Bertrand, A. Gagneux, M. Massias, and R. Emonet. On the closed-form of flow matching: Generalization does not arise from target stochasticity. NeurIPS, 2025. 3arxiv.org/abs/2506.03719
  3. [3]Black Forest Labs, S. Batifol, A. Blattmann, F. Boesel, S. Consul, C. Diagne, T. Dockhorn, J. English, Z. English, P. Esser, et al. Flux. 1 kontext: Flow matching for in-context image generation and editing in latent space. arXiv preprint arXiv:2506.15742, 2025. 1arxiv.org/abs/2506.15742
  4. [4]N. M. Boffi, M. S. Albergo, and E. Vanden-Eijnden. Flow map matching with stochastic interpolants: A mathematical framework for consistency models. TMLR, 2025a. 2, 3, 4arxiv.org/abs/2406.07507
  5. [5]N. M. Boffi, M. S. Albergo, and E. Vanden-Eijnden. How to build a consistency model: Learning flow maps via self-distillation. In NeurIPS, 2025b. 7, 10arxiv.org/abs/2505.18825
  6. [6]Z. Borsos, R. Marinier, D. Vincent, E. Kharitonov, O. Pietquin, M. Sharifi, D. Roblek, O. Teboul, D. Grangier, M. Tagliasacchi, et al. Audiolm: a language modeling approach to audio generation. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 2023. 1arxiv.org/abs/2209.03143
  7. [7]T. Brooks, B. Peebles, C. Holmes, W. DePue, Y. Guo, L. Jing, D. Schnurr, J. Taylor, T. Luhman, E. Luhman, et al. Video generation models as world simulators. OpenAI Blog, 2024. 1
  8. [8]N. S. Detlefsen, J. Borovec, J. Schock, A. H. Jha, T. Koker, L. Di Liello, D. Stancl, C. Ouan, M. Grechkin, and W. Falcon. Torchmetrics—measuring reproducibility in pytorch. Journal of Open Source Software, 2022. 9DOI
  9. [9]DiffusionGemma Team, A. A. Taïga, J. Assienne, D. Calandriello, R. Chaabouni, J. Gante, T. von Glehn, N. Keating, C. Knutsen, M. Kukla, et al. Diffusiongemma technical report. arXiv preprint arXiv:2608.00146, 2026. 1
  10. [10]P. Esser, S. Kulal, A. Blattmann, R. Entazari, J. Müller, H. Saini, Y. Levi, D. Lorenz, A. Sauer, F. Boesel, et al. Scaling rectified flow transformers for high-resolution image synthesis. In ICML, 2024. 1arxiv.org/abs/2403.03206
  11. [11]K. Frans, D. Hafner, S. Levine, and P. Abbeel. One step diffusion via shortcut models. In ICLR, 2025. 2arxiv.org/abs/2410.12557
  12. [12]Z. Geng, M. Deng, X. Bai, J. Z. Kolter, and K. He. Mean flows for one-step generative modeling. In NeurIPS, 2025. 2, 3, 7, 25arxiv.org/abs/2505.13447
  13. [13]Z. Geng, Y. Lu, Z. Wu, E. Shechtman, J. Z. Kolter, and K. He. Improved mean flows: On the challenges of fastforward generative models. In CVPR, 2026. 2, 4, 7arxiv.org/abs/2512.02012
  14. [14]M. Goldstein, A. Uppal, R. Singhal, A. M. Puli, and R. Ranganath. Flow map learning via non-gradient vector flow. In ICLR, 2026. 2, 4, 7
  15. [15]S. Gong, M. Li, J. Feng, Z. Wu, and L. Kong. Diffuseq: Sequence to sequence text generation with diffusion models. In ICLR, 2023. 1arxiv.org/abs/2210.08933
  16. [16]M. Heusel, H. Ramsauer, T. Unterthiner, B. Nessler, and S. Hochreiter. Gans trained by a two time-scale update rule converge to a local Nash equilibrium. NeurIPS, 30, 2017. 9
  17. [18]T. Karras, S. Laine, and T. Aila. A style-based generator architecture for generative adversarial networks. In CVPR, June 2019. 8DOI
  18. [19]T. Karras, M. Aittala, T. Aila, and S. Laine. Elucidating the design space of diffusion-based generative models. In NeurIPS, 2022. 8, 25arxiv.org/abs/2206.00364
  19. [20]T. Karras, M. Aittala, J. Lehtinen, J. Hellsten, T. Aila, and S. Laine. Analyzing and Improving the Training Dynamics of Diffusion Models . In CVPR, 2024. 8arxiv.org/abs/2312.02696
  20. [21]A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. 2009. 8
  21. [22]C. Lee, J. Yoo, M. Agarwal, S. Shah, J. Huang, A. Raghunathan, S. Hong, N. M. Boffi, and J. Kim. Flow map language models: One-step language modeling via continuous denoising. arXiv preprint arXiv:2602.16813, 2026. 1, 7arxiv.org/abs/2602.16813
  22. [23]Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, and M. Le. Flow matching for generative modeling. In ICLR, 2023. 1, 3arxiv.org/abs/2210.02747
  23. [24]X. Liu, C. Gong, and Q. Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In ICLR, 2023. 1, 3arxiv.org/abs/2209.03003
  24. [28]A.-A. Pooladian, H. Ben-Hamu, C. Domingo-Enrich, B. Amos, Y. Lipman, and R. T. Q. Chen. Multisample flow matching: Straightening flows with minibatch couplings. In ICML, 2023. 3arxiv.org/abs/2304.14772
  25. [29]E. Quemener and M. Corvellec. Sidus—the solution for extreme deduplication of an operating system. Linux J., 2013. 10
  26. [30]A. Sabour, S. Fidler, and K. Kreis. Align your flow: Scaling continuous-time flow map distillation. In NeurIPS, 2025. 2, 4, 7, 21arxiv.org/abs/2506.14603
  27. [31]S. S. Sahoo, M. Arriola, Y. Schiff, A. Gokaslan, E. Marrouquin, J. T. Chiu, A. Rush, and V. Kuleshov. Simple and effective masked diffusion language models. In NeurIPS, 2024. 1arxiv.org/abs/2406.07524
  28. [32]N. Savinov, J. Chung, M. Binkowski, E. Elsen, and A. v. d. Oord. Step-unrolled denoising autoencoders for text generation. In ICLR, 2022. 1arxiv.org/abs/2112.06749
  29. [33]M. W. Shen, M. Goldstein, Z. Wang, A. Puli, and R. Ranganath. How i learned to stop worrying and love stopgrads: Stationarity, convergence, and a case study on flow map learning. arXiv preprint arXiv:2609.16222, 2026. 4, 8arxiv.org/abs/2609.16222
  30. [34]J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In ICML, 2015. 1
  31. [35]Y. Song and P. Dhariwal. Improved techniques for training consistency models. In ICLR, 2024. 7arxiv.org/abs/2310.14189
  32. [36]Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole. Score-based generative modeling through stochastic differential equations. In ICLR, 2021. 1
  33. [37]Y. Song, P. Dhariwal, M. Chen, and I. Sutskever. Consistency models. In ICML, 2023. 2, 7arxiv.org/abs/2303.01469
  34. [39]A. Tong, K. Fatras, N. Malkin, G. Huguet, Y. Zhang, J. Rector-Brooks, G. Wolf, and Y. Bengio. Improving and generalizing flow-based generative models with minibatch optimal transport. TMLR, 2024. 3, 8, 25arxiv.org/abs/2302.00482
  35. [40]R. Villegas, M. Babaeizadeh, P.-J. Kindermans, H. Moraldo, H. Zhang, M. T. Saffar, S. Castro, J. Kunze, and D. Erhan. Phenaki: Variable length video generation from open domain textual descriptions. In ICLR, 2023. 1arxiv.org/abs/2210.02399
  36. [41]T. Yin, M. Gharbi, R. Zhang, E. Shechtman, F. Durand, W. T. Freeman, and T. Park. One-step diffusion with distribution matching distillation. In CVPR, 2024. 2arxiv.org/abs/2311.18828
  37. [42]H. Zhang, A. Siarohin, W. Menapace, M. Vasilkovsky, S. Tulyakov, Q. Qu, and I. Skorokhodov. Alphaflow: Understanding and improving meanflow models. In ICLR, 2026. 2arxiv.org/abs/2510.20771
  38. [43]L. Zhou, S. Ermon, and J. Song. Inductive moment matching. In ICML, 2025. 2arxiv.org/abs/2503.07565
  39. [44]L. Zhou, M. Parker, A. Haque, and J. Song. Terminal velocity matching. In ICLR, 2026. 2, 7, 10arxiv.org/abs/2511.19797

Paper details

vlnc:W_habbttap
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 4

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

generative AI tools

View statement
Looking for related papers…
Contents