---
title: Reward-Tilted Distillation (RTDMD)
url: https://www.emergentmind.com/topics/reward-tilted-distribution-matching-distillation-rtdmd
type: topic
---

# Reward-Tilted Distillation (RTDMD)

Searching arXiv for the specified RTDMD paper and closely related reward-tilted/distillation works to ground the article in current literature.
arXiv search query: 2605.26108 RTDMD reward-tilted distribution matching distillation
Reward-Tilted Distribution Matching Distillation (RTDMD) is a two-stage training framework for few-step diffusion and flow generators that combines distribution matching distillation with reward-guided reinforcement learning by defining a reward-tilted teacher distribution and training the student to match it [2605.26108]. In this formulation, a pretrained teacher distribution \(p_\psi(x)\) is reweighted by a scalar reward \(r(x)\), so that high-reward samples receive larger mass while the support and structural prior of the teacher are retained. RTDMD was introduced to address two coupled limitations of prior few-step distillation: standard distillation is not reward-aware, and direct reward optimization is difficult in generators whose intermediate steps are stochastic while the final step is deterministic [2605.26108].

## 1. Formal objective and motivation

RTDMD defines the reward-tilted teacher as
\[
\tilde p_\psi(x)=\frac{p_\psi(x)\exp(\beta r(x))}{Z},
\]
where \(r(x)\) is a scalar reward, \(\beta \ge 0\) controls how strongly reward reweights the teacher, and \(Z\) is the normalization constant [2605.26108]. The student generator \(p_\theta\) is then trained by minimizing
\[
D(p_\theta \,\|\, \tilde p_\psi).
\]

The motivation is explicit. Classical DMD-style methods distill a teacher distribution as-is, but the teacher is not necessarily aligned with human preferences, so a faithful student can inherit both desirable and undesirable modes. At the same time, reward optimization in few-step generators is structurally awkward because intermediate transitions inject noise while the terminal mapping is deterministic; methods that optimize only one part of this process leave a portion of the reward gradient unused [2605.26108].

This reward-tilted perspective places RTDMD within a broader family of distillation methods that bias learning toward preferred regions of the teacher distribution. In streaming video generation, for example, Reward Forcing introduces Rewarded Distribution Matching Distillation (Re-DMD), which biases distribution matching toward high-motion samples using a vision-language reward and states that “Vanilla distribution matching treats every training sample equally, limiting the model’s ability to prioritize dynamic content” [2512.04678]. RTDMD generalizes the same core principle to few-step image generation, but does so through an explicit KL objective against a reward-tilted teacher distribution [2605.26108].

## 2. KL decomposition and the meaning of the reward tilt

The central derivation in RTDMD follows directly from the definition of \(\tilde p_\psi\):
\[
\log \tilde p_\psi(x)=\log p_\psi(x)+\beta r(x)-\log Z.
\]
Therefore,
\[
D(p_\theta\|\tilde p_\psi) = D(p_\theta\|p_\psi) -\beta \mathbb{E}_{x\sim p_\theta}[r(x)] +\log Z.
\]
Since \(Z\) does not depend on \(\theta\), the gradient decomposes as
\[
\nabla_\theta D(p_\theta\|\tilde p_\psi) =
\underbrace{\nabla_\theta D(p_\theta\|p_\psi)}_{\text{distribution matching}}
-\beta
\underbrace{\nabla_\theta \mathbb{E}_{x\sim p_\theta}[r(x)]}_{\text{reward maximization}}.
\]
The paper’s key claim is that training against the reward-tilted teacher is therefore equivalent to jointly performing distribution matching and reward maximization [2605.26108].

This decomposition clarifies what RTDMD is and is not. The method does not replace teacher distillation with an unconstrained RL objective; instead, it modifies the target distribution so that reward optimization is embedded inside a distribution-preserving objective. A plausible implication is that the reward term can improve alignment without discarding the teacher’s image prior, because the optimization is explicitly anchored by \(D(p_\theta\|p_\psi)\).

Closely related formulations in later work preserve the same intuition while changing where reward enters the computation. Re-DMD in Reward Forcing uses normalized exponential sample weights of the form \(\exp(r/\beta)/Z(\boldsymbol{c})\) so that high-reward video samples dominate the distillation gradient [2512.04678]. GDMD instead moves the reward from sample space to gradient space, evaluating an implicit target induced by the DMD update rather than the raw output, with the stated goal of synchronizing RL and distillation and avoiding optimization divergence [2604.19009]. These variants differ mechanistically, but all treat reward as a way to tilt distribution matching rather than as an independent post hoc objective.

## 3. Stage I: Ambient-Consistent Distribution Matching Distillation

The first RTDMD stage is Ambient-Consistent Distribution Matching Distillation (AC-DMD), a cold-start distillation phase designed to produce a stable few-step student before reinforcement learning begins [2605.26108]. The paper argues that standard DMD is insufficient in this setting because, under coefficient-preserving sampling (CPS) with stochastic intermediate transitions, the state at step \(k\) is a noisy latent \(\hat x_{t_k}\) rather than a clean image. Accordingly, distribution matching is re-derived over the remaining interval \([t_k,1]\), conditioned on the actual intermediate latent.

For step \(k\), the re-noising process is defined as
\[
x_t^{(k)}=\alpha_k(t)\hat x_{t_k}+\sigma_k(t)\epsilon,
\]
with
\[
\alpha_k(t)=\frac{1-t}{1-t_k}, \qquad \sigma_k(t)=\frac{t-t_k}{1-t_k}, \qquad \epsilon\sim\mathcal N(0,I).
\]
The generator then minimizes the reverse KL on that subinterval:
\[
\mathcal L_{\mathrm{gen}}^{(k)}(\theta) = \mathbb E_{t\sim \mathcal U[t_k,1]} \bigl[ \lambda_k(t)\,\mathrm{KL}(p_{\theta,t}^{(k)}\|p_{\psi,t}) \bigr].
\]
The resulting generator gradient is
\[
\nabla_\theta \mathcal L_{\mathrm{gen}}^{(k)}
\approx
- \mathbb E\!\left[ \lambda_k(t)\alpha_k(t)
\bigl(s_\psi(x_t^{(k)},t)-s_\phi(x_t^{(k)},t)\bigr)^\top
\frac{\partial \hat x_{t_k}}{\partial \theta} \right].
\]
Here \(s_\psi\) is the teacher score and \(s_\phi\) is the fake or student score estimator [2605.26108].

The fake score model is trained on the same subinterval by denoising score matching:
\[
\mathcal L_{\mathrm{fake}}^{(k)}(\phi) =
\mathbb E_{t\sim\mathcal U[t_k,1],\,\hat x_{t_k},\,x_t^{(k)}}
\left[
\omega_k(t)\left\| s_\phi(x_t^{(k)},t) -
\nabla_x\log q_t^{(k)}(x_t^{(k)}\mid \hat x_{t_k}) \right\|_2^2
\right],
\]
where
\[
\nabla_x\log q_t^{(k)}(x_t^{(k)}\mid \hat x_{t_k}) =
\frac{\alpha_k(t)\hat x_{t_k}-x_t^{(k)}}{\sigma_k(t)^2}.
\]
The paper states that this objective is unbiased for the true student marginal score [2605.26108].

AC-DMD adds a consistency regularizer because the student distribution shifts during training while \(s_\phi\) must track it under limited updates. If the fake denoiser is optimal, its \(x\)-prediction should satisfy
\[
\hat f_\phi(x_{t'},t') =
\mathbb E_{\tilde x_{t''}\sim p_\phi(x_{t''}\mid x_{t'})}
\left[ \hat f_\phi(\tilde x_{t''},t'') \right], \qquad t''<t'.
\]
The associated penalty is
\[
\mathcal L_{\mathrm{cons}}^{(k)}(\phi) =
\mathbb E\!\left[
\left\| \hat f_\phi(x_{t'},t') -
\mathbb E_{\tilde x_{t''}\sim p_\phi(x_{t''}\mid x_{t'})}
\bigl[\hat f_\phi(\tilde x_{t''},t'')\bigr]
\right\|_2^2
\right],
\]
with a two-sample estimator used in practice. The final fake-score objective is
\[
\mathcal L_{\mathrm{fake\text{-}total}}^{(k)}(\phi)=
\mathcal L_{\mathrm{fake}}^{(k)}(\phi) + \gamma \mathcal L_{\mathrm{cons}}^{(k)}(\phi).
\]
This cold-start stage is what the paper designates as AC-DMD [2605.26108].

## 4. Stage II: joint reinforcement, hybrid policy gradient, and SubGRPO

After cold start, RTDMD enters a reinforcement stage that jointly optimizes the distribution-matching and reward terms from the KL decomposition. The total generator update is
\[
\nabla_\theta \mathcal L_{\mathrm{total}} =
\nabla_\theta \mathcal L_{\mathrm{AC\text{-}DMD}}
-\beta\left(
\nabla_\theta \mathcal L_{\mathrm{stoc}}^{\mathrm{SubGRPO}}
+
\nabla_\theta \mathcal L_{\mathrm{det}}
\right)
\]
[2605.26108].

The few-step generator is treated as a policy over the latent trajectory
\[
\hat x_{t_0}\to \hat x_{t_1}\to \cdots \to \hat x_{t_{K-1}}\to \hat x_0.
\]
For the first \(K-1\) steps, CPS defines Gaussian transitions
\[
\pi_\theta^{(k)}(\hat x_{t_k}\mid \hat x_{t_{k-1}}) =
\mathcal N\!\bigl(\hat x_{t_k};\,\mu_\theta^{(k)}(\hat x_{t_{k-1}}),\,\sigma_k^2 I\bigr),
\quad k=1,\dots,K-1,
\]
while the final step is deterministic:
\[
\hat x_0 = G_\theta(\hat x_{t_{K-1}},t_{K-1}).
\]
The reward gradient therefore decomposes into a stochastic REINFORCE-style part and a deterministic backpropagation part:
\[
\nabla_\theta \mathbb E_{\hat x_0\sim p_\theta}[r(\hat x_0)] =
\sum_{k=1}^{K-1}
\mathbb E_{\tau\sim p_\theta}\!\left[
r(\hat x_0)\nabla_\theta \log \pi_\theta^{(k)}(\hat x_{t_k}\mid \hat x_{t_{k-1}})
\right]
+
\mathbb E_{\tau\sim p_\theta}\!\left[
(\nabla_{\hat x_0} r(\hat x_0))^\top
\frac{\partial G_\theta(\hat x_{t_{K-1}},t_{K-1})}{\partial \theta}
\right].
\]
This hybrid estimator is one of RTDMD’s principal differences from methods that optimize only stochastic denoising steps or only the terminal deterministic mapping [2605.26108].

To reduce variance in the stochastic part, RTDMD introduces step-subset GRPO (SubGRPO). A subset \(\mathcal S \subset \{1,\dots,K-1\}\) of size \(M\) is chosen, and only those steps receive independent noise across trajectories in a group; all other stochastic steps share the same group noise. The corresponding gradient is
\[
\nabla_\theta \mathcal L_{\mathrm{stoc}}^{\mathrm{SubGRPO}} =
\frac{K-1}{M}\cdot \frac{1}{N}
\sum_{i=1}^N \sum_{k\in \mathcal S}
A_i\,\nabla_\theta \log \pi_\theta^{(k)}(\hat x_{t_k}^{(i)}\mid \hat x_{t_{k-1}}^{(i)}),
\]
where the advantage is the group-normalized reward
\[
A_i = \frac{r_i-\bar r}{\operatorname{std}(\{r_j\}_{j=1}^N)},
\qquad
\bar r=\frac{1}{N}\sum_{j=1}^N r_j.
\]
The paper characterizes this as a Rao–Blackwellized variant of naive independent-noise GRPO, with lower variance at a fixed gradient budget [2605.26108].

## 5. Relationship to adjacent reward-aware distillation methods

RTDMD belongs to a rapidly expanding class of methods that combine teacher matching with reward guidance, but the point of contact between reward and distillation differs substantially across papers.

| Method | Reward attachment point | Distinctive mechanism |
|---|---|---|
| RTDMD [2605.26108] | Reward-tilted teacher distribution | AC-DMD cold start; hybrid stochastic-plus-deterministic RL; SubGRPO |
| Re-DMD in Reward Forcing [2512.04678] | Sample-level exponential reweighting | Motion-quality reward from VideoAlign; tilt toward dynamic video samples |
| GDMD [2604.19009] | Gradient-induced implicit target | Reward evaluates the DMD update target rather than raw sample |
| Stream-R1 [2605.03849] | Rollout-level and element-level reweighting | Inter-Reliability and Intra-Perplexity with reward saliency |
| \(R_{dm}\) / GNDM [2603.28460] | Distillation reconceptualized as reward | Group-normalized distribution matching; PPO/GRPO-style clipping |
| RMMD [2606.30414] | Reward fine-tuning with distillation regularizer | On-policy reward optimization plus moment-matching regularization |

RTDMD differs from DMD and DMD2 because it explicitly targets \(D(p_\theta\|\tilde p_\psi)\) rather than only distilling the teacher prior [2605.26108]. It differs from RL-only methods because the generator remains anchored to the teacher distribution. It also differs from reward-weighted DMD variants in streaming video. Re-DMD, for instance, multiplies the usual DMD score-difference term by a normalized exponential reward weight and uses VideoAlign’s motion quality as the reward function with \(\beta=\frac{1}{2}\), thereby emphasizing dynamic content while preserving data fidelity [2512.04678]. Stream-R1 extends this idea beyond scalar rollout weighting by applying one shared reward model both to inter-rollout exponential weighting and to intra-rollout spatial and temporal saliency maps, producing a hierarchical reward tilt without architectural modification or additional inference cost [2605.03849].

GDMD occupies a different point in the design space. Instead of rewarding the generated sample, it interprets the DMD gradient as an implicit target tensor \(x_{\text{tar}}\), scores that target with a reward model, and uses the score as an adaptive weighting inside a joint DMD-plus-preference objective [2604.19009]. The paper’s explicit claim is that this aligns RL with the distillation trajectory and removes the need for the cold-start phase required by DMDR-style training. By contrast, RTDMD retains a cold-start stage in the form of AC-DMD [2605.26108].

Another nearby formulation is \(R_{dm}\), which re-conceptualizes distribution matching itself as an RL reward and introduces Group Normalized Distribution Matching (GNDM). In that framework, the DMD signal is converted into a reward-like quantity \(R_{\text{dm}}\), normalized within groups, and optimized through a clipped GRPO-style objective. The stated benefit is a unified reward-centric view that supports adaptive weighting, multi-reward composition, and importance sampling [2603.28460]. RMMD, finally, is not presented as RTDMD, but as Rewarded Moment Matching Distillation; it uses on-policy reward optimization with moment matching as a regularizer and is described as a reward-tilted distribution matching procedure in which the distillation loss functions as a proxy for a distribution-preserving constraint [2606.30414].

A common misconception is that all reward-aware distillation methods are interchangeable. The literature indicates otherwise. Some methods tilt sample weights, some tilt rollout weights, some reward gradients or implicit targets, and some preserve fidelity through moment matching rather than KL-derived DMD terms. RTDMD is specifically the formulation based on a reward-tilted teacher distribution and a two-stage AC-DMD-plus-hybrid-RL training recipe [2605.26108].

## 6. Experimental regime, reported performance, and practical scope

RTDMD is evaluated on SD3-M, SD3.5-M, and FLUX.2 4B, with all models distilled to 4 inference steps [2605.26108]. The reported implementation uses a student initialized from the pretrained teacher without CFG, LoRA on attention layers with rank \(r=64\) and \(\alpha=32\), CPS sampling with \(\eta=0.9\), a Stage I cold start of about \(1.5\times 10^3\) iterations, a Stage II reinforcement phase of about \(10^3\) iterations, group size 24, 48 groups per prompt for SD3 and SD3.5 and 64 for FLUX.2, AdamW, and bf16 precision [2605.26108]. Training rewards are drawn from combinations of HPSv2, CLIPScore, PickScore, and GenEval, with FLUX.2 additionally using OCR Score, Aesthetic, GenEval2, ImageReward, and HPSv3 [2605.26108].

On 4-step SD3-M, RTDMD reports the best scores across all reported metrics:
- **CLIPScore:** 0.3161  
- **Aesthetic:** 5.9642  
- **PickScore:** 22.8593  
- **HPSv2:** 0.3211  
- **ImageReward:** 1.3024  
and is described as outperforming DMD, DMD2, TDM, DMDR, GDMD, and \(R_{\text{dm}}\), while surpassing the 100-step teacher with CFG on some metrics [2605.26108].

On SD3.5-M, RTDMD reaches an overall **GenEval score of 0.94**, which the paper describes as competitive with much more expensive systems [2605.26108]. On FLUX.2 4B, the reported results are:
- **ImageReward:** 1.3712  
- **CLIPScore:** 0.3219  
- **Aesthetic:** 5.7746  
- **PickScore:** 23.9642  
- **HPSv2:** 0.3516  
- **HPSv3:** 15.5772  
- **GenEval:** 0.9046  
The paper emphasizes that the distilled 4B model surpasses the much larger FLUX.2 9B teacher on most metrics despite using only 4 inference steps [2605.26108].

The ablations are used to attribute gains to specific components. The paper reports that adding the consistency loss improves AC-DMD substantially, SubGRPO improves over naive GRPO, and adding the deterministic gradient improves over stochastic-only RL [2605.26108]. These findings are consistent with the method’s conceptual structure: AC-DMD stabilizes cold start on noisy intermediate states, SubGRPO addresses variance in stochastic policy gradients, and direct reward backpropagation through the final deterministic step uses information that GRPO-style estimators alone would ignore.

The scope of RTDMD is therefore narrower and more precise than the generic phrase “reward-guided distillation” might imply. It is a reward-aware few-step distillation method in which KL minimization to a reward-tilted teacher yields a principled decomposition into teacher matching and reward maximization, instantiated through AC-DMD cold start and a hybrid reinforcement stage [2605.26108]. Subsequent work suggests that this formulation is part of a broader methodological trend in which reward increasingly modifies the effective training distribution rather than acting only as an external auxiliary loss [2512.04678].

Source: https://www.emergentmind.com/topics/reward-tilted-distribution-matching-distillation-rtdmd