WACV 2027 · Algorithms Track

DASH: Dual-Branch Score Distillation for Guidance-Calibrated Compact Diffusion Models

  • 1Khulna University of Engineering & Technology (KUET), Department of Computer Science and Engineering, Bangladesh
  • 2Université Clermont Auvergne, France
ImageNet-64 teacher samples, one per class: aeroplane, bird, ambulance, bedroom, dog, orange, sports car, tiger, turtle, van.

Teacher 116.5M params · FID 6.34

DASH student samples for the same ten ImageNet-64 classes.

DASH student 22.3M params · FID 9.10

Class-conditional ImageNet-64, one sample per class from each model (aeroplane, bird, ambulance, bedroom, dog, orange, sports car, tiger, turtle, van) (first row of Supp. Fig. E7; 50-step DDIM, TAG). The student is 5.2× smaller than its teacher.

Distilling only the guided (CFG) output of a diffusion teacher leaves a compressed student's conditional and unconditional branches non-identifiable in output space, which permits guidance collapse. DASH supervises both branches directly and preserves the teacher's guidance gap at 5.9× compression.

Compression
5.9×
35.8M → 6.1M params, CIFAR
CIFAR-10 FID
8.87
teacher 5.47 · CIFAR-100 10.47 vs 6.80
Gap magnitude ρ
0.91
C100 0.89 · direction cos(Δ) 0.94 / 0.93
ImageNet-64 FID
9.10
composite 18.43 · 116.5M → 22.3M (5.2×)
Throughput
3.62×
5.77× fewer FLOPs · one T4, batch 64

TL;DR

One constraint cannot pin down two branches.

The problem

One constraint, two branches

Classifier-free guidance combines a conditional and an unconditional prediction. Distilling only their guided combination gives one equation per input for two unknown branch outputs, so a compressed student can drift along a line of equally good solutions, including one where the guidance gap vanishes.

The fix

Supervise both branches

DASH matches the student's conditional output to the teacher's conditional output and its unconditional output to the teacher's unconditional output, plus a light anchor to ground-truth noise. Each branch then has a unique target per input.

The evidence

The null line, measured

The analysis predicts that a composite student's branch errors keep the ratio (w−1)/w = 0.75 at w = 4. Measured: 0.77, 0.73 and 0.79 on CIFAR-10, CIFAR-100 and ImageNet-64.

Calibration on this page means teacher-relative guidance-gap preservation: how well the student's gap ΔS = εyS − ε∅S reproduces the teacher's gap ΔT, measured by its magnitude ratio ρ = E‖ΔS‖ / E‖ΔT‖ and its direction cos(Δ). Both are needed: a gap can have the right size and point the wrong way.

Abstract

Abstract

Parameter compression of class-conditional diffusion models exposes a structural limitation in output-level distillation: supervising only the guided output leaves the two score branches non-identifiable, so the classifier-free guidance gap is not determined in the student. The zero-loss set admits degenerate solutions in which both branches collapse toward identical predictions, and guidance loses its effect at inference despite low training loss. For each fixed input the objective is exactly flat in a branch-output direction at every residual value, so the ambiguity is a property of the output-level objective rather than a poor local minimum. This paper introduces DASH, which supervises the conditional and unconditional branches independently. An anchor term regularises the conditional prediction toward ground-truth noise, and the teacher's final learned per-timestep curriculum transfers into the student as a frozen prior. Across CIFAR-10, CIFAR-100, and class-conditional ImageNet-64, a more than 5× compressed student stays within four FID points of its teacher and recovers at least 89% of the teacher's guidance-gap magnitude, where no other two-branch baseline with defined calibration exceeds 82%. Ablation isolates unconditional supervision as the term that separates this formulation from output-level distillation. The account is quantitative: the null space fixes the ratio between a composite student's two branch errors, and the measured ratios approximately match that prediction on all three datasets.

The problem

Composite distillation cannot tell recovery from collapse.

A guided teacher predicts ε̃T = ε∅T + w(εyT − ε∅T). Composite distillation (here, a two-branch adaptation of guided distillation, Meng et al., CVPR 2023) trains the student to match that single guided output. Writing the branch residuals as δy = εyS − εyT and δ∅ = ε∅S − ε∅T, the composite loss is zero whenever

That is a line, not a point. It contains ideal recovery (δy = δ∅ = 0) and guidance collapse (εyS = ε∅S), and composite supervision gives them the same loss. The ambiguity holds at every residual value, so it does not depend on reaching zero loss. It is a statement about the emitted branch outputs at a fixed input, not about the shared network parameters.

Residual plane of the composite loss Horizontal axis: unconditional residual δ∅ along the teacher gap, in units of the teacher gap norm. Vertical axis: conditional residual δy in the same units. The zero-loss line passes through the origin with slope (w−1)/w. A movable point shows a student a fraction f of the way from ideal recovery to collapse.

0 = ideal recovery, 1 = collapse.

The paper's composite baseline uses w = 4.0. Measured students are shown only at that value.

Composite loss (everywhere on the line)
0
Residual ratio ‖δy‖ / ‖δ∅‖
0.75
Gap magnitude ρ = 1 − f
1.00
Guidance gap
Teacher ΔT Student ΔS
An output-space, per-input picture (main paper §3.4.1 and Supp. §C.1). A student a fraction f toward collapse has δ∅ = f·w·ΔT and ΔS = (1 − f)ΔT, so ρ = 1 − f on the line. Measured composite students sit at f = 0.34 / 0.38 / 0.40 (CIFAR-10 / CIFAR-100 / ImageNet-64). DASH is not a composite student, so it is not constrained to this line: it targets the origin directly, and reaches ρ = 0.91 (1 − ρ = 0.09) on CIFAR-10.

Method

Give each branch its own target.

Hover or focus a loss to see which branches it connects.

Figure 1. DASH distillation pipeline. The frozen teacher (35.8M) and the trainable student (6.1M) each run two forward passes per sample. Lim and Lun supervise the conditional and unconditional branches; Lan anchors the student to the true noise ε. TIRT Transfer (gold) copies the teacher's learned timestep weights ω̂T, frozen. At inference only the student is kept.
View the paper's Figure 1
DASH training pipeline. A clean image is noised and passed to a frozen 35.8M teacher and a trainable 6.1M student. Each model runs two forward passes, one with the class label and one with the null token, producing conditional and unconditional predictions. The imitation loss matches the two conditional predictions, the unconditional loss matches the two unconditional predictions, and an anchor loss pulls the student's conditional prediction toward the ground-truth noise. A gold arrow copies the teacher's learned timestep weights into the student, frozen. The guidance-gap ratio rho compares the student's and teacher's gaps.

Dual-branch objective

For a sample (x0, y, t) with noised input xt and noise ε, the frozen teacher gives εyT and ε∅T; the student gives εyS (forced label) and ε∅S (null token).

Here λan = 0.1, and ε is the ground-truth noise used to corrupt x0, not a teacher prediction. Branch weights are symmetric (λim = λun = 1). With Lim = Lun = 0 the student must match both teacher branches, which rules out shifts and collapse whenever ΔT ≠ 0.

TIRT Transfer: a frozen, learned timestep weighting

The teacher is trained with TIRT, which multiplies the Min-SNR weight by a learned per-timestep factor σ(λt) and normalises to unit mean:

It is an empirical reweighting: at λt = 0 it reduces to Min-SNR up to a constant. DASH copies the teacher's final normalised weights into the student and excludes them from the optimiser. In the ablation, using frozen Min-SNR weights instead costs 2.60 / 2.67 FID, and relearning the weights from λ = 0 costs 3.84 / 3.94 FID (CIFAR-10 / CIFAR-100).

TAG: an inference-time guidance schedule

TAG changes the guidance weight across the sampling trajectory and leaves training untouched. It is shared by the teacher and every two-branch student, and it does not change the branch targets used in distillation.

TAG schedule from Eq. 3 with wmin = 1.0, wmax = 4.0, κ = 5.0, T = 1000. Because σ never reaches 0 or 1, the realised weight spans 1.23 to 3.77. Sampling runs from t = T (high noise) to t = 0.

Solution geometry

Figure 2, redrawn. One output coordinate at a fixed input, with illustrative teacher values and w = 4. Left: the composite loss is zero along a whole line through the teacher's branches; it contains ideal recovery (i), shifts (ii) and collapse (iii), where the line meets the diagonal on which the two branches are equal and the guidance gap vanishes. The moving point stays at zero loss throughout. Right: DASH constrains each branch separately, so the two zero-loss sets cross at a single point.

Results

Closer to the teacher, and calibrated.

All CIFAR results use 50K samples, 50-step DDIM, TAG wmax = 4.0, and means over three seeds (42 / 123 / 456). Standard deviations are in the supplementary.

Main comparison (Table 1)

    Magnitude is not enough: ρ against cos(Δ)

    Each point is one method from Table 1; the teacher sits at (1, 1). Scratch keeps a large gap (ρ = 0.80) that points the wrong way (cos(Δ) = 0.51), so ρ alone would rank it above composite distillation. Cond-only (cos(Δ) undefined at ρ < 0.10) and single-head (no separate branches) cannot be placed.

    ImageNet-64 (Table 2)

    1000 classes, 64×64. 116.5M teacher, 22.3M student (5.2×).

    w/o Lun isolates unconditional supervision as the source of the improvement.

    The null line, measured

    Branch-residual ratio ‖δy‖ / ‖δ∅‖ of the composite students against the predicted (w−1)/w = 0.75 at w = 4 (main §4.2, Supp. §C.1). Below: the drift toward collapse f satisfies f ≥ 1 − ρ on all three datasets.

    ρ grows with student width only under distillation

    Guidance-gap magnitude ρ on CIFAR-10 for students of 48, 64 and 96 base channels (Supp. Table D14). Hover or tap a point for parameters, compression and FID. The composite baseline was measured at 64 channels only.

    Qualitative

    Teacher and student, side by side.

    Drag the divider (or focus it and use the arrow keys) to compare the teacher with the DASH student, using the grids from the paper (50-step DDIM, TAG wmax = 4.0). Samples are shown exactly as stored in the paper's figures. Select a grid to open it full size.

      Teacher DASH student

      Ablation

      Unconditional supervision is the term that matters.

      Toggle the loss terms and choose the timestep weighting. Only configurations reported in Table 3 have results; other combinations were not run and are not interpolated.

      Loss terms
      Timestep weighting

      DASH (ours)

      From the supplementary

      More evidence, same conclusion.

      Further results from the supplementary material: how the student holds up with fewer sampling steps and other guidance scales, whether the TAG schedule or the teacher recipe drives the result, and how the teacher itself was built.

      Fewer sampling steps (Supp. Table D12, Fig. E8)

      FID of the teacher and the DASH student when sampling with fewer DDIM steps. The student is trained at 50 steps; the other step counts are inference-only. Samples on the right are the student's, as in Supp. Fig. E8.

      Guidance scale (Supp. Table D15)

      Fixed guidance against TAG (Supp. Table D16)

      CIFAR-10, the same checkpoints under both protocols. The ordering does not change, and the cost of a fixed weight grows as calibration falls.

      A standard Min-SNR teacher (Supp. Table D13)

      A teacher trained without TIRT and evaluated without TAG (fixed w = 1.5, CIFAR-10, single seed). DASH still leads composite distillation, so the advantage is not specific to the TIRT/TAG recipe.

      How the teacher was built (Supp. Table D8)

      Efficiency

      Measured on one NVIDIA T4, batch 64.

      Limitations

      What this does not show yet.

      1. The full baseline sweep and the ablations are at CIFAR scale. ImageNet-64 (1000 classes, 64×64) confirms the main effect, composite against DASH and the removal of Lun.
      2. Latent diffusion with cross-attention conditioning and transformer backbones remain open.
      3. The residual offset tracks capacity: under distillation ρ rises with student width (0.86 → 0.91 → 0.94), while the teacher-free reference stays near 0.81 / 0.80 / 0.83.
      4. TIRT and TAG are evaluated under one teacher recipe; a standard Min-SNR teacher preserves the ordering, but one extra recipe does not establish generality.

      Citation

      BibTeX

      @inproceedings{shafi2027dash,
        title     = {{DASH}: Dual-Branch Score Distillation for Guidance-Calibrated Compact Diffusion Models},
        author    = {Shafi, Abdullah Al and Alam, Kazi Saeed and Hossain, Sk Imran and Mephu Nguifo, Engelbert},
        booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
        year      = {2027}
      }
      Portrait of Abdullah Al Shafi

      Contact

      Abdullah Al Shafi

      First author · Department of Computer Science and Engineering, KUET, Bangladesh

      Questions about the paper or the code are welcome. Please open an issue on the code repository or reach out through the links below.