MethodPretrain, then fine-tune

ULMFiT (2018): transfer learning for text classification

Event date

On 18 January 2018 Jeremy Howard and Sebastian Ruder posted Universal Language Model Fine-tuning, or ULMFiT. It showed that a language model pretrained on general text, then fine-tuned on a small labelled set, gave strong results on text classification. It is on the timeline as the first clear recipe for the pretrain then fine-tune pattern that BERT and GPT-1 followed.

Milestone 3 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

Error reduction on most of six classification datasets, as reported by the authors
18 to 24%arxiv.org
Test error on IMDb, reported by the authors
4.6%arxiv.org
Pretraining corpus, WikiText-103 (words)
about 103 millionarxiv.org

What the paper proposed

Transfer learning, where a model learns general features and is then adapted, had already changed computer vision. In language tasks, methods still tended to need task specific changes and training from scratch. Howard and Ruder proposed a single method that could be applied to any text task.

The paper was submitted to arXiv on 18 January 2018. The authors released their pretrained models and code, which let others reuse the approach directly. The paper stresses that the same architecture and training procedure were used for every task, with only dropout tuned, so a practitioner did not need to design a new network for each dataset.

Sources: arxiv.org

How it worked

ULMFiT has three stages. First, an AWD-LSTM language model is pretrained on WikiText-103, a corpus of about 103 million words. Second, the language model is fine-tuned on text from the target task. Third, a classifier is added and fine-tuned on the labelled examples.

The paper's contribution lies in how the fine-tuning is done. Discriminative fine-tuning gives each layer its own learning rate, slanted triangular learning rates raise and then lower the rate over training, and gradual unfreezing releases one layer at a time so the model does not overwrite what it learned in pretraining. Pretraining on a general corpus gives the model a working knowledge of grammar and common word use before it sees a single labelled example.

Sources: arxiv.org

What it showed and what came next

The authors reported results on six text classification datasets and said the method reduced error by 18 to 24 per cent on most of them compared with the previous best. On IMDb, a film review sentiment test, they reported a test error of 4.6 per cent, against 8.2 per cent for the CoVe baseline they compared with.

They also reported that, with only 100 labelled examples, ULMFiT matched the performance of training from scratch on 100 times more data. These are the authors' own experiments on public datasets. Other reported test errors include 3.6 per cent on TREC-6, against 4.2 per cent for CoVe, 0.80 per cent on DBpedia and 2.16 per cent on the binary Yelp task, while the five class Yelp task stayed hard at 29.98 per cent.

ELMo followed in February 2018 with contextual word vectors, GPT-1 in June 2018 with a Transformer decoder, and BERT in October 2018. Each used a large unlabelled corpus first and a small labelled set second, the pattern that ULMFiT had demonstrated on classification.

Sources: arxiv.org, arxiv.org, arxiv.org

Why it mattered

  • It gave a practical, general recipe for pretraining and fine-tuning in language tasks, not only one result.
  • It showed that pretrained language models save labelled data, which lowers the cost of building a classifier.
  • Its fine-tuning tricks, such as unfreezing layers gradually, remained common practice.
  • It was released with code and models, so the idea spread quickly.

Questions

What does ULMFiT stand for?
Universal Language Model Fine-tuning. It is a method for fine-tuning a pretrained language model on a new task such as text classification.
Who created ULMFiT?
Jeremy Howard and Sebastian Ruder, in a paper first posted on 18 January 2018.
Did ULMFiT use a Transformer?
No. It used an AWD-LSTM recurrent language model. The Transformer based GPT-1 and BERT came later in 2018.

About this page

Part of our LLM history timeline. The event happened on 18 January 2018; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. Howard and Ruder, Universal Language Model Fine-tuning for Text Classification (arXiv)
  2. Peters et al., Deep contextualized word representations (arXiv)
  3. Devlin et al., BERT (arXiv)

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.