Inference-Time Self-Aligned Drift for Few-Step Flow Matching

Shigui Li, Jian Xu, Wei Chen, Junmei Yang, Fei Wang, Daiguo Zhou, Delu ZengNeurIPS 2026

TL;DR

When you force a Flow Matching generative model to create an image or video in just a handful of steps, it takes big, clumsy shortcuts that average out crisp details and natural variation. This paper introduces SADrift, a clever math trick applied purely at generation time that restores this lost richness by looking at how the model's trajectory has been curving and nudging it accordingly. Best of all, it requires zero retraining and zero extra neural network calls—making fast generation dramatically sharper essentially for free.

What Problem Does This Paper Address?

Modern AI image and video generators often rely on Flow Matching (FM). Think of FM as learning a continuous wind current (a velocity field) that smoothly blows a cloud of random static into structured data, like a photograph. To generate an image, we follow this wind step-by-step using an Ordinary Differential Equation (ODE) solver, such as the classic Euler method.

Because neural network evaluations are expensive, we want to take as few steps as possible. However, taking giant leaps creates a mathematical trap the authors call conditional-mean concentration. At any given point, many training paths might cross, heading toward different valid details; the learned velocity field only gives you their average direction. In continuous time, paths curve away from each other and preserve diversity. In a giant, coarse step, jumping straight along the average direction collapses variation. (In the extreme case of a single Euler step from pure noise, every sample collapses onto the exact average of the entire dataset!)

You might think: Why not just inject random Gaussian noise to shake things up? Unfortunately, the missing variation isn't uniform in all directions (it is anisotropic), so blindly adding uniform static cannot properly restore the lost structure.

Methods

To recover this missing variation on the fly, the authors propose Self-Aligned Drift (SADrift), an inference-time wrapper around standard ODE solvers (like Euler, Heun2, or DPM-Solver++). Instead of querying the expensive neural network extra times, SADrift extracts hidden clues from the steps it has already taken:

  1. Estimating Acceleration from Memory: The authors prove mathematically that the covariance lost during a coarse step is directly tied to the material acceleration—how fast the velocity vector itself is changing along the path. SADrift approximates this acceleration for free by comparing the model's current velocity prediction to an exponential moving average of its past predictions.
  2. Self-Calibrated Noise: While history-based acceleration restores directional variation, a residual deficit remains. SADrift fills this in with isotropic Gaussian noise, calibrating the noise's volume by measuring how sensitive the model's current velocity is to the previous step's random perturbation.
  3. Local Ornstein–Uhlenbeck (OU) Integration: Rather than crudely tacking the drift and noise onto the end of a step, SADrift blends them around the base solver's proposal using an exact local Ornstein–Uhlenbeck process—a physics equation normally used to describe a particle being buffeted by random forces while gently pulled back by friction (damping). This keeps the accumulated history correction stable and bounded.

Datasets

Because SADrift operates purely at inference time on frozen, pretrained models, no training datasets are used. For evaluation, the authors use two standard benchmarks (no new benchmarks are introduced):

  • ImageNet 256×256: Used to evaluate class-conditional image synthesis (generating 50,000 images per configuration to measure distribution quality).
  • VBench: A benchmark suite used to evaluate text-to-video generation quality, specifically measuring temporal flickering, subject consistency, background consistency, human action, and appearance style.

Key Insights and Ideas

  • Curvature holds the missing variance: The paper's foundational "aha" moment is an exact identity connecting statistics to kinematics: the variation erased by a coarse Euler step is mathematically equivalent to how the flow accelerates. You don't need a second model to guess what details were smoothed over; the trajectory's own history tells you.
  • Free divergence probing: Normally, figuring out how much stochastic noise to inject requires knowing the divergence of the velocity field, which is computationally heavy. Reusing the previous step's random kick as a "probe" lets the sampler sense local geometry with simple dot products.
  • Deterministic drift does the heavy lifting: In ablation studies, turning off the random noise while keeping the history-based drift still captures nearly all the quality gains. Conversely, adding noise without the history drift barely improves over the baseline at all—proving that directed correction matters far more than raw randomness.

Key Results

Across both image and video tasks, SADrift substantially boosts quality at identical Neural Function Evaluation (NFE) budgets:

  • ImageNet-256 (with pretrained SiT-XL/2): Using a 10-step Euler solver, SADrift slashes FID (Fréchet Inception Distance—lower means more realistic and diverse) by 54.3%, dropping from 8.35 to 3.82, while boosting Inception Score from 184.11 to 224.74. At 5 NFE, Euler FID drops from 52.64 to 19.06.
  • Beating 250 steps in just 20: Paired with the Heun2 solver at 20 NFE, SADrift reaches an FID of 2.00, outperforming the base Heun2 solver (2.20) and even edging out the original published SiT-XL/2 benchmark of 2.06 FID, which required 250 NFE (over 12× more compute).
  • Solver versatility: Applied to an adapted DPM-Solver++ (2M), SADrift cuts FID by 40.05% at 5 NFE (12.31 to 7.38) and 23.33% at 10 NFE (3.57 to 2.73).
  • 4-Step Video Generation: Applied to Wan2.1-1.3B with TurboDiffusion at just 4 NFE, SADrift improves VBench temporal flickering (0.979 to 0.982), subject consistency (0.946 to 0.952), and background consistency (0.928 to 0.935).

Base Wan2.1 video frame at t=3.5s SADrift video frame at t=3.5s showing sharper background signage and reflections

Limitations and Future Work

  • Garbage in, garbage out: Because SADrift relies entirely on a frozen velocity field without external guidance or retraining, its performance ceiling is strictly tied to how accurately the underlying pretrained model learned the flow.
  • Memory overhead: While it requires zero extra neural network passes, the sampler must hold extra tensors in memory during generation—specifically, the moving average of past velocities and the previous step's random noise vector.
  • Future directions: Future research directions are not explicitly discussed in the paper.

Summary updated

Abstract

Flow Matching (FM) provides an efficient formulation for continuous-time generative modeling through deterministic transport. However, coarse ordinary differential equation (ODE) sampling can suppress variation in the generated distribution when generation is reduced to only a few steps. Stochastic differential equation (SDE) sampling offers a source of random fluctuations, but simply adding isotropic noise to a coarse update cannot generally restore the lost covariance. To improve few-step generation, we propose Self-Aligned Drift (SADrift), an inference-time framework that combines a corrective drift estimated from velocity history with local stochastic refinement. We estimate the drift from the difference between the current velocity and a moving average of past predictions, then integrate it together with Gaussian fluctuations through an exact local Ornstein--Uhlenbeck transition. The noise scale is calibrated from the model's response to preceding sampling perturbations. For linear FM, we quantify the covariance omitted by a population Euler step and relate it to velocity changes along the flow. By accounting for stochastic history and calibration bias, we derive conditions for reducing the leading local covariance error. The refinement requires no retraining, external guidance models, or additional neural function evaluations (NFE). On ImageNet-256 with pretrained SiT-XL/2, SADrift reduces Euler FID from 8.35 to 3.82 at 10 NFE and achieves FID 2.00 with Heun2 at 20 NFE. We also obtain improved VBench temporal consistency scores with Wan2.1-1.3B and TurboDiffusion at 4 NFE.
BibTeX
@inproceedings{li2026inference,
  author = {Shigui Li and JIAN XU and Wei Chen and Junmei Yang and Fei Wang and Daiguo Zhou and Delu Zeng},
  title = {{Inference-Time Self-Aligned Drift for Few-Step Flow Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6ZIc3ymky8},
}
Figure