arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.08381cs.CL
收藏

基于两级多教师知识蒸馏的Web问答系统模型压缩

Model Compression with Two-stage Multi-teacher Knowledge Distillation for Web Question Answering System

Microsoft(微软)

Ze Yang, Linjun Shou, Ming Gong, Wutao Lin, Daxin Jiang

摘要:

深度预训练和微调模型(如BERT和OpenAI GPT)在问答领域表现出了出色的效果。然而,由于模型参数的数量庞大,这些模型的推理速度非常慢。如何将这些复杂的模型应用到实际的业务场景中成为一个具有挑战性但又具有实际意义的问题。以往的模型压缩方法在模型压缩过程中存在信息丢失的问题,导致压缩后的模型质量不如原始模型。为了解决这一问题,我们提出了一种两阶段多教师知识蒸馏(简称TMKD)方法用于Web问答系统。我们首先开发了一个通用的Q\&A蒸馏任务用于学生模型的预训练,并进一步对这个预训练的学生模型进行微调,在下游任务(如Web Q\&A任务,MNLI,SNLI,来自GLUE的RTE任务)上进行多教师知识蒸馏,这有效地减少了单个教师模型中的过拟合偏差,并将更多的一般知识转移到学生模型中。实验结果表明,我们的方法可以显着优于基线方法,甚至达到与原始教师模型相当的结果,随着模型推理的大幅加速。

英文摘要:

Deep pre-training and fine-tuning models (such as BERT and OpenAI GPT) have demonstrated excellent results in question answering areas. However, due to the sheer amount of model parameters, the inference speed of these models is very slow. How to apply these complex models to real business scenarios becomes a challenging but practical problem. Previous model compression methods usually suffer from information loss during the model compression procedure, leading to inferior models compared with the original one. To tackle this challenge, we propose a Two-stage Multi-teacher Knowledge Distillation (TMKD for short) method for web Question Answering system. We first develop a general Q\&A distillation task for student model pre-training, and further fine-tune this pre-trained student model with multi-teacher knowledge distillation on downstream tasks (like Web Q\&A task, MNLI, SNLI, RTE tasks from GLUE), which effectively reduces the overfitting bias in individual teacher models, and transfers more general knowledge to the student model. The experiment results show that our method can significantly outperform the baseline methods and even achieve comparable results with the original teacher models, along with substantial speedup of model inference.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑