Facts about DistilBERT
- 08
The training objective for DistilBERT combines three losses: distillation loss, masked language modeling loss, and cosine embedding loss to align student and teacher hidden states.
- 07
DistilBERT's hidden layer dimension of 768 remains identical to BERT's, allowing direct parameter sharing and simplified knowledge distillation between the two architectures.
- 06
DistilBERT's encoder architecture uses 6 transformer layers compared to BERT's 12, reducing model depth by half while maintaining strong performance on GLUE benchmark tasks.
- 05
DistilBERT achieved a training time reduction of approximately 40% compared to BERT, requiring only 90 GPU hours on the SQuAD dataset during the distillation process.
- 04
Six languages are supported by DistilBERT's multilingual variant, enabling cross-lingual transfer learning for non-English downstream tasks.
- 03
DistilBERT's inference speed is approximately 60% faster than BERT on CPU, making it practical for real-time applications with limited computational resources.
- 02
Knowledge distillation techniques enabled DistilBERT to compress BERT's 110 million parameters down to 66 million while maintaining competitive performance across downstream tasks.
- 01
In 2019, Hugging Face released DistilBERT, a model 40% smaller than BERT while retaining 97% of its language understanding performance.