2019

DistilBERT, a Distilled Version of BERT: Smaller, Faster, Cheaper and Lighter

Thomas Wolf

citations

Cite Score

85

AI summary

This paper introduces DistilBERT, a smaller, faster, and lighter version of BERT, pre-trained using knowledge distillation. It reduces the size of BERT by 40% while retaining 97% of its language understanding capabilities and being 60% faster, achieving comparable performance on GLUE and downstream tasks.

Main Contributions

  • Introduces DistilBERT, a distilled version of BERT that is 40% smaller and 60% faster.
  • Leverages knowledge distillation during the pre-training phase to reduce model size while retaining performance.
  • Introduces a triple loss combining language modeling, distillation, and cosine-distance losses.
  • Demonstrates DistilBERT's capabilities for on-device computations with a proof-of-concept experiment.
  • Achieves 97% of BERT's performance on the GLUE benchmark with 40% fewer parameters.

Abstract

As Transfer Learning from large-scale pre-trained models becomes more prevalent in Natural Language Processing (NLP), operating these large models in on-the-edge and/or under constrained computational training or inference budgets remains challenging. In this work, we propose a method to pre-train a smaller general-purpose language representation model, called DistilBERT, which can then be fine-tuned with good performances on a wide range of tasks like its larger counterparts. While most prior work investigated the use of distillation for building task-specific models, we leverage knowledge distillation during the pre-training phase and show that it is possible to reduce the size of a BERT model by 40%, while retaining 97% of its language understanding capabilities and being 60% faster. To leverage the inductive biases learned by larger models during pre-training, we introduce a triple loss combining language modeling, distillation and cosine-distance losses. Our smaller, faster and lighter model is cheaper to pre-train and we demonstrate its capabilities for on-device computations in a proof-of-concept experiment and a comparative on-device study.

Citation Graph

Loading graph...

References [22]

Sort:
Filter:

Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin - 2017

47 papers in library cite

Jacob Devlin, M. W. Chang, K. Lee, Kristina Toutanova - 2018

39 papers in library cite

Jeffrey Dean - 2015

6 papers in library cite

Yibo Liu, M. Ott, N. Goyal, J. Du, M. Joshi, Deli Chen, Omer Levy, Martha Lewis, Luke Zettlemoyer, Veselin Stoyanov - 2019

17 papers in library cite

Alec Radford, Jeffrey Wu, Rewon Child, D. Luan, Dario Amodei, Ilya Sutskever - 2019

27 papers in library cite

M. E. Peters, M. Neumann, M. Iyyer, Matt Gardner, C. Clark, K. Lee, L. S. Zettlemoyer - 2018

27 papers in library cite

P. Rajpurkar, J. Zhang, K. Lopyrev, Percy Liang - 2016

37 papers in library cite

A. Wang, A. Singh, J. Michael, F. Hill, Omer Levy, Samuel R. Bowman - 2018

26 papers in library cite

Thomas Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, J. Davison, Sam Shleifer, P. V. Platen, C. Ma, Yacine Jernite, J. Plu, Chenfeng Xu, T. L. Scao, S. Gugger, M. Drame, Q. Lhoest, Alexander M. Rush - 2019

7 papers in library cite

A. L. Maas, R. E. Daly, P. T. Pham, Dong Huang, Andrew Y. Ng, Christopher Potts - 2011

12 papers in library cite

E. Strubell, A. Ganesh, Andrew Mccallum - 2019

3 papers in library cite

Yuxuan Zhu, R. Kiros, R. Zemel, Ruslan Salakhutdinov, R. Urtasun, Antonio Torralba, Sanja Fidler - 2015

18 papers in library cite

C. Bucilua, Rich Caruana, Alexandru Niculescu Mizil - 2006

2 papers in library cite

Oren Etzioni - 2019

4 papers in library cite

P. Michel, Omer Levy, Graham Neubig - 2019

1 paper in library cites

S. Gupta, A. Agrawal, Karthik Gopalakrishnan, P. Narayanan - 2015

3 papers in library cite

I. Turc, M. Chang, K. Lee, Kristina Toutanova - 2019

2 papers in library cite

Y. Pruksachatkun, P. Yeres, Haozhe Liu, Jason Phang, Phu Mon Htut, A. Wang, I. Tenney, Samuel R. Bowman - 2020

3 papers in library cite

R. Tang, Y. Lu, L. Liu, L. Mou, O. Vechtomova, Junyang Lin - 2019

1 paper in library cites

D. Chatterjee - 2019

1 paper in library cites

Zhilin Yang, L. Shou, M. Gong, Wuwei Lin, D. Jiang - 2019

1 paper in library cites

H. Tsai, J. Riesa, M. J. Johnson, N. Arivazhagan, Xiang Lisa Li, A. Archer - 2019

1 paper in library cites

Cited by

6

papers in your library

Cites

17

papers in your library

Read

on November 21, 2025

Your review

Tags

Paper Aliases

No aliases