计算机科学 > 计算与语言
[提交于 2020年2月28日 (v1),最后修订于 2020年4月28日 (此版本, v2)]
标题:TextBrewer: An Open-Source Knowledge Distillation Toolkit for Natural Language Processing
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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. 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