ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
0
Citations
0
Influential Citations
—
Venue
2019
Year
Built upon BERT, by carefully optimizing hyperparameters and training data size to improve performance on various language tasks .
When BERT was released in 2018, it set a new standard for natural language understanding by pretraining a deep bidirectional transformer on a large corpus. However, many practitioners suspected that BERT's full potential was not realized due to suboptimal training choices. RoBERTa (Robustly optimized BERT approach) systematically investigates these choices and demonstrates that BERT was significantly undertrained. By optimizing hyperparameters, using more data, and employing dynamic masking, RoBERTa matches or exceeds the performance of every model published after BERT at the time. This paper is a landmark because it shows that architecture alone is not enough—training recipe matters enormously.
RoBERTa follows the original BERT architecture but makes several key changes to the training procedure.
Static vs Dynamic Masking
Original BERT used a single static mask per sequence, created once during preprocessing. To mitigate this, the authors duplicated the data 10 times and applied different masks. RoBERTa instead generates a new masking pattern every time a sequence is fed to the model. This dynamic masking prevents the model from memorizing fixed patterns and improves generalization.
Training with Large Batches

RoBERTa experiments with batch sizes of 256, 2K, and 8K sequences. Using gradient accumulation, they show that larger batches (e.g., 8K) improve perplexity on the masked language modeling objective and downstream task accuracy. They also tune the Adam optimizer's β2 to 0.98 for stability with large batches.
Text Encoding
Original BERT used a character-level BPE vocabulary of 30K tokens with heuristic tokenization. RoBERTa switches to a byte-level BPE vocabulary of 50K subword units, which eliminates the need for custom preprocessing and adds about 15-20M parameters. This encoding captures more linguistic variation without manual rules.
Hyperparameter Tuning
RoBERTa carefully tunes peak learning rate, warmup steps, and the Adam epsilon term. They find that the epsilon term is highly sensitive—tuning it improves stability and performance. They also train for longer (500K steps) on a larger corpus (160GB vs BERT's 16GB).
RoBERTa achieves state-of-the-art results on major benchmarks:
These improvements are consistent across tasks, confirming that the training optimizations are broadly beneficial.
RoBERTa's main contribution is showing that BERT's architecture was not the bottleneck—its training was. By systematically optimizing hyperparameters, using more data, and employing dynamic masking, RoBERTa set a new baseline for pretrained language models. This work influenced subsequent models like ALBERT (which reduces parameters) and ELECTRA (which uses a discriminative pretraining objective). It also highlighted the importance of reporting training details and the value of large-scale data. For practitioners, RoBERTa provides a clear recipe: use dynamic masking, large batches, and a byte-level BPE vocabulary, and tune hyperparameters carefully. The paper remains a must-read for anyone working on pretrained language models.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba