CLAIJun 29, 2022

Knowledge Distillation of Transformer-based Language Models Revisited

arXiv:2206.14366v314 citationsh-index: 62
Originality Incremental advance
AI Analysis

This work addresses the challenge of model size and latency for deploying language models on resource-constrained devices like mobile phones and IoT, offering incremental improvements through a systematic analysis of KD.

The paper tackles the problem of compressing transformer-based language models for practical deployment by analyzing knowledge distillation (KD) components, proposing a unified framework, and conducting extensive experiments (over 23,000 GPU hours) to provide a best-practice guideline, with results showing significant improvement over previous state-of-the-art methods.

In the past few years, transformer-based pre-trained language models have achieved astounding success in both industry and academia. However, the large model size and high run-time latency are serious impediments to applying them in practice, especially on mobile phones and Internet of Things (IoT) devices. To compress the model, considerable literature has grown up around the theme of knowledge distillation (KD) recently. Nevertheless, how KD works in transformer-based models is still unclear. We tease apart the components of KD and propose a unified KD framework. Through the framework, systematic and extensive experiments that spent over 23,000 GPU hours render a comprehensive analysis from the perspectives of knowledge types, matching strategies, width-depth trade-off, initialization, model size, etc. Our empirical results shed light on the distillation in the pre-train language model and with relative significant improvement over previous state-of-the-arts(SOTA). Finally, we provide a best-practice guideline for the KD in transformer-based models.

Foundations

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

Your Notes