English

Gradient Knowledge Distillation for Pre-trained Language Models

Computation and Language 2022-11-03 v1 Machine Learning

Abstract

Knowledge distillation (KD) is an effective framework to transfer knowledge from a large-scale teacher to a compact yet well-performing student. Previous KD practices for pre-trained language models mainly transfer knowledge by aligning instance-wise outputs between the teacher and student, while neglecting an important knowledge source, i.e., the gradient of the teacher. The gradient characterizes how the teacher responds to changes in inputs, which we assume is beneficial for the student to better approximate the underlying mapping function of the teacher. Therefore, we propose Gradient Knowledge Distillation (GKD) to incorporate the gradient alignment objective into the distillation process. Experimental results show that GKD outperforms previous KD methods regarding student performance. Further analysis shows that incorporating gradient knowledge makes the student behave more consistently with the teacher, improving the interpretability greatly.

Keywords

Cite

@article{arxiv.2211.01071,
  title  = {Gradient Knowledge Distillation for Pre-trained Language Models},
  author = {Lean Wang and Lei Li and Xu Sun},
  journal= {arXiv preprint arXiv:2211.01071},
  year   = {2022}
}

Comments

Accepted by NeurIPS ENLSP 2022 workshop(spotlight)

R2 v1 2026-06-28T05:00:32.473Z