BabyBear:昂贵语言模型的廉价推理分类
BabyBear: Cheap inference triage for expensive language models
摘要:
Transformer语言模型提供优于先前模型的准确性,但它们在计算上和环境上是昂贵的。借用计算机视觉中模型级联的概念,我们介绍了BabyBear,这是一个用于自然语言处理(NLP)任务的级联模型框架,以最大限度地降低成本。核心策略是推理分类,当级联中最便宜的模型达到足够高的置信度预测时,提前退出。我们在几个与文档分类和实体识别相关的开放源数据集上测试了BabyBear。我们发现,对于常见的NLP任务,很大一部分推理负载可以通过观察深度学习模型来学习的廉价、快速的模型来完成。这使我们能够将大规模分类作业的计算成本降低50%以上,同时保持整体准确性。对于命名实体识别,我们节省了33%的深度学习计算,同时在CoNLL基准测试中保持了高于95%的F1分数。
英文摘要:
Transformer language models provide superior accuracy over previous models but they are computationally and environmentally expensive. Borrowing the concept of model cascading from computer vision, we introduce BabyBear, a framework for cascading models for natural language processing (NLP) tasks to minimize cost. The core strategy is inference triage, exiting early when the least expensive model in the cascade achieves a sufficiently high-confidence prediction. We test BabyBear on several open source data sets related to document classification and entity recognition. We find that for common NLP tasks a high proportion of the inference load can be accomplished with cheap, fast models that have learned by observing a deep learning model. This allows us to reduce the compute cost of large-scale classification jobs by more than 50% while retaining overall accuracy. For named entity recognition, we save 33% of the deep learning compute while maintaining an F1 score higher than 95% on the CoNLL benchmark.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。