Skip to content
Go back

Notes on: f-DISTILL

Edit page

Paper: f-Divergence Minimization for Sequence-Level Knowledge Distillation — Yuqiao Wen, Zichao Li, Wenyu Du, Lili Mou (ACL 2023)

The unifying formula

Df(p∥q)=∑tq(t)⋅f(p(t)q(t))D_f(p \Vert q) = \sum_t q(t) \cdot f\left(\frac{p(t)}{q(t)}\right)

for any convex ff with f(1)=0f(1)=0. Different choices of ff recover different, previously-treated-as-separate distillation losses — that’s the paper’s whole point: forward KL, reverse KL, JS, and TVD distillation are one framework with a parameter swapped, not four unrelated ideas.

Four concrete variants, with their actual failure modes named

Making it tractable: word-level decomposition

The naive sequence-level divergence sums over exponentially many possible full sequences — intractable. They derive an exact step-wise decomposition for KL, RKL, and JS (turning it into a sum of per-token losses conditioned on the prefix), and an upper-bound approximation for TVD (since TVD doesn’t decompose exactly). This decomposition is the actual engineering contribution that makes any of this trainable at scale.

Efficiency detail: teacher samples are precomputed offline (only the student is sampled during training), giving a reported 2.25–2.31x training speedup over resampling the teacher live. They also warm-start the student with a “pre-distillation” step combining MLE, word-level KL, and hidden-state matching before switching to the sequence-level f-divergence objective.

Results

Datasets: DART (data-to-text), XSum (summarization), WMT16 EN→RO (translation), Commonsense Dialogue. Across all four, the symmetric losses (JS, TVD) consistently beat the asymmetric ones (KL, RKL), and every f-DISTILL variant beats the SeqKD and ENGINE baselines. On DART, human evaluation shows TVD specifically reduces missing information and hallucination rate compared to the alternatives.

They also introduce two diagnostic metrics worth stealing for other distillation work: likelihood risk (quantifies mode-averaging) and coverage risk (quantifies mode-collapsing) — symmetric methods score balanced on both, which is the mechanistic explanation for why they win empirically rather than just an empirical coincidence.

Where this fits: it’s the theoretical map that MiniLLM’s reverse-KL choice sits on, and OPD+ later shows that the on-policy training mechanics needed to actually optimize several of these divergences (beyond reverse KL) have a subtle bias that f-DISTILL’s offline/word-level setup happens to sidestep.


Edit page
Share this post on:

Previous Post
Notes on: OPD+
Next Post
Notes on: Rethinking On-Policy Distillation of LLMs