Papers › Universal Language Model Fine-tuning for Text Classification

Universal Language Model Fine-tuning for Text Classification

18 Jan 2018ACL 2018 7arXiv:1801.06146archive 2025-07-28

Jeremy Howard, Sebastian Ruder

Inductive transfer learning has greatly impacted computer vision, but existing approaches in NLP still require task-specific modifications and training from scratch. We propose Universal Language Model Fine-tuning (ULMFiT), an effective transfer learning method that can be applied to any task in NLP, and introduce techniques that are key for fine-tuning a language model. Our method significantly outperforms the state-of-the-art on six text classification tasks, reducing the error by 18-24% on the majority of datasets. Furthermore, with only 100 labeled examples, it matches the performance of training from scratch on 100x more data. We open-source our pretrained models and code.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1801.06146")

Code

Syntology Ran 2 of 5 code samples harvested from 2 repositories linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · our draft was wrong.

By repository: community (archive-listed): 5 samples from 2 repositories, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

66 repositories listed; official and paper-mentioned ones first.

fastai/fastai officialpytorch report
AbhimanyuAryan/IMDB-NLP mentioned on GitHub report
AnttiKarlsson/finnish_ulmfit mentioned on GitHubpytorch report
Deepayan137/Adapting-OCR mentioned on GitHubpytorch report
Julian1070/Deep-Learning mentioned on GitHubpytorch report
LamLauChiu/Tensorflow_Learning mentioned on GitHubtf report
Mees-Molenaar/protein_location mentioned on GitHubpytorch report
PrideLee/sentiment-analysis mentioned on GitHubpytorch report
ahmadelsallab/READ mentioned on GitHubtf report
akari0216/Paddle-awdlstm mentioned on GitHubpaddle report
alantancr/Hotel-Recommender mentioned on GitHubtf report
alexandra-chron/ntua-slp-wassa-iest2018 mentioned on GitHubpytorch report
alexandra-chron/wassa-2018 mentioned on GitHubpytorch report
algoashutosh/sentiment-analysis-project mentioned on GitHubpytorch report
amagooda/SummaRuNNer_coattention mentioned on GitHubpytorch report
apmoore1/language-model mentioned on GitHubpytorch report
benjaminvdb/110kDBRD mentioned on GitHub report
benjaminvdb/DBRD mentioned on GitHub report
cstorm125/thai2fit mentioned on GitHubpytorch report
dpalominop/ULMFit mentioned on GitHub report
floleuerer/fastai_ulmfit mentioned on GitHubMIT report
floraxinru/NLP_HotelReviews mentioned on GitHub report
haianhle/ULMFiT-Sentiment mentioned on GitHub report
heye0507/individualNLPClassifier mentioned on GitHubpytorch report
jannenev/ulmfit-language-model mentioned on GitHubpytorch report
khumbuai/keras_wiki_lm mentioned on GitHubtf report
lukashedegaard/ride mentioned on GitHubpytorchApache-2.0 report
lukexyz/Language-Models mentioned on GitHubpytorch report
magic-lantern/nlp-transfer-learning mentioned on GitHubpytorch report
mamamot/Russian-ULMFit mentioned on GitHubpytorch report
mdaniluk/language-detector mentioned on GitHub report
muellerzr/CodeFest_2019 mentioned on GitHub report
neburseni/NLP mentioned on GitHub report
nishee0521/Sarcasm-Detector mentioned on GitHub report
noise-field/Russian-ULMFit mentioned on GitHubpytorch report
prajjwal1/language-modelling mentioned on GitHubpytorch report
rania000/SentAnalyser mentioned on GitHubpytorch report
rodrigopivi/aida mentioned on GitHubtf report
simecek/Czech-ULMFiT mentioned on GitHub report
uchange/ulangel mentioned on GitHubpytorch report
varshinireddyt/ULMFiT mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

5 samples harvested; 2 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
3unverified

Licence: 3 of the 5 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

lower_tw uchange/ulangel/ulangel/data/text_processor.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 80418ee432e95278 · report
toLowercase uchange/ulangel/ulangel/data/text_processor.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 6ee9ad2657174087 · report
get_texts prajjwal1/language-modelling/ULMfit.py community (archive-listed) unverified no licence file found · pointer only · 2a2b16561a736d43 · report
repackage_var prajjwal1/language-modelling/fastai/lm_rnn.py community (archive-listed) unverified no licence file found · pointer only · e18c93c24e6c53bf · report
seq2seq_reg prajjwal1/language-modelling/fastai/lm_rnn.py community (archive-listed) unverified no licence file found · pointer only · 929d963d360617be · report

Tasks

General ClassificationLanguage ModelingLanguage ModellingSentiment AnalysisText ClassificationTransfer Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Sentiment Analysis IMDb ULMFiT Accuracy 95.4 #16 of 49 Archive leaderboard report
Sentiment Analysis Yelp Binary classification ULMFiT Error 2.16 #7 of 20 Archive leaderboard report
Sentiment Analysis Yelp Fine-grained classification ULMFiT Error 29.98 #5 of 17 Archive leaderboard report
Text Classification AG News ULMFiT Error 5.01 #4 of 24 Archive leaderboard report
Text Classification DBpedia ULMFiT Error 0.80 #6 of 21 Archive leaderboard report
Text Classification TREC-6 ULMFiT Error 3.6 #5 of 19 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: Discriminative Fine-Tuning, Slanted Triangular Learning Rates, ULMFiT

AWD-LSTMActivation RegularizationAdamDiscriminative Fine-TuningDropConnectDropoutEmbedding DropoutLSTMSigmoid ActivationSlanted Triangular Learning RatesTanh ActivationTemporal Activation RegularizationULMFiTVariational DropoutWeight Tying

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections