Litcius/Paper detail

TinyBERT: Distilling BERT for Natural Language Understanding

Xiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang, Xiao Dong Chen, Linlin Li, Fang Wang, Qun Liu

20201,639 citationsDOIOpen Access PDF

Abstract

Language model pre-training, such as BERT, has significantly improved the performances of many natural language processing tasks. However, pre-trained language models are usually computationally expensive, so it is difficult to efficiently execute them on resourcerestricted devices. To accelerate inference and reduce model size while maintaining accuracy, we first propose a novel Transformer distillation method that is specially designed for knowledge distillation (KD) of the Transformer-based models. By leveraging this new KD method, the plenty of knowledge encoded in a large "teacher" BERT can be effectively transferred to a small "student" Tiny-BERT. Then, we introduce a new two-stage learning framework for TinyBERT, which performs Transformer distillation at both the pretraining and task-specific learning stages. This framework ensures that TinyBERT can capture the general-domain as well as the task-specific knowledge in BERT.

Topics & Concepts

Computer scienceTransformerDistillationInferenceBenchmark (surveying)Language modelArtificial intelligenceNatural language understandingTask (project management)Machine learningNatural languageNatural language processingVoltageManagementPhysicsGeographyChemistryEconomicsGeodesyQuantum mechanicsOrganic chemistryTopic ModelingNatural Language Processing TechniquesMultimodal Machine Learning Applications
TinyBERT: Distilling BERT for Natural Language Understanding | Litcius