TextBrewer: An Open-Source Knowledge Distillation Toolkit for Natural Language Processing

Ziqing Yang, Yiming Cui, Zhipeng Chen, Wanxiang Che, Ting Liu +2 more
2/28/2020
cs.CLcs.LGcs.NE
distillation

Official code: airaria/TextBrewer (1,711 stars, Python, Apache-2.0, PyTorch, last commit 2023-05-08).

Abstract

In this paper, we introduce TextBrewer, an open-source knowledge distillation toolkit designed for natural language processing. It works with different neural network models and supports various kinds of supervised learning tasks, such as text classification, reading comprehension, sequence labeling.

Show full abstract

TextBrewer provides a simple and uniform workflow that enables quick setting up of distillation experiments with highly flexible configurations. It offers a set of predefined distillation methods and can be extended with custom code. As a case study, we use TextBrewer to distill BERT on several typical NLP tasks. With simple configurations, we achieve results that are comparable with or even higher than the public distilled BERT models with similar numbers of parameters. Our toolkit is available through: http://textbrewer.hfl-rc.com

View on arXivView PDF

Code Implementations(1)

airaria/TextBrewerOfficial100%
PyTorchApache-2.0

A PyTorch-based knowledge distillation toolkit for natural language processing

1,711241PythonFeb 25, 20203 years agoApache-2.0
bertdistillationknowledgenlppytorch

Similar Papers

Cite this paper

@article{yang2020textbrewer,
  title  = {TextBrewer: An Open-Source Knowledge Distillation Toolkit for Natural Language Processing},
  author = {Ziqing Yang and Yiming Cui and Zhipeng Chen and Wanxiang Che and Ting Liu and Shijin Wang and Guoping Hu},
  year   = {2020},
  eprint = {2002.12620},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.12620}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.12620.svg)](https://codeofpaper.com/paper/2002.12620)

Discussion