Knowledge Distillation from Internal Representations

By Gustavo Aguilar, Yuan Ling, Yu Zhang, Benjamin Z. Yao, Xing Fan, Edward Guo. 2019

204 citations recorded by the source corpus.

Knowledge distillation is typically conducted by training a small model (the student) to mimic a large and cumbersome model (the teacher). The idea is to compress the knowledge from the teacher by using its output probabilities as soft-labels to optimize the student. However, when the teacher is considerably large, there is no guarantee that the internal knowledge of the teacher will be transferred into the student; even if the student closely matches the soft-labels, its internal representations may be considerably different. This internal mismatch can undermine the generalization capabilities originally intended to be transferred from the teacher to the student. In this paper, we propose to distill the internal representations of a large model such as BERT into a simplified version of it. We formulate two ways to distill such representations and various algorithms to conduct the distillation. We experiment with datasets from the GLUE benchmark and consistently show that adding knowledge distillation from internal representations is a more powerful method than only using soft-label distillation.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Representation & Self-Supervised Learning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Furu Wei
  2. Li Dong
  3. Dacheng Tao
  4. Wenhui Wang
  5. Tao Qin
  6. Shaohan Huang
  7. Jianfeng Gao
  8. Mohit Bansal

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Furu Wei
  3. Luc Van Gool
  4. Li Dong
  5. Trevor Darrell
  6. Tao Qin
  7. Xiaogang Wang
  8. Ming-Hsuan Yang

In Representation & Self-Supervised Learning

  1. Matteo Boschini
  2. Angelo Porrello
  3. Lorenzo Bonicelli
  4. Hangbo Bao
  5. Dacheng Tao
  6. Tao Qin
  7. S. Maybank
  8. Yang Fan

Citations in the corpus