GDMD: Guiding Distribution Matching Distillation with Gradient-Based Reinforcement Learning

Linwei Dong, Ruoyu Guo, Ge Bai, Quan Zheng, Yawei Luo, Changqing ZouNeurIPS 2026

TL;DR

Making diffusion models fast usually means compromising on image quality, while bolstering them with Reinforcement Learning (RL) to capture human preferences often leads to unstable training. The authors introduce GDMD, a clever framework that stops rewarding raw, noisy images and instead rewards the optimization gradients—the actual mathematical steps the model takes during distillation. The result? Lightning-fast, 4-step image generators that actually look better than the slow, 100-step teacher models they learned from.

What Problem Does This Paper Address?

Diffusion models generate stunning images, but their step-by-step denoising process is agonizingly slow. Distillation techniques—specifically Distribution Matching Distillation (DMD)—compress a 50-to-100-step "teacher" model into a fast 4-step "student" by aligning their output distributions. Unfortunately, students remain capped by their teachers' limitations and often suffer from degraded visual quality.

To break through this ceiling, researchers recently tried blending Reinforcement Learning (RL) into distillation to optimize directly for human aesthetic preferences. However, naively gluing RL and distillation together triggers a tug-of-war:

  1. Noisy Early Signals: Early in training, a few-step student outputs blurry garbage. Asking a reward model to score those raw pixels gives erratic feedback, forcing engineers to rely on a tedious "cold-start" distillation phase before turning RL on.
  2. Gradient Conflicts: Distillation pulls the student toward the teacher's distribution, while RL pulls it toward high-reward regions. When these directions clash, optimization destabilizes and spirals into "reward hacking" (creating weird visual artifacts that trick the reward model).
Figure 3: (a) Illustration of divergence between RL updates and DMD updates. RL optimization diverges from few-step distillation in certain extreme phases. (b) Compared to DMDR without cold start. DMDR is more prone to reward hacking (background artifacts), and unseen metrics (such as Pick Score) do not show significant improvement. (c) Visualization of the initial phase and visualization of reward hacking in DMDR. GDMD has not exhibited any significant hacking.

Methods

Instead of scoring the student's raw pixel output ($x_0$), GDMD shifts the paradigm to gradient-based scoring—evaluating the update direction proposed by the distillation step.

Figure 4: Overview of the DMDR and GDMD pipelines. Top: DMDR employs a sample-based scoring approach, simply combining the losses from DMD and RL. Bottom: GDMD achieves gradient-based RL optimization through its carefully designed components: Distillation-aware Gradient Collection (DaGC), Implicit Gradient Scoring (IGS), and Negative-aware Preference Optimization (NaPO), which collectively unlock the model’s full performance potential.

Because standard reward models (like CLIP) expect images rather than raw gradients, the authors build a three-part pipeline to bridge the gap:

  • Implicit Gradient Scoring (IGS): In standard DMD, the gradient is the difference between a frozen teacher's score and a dynamic "fake" score tracking the student. The authors mathematically reformulate this update into an implicit target image ($x_{\text{tar}}$)—essentially a clean snapshot of where the gradient is pointing. Decoding $x_{\text{tar}}$ lets off-the-shelf reward models score the distillation step directly.
  • Distillation-aware Gradient Collection (DaGC): Standard RL for diffusion requires expensive Stochastic Differential Equation (SDE) sampling to explore different outcomes. GDMD bypasses this completely by harvesting diverse candidate gradients using DMD's natural randomness—varying noise levels ($t$) and querying different historical snapshots of the updating fake-score network.
  • Negative-aware Preference Optimization (NaPO): Building on recent RL policies (DiffusionNFT), the model compares the candidate target's reward against the current sample's baseline reward. If the gradient improves the image, an implicit positive policy reinforces that trajectory; if it makes things worse, a negative policy pushes away from it.

Datasets

No new benchmarks are introduced; the authors use established datasets:

  • Training: Prompts are drawn from the text-to-image-2M dataset to distill both UNet-based (SDXL-Base) and DiT-based (SD3-Medium) architectures.
  • Evaluation: Image quality and preference alignment are tested on random prompts from ShareGPT-4o-Image, while rule-based compositional accuracy (counting, object positioning, color binding) is tested on GenEval.

Key Insights and Ideas

  • Score the compass, not the camp: By evaluating where the distillation gradient is going ($x_{\text{tar}}$) rather than where the student currently is ($x_0$), RL acts as an adaptive weight on the distillation trajectory rather than a competing force. This completely eliminates the need for a cold-start phase.
  • Free exploration without SDE rollouts: Different noise intensities enhance optimization on trained rewards, while historical fake-score checkpoints prevent overfitting and boost generalization to unseen metrics. Combining them gives RL rich exploration practically for free.
  • True generalization over reward hacking: Training exclusively on CLIP Score and Human Preference Score (HPS) lifts performance across completely unseen metrics (Aesthetic Score, Pick Score, ImageReward), proving the model learns genuine visual quality rather than gaming the judges.

Key Results

Across the board, GDMD's 4-NFE (Number of Function Evaluations) student models outperform existing distillation methods, hybrid RL baselines (DMDR), and even their own 100-NFE teacher models:

  • GenEval Benchmark: Using SD3-Medium, GDMD hits an overall score of 0.71, handily beating the 100-NFE teacher (0.62), standard DMD (0.63), and DMDR (0.64), with massive jumps in object counting (0.71 vs. 0.54 in DMDR) and attribute binding.
  • Unseen Quality Metrics: On SD3-Medium, GDMD pushes ImageReward to 1.2702 (compared to the teacher's 1.0759 and DMDR's 1.0120) and Aesthetic Score to 5.8728 (vs. teacher's 5.5711).
  • Human Preference: In blind user studies, humans preferred 4-step GDMD over the 100-step Teacher 55.1% of the time for image quality and 57.4% for prompt alignment—and favored it over standard DMD nearly 65% of the time.
Figure 2: Samples from 4-NFE student model distilled through our methods. GDMD showcases outstanding image generation, delivering ultra-realistic visuals and profound concept understanding.

Limitations and Future Work

  • Limitations: GDMD is ultimately at the mercy of its reward models. If the reward evaluator has blind spots or fails to score a prompt accurately, the distillation updates will drift toward low-quality directions.
  • Future Work: The authors highlight long video generation as a natural next frontier. Long videos notoriously suffer from temporal drift and quality degradation over time; GDMD's synchronized distillation-and-RL framework could keep generation sharp and coherent across long horizons.

Summary updated

Abstract

Diffusion distillation, exemplified by Distribution Matching Distillation (DMD), has shown great promise in few-step generation but often sacrifices quality for sampling speed. While integrating Reinforcement Learning (RL) into distillation offers potential, a naive fusion of these two objectives relies on suboptimal raw sample evaluation. This sample-based scoring creates inherent conflicts with the distillation trajectory and produces unreliable rewards due to the noisy nature of early-stage generation. To overcome these limitations, we propose GDMD, a novel framework that redefines the reward mechanism by prioritizing distillation gradients over raw pixel outputs as the primary signal for optimization. By reinterpreting the DMD gradients as implicit target tensors, our framework enables existing reward models to directly evaluate the quality of distillation updates. This gradient-level guidance functions as an adaptive weighting that synchronizes the RL policy with the distillation objective, effectively neutralizing optimization divergence. Empirical results show that GDMD sets a new SOTA for few-step generation. Specifically, our 4-NFE (Number of Function Evaluations‌) models outperform the quality of their multi-step teacher and substantially exceed previous DMDR results in GenEval and human-preference metrics, exhibiting strong scalability potential.
BibTeX
@inproceedings{dong2026gdmd,
  author = {Linwei Dong and Ruoyu Guo and Ge Bai and Quan Zheng and Yawei Luo and Changqing Zou},
  title = {{GDMD: Guiding Distribution Matching Distillation with Gradient-Based Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RFJrFfNSEC},
}
Figure