Skip to content

StepX-OPD: Merging Multi-Teacher and Step Distillation for 4-Step Diffusion

THE ARGUMENT

Merging multi-teacher capability distillation with step distillation into a single on-policy run beats the serial pipeline at 4 steps on both tested backbones, and costs about 37% fewer GPU-hours on one of them.

On this page

Most teams assume 2 stages are needed to ship a 4-step text-to-image model, but a team holding a working full-step checkpoint has to decide whether to pay for both stages before it knows if the capabilities survive. The standard pipeline is serial: several specialists first teach one full-step student, that student is frozen in turn, and step distillation then compresses it down to a handful of sampling steps. Stage two cannot start until stage one ends, and nothing in stage one guarantees the capabilities survive stage two. StepX-OPD [1] merges the two stages into a single training run and reports results on two backbones.

The default recipe: build every capability first, compress to 4 steps later

A deployable text-to-image model has to satisfy two demands at the same time, and they pull on the same weights. It needs capability, meaning instruction following, text rendering, image quality and human preference. It also needs speed, measured by how few sampling steps inference takes. The paper [1] starts from the observation that today these two demands are served by two separate post-training lines that develop independently and meet only at the end.

On the capability line, the representative method is multi-teacher on-policy distillation: the teacher supervises states the student itself generates, rather than offline data or some longer trajectory the student will never run. The paper names DiffusionOPD, Flow-OPD and DanceOPD as members of this line, and notes that all of them keep full-step sampling. On the compression line, DMD, DMD2, TDM, CDM, SenseFlow and Qwen-Image-Flash start from a teacher whose capabilities are already fixed and compress its trajectory into a few steps.

The default pipeline therefore runs in series. Multi-teacher capability integration first produces a full-step, multi-capability model, that model is frozen, and step distillation then uses it as a fixed teacher. The paper points to two consequences: training gets longer because stage two waits for stage one to finish completely, and one question is left open, namely whether the capabilities baked into the full-step model are still there once the trajectory is shortened.

Two measurements first: scores drop after compression, and prompt words leak into images

The paper does not stop at the assumption. It compares every full-step capability model it evaluates against its few-step compressed counterpart under one protocol, and reports that all of them score lower after compression, with larger declines on individual metrics.

The second finding is more concrete and easier to notice on the product side. Capability integration makes models write prompt words into the image on prompts that neither request nor forbid text. The counts the paper gives are 21 images for the SD3.5-Medium base model and 218 for DiffusionOPD. StepX-OPD, trained with the same DiffusionOPD teachers, brings that down to 94, and its precise-teacher variant brings it to 84.

How StepX-OPD merges the stages: supervise the student on its own few-step rollout

StepX-OPD trains one student to acquire capabilities and learn few-step sampling at the same time, with no intermediate full-step model. It builds on trajectory distribution matching (TDM) and changes four things.

  • Supervision happens on the student's own few-step rollout. Frozen specialists see the state the student actually visits, not a longer trajectory it will never run and not offline data.
  • The rollout grid is redrawn before every training step. The segment count is fixed and both endpoints are pinned (1 = σ0 > … > σN = 0), while the interior nodes are randomized; parallel processes share the same draw so gradients stay consistent.
  • States inside a segment are built by interpolation plus exact re-noising. One segment is chosen uniformly, a base time is drawn inside it, and the two visited endpoints are interpolated to get x_base. The paper proves this equals a first-order Euler step from the upper endpoint to that time, with no extra velocity evaluation, and then re-noises exactly to the supervision time through the forward SDE.
  • Mini-batches are routed by source. Each batch comes from a single training source and goes to the frozen specialist trained for that source, so sources are never mixed inside a batch.

The third point is where the compute saving comes from: interpolation needs only two rollout states that were already visited, so no extra network call is required to obtain a supervision point with an exact conditional law. The fourth point explains how several capabilities fit in one student: the teachers never have to be merged into one model, because routing happens at batch level and each frozen specialist answers only for its own source.

Velocity regression at the low-noise end: not just where to land, but which way to move

The paper decomposes the rollout's KL and finds that velocity mismatch carries the heaviest weight near the clean end, that is, in the low-noise part of the rollout. That explains a gap in distribution matching alone: the student learns which distribution to land in, but the last few steps have no direct constraint on direction.

StepX-OPD therefore also regresses the student's velocity on the low-noise part of the rollout, using a plain mean-squared error, so the student is told which direction to move and not only where to land. Appendix A.4 discusses why low-noise velocity MSE is the right term and how the segment is truncated numerically. The regression reuses the same routed specialist targets, so no second teacher family is introduced.

What the numbers show: 2 backbones, 4 metrics, 1 normalization

Evaluation covers SD3.5-Medium and FLUX.1-dev. The metrics are GenEval for instruction following, OCR accuracy for text rendering, DeQA for image quality and PickScore for human preference, plus a normalized average. The baselines are the serial pipelines sequential Flow-OPD + TDM and DiffusionOPD + TDM.

ItemValueContext
Normalized average among 4-step methods, SD3.5-Medium0.8901Reported as the highest among the compared 4-step methods
Normalized average among 4-step methods, FLUX.1-dev0.8902Same, and above the 40-step Flow-OPD model on both backbones
Training GPU-hours, SD3.5-Mediumabout 37% fewerRelative to sequential DiffusionOPD + TDM
Prompt-word recurrence on prompts with no text called for, base21 imagesSD3.5-Medium
Same, DiffusionOPD218 imagesAfter capability integration
Same, StepX-OPD94 imagesTrained with DiffusionOPD teachers
Same, precise-teacher variant84 imagesThe lower-recurrence variant

The paper's claim is that on both architectures StepX-OPD attains the highest normalized average among the compared 4-step systems and exceeds the 40-step Flow-OPD model, and that on SD3.5-Medium it trains with about 37% fewer GPU-hours than sequential DiffusionOPD followed by step distillation. Figure 1 places the training cost of the optimization stages next to 4-step performance across nine benchmarks after a fixed axis-wise normalization.

Where it stops applying: 2 backbones and a 4-step budget

  • Only SD3.5-Medium and FLUX.1-dev are evaluated, and only at 4 steps; 2-step or 1-step settings are not reported.
  • The roughly 37% GPU-hour saving is given for SD3.5-Medium only; no matching number is reported for FLUX.1-dev.
  • The recurrence counts of 21, 218, 94 and 84 come from a specific measurement protocol, so they will move if the prompt set or the judging rule changes.
  • The nine-benchmark average uses a fixed axis-wise normalization; under a different normalization the ordering behind 0.8901 and 0.8902 is not guaranteed to hold.
  • The paper does not say whether the merge still works with more specialists, more capabilities, or teachers of uneven quality.

So the decision this material supports is narrow. At 4 steps, on these 2 backbones, with these metrics, a single-stage merge is worth trying and may remove one serial training run; the method does not apply when you need 2-step sampling, a third architecture, or a guarantee about teacher mixtures the paper never tested. Anything beyond that needs a new controlled comparison rather than an extrapolation of these results [1].

References

  1. StepX-OPD: Rethinking Multi-Teacher On-Policy Distillation in Diffusion Models

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…