Selecting Informative Contexts Improves Language Model Finetuning

Richard Antonello, Nicole Beckage, Javier Turek, Alexander Huth
5/1/2020
cs.CL

Official code: huggingface/transformers (169,409 stars, Python, Apache-2.0, PyTorch, last commit 2026-04-30).

Abstract

Language model fine-tuning is essential for modern natural language processing, but is computationally expensive and time-consuming. Further, the effectiveness of fine-tuning is limited by the inclusion of training examples that negatively affect performance.

Show full abstract

Here we present a general fine-tuning method that we call information gain filtration for improving the overall training efficiency and final performance of language model fine-tuning. We define the information gain of an example as the improvement on a test metric after training on that example. A secondary learner is then trained to approximate this quantity. During fine-tuning, this learner selects informative examples and skips uninformative ones. We show that our method has consistent improvement across datasets, fine-tuning tasks, and language model architectures. For example, we achieve a median perplexity of 54.0 on a books dataset compared to 57.3 for standard fine-tuning. We present statistical evidence that offers insight into the improvements of our method over standard fine-tuning. The generality of our method leads us to propose a new paradigm for language model fine-tuning -- we encourage researchers to release pretrained secondary learners on common corpora to promote efficient and effective fine-tuning, thereby improving the performance and reducing the overall energy footprint of language model fine-tuning.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

169,40935,271Python, DockerfileOct 29, 20187 months agoApache-2.0
audiodeep-learningdeepseekgemmaglm+14 more

Similar Papers

Cite this paper

@article{antonello2020selecting,
  title  = {Selecting Informative Contexts Improves Language Model Finetuning},
  author = {Richard Antonello and Nicole Beckage and Javier Turek and Alexander Huth},
  year   = {2020},
  eprint = {2005.00175},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00175}
}

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

Discussion