arXiv:2610.29475cs.LGOct 2026

Manuscript Offprint

arXiv:2610.29475

Density-Level Backward Error for Low-NFE Generative Flows

Ewsey Obzherin, Valentin Khrulkov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Low-NFE generative ODE sampling is constrained not only by solver order, but also by how a fixed budget of network evaluations is distributed along the flow. We develop a density-level backward-error framework that identifies the component of a solver's modified-equation defect that changes the evolving marginal, while excluding solenoidal trajectory distortion that is invisible in Wasserstein tangent geometry. The resulting residual induces a solver-order-aware compute-allocation rule and, through gauge freedom, an objective for selecting numerically favorable velocity representatives of the same density path. This separates our approach from schedule search driven by trajectory or endpoint surrogates and from higher-order solver design. Exact Gaussian and mixture models establish the mechanism, including cases where curvature-based allocation fails and continuum-optimal transport is not discretization-optimal. On a pretrained CIFAR-10 EDM probability-flow ODE, density-aware allocation consistently improves fixed-update Euler sampling in the low-NFE regime. Matched-seed convergence to a dense Euler reference confirms that the method accelerates approximation of the same high-NFE flow rather than changing the asymptotic sampler.

1 INTRODUCTION

Diffusion and flow-based generators sample by numerically integrating a learned time-dependent velocity field. Let vtv_t be a reference velocity transporting a prescribed density path ptp_t through

∂tpt+∇⋅(ptvt)=0.(1)\partial_{t}p_{t}+\nabla\cdot(p_{t}v_{t})=0. \tag{1}

When only a few network evaluations are available, generation quality depends not only on the learned field and solver formula, but also on where those evaluations are placed along the path.

Timestep design has therefore become an optimization problem in its own right. Align Your Steps optimizes schedules for a given solver, model, and dataset; optimized-time-step methods fit nodes against a reference ODE solution; LD3 learns a discretization for a pretrained sampler; Optimal Stepsize Distillation uses dynamic programming over reference trajectories; and differentiable solver search jointly tunes timesteps and solver coefficients (Sabour et al., 2024; Xue et al., 2024; Tong et al., 2025; Pei et al., 2025; Wang et al., 2025). These methods show that evaluation placement matters. They do not, however, isolate which part of a local numerical defect changes the evolving marginal, nor do they use the fact that several velocity fields can generate the same density path.

Three design variables should therefore be separated. Solver design chooses the update formula. Schedule design chooses where that formula evaluates the field. Representative design chooses which velocity field to discretize when several fields generate the same continuum marginals. Our paper connects the last two through density-level backward error.

To make this non-uniqueness explicit, define Up={u:∇⋅(ptut)=0\mathcal{U}_p = \{u : \nabla \cdot (p_t u_t) = 0 for almost every t}t\}. If u∈Upu \in \mathcal{U}_p, then w=v+uw = v + u generates the same continuum density curve as vv, although a finite numerical map need not preserve this equivalence. A trajectory-level defect can therefore contain substantial particle motion that is invisible to the marginal. The relevant question is not simply where is the ODE difficult?, but which part of the solver defect moves probability mass?

This also separates continuum and finite-step optimality. Probability-flow endpoint maps coincide with quadratic Monge maps in important Gaussian and symmetric settings (Khrulkov et al., 2023), but not in general (Lavenant & Santambrogio, 2022). Here the density curve ptp_t is fixed. We ask which continuum-equivalent velocity representative and which timestep grid make the discrete transport maps most accurate in W2W_2. Even for isotropic Gaussians, the minimum-action gradient representative can be less accurate for Euler than a non-gradient marginal-preserving representative.

Let Ψhw\Psi_h^w be one numerical step for a representative ww, and suppose an order-rr method admits the local modified field

wh=w+hrEr[w]+O(hr+1).(2)w_{h}=w+h^{r}\mathcal{E}_{r}[w]+O(h^{r+1}). \tag{2}

Write P∇,ptP_{\nabla,p_t} for the L2(pt)L^2(p_t)-orthogonal projection onto gradient fields. This projection keeps the Wasserstein tangent component that changes the marginal and removes marginal-invisible solenoidal motion. Our central local result is

(Ψhw)#pt−pt+h=−hr+1∇⋅(ptEr[w])+o(hr+1),(3)(\Psi_{h}^{w})_{\#}p_{t}-p_{t+h}=-h^{r+1}\nabla\cdot(p_{t}\mathcal{E}_{r}[w])+o(h^{r+1}), \tag{3} W2((Ψhw)#pt,pt+h)=hr+1∥P∇,ptEr[w]∥L2(pt)+o(hr+1).(4)W_{2}((\Psi_{h}^{w})_{\#}p_{t},p_{t+h})=h^{r+1}\left\|P_{\nabla,p_{t}}\mathcal{E}_{r}[w]\right\|_{L^{2}(p_{t})}+o(h^{r+1}). \tag{4}

For Euler, E1[w]=−12aw\mathcal{E}_1[w] = -\frac{1}{2}a_w with aw=∂tw+∇w wa_w = \partial_t w + \nabla w\,w. Thus the projected modified-equation defect, rather than the full trajectory defect, determines the leading marginal error.

This separates continuum transport optimality from two finite-solver questions: where to place evaluations and which continuum-equivalent field to discretize.

References (37)