betaFeedback

WorksComputer Science

FlowBudget: Training-Free Sampling-Budget Estimation for Flow Matching Models

Abstract

Sampling from continuous flow-based generators such as flow matching models requires numerical ODE or SDE integration, making inference cost depend on the number of function evaluations (NFEs). In practice, the sampling budget is inherited from prior work or selected through expensive FID-versus-NFE sweeps, using FID to assess image-generation quality, requiring sample generation and evaluation at multiple budgets. This makes sampling-budget selection dependent on repeated empirical evaluation. We therefore ask a complementary question to solver design and timestep allocation: for a fixed pretrained model and solver, what numerical resolution is sufficient? We introduce FLOWBUDGET, a training-free estimator of solver-relative sampling complexity. Using simulation-free interpolation probes of the learned dynamics, FLOWBUDGET normalizes the leading one-step discretization error by the motion, estimates its coefficient from interpolation probes, and maps a numerical tolerance to a step budget using the solver order. We derive estimators for numerical solvers in flow~matching sampling, namely Euler and Heun for ODE sampling and additive-noise Euler–Maruyama for SDE sampling, and connect the ODE coefficients to terminal integration error. Experiments on SiT, FlowDCN and Rectified Flow models, spanning flow-model architectures and formulations, test whether FLOWBUDGET can estimate the NFE budget without generating samples at multiple budgets or performing an FID-versus-NFE sweep. The code is available at https://github.com/Yasaman-dt/FlowBudget

Introduction

Flow matching models learn a time-dependent velocity field whose integration transports a reference law to data [1, 2, 3], and are used across image [4], audio [5, 6], and video [7] generation. At inference, generation requires numerical integration of ordinary differential equations (ODEs) or stochastic differential equations (SDEs) parameterized by the learned model [8, 9, 10, 11]. Because each integration step requires one or more neural-network evaluations, the solver and its number of function evaluations (NFEs) directly determine sampling cost. Few NFEs can produce substantial discretization error, whereas increasing NFEs reduces this error according to the convergence order of the chosen solver [12, 13, 14]. In practice, however, the number of NFEs is often inherited from a reference implementation, e.g., 250 NFEs [11, 15], or selected by trial and error based on generation quality.

Generation error can arise from both approximation error in the learned velocity field and numerical error introduced by the solver. For a fixed pretrained model, the former is fixed, so we focus on the numerical integration error. Recent methods improve sampling efficiency by changing the solver or by allocating a fixed budget nonuniformly [13, 14, 16, 17, 18, 19]. In particular, SharpEuler uses trajectory acceleration—the leading Euler local-error quantity—to decide where a prescribed Euler budget should be spent [17]. Our problem is complementary: we keep the pretrained model and solver fixed and ask how large the total budget should be. Thus, the novelty is not the use of local truncation error itself, but its use to define and estimate a solver-relative numerical sampling complexity before performing a quality-versus-NFE sweep.

We introduce FLOWBUDGET, which associates each pretrained model–solver pair with a scale-normalized numerical-complexity coefficient. Estimated from simulation-free interpolation probes, this coefficient combines with the solver order to map a prescribed relative numerical tolerance directly to a sampling-step budget. Our contributions are threefold. First, we formulate fixed-solver budget estimation as a numerical-error problem and derive a general scaling law relating a stabilized relative local-error tolerance to the required step budget. Second, we instantiate the construction for Euler and Heun ODE sampling and additive-noise Euler–Maruyama sampling, and connect the Euler/Heun differential coefficients to terminal ODE integration error under standard stability assumptions. We also distinguish the population numerical-complexity coefficient from its Monte Carlo estimate and give a finite-probe concentration guarantee. Third, across pretrained SiT, Rectified Flow, and FlowDCN models, we test whether this numerical resolution yields useful quality–cost operating points without using FID-versus-NFE sweeps to construct the estimator.

Background and Problem Formulation

Background. Flow matching learns a time-dependent velocity field for transporting samples between noise and data distributions [1]. Given data x0∼pdatax_0 \sim p_{\mathrm{data}} and Gaussian noise ϵ∼N(0,I)\epsilon\sim\mathcal{N}(0,I), consider the interpolant xt=atx0+btϵx_t = a_t x_0 + b_t \epsilon, t∈[0,1]t \in[0,1], where the differentiable schedules satisfy a0=b1=1a_0 = b_1 = 1 and a1=b0=0a_1 = b_0 = 0. Throughout this work, we adopt the conventional linear schedules at=1−ta_t = 1-t and bt=tb_t = t, as used in the literature, e.g., Rectified Flow [2], SiT [11], and FlowDCN [15]. The resulting interpolant is xt=(1−t)x0+tϵx_t = (1-t)x_0 + t\epsilon, with conditional velocity vt=dxtdt=ϵ−x0v_t = \frac{dx_t}{dt} = \epsilon- x_0. A neural velocity field vθ(xt,t)v_\theta(x_t,t) is trained to predict this conditional velocity by minimizing LFM(θ)=Ex0,ϵ,t[∥vθ(xt,t)−vt∥22]\mathcal{L}_{\mathrm{FM}}(\theta) = \mathbb{E}_{x_0,\epsilon,t}[\lVert v_\theta(x_t,t)-v_t\rVert_2^2], where t∼U[0,1]t \sim\mathcal{U}[0,1]. At inference, generation starts from Gaussian noise x1∼N(0,I)x_1 \sim\mathcal{N}(0,I) and proceeds backward from t=1t=1 to t=0t=0. For KK uniform steps, we define the time grid tn=1−n/Kt_n = 1-n/K, n=0,…,Kn=0,\ldots,K, and the signed step size h=tn+1−tn=−1/Kh=t_{n+1}-t_n=-1/K. We write xtnx_{t_n} for the numerical state at time tnt_n, initialized with xt0=x1x_{t_0}=x_1. For ODE sampling we integrate dxtdt=vθ(xt,t)\frac{dx_t}{dt}=v_\theta(x_t,t) using Euler or Heun [12]. Euler uses the update xtn+1E=xtn+hvθ(xtn,tn)x_{t_{n+1}}^{\mathrm{E}}=x_{t_n}+h v_\theta(x_{t_n},t_n), while Heun uses xtn+1H=xtn+h2[vθ(xtn,tn)+vθ(xtn+hvθ(xtn,tn),tn+1)]x_{t_{n+1}}^{\mathrm{H}}=x_{t_n}+\frac{h}{2}[v_\theta(x_{t_n},t_n)+v_\theta(x_{t_n}+h v_\theta(x_{t_n},t_n),t_{n+1})]. For SDE sampling, we consider dxt=fθ(xt,t) dt+wt dWtdx_t=f_\theta(x_t,t)\,dt+\sqrt{w_t}\,dW_t, where WtW_t is a reverse-time Wiener process, wt≥0w_t \ge0 is a prescribed time-dependent noise variance rate, and fθ(xt,t)=vθ(xt,t)−12wtsθ(xt,t)f_\theta(x_t,t)=v_\theta(x_t,t)-\frac{1}{2}w_t s_\theta(x_t,t) is the reverse-time drift. For the linear interpolant, the score is estimated from the learned velocity as sθ(xt,t)=−xt+(1−t)vθ(xt,t)ts_\theta(x_t,t)=-\frac{x_t+(1-t)v_\theta(x_t,t)}{t} [10, 11]. On the same time grid, Euler–Maruyama gives xtn+1EM=xtn+h[vθ(xtn,tn)−12wtnsθ(xtn,tn)]+wtn∣h∣ ξnx_{t_{n+1}}^{\mathrm{EM}}=x_{t_n}+h\left[v_\theta(x_{t_n},t_n)-\frac{1}{2}w_{t_n}s_\theta(x_{t_n},t_n)\right]+\sqrt{w_{t_n}|h|}\,\xi_n, where ξn∼N(0,I)\xi_n \sim\mathcal{N}(0,I) are independent [20].

Problem Formulation. Given a pretrained velocity field vθv_\theta, a fixed sampling dynamics and solver SS, and a tolerance τ>0\tau>0, we estimate the smallest uniform step budget KK whose leading-order mean relative local error is at most τ\tau. We define relative local error as the one-step discretization error divided by a stabilized displacement scale, and estimate its mean using data-noise interpolation probes constructed from a small data subset. This yields an asymptotic budget estimate without simulating sampling trajectories.

Methodology

FLOWBUDGET estimates the sampling budget from local properties of the dynamics evaluated at interpolation probes. We construct xt=(1−t)x0+tϵx_t=(1-t)x_0+t\epsilon and denote μ\mu as a simulation-free surrogate for the sampler-induced state–time law. For a probe (xt,t)(x_t,t), consider a step of magnitude ∣h∣|h| in the sampling direction. Let LS(xt,t;h)L_S(x_t,t;h) be the one-step local error between exact and numerical updates starting from the same state, and let DS(xt,t;h)D_S(x_t,t;h) denote the one-step displacement scale. For SDEs, these quantities use the conditional root-mean-square norm, with the exact and numerical updates sharing the same Brownian path. Their small-step expansions take the form

LS(xt,t;h)=κS∣h∣αSqS(xt,t)+O(∣h∣αS+δ),(1)L_S(x_t,t;h)=\kappa_S|h|^{\alpha_S}q_S(x_t,t)+O(|h|^{\alpha_S+\delta}), \tag*{(1)}
DS(xt,t;h)=∣h∣βSdS(xt,t)+O(∣h∣βS+δ),(2)D_S(x_t,t;h)=|h|^{\beta_S}d_S(x_t,t)+O(|h|^{\beta_S+\delta}), \tag*{(2)}

where κS,δ>0\kappa_S,\delta>0, qS,dS≥0q_S,d_S\ge0, and αS>βS>0\alpha_S>\beta_S>0. Coefficients qSq_S and dSd_S describe the local error and motion, while the exponents determine their dependence on the step size. To measure local numerical error relative to this motion, define

ES(xt,t;h)=LS(xt,t;h)DS(xt,t;h)+ϵ∣h∣βS,ϵ>0.(3)\mathcal{E}_S(x_t,t;h)=\frac{L_S(x_t,t;h)}{D_S(x_t,t;h)+\epsilon|h|^{\beta_S}},\qquad\epsilon>0. \tag*{(3)}

The stabilization scales with the displacement, preserving the leading step-size dependence. The corresponding normalized coefficient and its probe average are

rθS(xt,t)=qS(xt,t)dS(xt,t)+ϵ,ES=Eμ[rθS(xt,t)].(4)r^\mathit{S}_\theta(x_t,t)=\frac{q_S(x_t,t)}{d_S(x_t,t)+\epsilon},\qquad\mathcal{E}_S=\mathbb{E}_{\mu}\left[r^\mathit{S}_\theta(x_t,t)\right]. \tag*{(4)}

Proposition 1 (Budget scaling). Let γS=αS−βS\gamma_S=\alpha_S-\beta_S. Suppose that, uniformly on the support of μ\mu, we have LS=κS∣h∣αSqS+RL,SL_S=\kappa_S|h|^{\alpha_S}q_S+R_{L,S}, ∣RL,S∣≤ML∣h∣αS+δ|R_{L,S}|\le M_L|h|^{\alpha_S+\delta} and DS=∣h∣βSdS+RD,SD_S=|h|^{\beta_S}d_S+R_{D,S}, ∣RD,S∣≤MD∣h∣βS+δ|R_{D,S}|\le M_D|h|^{\beta_S+\delta}, for integrable leading coefficients. For sufficiently small ∣h∣|h|

ES(K):=Eμ[ES(xt,t;h)]=κSESK−γS+O(∣h∣γS+δ).(5)\mathcal{E}_S(K):=\mathbb{E}_{\mu}[\mathcal{E}_S(x_t,t;h)]=\kappa_S\mathcal{E}_S K^{-\gamma_S}+O(|h|^{\gamma_S+\delta}). \tag*{(5)}

Accordingly, solving κSESK−γS=τ\kappa_S\mathcal{E}_S K^{-\gamma_S}=\tau defines the population leading-order budget and its Monte Carlo plug-in estimate

E^S=1N∑i=1NrθS(xt(i),t(i)),K^S(τ)=[κSE^Sτ]1/γS.(6)\widehat{\mathcal{E}}_S=\frac{1}{N}\sum_{i=1}^{N}r^\mathit{S}_\theta(x_t^{(i)},t^{(i)}),\qquad\widehat{K}_S(\tau)=\left[\frac{\kappa_S\widehat{\mathcal{E}}_S}{\tau}\right]^{1/\gamma_S}. \tag*{(6)}

Proof. Factor ∣h∣βS|h|^{\beta_S} from the denominator in (3). Since dS+ϵ≥ϵd_S+\epsilon\ge\epsilon and ∣RD,S∣/∣h∣βS≤MD∣h∣δ|R_{D,S}|/|h|^{\beta_S}\le M_D|h|^\delta, for sufficiently small ∣h∣|h| the latter term is at most ϵ/2\epsilon/2. Hence the reciprocal denominator admits a uniform expansion around dS+ϵd_S+\epsilon. Multiplication by the numerator expansion gives ES(xt,t;h)=κS∣h∣γSrθS(xt,t)+O(∣h∣γS+δ)\mathcal{E}_S(x_t,t;h)=\kappa_S|h|^{\gamma_S}r^\mathit{S}_\theta(x_t,t)+O(|h|^{\gamma_S+\delta}) uniformly. Averaging under μ\mu and setting ∣h∣=1/K|h|=1/K yields (5); inversion of leading term and replacing ES\mathcal{E}_S by empirical mean gives (6). □

For NN independent probes, E^S\widehat{\mathcal{E}}_S is a Monte Carlo estimate of ES\mathcal{E}_S. If 0≤rθS(xt,t)≤RS0\le r^\mathit{S}_\theta(x_t,t)\le R_S μ\mu-a.s., Hoeffding’s inequality gives, with probability at least 1−η1-\eta,

∣E^S−ES∣≤RSlog⁡(2/η)2N,(7)|\widehat{\mathcal{E}}_S-\mathcal{E}_S|\le R_S\sqrt{\frac{\log(2/\eta)}{2N}}, \tag*{(7)}

which induces a confidence interval for the unrounded leading-order budget through the monotonicity of (6).

Euler and Heun

Along an ODE trajectory, with all derivatives evaluated at (xt,t)(x_t,t), write vθ=vθ(xt,t)v_\theta=v_\theta(x_t,t) and define

aθ=∂tvθ+Jxvθvθ,qθ=Jxvθaθ,(8)a_\theta=\partial_t v_\theta+J_xv_\theta v_\theta,\qquad q_\theta=J_xv_\theta a_\theta, \tag*{(8)}
cθ=D(xt,t)2vθ([vθ,1],[vθ,1]).(9)c_\theta=D^2_{(x_t,t)}v_\theta([v_\theta,1],[v_\theta,1]). \tag*{(9)}

For a solver SS, initialized from the exact state xtn=xtx_{t_n}=x_t, define the one-step error as eS(xt,t;h)=xt+h−xtn+1Se_S(x_t,t;h)=x_{t+h}-x^S_{t_{n+1}}. Taylor expansion along the exact trajectory gives

xt+h=xt+hvθ+(h2/2)aθ+(h3/6)(cθ+gθ)+O(h4),(10)x_{t+h}=x_t+hv_\theta+(h^2/2)a_\theta+(h^3/6)(c_\theta+g_\theta)+O(h^4), \tag*{(10)}

where ddtaθ=cθ+gθ\frac{d}{dt}a_\theta=c_\theta+g_\theta and vθ(xt+hvθ,t+h)=vθ+haθ+(h2/2)cθ+O(h3)v_\theta(x_t+hv_\theta,t+h)=v_\theta+ha_\theta+(h^2/2)c_\theta+O(h^3). Hence Euler and Heun have respectively

eE=(h2/2)aθ+O(h3),eH=(h3/12)(2gθ−cθ)+O(h4),(11)e_E=(h^2/2)a_\theta+O(h^3),\qquad e_H=(h^3/12)(2g_\theta-c_\theta)+O(h^4), \tag*{(11)}

which yields

EE=Eμ∥aθ∥∥vθ∥+ε,K^E=⌈E^E2τ⌉,(12)\mathcal{E}_E=\mathbb{E}_\mu\frac{\lVert a_\theta\rVert}{\lVert v_\theta\rVert+\varepsilon},\qquad\widehat{K}_E=\left\lceil\sqrt{\frac{\widehat{\mathcal{E}}_E}{2\tau}}\right\rceil, \tag*{(12)}
EH=Eμ∥2gθ−cθ∥∥vθ∥+ε,K^H=⌈E^H12τ3⌉.(13)\mathcal{E}_H=\mathbb{E}_\mu\frac{\lVert2g_\theta-c_\theta\rVert}{\lVert v_\theta\rVert+\varepsilon},\qquad\widehat{K}_H=\left\lceil\sqrt[3]{\frac{\widehat{\mathcal{E}}_H}{12\tau}}\right\rceil. \tag*{(13)}

Euler uses one NFE per step and Heun two, so NFE^E=K^E\widehat{\mathrm{NFE}}_E=\widehat{K}_E and NFE^H=2K^H\widehat{\mathrm{NFE}}_H=2\widehat{K}_H. Here the generic coefficients in (2) specialize to qE=∥aθ∥q_E=\lVert a_\theta\rVert and qH=∥2gθ−cθ∥q_H=\lVert2g_\theta-c_\theta\rVert. The Euler coefficient is trajectory acceleration, also used by recent fixed-budget scheduling methods such as SharpEuler [17]; in contrast, FlowBudget uses it to estimate the total budget. Heun depends on a solver-specific third-order combination rather than acceleration alone. The same numerator coefficients also control terminal ODE discretization error. Under standard Lipschitz stability and uniform local expansions, with backward step magnitude ∣h∣=1/K\lvert h\rvert=1/K, error propagation over a unit interval gives

∥x0−xE(K)∥≤eL2K2∑n=0K−1∥aθ(xtn,tn)∥+O(K−2),(14)\left\lVert x_0-x_E^{(K)}\right\rVert\leq\frac{e^L}{2K^2}\sum_{n=0}^{K-1}\lVert a_\theta(x_{t_n},t_n)\rVert+O(K^{-2}), \tag*{(14)}
∥x0−xH(K)∥≤eL12K3∑n=0K−1∥2gθ−cθ∥(xtn,tn)+O(K−3).(15)\left\lVert x_0-x_H^{(K)}\right\rVert\leq\frac{e^L}{12K^3}\sum_{n=0}^{K-1}\lVert2g_\theta-c_\theta\rVert(x_{t_n},t_n)+O(K^{-3}). \tag*{(15)}

If additionally ∥vθ(xt,t)∥+ε≤V\lVert v_\theta(x_t,t)\rVert+\varepsilon\leq V, Riemann-sum convergence yields ∥x0−xE(K)∥≤eLVEE,traj/(2K)+o(K−1)\left\lVert x_0-x_E^{(K)}\right\rVert\leq e^LV\mathcal{E}_{E,\mathrm{traj}}/(2K)+o(K^{-1}) and ∥x0−xH(K)∥≤eLVEH,traj/(12K2)+o(K−2)\left\lVert x_0-x_H^{(K)}\right\rVert\leq e^LV\mathcal{E}_{H,\mathrm{traj}}/(12K^2)+o(K^{-2}), where ES,traj=∫01qθS(xt,t) dt\mathcal{E}_{S,\mathrm{traj}}=\int_0^1q_\theta^S(x_t,t)\,dt. Thus the normalized coefficients control terminal error along exact sampler trajectories under this mild velocity bound. FlowBudget replaces these trajectory-time averages by interpolation-probe averages, an approximation evaluated empirically below. No implication from numerical error to FID is assumed.

Euler–Maruyama

We consider the additive-noise SDE dXt=fθ(Xt,t)dt+G(t)dWtdX_t=f_\theta(X_t,t)dt+G(t)dW_t. The following construction is a strong local-error statement: the exact and numerical one-step solutions are coupled with the same Brownian path. For Δt>0\Delta t>0, define

LEM(xt,t;Δt)=(E[∥Xt+Δt−Xt+ΔtEM∥2∣Xt=x])1/2.\mathcal{L}_{\mathrm{EM}}(x_t,t;\Delta t)=\left(\mathbb{E}\left[\left\lVert X_{t+\Delta t}-X^{\mathrm{EM}}_{t+\Delta t}\right\rVert^2\mid X_t=x\right]\right)^{1/2}.

We formulate the local analysis in the sampler’s increasing computational-time coordinate, avoiding sign ambiguities from the backward physical-time parameterization. Let A=Jxfθ(xt,t)G(t)A=J_xf_\theta(x_t,t)G(t) and B=∂tG(t)B=\partial_tG(t), and let ∥⋅∥F\lVert\cdot\rVert_F denote the Frobenius norm. The additive-noise Itô–Taylor expansion coupled to the same Brownian path yields the leading defect A∫0Δt(Ws−W0)ds+B∫0Δts dWs+OL2(Δt2)A\int_0^{\Delta t}(W_s-W_0)ds+B\int_0^{\Delta t}s\,dW_s+O_{L^2}(\Delta t^2). Writing I1=∫0Δt(Ws−W0)dsI_1=\int_0^{\Delta t}(W_s-W_0)ds and I2=∫0Δts dWsI_2=\int_0^{\Delta t}s\,dW_s, stochastic Fubini and Itô isometry give EI12=EI22=Δt3/3\mathbb{E}I_1^2=\mathbb{E}I_2^2=\Delta t^3/3 and E[I1I2]=Δt3/6\mathbb{E}[I_1I_2]=\Delta t^3/6. Therefore

LEM(xt,t;Δt)=Δt3/23(∥A∥F2+∥B∥F2+⟨A,B⟩F)1/2+O(Δt2).(16)\mathcal{L}_{\mathrm{EM}}(x_t,t;\Delta t)=\frac{\Delta t^{3/2}}{\sqrt{3}}\left(\lVert A\rVert_F^2+\lVert B\rVert_F^2+\langle A,B\rangle_F\right)^{1/2}+O(\Delta t^2). \tag*{(16)}

The coefficient is nonnegative because ∥A∥F2+∥B∥F2+⟨A,B⟩F=12(∥A∥F2+∥B∥F2+∥A+B∥F2)\lVert A\rVert_F^2+\lVert B\rVert_F^2+\langle A,B\rangle_F=\frac{1}{2}(\lVert A\rVert_F^2+\lVert B\rVert_F^2+\lVert A+B\rVert_F^2). This O(Δt3/2)O(\Delta t^{3/2}) one-step RMS defect is consistent with the order-one strong convergence of Euler–Maruyama (EM) for sufficiently regular additive-noise SDEs; it should not be confused with the generic order-1/21/2 strong rate for multiplicative noise. Define the EM displacement scale by DEM(xt,t;Δt)=(E[∥Xt+Δt−x∥2∣Xt=x])1/2D_{\mathrm{EM}}(x_t,t;\Delta t)=\left(\mathbb{E}[\lVert X_{t+\Delta t}-x\rVert^2\mid X_t=x]\right)^{1/2}. On a probe-time domain T=[tmin⁡,tmax⁡]⊂(0,1)\mathcal{T}=[t_{\min},t_{\max}]\subset(0,1) where GG and ∂tG\partial_tG are bounded and inf⁡t∈T∥G(t)∥F>0\inf_{t\in\mathcal{T}}\lVert G(t)\rVert_F>0, the diffusion term dominates and DEM=Δt1/2∥G∥F+O(Δt)D_{\mathrm{EM}}=\Delta t^{1/2}\lVert G\rVert_F+O(\Delta t). Hence αEM=3/2\alpha_{\mathrm{EM}}=3/2, βEM=1/2\beta_{\mathrm{EM}}=1/2, and γEM=1\gamma_{\mathrm{EM}}=1. Proposition 1 gives

EEM=Eμ(∥A∥F2+∥B∥F2+⟨A,B⟩F)1/2∥G∥F+ε,K^EM=⌈E^EM3τ⌉.(17)\mathcal{E}_{\mathrm{EM}}=\mathbb{E}_\mu\frac{\left(\lVert A\rVert_F^2+\lVert B\rVert_F^2+\langle A,B\rangle_F\right)^{1/2}}{\lVert G\rVert_F+\varepsilon},\qquad\widehat{K}_{\mathrm{EM}}=\left\lceil\frac{\widehat{\mathcal{E}}_{\mathrm{EM}}}{\sqrt{3}\tau}\right\rceil. \tag*{(17)}

Accordingly, SDE probes are restricted to t∈Tt\in\mathcal{T}; this excludes endpoints where GG vanishes or ∂tG\partial_tG becomes singular and the above normalization/expansion may fail. Euler–Maruyama uses one drift/network evaluation per step, so NFE^EM=K^EM\widehat{\mathrm{NFE}}_{\mathrm{EM}}=\widehat{K}_{\mathrm{EM}}. Importantly, this estimator controls a strong numerical-resolution proxy; we make no theoretical claim that its tolerance is calibrated to FID. In practice, FlowBudget draws NN interpolation probes xt=(1−t)x0+tex_t=(1-t)x_0+te, evaluates the solver coefficient in (12), (13), or (17), averages it to obtain E^S\widehat{\mathcal{E}}_S, and applies (6); the NFE multiplier is one for Euler/EM and two for Heun.

Experiments

Experimental Setup. We evaluate FlowBudget across six pretrained models: SiT-XL/2 [11] and FlowDCN-XL/2 [15] on ImageNet [21], and RF-Unet, 1-RF, 2-RF, and 3-RF [2] on CIFAR-10 [22], using the solvers from their original works and additionally with Heun for FlowDCN. For all model–solver pairs, FlowBudget estimates the step budget from 2K interpolation probes using numerical tolerance τ=0.010\tau=0.010. for the ODE solvers and τ=0.015\tau= 0.015 for the SDE solver, with ε=10−8\varepsilon= 10^{-8}, and converts the step budget to the NFE budget. We use one tolerance within each dynamics class rather than tuning it per model. The experiment tests whether a fixed numerical tolerance yields useful budgets across architectures, not whether the tolerance is universally calibrated to perceptual quality. The predicted NFE budgets are essentially unchanged when setting ε=0\varepsilon= 0. For each seed, FID is computed from 10K samples at its predicted budget. Each seed uses an independent probe set, so the reported variation reflects Monte Carlo variability in the budget estimate. Each run used an NVIDIA A100 40GB GPU.

Main Results. Figure 1a and Table 1 show that FLOWBUDGET selects budgets near the low-FID plateau of the empirical curves. For SiT, FlowDCN, and RF-UNet, using a reference NFE of 250, it reduces the sampling budget by 16.0–76.8% for SiT-XL/2, 28.8–83.2% for FlowDCN-XL/2. For the same model, the predicted budget also depends strongly on the solver: Heun requires only 58 versus 146 NFEs for SiT-XL/2 and 42 versus 150 for FlowDCN-XL/2 under the same ODE tolerance, consistent with its higher-order accuracy. The FID–NFE curves are used only retrospectively and they are not used for budget estimation. Overall, FLOWBUDGET identifies a solver-dependent quality–cost operating point rather than directly predicting FID saturation.

ModelSolverNFEFIDReference FID
SiT-XL/2ODE Euler146±3146 \pm316.60±0.0116.60 \pm0.0116.41
SiT-XL/2ODE Heun58±258 \pm216.81±0.2116.81 \pm0.2116.56
SiT-XL/2SDE EM210±2210 \pm216.59±0.1616.59 \pm0.1616.06
FlowDCN-XL/2ODE Euler150±2150 \pm215.53±0.0115.53 \pm0.0115.36
FlowDCN-XL/2ODE Heun42±042 \pm015.94±015.94 \pm015.16
FlowDCN-XL/2SDE EM178±1178 \pm115.78±0.2215.78 \pm0.2215.42
RF-UNetODE Euler140±9140 \pm96.79±0.036.79 \pm0.036.59
1-RFODE Euler148±11148 \pm117.40±0.057.40 \pm0.05372.51
2-RFODE Euler19±219 \pm27.80±0.027.80 \pm0.0216.41
3-RFODE Euler15±115 \pm18.24±0.018.24 \pm0.0111.63

Table 1. FLOWBUDGET-predicted budgets and corresponding FID, reported as mean ±\pm std over three seeds. Reference FID uses NFE =250= 250 for SiT-XL/2, FlowDCN-XL/2, and RF-UNet, and NFE =1= 1 for 1-RF, 2-RF, and 3-RF.

Analysis of FLOWBUDGET budget estimation

Figure 1. Analysis of FLOWBUDGET budget estimation.

Stability Analysis. Figure 1b shows stable NFE estimates from 1K to 20K probes with narrow 95% confidence bands, supporting use of 2K probes. As shown in Figure 1c, varying τ\tau changes the estimated NFE as expected, while FID varies only modestly around the selected tolerances, indicating that the resulting operating point is robust to small changes in τ\tau.

Computational Cost Analysis. For 3-RF, constructing the FID–NFE curve requires generating 10K samples at six budgets, for a total of 110.3 minutes. In contrast, FLOWBUDGET estimates NFE =15= 15 from 2K probes and evaluates this point, requiring 24.3 minutes. This yields a 4.5×4.5\times reduction in wall-clock time, saving 86.0 minutes. Since 3-RF is evaluated only up to NFE =32= 32, the advantage should grow for models requiring broader NFE sweeps, where generation and FID evaluation must be repeated at additional budgets.

FID versus number of function evaluations for SiT and FlowDCN models

Figure 1a. FID versus number of function evaluations (NFE), with stars indicating the FLOWBUDGET-predicted NFE budgets.

Stability of NFE versus probe count

Figure 1b. Stability of NFE versus probe count NN at τ=0.010\tau= 0.010, showing means over three seeds with shaded 95% confidence intervals.

FID-10K as a function of tolerance

Figure 1c. FID-10K as a function of the tolerance τ\tau.

Conclusion

FLOWBUDGET estimates a fixed solver’s numerical resolution from scale-normalized local discretization error, without an NFE–quality sweep. The Euler, Heun, and additive-noise Euler–Maruyama laws are numerical statements; for ODE solvers, the normalized coefficients also control terminal integration error under a bounded-velocity assumption.

Limitations and Future Work. A limitation is that interpolation probes use training-distribution samples and only approximate the sampler trajectory law. Future work will study calibration between τ\tau and perceptual metrics such as FID.

References

  1. [1]Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le, “Flow matching for generative modeling,” in The Eleventh International Conference on Learning Representations (ICLR), 2023.arxiv.org/abs/2210.02747
  2. [2]Xingchao Liu, Chengyue Gong, and qiang liu, “Flow straight and fast: Learning to generate and transfer data with rectified flow,” in The Eleventh International Conference on Learning Representations (ICLR), 2023.arxiv.org/abs/2209.03003
  3. [3]Michael Albergo, Nicholas M Boffi, and Eric Vanden-Eijnden, “Stochastic interpolants: A unifying framework for flows and diffusions,” Journal of Machine Learning Research (JMLR), vol. 26, 2025.
  4. [4]Patrick Esser, Sumith Kular, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al., “Scaling rectified flow transformers for high-resolution image synthesis,” in Forty-first international conference on machine learning (ICML), 2024.arxiv.org/abs/2403.03206
  5. [5]Matthew Le, Apoorv Vyas, Bowen Shi, Brian Karer, Leda Sari, Rashel Moritz, Mary Williamson, Vimal Manohar, Yossi Adi, Jay Mahadeokar, et al., “Voicebox: Text-guided multilingual universal speech generation at scale,” Advances in neural information processing systems (NeurIPS), 2023.arxiv.org/abs/2306.15687
  6. [6]Apoorv Vyas, Bowen Shi, Matthew Le, Andros Tjandra, Yi-Chiao Wu, Baishan Guo, Jiemin Zhang, Xinyue Zhang, Robert Adkins, William Ngan, et al., “Audiobox: Unified audio generation with natural language prompts,” arXiv preprint arXiv:2312.15821, 2023.arxiv.org/abs/2312.15821
  7. [7]Weijie Kong, Qi Tian, Zijian Zhang, Rox Min, Zuozhuo Dai, Jin Zhou, Jianfeng Xiong, Xin Li, Bo Wu, Jianwei Zhang, et al., “Hunyuanvideo: A systematic framework for large video generative models,” arXiv preprint arXiv:2412.03603, 2024.arxiv.org/abs/2412.03603
  8. [8]Ricky TQ Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud, “Neural ordinary differential equations,” Advances in neural information processing systems (NeurIPS), 2018.arxiv.org/abs/1806.07366
  9. [9]Brian DO Anderson, “Reverse-time diffusion equation models,” Stochastic Processes and their Applications, vol. 12, no. 3, pp. 313–326, 1982.DOI
  10. [10]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 (ICLR), 2021.
  11. [11]Nanye Ma, Mark Goldstein, Michael S Albergo, Nicholas M Boffi, Eric Vanden-Eijnden, and Saining Xie, “SiT: Exploring flow and diffusion-based generative models with scalable interpolant transformers,” in European Conference on Computer Vision (ECCV). Springer, 2024, pp. 23–40.arxiv.org/abs/2401.08740
  12. [12]Ernst Hairer, Gerhard Wanner, and Syvert P Nørsett, Solving ordinary differential equations I: Nonstiff problems, Springer, 1993.
  13. [13]Cheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongxuan Li, and Jun Zhu, “Dpm-solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps,” Advances in neural information processing systems (NeurIPS), 2022.arxiv.org/abs/2206.00927
  14. [14]Neta Shaul, Juan Perez, Ricky TQ Chen, Ali Thabet, Albert Pumarola, and Yaron Lipman, “Bespoke solvers for generative flow models,” in International Conference on Learning Representations (ICLR), 2024.arxiv.org/abs/2310.19075
  15. [15]Shuai Wang, Zexian Li, Tianhui Song, Xubin Li, Tiezhen Ge, Bo Zheng, and Limin Wang, “Exploring dcn-like architecture for fast image generation with arbitrary resolution,” Advances in Neural Information Processing Systems (NeurIPS), 2024.DOI
  16. [16]Amirmojtaba Sabour, Sanja Fidler, and Karsten Kreis, “Align your steps: Optimizing sampling schedules in diffusion models,” arXiv preprint arXiv:2404.14507, 2024.arxiv.org/abs/2404.14507
  17. [17]Aditi Gupta, Soon Hoe Lim, Annan Yu, and N Benjamin Erichson, “Sharpen your flow: Sharpness-aware sampling for flow matching,” arXiv preprint arXiv:2605.11547, 2026.arxiv.org/abs/2605.11547
  18. [18]Qinchan Li, Pedro Cisneros-Velarde, Keru Fu, Samuel Antunes Miranda, Sharan Vaswani, and Hao Zhang, “Cat-flow: Curvature-adaptive steps for flow matching,” arXiv preprint arXiv:2609.01746, 2026.arxiv.org/abs/2609.01746
  19. [19]Vitalij Bondar, “Velocity scheduled flow matching,” arXiv preprint arXiv:2607.11442, 2026.arxiv.org/abs/2607.11442
  20. [20]Desmond J Higham, “An algorithmic introduction to numerical simulation of stochastic differential equations,” SIAM review, vol. 43, no. 3, pp. 525–546, 2001.DOI
  21. [21]Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei, “Imagenet: A large-scale hierarchical image database,” in 2009 IEEE conference on computer vision and pattern recognition, 2009, pp. 248–255.
  22. [22]Alex Krizhevsky, Geoffrey Hinton, et al., “Learning multiple layers of features from tiny images,” 2009.

Paper details

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

views · 0

downloads · 0

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

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents