Patient Knowledge Distillation for BERT Model Compression

By Siqi Sun, Yu Cheng, Zhe Gan, Jingjing Liu. 2019

984 citations recorded by the source corpus.

Pre-trained language models such as BERT have proven to be highly effective for natural language processing (NLP) tasks. However, the high demand for computing resources in training such models hinders their application in practice. In order to alleviate this resource hunger in large-scale model training, we propose a Patient Knowledge Distillation approach to compress an original large model (teacher) into an equally-effective lightweight shallow network (student). Different from previous knowledge distillation methods, which only use the output from the last layer of the teacher network for distillation, our student model patiently learns from multiple intermediate layers of the teacher model for incremental knowledge extraction, following two strategies: (i) PKD-Last: learning from the last k layers; and (ii) PKD-Skip: learning from every k layers. These two patient distillation schemes enable the exploitation of rich information in the teacher’s hidden layers, and encourage the student model to patiently learn from and imitate the teacher through a multi-layer distillation process. Empirically, this translates into improved results on multiple NLP tasks with a significant gain in training efficiency, without sacrificing model accuracy.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Large Language Models, Efficiency & Compression

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. Jianfeng Gao
  2. Mohit Bansal
  3. Furu Wei
  4. Luke S. Zettlemoyer
  5. Zhe Gan
  6. Percy Liang
  7. Graham Neubig
  8. Caiming Xiong

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Luc Van Gool
  3. Trevor Darrell
  4. Xiaogang Wang
  5. Cordelia Schmid
  6. Ming-Hsuan Yang
  7. Andrew Zisserman
  8. Jitendra Malik

In Large Language Models

  1. Furu Wei
  2. Canwen Xu
  3. Julian McAuley
  4. Jimmy J. Lin
  5. Alexander M. Rush
  6. Li Dong
  7. Qun Liu
  8. Zi-Mei Yao

In Efficiency & Compression

  1. Kurt Keutzer
  2. Zi-Mei Yao
  3. Alexander M. Rush
  4. A. Gholami
  5. Michael W. Mahoney
  6. Jimmy J. Lin
  7. Furu Wei
  8. Canwen Xu

Citations in the corpus