How to Train BERT with an Academic Budget
Not on the map. Why?
Abstract (arXiv)
While large language models a la BERT are used ubiquitously in NLP, pretraining them is considered a luxury that only a few well-funded industry labs can afford. How can one train such models with a more modest budget? We present a recipe for pretraining a masked language model in 24 hours using a single low-end deep learning server. We demonstrate that through a combination of software optimizations, design choices, and hyperparameter tuning, it is possible to produce models that are competitive with BERT-base on GLUE tasks at a fraction of the original pretraining cost.
Key facts. Cited by 80 papers in the map (data through 7 Oct 2026). Builds on 29 of its 42 references that are in the map. First posted on arXiv 15 Apr 2021.
Builds on
29 of 42 references.
References · 29
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
17 more
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2018Neural Network Acceptability Judgmentscited by 952
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 671
- 2019CamemBERT: a Tasty French Language Modelcited by 368
- 2018Sentence Encoders on STILTs: Supplementary Training on Intermediate Labeled-data Taskscited by 214
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 2018Scaling Neural Machine Translationcited by 204
- 2020Accelerating Training of Transformer-Based Language Models with Progressive Layer Droppingcited by 93
- 2020Train Large, Then Compress: Rethinking Model Size for Efficient Training and Inference of Transformerscited by 67
- 2020Pre-Training Transformers as Energy-Based Cloze Modelscited by 52
- 2020Learning to Model and Ignore Dataset Bias with Mixed Capacity Ensemblescited by 43
- 2019Budgeted Training: Rethinking Deep Neural Network Training Under Resource Constraintscited by 36
- 2020Progressively Stacking 2.0: A Multi-stage Layerwise Training Method for BERT Training Speedupcited by 31
- 2020Optimal Subarchitecture Extraction For BERTcited by 9
Built on by
Citing papers per year: 2021: 5; 2022: 19; 2023: 27; 2024: 16; 2025: 11; 2026: 2.
80 papers.
Sort:
By area:
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 527
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2023Data Selection for Language Models via Importance Resamplingcited by 322
- 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingcited by 260
- 2022Should You Mask 15% in Masked Language Modeling?cited by 117
- 2022On the SDEs and Scaling Rules for Adaptive Gradient Algorithmscited by 100
- 2025Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corporacited by 86
- 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2023The MiniPile Challenge for Data-Efficient Language Modelscited by 74
- 2022Pretraining Without Attentioncited by 51
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 51
38 more
- 2023Do Transformers Parse while Predicting the Masked Word?cited by 48
- 2023M-FLAG: Medical Vision-Language Pre-training with Frozen Language Models and Latent Space Geometry Optimizationcited by 43
- 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixerscited by 43
- 2023No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Modelscited by 41
- 2023Lost in Translation: Large Language Models in Non-English Content Analysiscited by 34
- 2023MosaicBERT: A Bidirectional Encoder Optimized for Fast Pretrainingcited by 33
- 2021Curriculum learning for language modelingcited by 32
- 2021Pre-train or Annotate? Domain Adaptation with a Constrained Budgetcited by 27
- 2021Models In a Spelling Bee: Language Models Implicitly Learn the Character Composition of Tokenscited by 26
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2023Cuttlefish: Low-Rank Model Training without All the Tuningcited by 25
- 2024A distributional simplicity bias in the learning dynamics of transformerscited by 23
- 2022METRO: Efficient Denoising Pretraining of Large Scale Autoencoding Language Models with Model Generated Signalscited by 20
- 2023CLIMB: Curriculum Learning for Infant-inspired Model Buildingcited by 20
- 2024The Compute Divide in Machine Learning: A Threat to Academic Contribution and Scrutiny?cited by 20
- 2022DCT-Former: Efficient Self-Attention with Discrete Cosine Transformcited by 12
- 2021Greedy-layer Pruning: Speeding up Transformer Models for Natural Language Processingcited by 11
- 2022Incorporating Context into Subword Vocabulariescited by 11
- 2023Does compressing activations help model parallel training?cited by 11
- 2023The Framework Tax: Disparities Between Inference Efficiency in NLP Research and Deploymentcited by 11
- 2023Distill or Annotate? Cost-Efficient Fine-Tuning of Compact Modelscited by 11
- 2025Slamming: Training a Speech Language Model on One GPU in a Daycited by 11
- 2023How to Distill your BERT: An Empirical Study on the Impact of Weight Initialisation and Distillation Objectivescited by 9
- 2023Accelerated Convergence of Stochastic Heavy Ball Method under Anisotropic Gradient Noisecited by 9
- 2023Data-Efficient French Language Modeling with CamemBERTacited by 8
- 2023Biomedical Language Models are Robust to Sub-optimal Tokenizationcited by 8
- 2022Mask More and Mask Later: Efficient Pre-training of Masked Language Models by Disentangling the [MASK] Tokencited by 7
- 2022ExtremeBERT: A Toolkit for Accelerating Pretraining of Customized BERTcited by 7
- 2023Mixture-of-Supernets: Improving Weight-Sharing Supernet Training with Architecture-Routed Mixture-of-Expertscited by 7
- 2024Don't Touch My Diacriticscited by 7
- 2024Normalization Layer Per-Example Gradients are Sufficient to Predict Gradient Noise Scale in Transformerscited by 7
- 2022Training a Vision Transformer from scratch in less than 24 hours with 1 GPUcited by 6
- 2024Orchid: Flexible and Data-Dependent Convolution for Sequence Modelingcited by 6
- 2024100K or 100 Days: Trade-offs when Pre-Training with Academic Resourcescited by 6
- 2022Transformers with Learnable Activation Functionscited by 5
- 2023Surveying (Dis)Parities and Concerns of Compute Hungry NLP Researchcited by 5
- 2023A Quadratic Synchronization Rule for Distributed Deep Learningcited by 5
- 2023Explicit Morphological Knowledge Improves Pre-training of Language Models for Hebrewcited by 5
50 most cited of 80 All 80 (JSON)
- 2026How Well Do Large-Scale Chemical Language Models Transfer to Downstream Tasks?12 Feb 2026
- 2026One Script Instead of Hundreds? On Pretraining Romanized Encoder Language Models9 Jan 2026
- 2025A Multi-fidelity Double-Delta Wing Dataset and Empirical Scaling Laws for GNN-based Aerodynamic Field Surrogate24 Dec 2025
- 2025Advances and Challenges in Semantic Textual Similarity: A Comprehensive Survey19 Dec 2025
- 2025Sliced ReLU attention: Quasi-linear contextual expressivity via sorting12 Dec 2025
- 2025What is the Best Sequence Length for BABYLM?22 Oct 2025
- 2025Patent Language Model Pretraining with ModernBERT18 Sep 2025
- 2025Stepsize anything: A unified learning rate schedule for budgeted-iteration training30 May 2025
- 2025MaxPoolBERT: Enhancing BERT Classification via Layer- and Token-Wise Aggregation21 May 2025
- 2025Prediction-powered estimators for finite population statistics in highly imbalanced textual data: Public hate crime estimation5 May 2025
- 2025Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corpora10 Apr 2025
- 2025Linear Attention for Efficient Bidirectional Sequence Modeling22 Feb 2025
38 more
- 2025Slamming: Training a Speech Language Model on One GPU in a Day19 Feb 2025
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference18 Dec 2024
- 2024How Good is Your Wikipedia? Auditing Data Quality for Low-resource and Multilingual NLP8 Nov 2024
- 2024Normalization Layer Per-Example Gradients are Sufficient to Predict Gradient Noise Scale in Transformers1 Nov 2024
- 2024Don't Touch My Diacritics31 Oct 2024
- 2024100K or 100 Days: Trade-offs when Pre-Training with Academic Resources30 Oct 2024
- 2024A distributional simplicity bias in the learning dynamics of transformers25 Oct 2024
- 2024Team Ryu's Submission to SIGMORPHON 2024 Shared Task on Subword Tokenization19 Oct 2024
- 2024Exploring the Benefit of Activation Sparsity in Pre-training4 Oct 2024
- 2024Expanding Expressivity in Transformer Models with M"obiusAttention8 Sep 2024
- 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixers13 Jul 2024
- 2024Aligning Programming Language and Natural Language: Exploring Design Choices in Multi-Modal Transformer-Based Embedding for Bug Localization25 Jun 2024
- 2024Knowledge Distillation vs. Pretraining from Scratch under a Fixed (Computation) Budget30 Apr 2024
- 2024PeLLE: Encoder-based language models for Brazilian Portuguese based on open data29 Feb 2024
- 2024Orchid: Flexible and Data-Dependent Convolution for Sequence Modeling28 Feb 2024
- 2024The Effect of Batch Size on Contrastive Self-Supervised Speech Representation Learning21 Feb 2024
- 2024The Compute Divide in Machine Learning: A Threat to Academic Contribution and Scrutiny?4 Jan 2024
- 2023MosaicBERT: A Bidirectional Encoder Optimized for Fast Pretraining29 Dec 2023
- 2023Spike No More: Stabilizing the Pre-training of Large Language Models28 Dec 2023
- 2023Accelerated Convergence of Stochastic Heavy Ball Method under Anisotropic Gradient Noise22 Dec 2023
- 2023CLIMB: Curriculum Learning for Infant-inspired Model Building15 Nov 2023
- 2023Explicit Morphological Knowledge Improves Pre-training of Language Models for Hebrew1 Nov 2023
- 2023A Quadratic Synchronization Rule for Distributed Deep Learning22 Oct 2023
- 2023A Simple and Robust Framework for Cross-Modality Medical Image Segmentation applied to Vision Transformers9 Oct 2023
- 2023Vocabulary-level Memory Efficiency for Language Model Fine-tuning15 Sep 2023
- 2023M-FLAG: Medical Vision-Language Pre-training with Frozen Language Models and Latent Space Geometry Optimization17 Jul 2023
- 2023No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Models12 Jul 2023
- 2023Biomedical Language Models are Robust to Sub-optimal Tokenization30 Jun 2023
- 2023Surveying (Dis)Parities and Concerns of Compute Hungry NLP Research29 Jun 2023
- 2023Lost in Translation: Large Language Models in Non-English Content Analysis12 Jun 2023
- 2023Mixture-of-Supernets: Improving Weight-Sharing Supernet Training with Architecture-Routed Mixture-of-Experts8 Jun 2023
- 2023Data-Efficient French Language Modeling with CamemBERTa2 Jun 2023
- 2023How to Distill your BERT: An Empirical Study on the Impact of Weight Initialisation and Distillation Objectives24 May 2023
- 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training23 May 2023
- 2023Cuttlefish: Low-Rank Model Training without All the Tuning4 May 2023
- 2023Distill or Annotate? Cost-Efficient Fine-Tuning of Compact Models2 May 2023
- 2023The MiniPile Challenge for Data-Efficient Language Models17 Apr 2023
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Review7 Apr 2023
50 newest of 80 All 80 (JSON)
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 527
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2023Data Selection for Language Models via Importance Resamplingcited by 322
- 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingcited by 260
- 2022Should You Mask 15% in Masked Language Modeling?cited by 117
- 2022On the SDEs and Scaling Rules for Adaptive Gradient Algorithmscited by 100
- 2025Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corporacited by 86
- 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2023The MiniPile Challenge for Data-Efficient Language Modelscited by 74
- 2022Pretraining Without Attentioncited by 51
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 51
12 most cited of 76 All 76 (JSON)
- 2026How Well Do Large-Scale Chemical Language Models Transfer to Downstream Tasks?12 Feb 2026
- 2026One Script Instead of Hundreds? On Pretraining Romanized Encoder Language Models9 Jan 2026
- 2025A Multi-fidelity Double-Delta Wing Dataset and Empirical Scaling Laws for GNN-based Aerodynamic Field Surrogate24 Dec 2025
- 2025Advances and Challenges in Semantic Textual Similarity: A Comprehensive Survey19 Dec 2025
- 2025Sliced ReLU attention: Quasi-linear contextual expressivity via sorting12 Dec 2025
- 2025What is the Best Sequence Length for BABYLM?22 Oct 2025
- 2025Patent Language Model Pretraining with ModernBERT18 Sep 2025
- 2025Stepsize anything: A unified learning rate schedule for budgeted-iteration training30 May 2025
- 2025MaxPoolBERT: Enhancing BERT Classification via Layer- and Token-Wise Aggregation21 May 2025
- 2025Prediction-powered estimators for finite population statistics in highly imbalanced textual data: Public hate crime estimation5 May 2025
- 2025Findings of the BabyLM Challenge: Sample-Efficient Pretraining on Developmentally Plausible Corpora10 Apr 2025
- 2025Linear Attention for Efficient Bidirectional Sequence Modeling22 Feb 2025
12 newest of 76 All 76 (JSON)