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

蒸馏还是标注?紧凑模型的经济高效微调

Distill or Annotate? Cost-Efficient Fine-Tuning of Compact Models

Georgia Institute of Technology(佐治亚理工学院)

Junmo Kang, Wei Xu, Alan Ritter

AI总结:

本文通过六类任务实验证明,在固定预算下从 T5-XXL 蒸馏到 T5-Small 通常比标注更多数据直接训练紧凑模型更经济高效,并探讨了最优计算预算分配。

摘要:

微调大型模型非常有效,但推理可能成本高昂并产生碳排放。知识蒸馏已被证明是降低推理成本的实用解决方案,但蒸馏过程本身需要大量计算资源。与其购买或租用 GPU 来微调再蒸馏大型模型,NLP 从业者或许可以选择将可用预算分配给标注人员,手动标注额外的微调数据。在本文中,我们研究如何最高效地利用固定预算来构建紧凑模型。通过在六个多样化任务上的大量实验,我们表明,与标注更多数据直接训练紧凑模型(T5-Small)相比,从 T5-XXL(11B)蒸馏到 T5-Small(60M)几乎总是一种经济高效的策略。我们进一步研究了分配给计算的最优预算如何在不同场景中变化。我们将公开代码、数据集、标注成本估算和基线模型,作为一个基准,以支持紧凑模型经济高效训练的进一步研究。

英文摘要:

Fine-tuning large models is highly effective, however, inference can be expensive and produces carbon emissions. Knowledge distillation has been shown to be a practical solution to reduce inference costs, but the distillation process itself requires significant computational resources. Rather than buying or renting GPUs to fine-tune, then distill a large model, an NLP practitioner might instead choose to allocate the available budget to hire annotators and manually label additional fine-tuning data. In this paper, we investigate how to most efficiently use a fixed budget to build a compact model. Through extensive experiments on six diverse tasks, we show that distilling from T5-XXL (11B) to T5-Small (60M) is almost always a cost-efficient strategy compared to annotating more data to directly train a compact model (T5-Small). We further investigate how the optimal budget allocated towards computation varies across scenarios. We will make our code, datasets, annotation cost estimates, and baseline models available as a benchmark to support further work on cost-efficient training of compact models.

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

↑