Research
eDMD: Endpoint Distribution Matching for Few-Step Diffusion Distillation
Distribution matching distillation (DMD) trains a small "student" generator by comparing a pretrained teacher's predictions against those of an auxiliary fake score model that tracks the student's…
- arXiv
- 2611.17194 · Preprint · not peer-reviewed
- Published
- 2026-11-12
- Authors
- Tong Zhao, Xianfang Zeng, Yucheng Han, Ruoyu Wang, Mingkun Lei, Gang Yu, Chi Zhang
In plain words
Distribution matching distillation (DMD) trains a small "student" generator by comparing a pretrained teacher's predictions against those of an auxiliary fake score model that tracks the student's own distribution.
AI summary
eDMD: Endpoint Distribution Matching for Few-Step Diffusion DistillationOverview
Research area: Computer Vision — generative modeling, specifically few-step distillation of diffusion and flow-matching text-to-image models.
Technical level: Advanced. The paper relies on reverse Kullback–Leibler divergence, score/denoiser identities (Tweedie's formula), and formal propositions about when the distillation correction signal vanishes.
Scope: The paper diagnoses a theoretical flaw in how multi-step distribution-matching distillation trains its auxiliary "fake" model, proposes an endpoint-only alternative (eDMD) plus two teacher-supervision refinements, and validates the result by distilling four backbones into 4-step generators.
What This Paper Is About
Distribution matching distillation (DMD) trains a small "student" generator by comparing a pretrained teacher's predictions against those of an auxiliary fake score model that tracks the student's own distribution. In multi-step students, existing methods train that fake model on intermediate predictions or intermediate denoising states, which entangles the student's learning signal with distributions the student never actually delivers at inference. The authors show this creates a persistent error term that keeps pushing the student even after its final outputs already match the teacher, and they propose training the fake model on final outputs only, at every step.
Key Contributions
-
Identification and theoretical characterization of an objective mismatch in multi-step DMD. The correction signal is decomposed into three terms — teacher enhancement, endpoint matching, and a reference residual — and Proposition 1 proves the residual is zero if and only if the fake model's reference distribution equals the student's endpoint (final-output) distribution.
-
eDMD (Endpoint Distribution Matching Distillation). A single shared fake model is trained exclusively on the student's final generated outputs and used to correct every denoising step. Corollary 1 states that with this reference, the correction vanishes across all steps and queries if and only if the student's final output distribution matches the target, regardless of intermediate distributions or the query density.
-
A precise teacher (PT). Instead of a single guided network evaluation per query, PT integrates the teacher's guided sampling ODE over a short multi-step trajectory, applied to final-step queries below σ_{K−1}, producing sharper targets at no extra student inference cost.
-
A calibrated query density. Teacher predictions are not equally reliable at all noise levels, so a normalized consistency score b̂_s(τ) is measured before distillation and used to sample intermediate-step query levels as τ ∼ ρ_k ∝ exp(−b̂_{σ_{k+1}}(τ)) on [σ_{k+1}, 1).
Main Findings
-
The reference residual is the culprit. Under exact denoisers, R = D_q − D_ν = (τ²/(1−τ)) ∇_y log(q_τ/ν_τ), and R ≡ 0 if and only if ν = q (Proposition 1). Intermediate-based references therefore leave a nonzero residual even when the student's final outputs already match the teacher.
-
Zero-correction sets differ by reference type (Proposition 2). With an endpoint reference, correction stops exactly at {q = p}. With a mixture reference (as in DMD2 and D-DMD) it stops at {Σ_k π_k q_k = p}, which can occur with q ≠ p. With a stage reference (as in TDM) it requires q = p and r_k = p_{σ_{k+1}} for all k < K−1, so it keeps correcting students whose final outputs are already correct.
-
2D synthetic verification. On a tree-structured toy distribution, the mixture and stage references deflect the update away from the desired direction for a mismatched student, and still push a matched student away from the teacher; the endpoint reference yields no correction for the matched student. Students producing identical final samples can receive nearly opposite residual updates when their intermediate distributions differ.
-
Consistent gains on four backbones for 4-step generation. eDMD achieves the highest peak HPSv3++ on all four teachers:
- SD3-Medium: 11.171 vs. D-DMD 10.841, CDM 10.396, TDM 10.386, DMD2 10.270 (teacher at 28 steps: 8.554).
- FLUX.2-klein-4B: 12.699 vs. DMD2 11.337, CDM 10.790, TDM 10.259, D-DMD 10.228 (teacher at 50 steps: 9.236).
- FLUX.2-klein-9B: 12.431 vs. the official 4-step distilled checkpoint 11.526, D-DMD 11.325, DMD2 11.104, TDM 11.084, CDM 11.077 (teacher at 50 steps: 9.785).
- Qwen-Image-2.1: 14.691 vs. DMD2 14.212, the official 8-step Turbo 13.850, TDM 13.787, and the 40-step teacher 13.767; eDMD leads the 4-step students on all seven reported metrics here.
-
Broad secondary metric leadership. eDMD leads on DPG-Bench and HPSv2.1 for all three of SD3-Medium and the two FLUX.2 models, and on HPSv3, PickScore, and ImageReward on both FLUX.2 models. Examples: DPG-Bench 85.33 (SD3-Medium), 83.41 (FLUX.2-klein-4B), 86.41 (FLUX.2-klein-9B).
-
The endpoint reference is the largest single contributor. Ablating it drops HPSv3++ from 11.171 to 10.122 on SD3-Medium and from 12.699 to 11.095 on FLUX.2-klein-4B. Removing PT gives 11.026 and 11.667; removing query calibration gives 10.798 and 12.507. Independent reruns vary by a standard deviation of 0.074 (SD3-Medium) and 0.11 (FLUX.2-klein-4B).
-
The benefit transfers. Training TDM with an endpoint fake model while keeping its own student objective and rollout improves peak and fixed-budget results on SD3-Medium and both FLUX.2 models.
-
Query calibration is teacher-dependent. It helps on SD3-Medium, where stronger prediction drift pushes the calibrated density toward levels nearer the landing point, but stays nearly uniform on FLUX.2-klein-4B, where it performs about the same as uniform sampling.
Methodology in Plain English
The starting point is a decomposition. The correction applied to the student is the teacher's prediction minus the fake model's prediction; the authors split this into (a) the boost from classifier-free guidance, (b) the genuine gap between teacher and student final-output distributions, and (c) a leftover term caused by the fake model learning the wrong distribution. Only (b) is the signal you want.
eDMD removes (c) by construction: the fake model is trained only on samples the student actually delivers — the final outputs of the full 4-step rollout — rather than on intermediate predictions. Rollouts are detached, so gradients flow only through the one step being corrected, and each generated sample supports several fake-model updates (five fake updates per student update). Because the fake model now represents the endpoint distribution, the correction at any step reduces to "teacher target minus endpoint denoiser."
Two refinements improve the teacher side. First, for low-noise queries at the final step, the teacher's answer is not a single network evaluation but a short guided denoising trajectory integrated down to zero, which avoids averaging across plausible branches. Second, before training, the authors measure how consistent the teacher's predictions are between a query level τ and the level the step actually lands at, and they sample query levels with a density that favors the more consistent (more trustworthy) regions.
Practically: teachers are distilled with their default guidance scales (w = 7 on SD3-Medium, w = 4 on both FLUX.2 models, w = 1 on Qwen-Image, where PAG is used). No real images are used in distillation. SD3-Medium and FLUX.2 runs train on the 191,500 prompts of CDM for 2,000 updates on NPUs; Qwen-Image trains on prompt-enhanced rewrites of those prompts for 600 updates on H800 GPUs. Evaluation uses 1,000 images generated from 200 DrawBench prompts with five seeds each (DrawBench-1000), scored with HPSv3++, HPSv3, PickScore, LAION Aesthetic, HPSv2.1, ImageReward, CLIP (ViT-B/32), and DPG-Bench, selecting the peak checkpoint by HPSv3++ over raw and EMA weights.
Why This Matters
Impact on research. The paper reframes a design choice that multi-step DMD variants treated as an implementation detail — what data the fake model sees — as the thing that determines whether the objective is even targeting the right quantity. The zero-correction-set analysis gives a clean criterion for comparing future distribution-matching methods, and the result that intermediate predictions need not match the teacher's intermediate distributions relaxes a constraint that few-step students were silently carrying.
Real-world applications:
- Consumer and creative image generation, where cutting a 40-step sampler down to 4 steps without losing text legibility or texture is the difference between an interactive tool and a batch job (Figure 1 shows 4-step samples from Qwen-Image-2.1 with legible text).
- Cost-sensitive inference at scale, for API providers serving high volumes where per-image sampling cost dominates.
- On-device and edge generation, where the memory and compute budget fits a few network evaluations rather than tens.
- Iterative creative workflows such as prompt exploration, inpainting-style editing, and batch storyboarding, where users generate many candidate images per session.
Industry relevance. The method is demonstrated on four widely used production-grade backbones (SD3-Medium, FLUX.2-klein-4B/9B, Qwen-Image-2.1), requires no real training images, and adds no inference-time cost — the precise teacher's extra evaluations are confined to training. That combination is what makes a distillation recipe deployable rather than merely publishable.
Future Directions
- Pushing below 4 steps. All reported results target 4-step students; whether the endpoint reference also pays off in the 1–2 step regime, where intermediate predictions are most unlike the teacher's, is untested here.
- Combining with adversarial objectives. DMD2 is trained in this codebase without its GAN loss, so how the endpoint reference interacts with a discriminator remains open.
- Beyond images. The introduction motivates the work by citing video and audio generation, but experiments are image-only; extending endpoint matching to temporal or waveform generators is a natural next test.
- Making query calibration more decisive. Calibration yields its clearest gain on SD3-Medium and is nearly a no-op on FLUX.2-klein-4B; a sharper consistency estimator, or an adaptive schedule, could make it uniformly useful.
Target Audience
Researchers and engineers working on diffusion/flow-matching acceleration, distillation, and few-step generative models — particularly those already familiar with DMD, DMD2, TDM, or consistency-model-style approaches. The theoretical sections (Propositions 1 and 2, Corollary 1) suit readers interested in the mathematical structure of score-based distribution matching; the experimental sections and the released code (github.com/Westlake-AGI-Lab/eDMD) suit practitioners who want to reproduce a 4-step distillation recipe on their own backbone. Readers without a background in score-based generative modeling will find the derivations demanding, though the core intuition — train the fake model on what you actually ship, not on intermediate drafts — is stated plainly enough to carry through.
Authors’ abstract
Distribution matching distillation (DMD) has emerged as a leading paradigm for distilling diffusion models into few-step students, where an auxiliary fake score model tracks the student's distribution and the discrepancy between the teacher and fake predictions drives the student toward the teacher. In multi-step distillation, although only the student's final output is delivered, existing methods train the fake model on intermediate states or across all denoising steps.…
The full abstract on arXivRelated papers
- StepX-OPD: Rethinking Multi-Teacher On-Policy Distillation in Diffusion Models 2026-11-03 · cs.CV · Also by Chi Zhang, Xianfang Zeng +1
- Budget-Constrained Step-Level Diffusion Caching 2026-06-11 · cs.CV · Also by Chi Zhang, Mingkun Lei +1
- ReasonEdit: Towards Reasoning-Enhanced Image Editing Models 2025-11-27 · cs.CV · Also by Gang Yu, Xianfang Zeng +1
- Code World Model 2.0: Towards Infinite Controllable Video Generation 2026-11-17 · cs.CV · Also by Chi Zhang, Ruoyu Wang
- Precise Editing and Flexible Referencing for Interactable Worlds 2026-09-28 · cs.CV · Also by Gang Yu, Xianfang Zeng