BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-models

Elad Ben-Zaken, Shauli Ravfogel, Yoav Goldberg
6/18/2021
cs.LGcs.CL

Official code: benzakenelad/BitFit (143 stars, MIT, last commit 2022-09-04).

Abstract

We introduce BitFit, a sparse-finetuning method where only the bias-terms of the model (or a subset of them) are being modified. We show that with small-to-medium training data, applying BitFit on pre-trained BERT models is competitive with (and sometimes better than) fine-tuning the entire model. For larger data, the method is competitive with other sparse fine-tuning methods. Besides their practical utility, these findings are relevant for the question of understanding the commonly-used process of finetuning: they support the hypothesis that finetuning is mainly about exposing knowledge induced by language-modeling training, rather than learning new task-specific linguistic knowledge.

View on arXivView PDF

Code Implementations(1)

MIT

Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-models

14328PythonFeb 2, 20214 years agoMIT

Cite this paper

@article{benzaken2021bitfit,
  title  = {BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-models},
  author = {Elad Ben-Zaken and Shauli Ravfogel and Yoav Goldberg},
  year   = {2021},
  eprint = {2106.10199},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.10199}
}

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/2106.10199.svg)](https://codeofpaper.com/paper/2106.10199)

Discussion