Skip to main content
QUICK REVIEW

[Paper Review] f-Divergence Minimization for Sequence-Level Knowledge Distillation

Yuqiao Wen, Zichao Li|arXiv (Cornell University)|Jul 27, 2023
Topic ModelingComputer Science4 citations
TL;DR

This paper proposes f-distill, a unified framework for sequence-level knowledge distillation that minimizes f-divergence between teacher and student model distributions. By formulating distillation as f-divergence minimization and deriving step-wise decompositions with offline sampling, f-distill outperforms existing methods across four text generation tasks, with symmetric divergences (JS and TVD) reducing mode averaging and collapsing issues.

ABSTRACT

Knowledge distillation (KD) is the process of transferring knowledge from a large model to a small one. It has gained increasing attention in the natural language processing community, driven by the demands of compressing ever-growing language models. In this work, we propose an f-DISTILL framework, which formulates sequence-level knowledge distillation as minimizing a generalized f-divergence function. We propose four distilling variants under our framework and show that existing SeqKD and ENGINE approaches are approximations of our f-DISTILL methods. We further derive step-wise decomposition for our f-DISTILL, reducing intractable sequence-level divergence to word-level losses that can be computed in a tractable manner. Experiments across four datasets show that our methods outperform existing KD approaches, and that our symmetric distilling losses can better force the student to learn from the teacher distribution.

Motivation & Objective

  • To address the limitations of asymmetric knowledge distillation methods like KL and reverse KL divergence, which suffer from mode averaging and mode collapsing respectively.
  • To unify existing sequence-level distillation approaches (e.g., SeqKD and ENGINE) under a generalized f-divergence minimization framework.
  • To develop efficient, tractable computation of sequence-level f-divergences through step-wise decomposition and offline teacher sampling.
  • To evaluate the effectiveness of symmetric f-divergences (JS and TVD) in improving student model alignment with the teacher distribution.
  • To demonstrate consistent performance gains across diverse text generation tasks, including summarization, translation, and dialogue generation.

Proposed method

  • Formulates sequence-level knowledge distillation as minimizing a generalized f-divergence between teacher and student output distributions.
  • Derives four variants under the f-distill framework: KL, reverse KL, Jensen–Shannon (JS), and total variation distance (TVD) distillation.
  • Proposes step-wise decomposition of sequence-level f-divergences into word-level losses, enabling tractable optimization.
  • Introduces an offline sampling strategy to pre-compute teacher model outputs, reducing training cost for symmetric divergences.
  • Employs a greedy, gradient-based optimization that avoids reinforcement learning by applying stop-gradient to student sampling.
  • Uses the same training objective for all f-divergence variants, enabling consistent comparison and ablation.

Experimental results

Research questions

  • RQ1Can a unified framework based on f-divergence minimization improve sequence-level knowledge distillation beyond existing KL-based methods?
  • RQ2How do symmetric f-divergences (JS and TVD) compare to asymmetric ones (KL and reverse KL) in mitigating mode averaging and mode collapsing?
  • RQ3To what extent can step-wise decomposition and offline sampling make sequence-level f-divergence minimization computationally feasible?
  • RQ4Does f-distill consistently improve performance across diverse text generation tasks compared to existing distillation baselines?
  • RQ5Can symmetric distillation losses lead to better alignment between student and teacher distributions in practice?

Key findings

  • f-distill consistently outperforms existing distribution-matching knowledge distillation methods across four text generation datasets: DART, XSum, WMT16 EN-RO, and Commonsense Dialogue.
  • The symmetric f-divergence variants (JS and TVD) achieve superior performance compared to asymmetric ones (KL and RKL), confirming that mode averaging and mode collapsing are detrimental.
  • f-distill achieves a significant performance improvement when combined with representation-matching knowledge distillation, demonstrating its compatibility and effectiveness as an add-on.
  • The step-wise decomposition of f-divergences enables tractable computation of otherwise intractable sequence-level divergences.
  • Offline sampling from the teacher model effectively mitigates the computational cost of symmetric divergences without sacrificing performance.
  • Empirical results show that the proposed method achieves state-of-the-art performance on all evaluated benchmarks, with consistent gains across metrics and settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.