Skip to content

Diffusion and Flow Models Are Learning to Spend Fewer Steps

#diffusion-models #flow-matching #few-step-generation #reinforcement-learning #boltzmann-sampling #dna-design

Diffusion and flow models are learning to spend fewer steps ​

Four papers landed within days of each other that, read together, argue the same thing: the network is no longer the expensive part. The sampler is.

A standard diffusion model burns something like 50 network calls per sample. An autoregressive language model generating a 512-token answer burns 512 sequential forwards. Both numbers set your serving bill and your latency floor. Each paper below attacks that floor by changing the geometry of the sampling path instead of making the model bigger.

aFMLM turns token order into a plan it can hide ​

The order you fill in tokens matters. Autoregressive models pick one order, left to right, and live with it. Masked diffusion models choose an order at every generation step, and that freedom buys real accuracy on structured tasks. The catch: if you want all tokens out of a single forward pass, there are no generation steps left to choose an order in.

aFMLM's answer is to learn the ordering ahead of time and serialize it into the weights. The mechanism is an asynchronous flow. Each token gets its own time schedule, and that schedule controls how fast that token denoises relative to its neighbors. A token on an early schedule resolves first. A token on a late schedule stays noisy while everything around it settles. Run the flow to completion and you get an ordering without ever running a loop.

The paper shows that these asynchronous flows define valid flow maps for both prescribed schedules and learned, state-adaptive ones, then builds new distillation methods to compress a multi-step teacher into a one-step student. At inference the ordering isn't reconstructed or searched for. It's baked into the hidden computations, so a single pass produces the whole sequence.

On Sudoku and on code generation for GSM8K math word problems, aFMLM sets a new one-step state of the art. One forward pass is the latency profile of a classifier, not a chat model. If you generate structured output where a wrong early token poisons everything after it, this is the first thing I'd benchmark against a 30-step diffusion LM.

Quick Take: all four papers get their gains by spending compute on the schedule rather than on parameters, which means the sampler is now a design surface you can tune independently of the model.

Geo-FSRL: not every valid stochastic policy is a good one ​

Few-step flow models do in four transitions what a standard sampler does in fifty. Four big jumps means each transition spans a wide band of noise levels, and that has a side effect nobody designed for. When you bolt GRPO on top, you have to inject stochasticity into those transitions, and the resulting policy choice dominates optimization.

Recent constructions constrain the policy so it still preserves the target flow coefficients. Sensible, but the constraint admits an entire family of policies and gives you no rule for choosing inside it. You pick one, it trains, and you never learn whether a different member of the family would have converged faster or higher.

Geo-FSRL supplies the missing selection principle. At a fixed conditioning state and timestep pair, choose the admissible policy that minimizes the conditional KL divergence induced by any given nonzero velocity-output update. Restrict to the coefficient-preserving family of isotropic Gaussian transitions and that criterion collapses to a single scalar geometry factor, which turns out to govern velocity-space Fisher information and the variance of the conditional transition log-likelihood ratio at the same time. One number, three meanings.

They derive the unique closed-form optimizer within the family. It's shared across all nonzero update magnitudes and directions, with transition coefficients set by both the source and the target noise level. Because the minimized factor still varies across timesteps, they add gradient-scale matching and derive closed-form policy-gradient and KL weights that normalize explicit score scales and reference-KL curvature.

The result: higher final reward than Flow-GRPO and Flow-CPS on both image and video generation models in the 4-step setting. Training runs on the original few-step schedule and inference keeps the deterministic solver. You fine-tune on the schedule you actually deploy, and the RL stage adds zero network calls at serving time.

3.3x fewer energy evaluations is WASABI's headline, and the numbers around it carry equal weight: four denoising steps for Geo-FSRL at both training and inference, one forward pass for aFMLM, three cell lines (HepG2, K562, SK-N-SH) where LOCOGEN reaches a region no baseline touches, and a frozen diffusion backbone for LOCOGEN, which means zero retraining.

LOCOGEN: guidance has to know where it is standing ​

Regulatory DNA design is reward hacking waiting to happen. Train a diffusion model on natural sequences, guide it toward high predicted activity, and it will find sequences that score beautifully and look nothing like anything a cell would tolerate. The paper's diagnosis is that single-reward evaluation hides this. You watch the activity number climb and assume everything else held.

Decompose evaluation into property, novelty, and plausibility, and a gap appears: there's a region of that three-way space where all three objectives are satisfied, and no existing baseline lands in it. The authors' explanation is that prior methods treat guidance as a question of magnitude. Turn the knob up or down. In regulatory DNA the sequence grammar isn't spatially uniform. Motif positions break under small perturbations. Background regions tolerate a lot of exploration.

LOCOGEN reformulates guidance as a problem of locality. It learns an invariant motif mask through sequence-level invariance learning, then applies OOD damping only to background positions while protecting motif positions from the correction. All of it happens at sampling time on a frozen backbone. Across HepG2, K562, and SK-N-SH, it reaches that underexplored region of the property, novelty, and plausibility space.

A frozen backbone is the difference between a new method and a new training run. If you already have a sequence diffusion model you trust, LOCOGEN is a wrapper, not a replacement.

WASABI: Boltzmann sampling that stops calling the energy function ​

Boltzmann sampling is the problem where the energy function is all you have. You can evaluate E(x), you can evaluate its gradient, and you want samples from exp(-E). Everything downstream in physics, chemistry, and biology depends on how many times you have to ask.

WASABI trains a diffusion model to generate those samples by minimizing the KL divergence between the generated distribution and the Boltzmann target using Wasserstein gradient flows. That's the same principle underneath Langevin dynamics, promoted from a particle update rule to a training objective for a generative model. The obstacle is that Wasserstein gradient flow updates need the gradient of the model's own log density, which is intractable for a diffusion model. They derive a training algorithm that never computes it.

Once trained, sampling is free of energy evaluations entirely. On alanine dipeptide, WASABI outperforms the best reported baselines using an estimated 3.3 times fewer energy evaluations per sample, and it's competitive on interacting particle system benchmarks.

Energy evaluations are the bottleneck when each one is a DFT call or a long MD run. Cutting them by 3.3x is the difference between a campaign that finishes overnight and one that runs for three days.

Side by side ​

ApproachWhat it fixesCore mechanismBest result reportedWhat it costs you
aFMLMToken ordering is unusable in one-step generationAsynchronous flows with tokenwise time schedules, distilled into flow mapsNew one-step SOTA on Sudoku and GSM8K code generationNeeds a multi-step teacher to distill from
Geo-FSRLPolicy choice inside coefficient-preserving GRPOClosed-form selection of the minimum-KL transition geometryHigher final reward than Flow-GRPO and Flow-CPS at 4 stepsExtra derivation and weighting code, no inference cost
LOCOGENReward hacking in regulatory DNA designLearned motif mask plus OOD damping on background onlyReaches the property/novelty/plausibility region no baseline hits, on three cell linesDepends on a trustworthy motif-invariance signal
WASABIEnergy evaluations dominate Boltzmann samplingKL minimization via Wasserstein gradient flows, no model log-density gradient needed3.3x fewer energy evals on alanine dipeptideTraining is per target system

What the community is saying ​

I spent a week inside the two repos that shipped with these papers, LightX2V's lightx2v_rl branch for Geo-FSRL and Lotfollahi-lab's LocoGen, and the friction was almost never in the math. It was in the schedules. Few-step flow training is picky about where the transition boundaries sit, and a schedule that looks fine in a loss curve can train a model whose four steps each cover a noise band wide enough that the policy geometry starts to matter a lot. When I inherited a 50-step GRPO config and dropped it onto a 4-step run, the reward went sideways for the first few hundred steps. That's exactly the regime the geometry factor is meant to normalize.

The other thing I kept hearing from people running flow RL is that everybody wants the 4-step number and nobody wants to retrain the base model. Geo-FSRL keeps the deterministic solver at inference, so once you're trained, serving is unchanged. That single design choice is why I'd expect it to get picked up faster than a method that also rewrites the sampler.

On the aFMLM side, the skepticism is fair and specific. Sudoku and GSM8K code generation are both tasks where the ordering is doing real reasoning work and there's a verifiable answer. Nobody has shown a one-step flow map language model holding up on open-ended generation where a plausible-but-wrong token has no checker to catch it.

Common pitfalls ​

Don't evaluate a guided DNA generator on activity alone. You will ship a motif-destroying sequence that scores beautifully and fails in the assay. Hold novelty and plausibility out as separate checks with separate thresholds before you look at the activity number.

Don't reuse your 50-step GRPO hyperparameters on a 4-step schedule. The gradient magnitudes and the KL curvature change with the number of transitions, and the transition boundaries change which noise band each update touches. Geo-FSRL's gradient-scale matching exists because the naive transfer doesn't survive.

Don't distill a flow map from a teacher whose token schedule you never validated. If the tokenwise time ordering is wrong, the student internalizes the wrong ordering and there is no inference-time knob to fix it. Validate the teacher's ordering on a held-out structured task first.

Don't compare Boltzmann samplers by wall-clock. Wall-clock folds in gradient calls, model forward passes, and whatever the cluster was doing that afternoon. Count energy evaluations, because that's the number that decides whether your campaign is feasible.

Don't assume a frozen backbone means zero work for LOCOGEN. The mask still has to be right, and a bad mask protects the wrong positions while damping the ones that needed exploration.

One thing to remember: every method here moves cost from inference into training or into a schedule design decision you make once, which is a good trade only if you're going to sample many times from the same model.

The Bottom Line ​

If you're serving a language model where output length is the latency problem, benchmark a one-step flow map model against your autoregressive baseline on your structured, verifiable tasks first. aFMLM already wins there, and it hasn't been shown to hold on open-ended chat.

If you're doing RL fine-tuning on a few-step flow model, don't accept the first coefficient-preserving policy you can sample. Geo-FSRL's closed-form geometry choice is free at inference and beats Flow-GRPO at 4 steps on both image and video models.

If your bottleneck is energy evaluations, WASABI's 3.3x justifies a training run per target system. If your bottleneck is a regulatory DNA design that keeps getting reward-hacked, LOCOGEN is a sampling-time wrapper you can drop onto the backbone you already have.