English

Extremely Small BERT Models from Mixed-Vocabulary Training

Computation and Language 2021-02-09 v2

Abstract

Pretrained language models like BERT have achieved good results on NLP tasks, but are impractical on resource-limited devices due to memory footprint. A large fraction of this footprint comes from the input embeddings with large input vocabulary and embedding dimensions. Existing knowledge distillation methods used for model compression cannot be directly applied to train student models with reduced vocabulary sizes. To this end, we propose a distillation method to align the teacher and student embeddings via mixed-vocabulary training. Our method compresses BERT-LARGE to a task-agnostic model with smaller vocabulary and hidden dimensions, which is an order of magnitude smaller than other distilled BERT models and offers a better size-accuracy trade-off on language understanding benchmarks as well as a practical dialogue task.

Keywords

Cite

@article{arxiv.1909.11687,
  title  = {Extremely Small BERT Models from Mixed-Vocabulary Training},
  author = {Sanqiang Zhao and Raghav Gupta and Yang Song and Denny Zhou},
  journal= {arXiv preprint arXiv:1909.11687},
  year   = {2021}
}

Comments

To appear at EACL 2021

R2 v1 2026-06-23T11:25:55.956Z