Preprint · 2026

Rethinking Classifier-Free Guidance in On-Policy Diffusion Distillation

Bingnan Li, Haozhe Wang, Haozhong Xiong, Fangtai Wu, Jinpeng Yu, Yang Shi, Jiaming Liu, Ruihua Huang

Qwen Business Unit, Alibaba

Corresponding: jmliu1217@gmail.com

The problem

Naive CFG-based OPD

Supervises only the CFG-composed velocity \(v_{\mathrm{cfg}} = \gamma v^{+} + (1-\gamma) v^{-}\).

v⁺ v⁻ v cfg
supervised: the composed velocity only
\(\ell_{\mathrm{naive}} = \lVert v_{\mathrm{cfg}}^{T} - v_{\mathrm{cfg}}^{S}\rVert_{2}^{2}\)
Negative Branch Asymmetry. The teacher–student errors on the two branches stay unconstrained and can cancel — infinitely many degenerate solutions.
Our fix — PDM

Branch-aware OPD

Decouple supervision onto the positive prediction \(v^{+}\) and the CFG direction \(d = v^{+} - v^{-}\).

v⁺ v⁻ d
supervised: the positive prediction v⁺ and the direction d
\(\ell_{\mathrm{PDM}} = \lVert v_T^{+} - v_S^{+}\rVert_{2}^{2} + \lambda\lVert d_T - d_S\rVert_{2}^{2}\)
Identifiable supervision. No cross-branch cancellation, so distillation stays stable and effective across guidance scales.
Why

Negative Branch Asymmetry

Let \(e^{+}, e^{-}\) be the teacher–student error on the positive / negative branch. Matching only \(v_{\mathrm{cfg}}\) pins down just one combination of them.

e + e 0
\(e^{+} = v_T^{+} - v_S^{+} \qquad e^{-} = v_T^{-} - v_S^{-}\)teacher − student prediction error, per branch \(\gamma\, e^{+} + (1-\gamma)\, e^{-} = 0\) Every \((e^{+}, e^{-})\) on this line is equally optimal — the errors cancel and stay unconstrained. That ambiguity is NBA.
Cost

Sensitivity to guidance scale

Naive OPD PDM (Ours)
FID ↓
04080 135 78.2 14.1 13.8
FVD ↓
0300600 135 507.7 67.4 61.0

Naive OPD is highly sensitive to the inference guidance scale γ — it only fits the training scale. PDM stays low and stable across scales.

Naive CFG-based OPD supervises only the composed velocity, so teacher–student errors on the positive and negative branches can cancel — the ambiguity we term Negative Branch Asymmetry (NBA). Positive–Direction Matching (PDM) instead constrains the positive prediction and the CFG conditional direction separately, yielding identifiable supervision that remains stable across inference guidance scales.

Abstract

On-policy distillation (OPD) adapts diffusion models by querying a teacher along trajectories generated by the current student, but how it should behave under classifier-free guidance (CFG), a default component of modern diffusion systems, remains poorly understood.

Existing OPD methods naturally extend velocity matching to the CFG-composed prediction, directly matching teacher and student guided velocities. We show that this objective is underconstrained at the branch level: positive- and negative-branch errors can compensate in the guided prediction. Through two contrasting cases, we find that naive matching works when both branch errors decrease jointly, but fails when the composed objective induces antagonistic branch-error dynamics, improving the positive branch at the expense of the negative branch. We term this behavior Negative Branch Asymmetry (NBA). To address NBA, we introduce Positive–Direction Matching (PDM), a branch-aware OPD objective that separately constrains the positive prediction and the CFG conditional direction. We apply PDM to dense-to-sparse video control, where naive guided matching is highly sensitive to inference guidance scales, while branch-aware supervision enables more robust and effective knowledge transfer.

Contributions

What this paper shows

1

When is composed matching safe?

CFG-composed OPD is under-identified at the branch level — yet the ambiguity stays benign under shared negative conditioning, where shared-parameter updates reduce both branch errors jointly. We identify exactly when it turns harmful.

2

Negative Branch Asymmetry

When the teacher's negative branch holds privileged information, joint error reduction breaks: the composed objective improves the positive branch at the expense of the negative branch. These antagonistic dynamics — NBA — hide at the training scale and surface as guidance-scale sensitivity.

3

Branch-aware OPD, applied

Positive–Direction Matching (PDM) supervises the positive prediction and the CFG direction separately (with IBM as a branch-aware foil), and delivers quantitative gains on dense-to-sparse video control across pose, depth, and scribble.

Background

On-policy distillation meets CFG

In diffusion on-policy distillation (OPD), the student first rolls out its own denoising trajectory; at every state it visits, a teacher supplies a local velocity target and the student is updated to match it.

But modern diffusion models run with classifier-free guidance (CFG): the velocity actually used at inference is a mix of a positive (conditional) and a negative (unconditional) branch.

\[ v_{\mathrm{cfg}} = \gamma\, v^{+} + (1-\gamma)\, v^{-} \]
CFG composition

Existing OPD methods simply match this composed velocity. Writing the per-branch teacher–student errors as \(e^{+} = v_T^{+} - v_S^{+}\) and \(e^{-} = v_T^{-} - v_S^{-}\), the naive per-state loss is a single squared term:

\[ \ell_{\mathrm{naive}} = \bigl\lVert\, \gamma\, e^{+} + (1-\gamma)\, e^{-} \,\bigr\rVert_{2}^{2} \]
Eq. 5
The full training objective averages this per-state loss \(\ell\) over the student-visited states and timesteps.

Why it can be benign

In standard text-to-image distillation, teacher and student share the same negative conditioning. Shared-parameter updates can then reduce both branch errors jointly, so composed matching stays effective — the branch-level ambiguity exists, but does no harm.

The problem

Negative Branch Asymmetry

Now let the teacher's negative branch receive privileged information the student lacks — a reference image, or dense control distilled into a sparse-control student. Its target can no longer be reproduced from the student's negative input.

Yet the naive loss still constrains only the composed discrepancy. At any supervised state, zero guided loss requires just one linear relation:

\[ \gamma\, e^{+} + (1-\gamma)\, e^{-} = 0 \quad\Longleftrightarrow\quad e^{+} = \frac{\gamma-1}{\gamma}\, e^{-} \]
Eq. 6–7
— an entire line of non-zero \((e^{+}, e^{-})\) pairs: the two errors can compensate without changing the guided prediction.

Our method

Positive–Direction Matching

Instead of supervising the merged velocity, PDM supervises two quantities that together determine the guided prediction at any scale: the positive prediction \(v^{+}\) and the CFG conditional direction \(d_M = v_M^{+} - v_M^{-}\).

\[ \ell_{\mathrm{PDM}} = \lVert e^{+}\rVert_{2}^{2} + \lambda\,\lVert d_T - d_S\rVert_{2}^{2} = \lVert e^{+}\rVert_{2}^{2} + \lambda\,\lVert e^{+} - e^{-}\rVert_{2}^{2} \]
Eq. 10

The first term anchors the positive prediction; the second preserves the conditional direction. For any \(\lambda > 0\), zero loss now requires \(e^{+} = e^{-} = 0\) — the compensation freedom of guided-only matching is eliminated, and one branch can no longer improve at the other's expense.

A branch-aware baseline — Independent Branch Matching (IBM)

IBM matches the two branches directly, \(\ell_{\mathrm{IBM}} = \gamma^{2}\lVert e^{+}\rVert_{2}^{2} + (\gamma-1)^{2}\lVert e^{-}\rVert_{2}^{2}\) — the per-branch weights of the expanded naive objective with the cross-branch interaction term removed. Like PDM it has a unique branch-level zero-loss solution for \(\gamma > 1\); it separates the benefit of branch-level supervision from PDM's particular positive–direction parameterization.

Efficient supervision for video. Full-trajectory OPD is especially expensive for video — one teacher evaluation per denoising state. For the dense-to-sparse application, the student still completes the full rollout, but only the first K visited states receive teacher supervision:

\[ \mathcal{L}_{\mathrm{OPD}}^{(K)} = \mathbb{E}_{\{x^{S}_{t_k}\}\sim p_{\theta}}\!\left[ \frac{1}{K}\sum_{k=0}^{K-1} w(t_k)\, \ell\bigl(x^{S}_{t_k},\, t_k\bigr) \right] \]
Eq. 12
A moderate horizon (K = 8 of 50) keeps distillation quality while cutting training cost by ~6× versus full-trajectory supervision. This design is used only for the video experiments; the image-domain studies follow their standard protocols.

Diagnosis · two contrasting settings

When does NBA emerge?

We contrast two image-domain distillation settings that differ in exactly one thing: the negative conditioning. One shares it between teacher and student; the other gives the teacher privileged information on the negative branch.

Text-rendering distillation shared negatives → benign

SD3.5-Medium · OCR-specialized teacher → same-backbone student · γtrain = 4.5

Teacher and student receive the same prompt on the positive branch and the same null-text condition on the negative branch — the regime prior OPD work operates in.

\[\begin{array}{ll} c_T^{+} = y & \hspace{2.2em} c_S^{+} = y \\[4pt] c_T^{-} = \varnothing & \hspace{2.2em} c_S^{-} = \varnothing \end{array}\]

Reference-conditioned distillation privileged negatives → NBA

FLUX.2-klein · reference-conditioned teacher → text-only student · γtrain = 2

The teacher sees a reference image r whose appearance the text prompt cannot pin down — and keeps it even on its negative branch. The text-only student cannot reproduce that negative target.

\[\begin{array}{ll} c_T^{+} = (y,\ \textcolor{#d1495b}{r}) & \hspace{2.2em} c_S^{+} = y \\[4pt] c_T^{-} = (\varnothing,\ \textcolor{#d1495b}{r}) & \hspace{2.2em} c_S^{-} = \varnothing \end{array}\]

Diagnosis · training dynamics

Watch the branch errors during training

We track the per-transition RMS branch errors \(\sqrt{\lVert e_{+}\rVert_{2}^{2}}\) and \(\sqrt{\lVert e_{-}\rVert_{2}^{2}}\) at every optimizer step, for three objectives: naive composed matching, a positive-only ablation \(\ell_{+} = \lVert e_{+}\rVert_{2}^{2}\), and PDM. Hover to inspect the values; click the legend chips to toggle objectives.

Positive-branch error  \(\lVert e_{+}\rVert\) (RMS)
Negative-branch error  \(\lVert e_{-}\rVert\) (RMS)
x-axis: training step · hover to read values

Diagnosis · guidance-scale behavior

Intrinsic vs. distillation-induced sensitivity

A performance drop away from γtrain can simply be inherited from the teacher. The two settings separate the cases: in text rendering nothing is added by distillation; under privileged reference conditioning, naive matching adds sensitivity of its own.

Text rendering: sensitivity is inherited, not introduced

OCR reward (↑) on 1,018 held-out prompts, trained at γtrain = 4.5 and swept over inference guidance scales. Both students closely track the teacher across the entire sweep — the drop at γ = 1 comes from the teacher itself, and naive distillation introduces no sensitivity beyond it.

Method · OCR reward ↑ γ = 1γ = 2γ = 3γ = 4γ = 4.5
Teacher75.2492.9194.1694.4394.09
OPD (Naive)73.8792.7294.5294.4394.11
OPD (PDM) — Ours74.4893.7393.9994.0294.38

Reference conditioning: naive matching adds the sensitivity

Text-only students trained at γtrain = 2 with naive matching or PDM, evaluated on held-out prompts across guidance scales — all outputs share the same prompt and initial noise. The reference-conditioned teacher preserves the reference-supplied appearance across scales, and PDM closely tracks that behavior; naive matching departs from the teacher, with visual distortion and style drift strongest at γ = 1. That excess degradation is exactly the distillation-induced sensitivity NBA predicts.

PDM (Ours) rows are highlighted; the left column shows the reference-style exemplars, seen only by the teacher.

Application

Dense-to-Sparse Video Control

Having isolated when NBA occurs, we apply branch-aware OPD where it matters: a Wan2.1-VACE teacher with dense per-frame control distilled into a student that sees only 4 sparse keyframes (frame 0 serves as the reference anchor), trained at γtrain = 5 on a 600-clip benchmark built from OpenHumanVid — 100 clips from each of six motion-difficulty buckets, 81-frame clips at 480×832, evaluated over full-video rollouts.

\[\begin{array}{ll} c_T^{+} = (y,\ \textcolor{#d1495b}{p_{\mathrm{dense}}}) & \hspace{2.2em} c_S^{+} = (y,\ p_{\mathrm{sparse}}) \\[4pt] c_T^{-} = (\varnothing,\ \textcolor{#d1495b}{p_{\mathrm{dense}}}) & \hspace{2.2em} c_S^{-} = (\varnothing,\ p_{\mathrm{sparse}}) \end{array}\]

The dense control persists on the teacher's negative branch — the privileged-negative regime where naive matching degrades. Columns are frames of the generated clip; the last row is ours (PDM).

Sparse keyframe / control column PDM (Ours)

Quantitative · Main comparison

One student, three controls

Jointly trained on pose + depth + scribble and evaluated per modality (train and inference guidance both γ = 5). Naive OPD trails the branch-aware objectives on every modality — even at the training scale — while PDM gives the most consistent gains and IBM also beats naive on most control-fidelity metrics. Teacher is an upper reference, excluded from ranking.

Method MPJPE ↓MPJPE-Key ↓ PCK@0.2 ↑PCK@0.1 ↑ FID ↓FVD ↓
Teacher3.032.8296.0291.1514.1356.01
Student5.924.1086.7869.9715.8181.41
SFT5.023.3190.3676.7214.1163.90
Off-policy5.143.4489.7875.4614.4968.50
OPD (Naive)4.433.1491.8480.2813.4965.12
OPD (IBM)4.202.8892.9382.2713.2665.72
OPD (PDM) — Ours4.132.8392.9882.4813.5262.77
Method CORR ↑RMSE ↓SI-RMSE ↓ FID ↓FVD ↓
Teacher96.987.506.1911.0236.89
Student83.2116.8714.3615.0371.33
SFT88.3913.8311.9612.8758.13
Off-policy88.2513.9812.1012.6659.35
OPD (Naive)90.5812.3910.6912.0872.20
OPD (IBM)91.1412.0310.3711.7660.38
OPD (PDM) — Ours91.2411.9510.3111.6460.60
Method Recall ↑Precision ↑F1 ↑ FID ↓FVD ↓
Teacher93.2694.2693.739.5624.22
Student64.2065.5064.7012.2969.13
SFT67.2369.5268.2710.6950.56
Off-policy70.9872.1571.4911.6052.90
OPD (Naive)74.7875.3875.0010.5359.95
OPD (IBM)75.9276.4776.1310.1252.67
OPD (PDM) — Ours76.4276.1376.2210.3450.53

Green = best among distilled students (Teacher excluded).

The NBA prediction, tested

Robustness across guidance scales

NBA stays hidden at the training scale and surfaces once the guidance composition changes. Trained once at γtrain = 5 (pose-only) and evaluated at γ = 1, 3, 5, that is exactly what happens: naive matching collapses at γ = 1 (FID 14 → 78, FVD 67 → 508) — excess degradation its branch-aware counterparts do not show — while PDM stays flat.

Pose-controlled video across guidance scales

Ground-truth pose control on top; PDM and Naive at γ = 1, 3, 5 over four keyframes. Naive degrades sharply at γ = 1 while PDM stays faithful across scales.

Keyframe (sparse pose control) PDM (Ours) rows highlighted
Methodγ MPJPE ↓PCK@0.2 ↑PCK@0.1 ↑FID ↓FVD ↓
Naive54.6291.3579.3914.0567.44
34.9490.2377.9222.66134.09
18.9880.0869.1478.20507.70
IBM54.2892.6781.6912.9953.83
34.4292.0981.4113.6956.85
14.9190.9280.6618.0071.17
PDM — Ours54.2792.7182.1213.8358.65
34.1792.8182.2713.4655.85
14.4892.1481.7215.2560.97

Guidance-scale generalization in the pose-only setting (γtrain = 5). Naive OPD degrades severely as the inference scale departs from training, while branch-aware objectives remain robust.

Ablations

What matters in PDM

Two design choices, on the pose-only setting: the conditional-direction weight λ, and how many student-visited steps K receive teacher supervision.

Conditional-direction weight λ

λ = 0 is positive-only matching. λ = 1 gives the best fidelity/quality balance (lowest keyframe MPJPE, highest PCK@0.1); larger λ trades control accuracy for distributional quality.

PDM variantMPJPE-Key ↓PCK@0.1 ↑FID ↓FVD ↓
λ = 0  (positive-only)2.8181.8013.9759.72
λ = 1  (default)2.7582.1213.8358.65
λ = 32.9581.2513.3361.79
λ = 53.0080.8912.9756.85
λ = 103.0780.2112.9656.91

On-policy supervision horizon K

The student always rolls out the full trajectory, but only the first K states receive teacher supervision. K = 8 gives the strongest control fidelity; the full 50-step trajectory costs ~6× more per step for no gain.

Supervision horizonMPJPE-Key ↓PCK@0.1 ↑FVD ↓Time (s/step) ↓
K = 12.9881.1954.41~23
K = 23.1180.7860.63~38
K = 42.8681.7157.08~69
K = 8  (default)2.7582.1258.65~132
K = 50  (full trajectory)3.1480.8161.95~790

Conclusion

Takeaways & limitations

CFG-composed OPD is under-identified at the branch level — but the ambiguity does not always cause failure. Under shared negative conditioning both branch errors can decrease jointly; when the teacher's negative branch holds privileged information, joint reduction breaks down and naive matching turns antagonistic — the failure mode we call Negative Branch Asymmetry. Positive–Direction Matching supervises the positive prediction and the CFG direction separately; contrasting image-domain studies validate when NBA emerges, and dense-to-sparse video control shows that branch-aware supervision improves knowledge transfer and robustness across inference guidance scales.

Limitations. The relative behavior of branch-aware objectives remains incompletely understood: PDM and IBM share the same branch-level zero-loss solution under non-degenerate weights, so PDM's observed advantage is currently empirical rather than theoretical. Future work may characterize their different optimization behavior and extend the NBA analysis to other guidance mechanisms and teacher–student conditioning asymmetries.

BibTeX

@misc{li2026rethinkingclassifierfreeguidanceonpolicy,
      title={Rethinking Classifier-Free Guidance in On-Policy Diffusion Distillation},
      author={Bingnan Li and Haozhe Wang and Haozhong Xiong and Fangtai Wu and Jinpeng Yu and Yang Shi and Jiaming Liu and Ruihua Huang},
      year={2026},
      eprint={2607.24731},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2607.24731},
}