一石二鸟:多任务文本分类,一次向前传递的高效推理
All Birds with One Stone: Multi-task Text Classification for Efficient Inference with One Forward Pass
摘要:
多任务学习(MTL)模型已经显示出它们在跨任务传输学习知识方面的鲁棒性、有效性和效率。在实际的工业应用中,例如Web内容分类,多个分类任务是从相同的输入文本(例如Web文章)中预测的。然而,在服务时间,现有的多任务Transformer模型,如提示或适配器为基础的方法需要进行N个向前传递N个任务的O(N)的计算成本。为了解决这个问题,我们提出了一个可扩展的方法,可以通过一个向前传递,以接近O(1)的计算成本实现更强的性能。为了说明实际的应用程序使用情况,我们发布了一个关于新闻主题和风格分类的多任务数据集。我们的实验表明,我们提出的方法在GLUE基准和我们的新闻数据集上都优于强基线。我们的代码和数据集可在https://bit.ly/mtop-code上公开获取。
英文摘要:
Multi-Task Learning (MTL) models have shown their robustness, effectiveness, and efficiency for transferring learned knowledge across tasks. In real industrial applications such as web content classification, multiple classification tasks are predicted from the same input text such as a web article. However, at the serving time, the existing multitask transformer models such as prompt or adaptor based approaches need to conduct N forward passes for N tasks with O(N) computation cost. To tackle this problem, we propose a scalable method that can achieve stronger performance with close to O(1) computation cost via only one forward pass. To illustrate real application usage, we release a multitask dataset on news topic and style classification. Our experiments show that our proposed method outperforms strong baselines on both the GLUE benchmark and our news dataset. Our code and dataset are publicly available at https://bit.ly/mtop-code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。