RoBERTa (2019): a robustly optimised BERT recipe
Event date
On 26 July 2019 Yinhan Liu and nine co-authors posted RoBERTa, a careful replication of BERT pretraining. They changed the training recipe, not the architecture, and reported better results on GLUE, RACE and SQuAD. It is on the timeline because it showed that training choices and data mattered as much as new model designs.
Key numbers
- GLUE leaderboard test average, single task models, reported by the authors
- 88.5ar5iv.labs.arxiv.org
- Pretraining text, uncompressed
- over 160 GBar5iv.labs.arxiv.org
- RACE test accuracy, reported by the authors
- 83.2%ar5iv.labs.arxiv.org
- RoBERTa base and large parameters
- 125 million and 355 milliongithub.com
What the paper proposed
BERT had been followed by several new models that claimed to improve on it, but each changed several things at once. The RoBERTa authors, who included Luke Zettlemoyer and Veselin Stoyanov, studied BERT pretraining one choice at a time, including hyperparameters and the amount of training data.
Their conclusion, as the abstract reports, was that BERT had been significantly undertrained. The paper was submitted to arXiv on 26 July 2019, and the authors released their models and code. A replication study asks whether a published result holds when someone else repeats it carefully. Here the finding was that the baseline, not the architecture, had been the weak part.
Sources: arxiv.org
What changed
RoBERTa keeps the BERT architecture and makes four training changes. It trains for longer, with batches of 8,000 sequences for 500,000 steps. It drops the next sentence prediction task. It regenerates the masking pattern every time a sequence is shown, instead of fixing it once, so the same sentence is hidden in different ways across training. And it uses far more text: over 160 GB, including BookCorpus with Wikipedia, 76 GB of filtered news articles, 38 GB of OpenWebText and 31 GB of stories.
The released models match BERT's sizes: roberta.base has 125 million parameters and roberta.large has 355 million.
Sources: ar5iv.labs.arxiv.org, github.com
What it showed and what came next
The authors reported an average of 88.5 on the GLUE leaderboard test set with single task models, and 83.2 per cent overall accuracy on the RACE reading test. On the SQuAD v1.1 development set RoBERTa large scored 88.9 exact match and 94.6 F1.
All figures are the authors' own. The fairseq release page lists matching development set results for both sizes. On GLUE development tasks, roberta.large scores 90.2 on MNLI and 96.4 on SST-2, against 87.6 and 94.8 for roberta.base. On SQuAD v2.0 the large model reaches 86.5 exact match and 89.4 F1 on the development set, and the paper gives 86.8 and 89.8 on the test set.
RoBERTa became a standard strong baseline for encoder models, and many later systems started from its weights. Its lesson, that more data and compute with the same design could beat clever changes, matched the scaling results that followed in 2020 and shaped how large language models are trained.
Sources: ar5iv.labs.arxiv.org, github.com, arxiv.org
Why it mattered
- It showed that the gap between BERT and its successors came partly from under training, not only from architecture.
- It gave practitioners a stronger, freely available encoder than the original BERT.
- It encouraged careful ablation studies, in which one training choice is changed at a time.
- It was an early sign that data volume and training length would drive progress.
Questions
What is RoBERTa?
How is RoBERTa different from BERT?
When was RoBERTa published?
About this page
Part of our LLM history timeline. The event happened on 26 July 2019; 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.