Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

SKDBERT: Compressing BERT via Stochastic Knowledge Distillation

About

In this paper, we propose Stochastic Knowledge Distillation (SKD) to obtain compact BERT-style language model dubbed SKDBERT. In each iteration, SKD samples a teacher model from a pre-defined teacher ensemble, which consists of multiple teacher models with multi-level capacities, to transfer knowledge into student model in an one-to-one manner. Sampling distribution plays an important role in SKD. We heuristically present three types of sampling distributions to assign appropriate probabilities for multi-level teacher models. SKD has two advantages: 1) it can preserve the diversities of multi-level teacher models via stochastically sampling single teacher model in each iteration, and 2) it can also improve the efficacy of knowledge distillation via multi-level teacher models when large capacity gap exists between the teacher model and the student model. Experimental results on GLUE benchmark show that SKDBERT reduces the size of a BERT$_{\rm BASE}$ model by 40% while retaining 99.5% performances of language understanding and being 100% faster.

Zixiang Ding, Guoqing Jiang, Shuai Zhang, Lin Guo, Wei Lin• 2022

Related benchmarks

TaskDatasetResultRank
Rating PredictionMovieLens
MSE0.8411
12
Image ClassificationCIFAR-100
Raw Accuracy92.37
5
Image ClassificationImageNet
Raw Accuracy78.4
5
Image ClassificationCIFAR-10
Raw Accuracy97.63
5
Showing 4 of 4 rows

Other info

Follow for update