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

Junmo Kang, Wei Xu, Alan Ritter
5/2/2023
cs.CL

No official code found. Best implementation: jm-kang/Distill-or-Annotate (4 stars, last commit 2023-10-10).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

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

40PythonSep 29, 20233 years ago

Similar Papers

Cite this paper

@article{kang2023distill,
  title  = {Distill or Annotate? Cost-Efficient Fine-Tuning of Compact Models},
  author = {Junmo Kang and Wei Xu and Alan Ritter},
  year   = {2023},
  eprint = {2305.01645},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.01645v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.01645.svg)](https://codeofpaper.com/paper/2305.01645)

Discussion