arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.05377cs.CLcs.LG
收藏

一种支持BERT服务的柔性多任务模型

A Flexible Multi-Task Model for BERT Serving

Xiaomi(小米)

Tianwen Wei, Jianwei Qi, Shenghuan He

摘要:

在这个演示中,我们提出了一个有效的基于BERT的多任务(MT)框架,特别适合于迭代和增量开发的任务。所提出的框架是基于部分微调的思想,即只微调BERT的一些顶层,而保持其他层冻结。对于每个任务,我们使用部分微调独立地训练单任务(ST)模型。然后利用知识蒸馏对每个ST模型中的任务特定层进行压缩。这些压缩的ST模型最终被合并到一个MT模型中,使得前者的冻结层在任务之间共享。我们在八个GLUE任务上验证了我们的方法,证明它能够实现强大的性能和效率。我们已经在XiaoAI的话语理解系统中实现了我们的方法,XiaoAI是小米开发的商业AI助手。我们估计,我们的模型将整体服务成本降低了86%。

英文摘要:

In this demonstration, we present an efficient BERT-based multi-task (MT) framework that is particularly suitable for iterative and incremental development of the tasks. The proposed framework is based on the idea of partial fine-tuning, i.e. only fine-tune some top layers of BERT while keep the other layers frozen. For each task, we train independently a single-task (ST) model using partial fine-tuning. Then we compress the task-specific layers in each ST model using knowledge distillation. Those compressed ST models are finally merged into one MT model so that the frozen layers of the former are shared across the tasks. We exemplify our approach on eight GLUE tasks, demonstrating that it is able to achieve both strong performance and efficiency. We have implemented our method in the utterance understanding system of XiaoAI, a commercial AI assistant developed by Xiaomi. We estimate that our model reduces the overall serving cost by 86%.

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

↑