On Variance Reduction in Learning Mean Flows

Juanwu Lu, Ziran WangarXiv 2026

TL;DR

MeanFlow training, a promising distillation-free approach for one-step generative modeling, is notoriously unstable. This paper identifies the root cause: a misuse of the conditional velocity field as a high-variance "tangent" in the loss function. By reframing this tangent as a Monte Carlo control variate and deriving an optimal mixing coefficient, the authors provide a unified theory that explains and improves upon several recent empirical fixes.

What Problem Does This Paper Address?

One-step generative models aim to produce high-quality samples in a single forward pass, bypassing the expensive iterative sampling required by diffusion models. Mean Flows were introduced as a way to learn these models without needing a pre-trained "teacher" model for distillation.

However, Mean Flows suffer from a severe "pathology": during training, the loss often fails to decrease, and gradients exhibit prohibitively high variance. While several recent papers (like AlphaFlow or Improved MeanFlow) have proposed empirical "hacks" to stabilize training, there hasn't been a clear theoretical understanding of why the original objective is so unstable or how these various fixes relate to one another.

Methods

The authors analyze the MeanFlow loss through the lens of variance reduction. They discover that the conditional velocity field ($v_{cond}$) plays two distinct roles in the loss function:

  1. Unbiased Target: It serves as a target for regression.
  2. Variance Amplifier: It acts as a "tangent" inside a Jacobian-vector product (JVP).

The second role is the problem. Because $v_{cond}$ is a stochastic estimate of the true marginal velocity, passing it through the spatial Jacobian ($J$) of the model multiplies the sampling noise, leading to exploding gradient variance. Furthermore, the use of a stop-gradient operator in the original formulation hides this variance from the optimizer, creating a "semi-gradient gap."

To fix this, the authors introduce a tangent-mixing coefficient $\beta$. They replace the purely stochastic tangent with a mixture of the noisy $v_{cond}$ and a deterministic proxy $\hat{v}$ (like an Exponential Moving Average of the model itself): $$\tilde{v}_{tang}(\beta) = (1 - \beta) v_{cond} + \beta \hat{v}$$

They derive the optimal coefficient $\beta^*$ in closed form, showing it depends on a balance between "noise-cancellation" (canceling the Jacobian-amplified noise) and "shrinkage" (accounting for the bias in the deterministic proxy).

Datasets

The theory was validated across three scales:

  • 2D Toy Benchmarks: Six standard datasets including checkerboard, swiss_roll, and eight_gaussians.
  • Dense Gaussian Mixture Models (DGMM): Synthetic datasets with varying feature dimensions ($d=2$ to $64$) to test scaling.
  • ImageNet-256: Large-scale validation using Latent Diffusion Transformers (DiT-B/4).

Key Insights and Ideas

  • The Control Variate Unification: The paper shows that many concurrent MeanFlow remedies are actually just different ways of implementing the same statistical optimum. For example, "Improved MeanFlow" corresponds to the $\beta \to 1$ limit using a separate velocity head.
  • Jacobian Variance Amplification: The "pathology" of MeanFlow is fundamentally geometric. Variance scales with the spectral magnitude of the model's Jacobian. High-curvature regions in the data distribution (mode-mixing regions) are where training is most unstable.
  • The FID-MSE Mismatch: A surprising finding is that the coefficient that minimizes gradient error (MSE) is not necessarily the one that produces the best images (FID). On ImageNet, while a $\beta \approx 0.94$ minimized gradient variance, the best sample quality was found at the "unbiased corner" ($\beta=0$). This suggests that FID is much more sensitive to model bias than the training loss is.
Variance decreases monotonically as the mixing coefficient $\beta$ moves toward the deterministic proxy.

Key Results

  • Variance Reduction: Using a deterministic tangent ($\beta=1$) reduced per-step loss variance by $71\times$ on ImageNet-256 compared to the original stochastic version.
  • Sample Quality Gains: On the swiss_roll dataset, the proposed framework reduced the Sliced Wasserstein distance (SW1) by 54% over vanilla MeanFlow.
  • Theoretical Validation: The empirical optimal $\beta$ found through grid searches closely matched the values predicted by the authors' closed-form Theorem 4.
Sample quality (SW1) across different $\beta$ values. The red stars indicate the empirical optimum, which shifts based on the dataset's geometric curvature.

Limitations and Future Work

  • Scalar-Isotropic Assumption: The closed-form derivation of $\beta^*$ assumes the noise and Jacobian are uniform across all dimensions. In highly anisotropic data, a per-dimension $\beta$ might be necessary.
  • FID-Aware Loss: The paper highlights a gap between MSE and FID but does not yet provide a loss function that directly optimizes for FID.
  • Adaptive Schedules: The authors suggest that an adaptive schedule for $\beta$—starting near 1 to stabilize early training and moving toward 0 to eliminate bias—could be a powerful future direction.
Qualitative samples from the baseline $\beta=0$ model on ImageNet.

Summary updated

BibTeX
@misc{lu2026variance,
  author = {Juanwu Lu and Ziran Wang},
  title = {{On Variance Reduction in Learning Mean Flows}},
  year = {2026},
  eprint = {2605.09235},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.09235},
}
Figure