CLLGAug 25, 2019

Patient Knowledge Distillation for BERT Model Compression

arXiv:1908.09355v11332 citations
AI Analysis

This addresses the resource constraints for deploying large NLP models in practice, though it is an incremental improvement over existing knowledge distillation methods.

The paper tackles the problem of high computational resource demands in training large pre-trained language models like BERT by proposing a Patient Knowledge Distillation approach that compresses a teacher model into a lightweight student model, achieving improved training efficiency without sacrificing accuracy on multiple NLP tasks.

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 significant gain in training efficiency, without sacrificing model accuracy.

Code Implementations5 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes