Cramming: Training a Language Model on a Single GPU in One Day
Not on the map. Why?
Abstract (arXiv)
Recent trends in language modeling have focused on increasing performance through scaling, and have resulted in an environment where training language models is out of reach for most researchers and practitioners. While most in the community are asking how to push the limits of extreme computation, we ask the opposite question: How far can we get with a single GPU in just one day? We investigate the downstream performance achievable with a transformer-based language model trained completely from scratch with masked language modeling for a single day on a single consumer GPU. Aside from re-analyzing nearly all components of the pretraining pipeline for this scenario and providing a modified pipeline with performance close to BERT, we investigate why scaling down is hard, and which modifications actually improve performance in this scenario. We provide evidence that even in this constrained setting, performance closely follows scaling laws observed in large-compute settings. Through the lens of scaling laws, we categorize a range of recent improvements to training and architecture and discuss their merit and practical applicability (or lack thereof) for the limited compute setting.
Key facts. Cited by 81 papers in the map (data through 14 Oct 2026). Builds on 107 of its 146 references that are in the map. First posted on arXiv 28 Dec 2022.
Builds on
107 of 146 references.
References · 107
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
38 more
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
- 2017Mixed Precision Trainingcited by 1,156
- 2019When Does Label Smoothing Help?cited by 988
- 2018Neural Network Acceptability Judgmentscited by 958
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 905
- 2021Membership Inference Attacks From First Principlescited by 878
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
- 2020Efficient Transformers: A Surveycited by 790
- 2019On the Variance of the Adaptive Learning Rate and Beyondcited by 772
- 2021Deduplicating Training Data Makes Language Models Bettercited by 714
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2016Language Modeling with Gated Convolutional Networkscited by 702
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
- 2018Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidatescited by 639
- 2019Fantastic Generalization Measures and Where to Find Themcited by 513
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 508
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 482
- 2021Explaining Neural Scaling Lawscited by 363
- 2021FNet: Mixing Tokens with Fourier Transformscited by 347
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
50 most cited of 107 All 107 (JSON)
Built on by
Citing papers per year: 2023: 25; 2024: 27; 2025: 19; 2026: 10.
81 papers.
Sort:
By area:
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
- 2024Nomic Embed: Training a Reproducible Long Context Text Embeddercited by 265
- 2023Regulating ChatGPT and other Large Generative AI Modelscited by 104
- 2023Data Distillation: A Surveycited by 87
- 2025REVE: A Foundation Model for EEG -- Adapting to Any Setup with Large-Scale Pretraining on 25,000 Subjectscited by 80
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 78
- 2023The MiniPile Challenge for Data-Efficient Language Modelscited by 75
- 2026Parcae: Scaling Laws For Stable Looped Language Modelscited by 55
- 2023No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Modelscited by 41
- 2023Simplifying Transformer Blockscited by 37
- 2023AutoML in the Age of Large Language Models: Current Challenges, Future Opportunities and Riskscited by 35
- 2023MosaicBERT: A Bidirectional Encoder Optimized for Fast Pretrainingcited by 34
38 more
- 2025BioClinical ModernBERT: A State-of-the-Art Long-Context Encoder for Biomedical and Clinical NLPcited by 28
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2023The Efficiency Spectrum of Large Language Models: An Algorithmic Surveycited by 26
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Featurescited by 22
- 2025A Multi-Power Law for Loss Curve Prediction Across Learning Rate Schedulescited by 22
- 2024Setting the Record Straight on Transformer Oversmoothingcited by 21
- 2023CLIMB: Curriculum Learning for Infant-inspired Model Buildingcited by 20
- 2024Accelerating Transformer Pre-training with 2:4 Sparsitycited by 19
- 2024Encryption-Friendly LLM Architecturecited by 17
- 2023Outlier Dimensions Encode Task-Specific Knowledgecited by 15
- 2024Diffusion Guided Language Modelingcited by 15
- 2025Slamming: Training a Speech Language Model on One GPU in a Daycited by 12
- 2023The Languini Kitchen: Enabling Language Modelling Research at Different Scales of Computecited by 10
- 2024FaBERT: Pre-training BERT on Persian Blogscited by 10
- 2024An Adaptive Stochastic Gradient Method with Non-negative Gauss-Newton Stepsizescited by 10
- 2024PeaTMOSS: A Dataset and Initial Analysis of Pre-Trained Models in Open-Source Softwarecited by 9
- 2024You Only Scan Once: Efficient Multi-dimension Sequential Modeling with LightNetcited by 9
- 2023Data-Efficient French Language Modeling with CamemBERTacited by 8
- 2023nanoT5: A PyTorch Framework for Pre-training and Fine-tuning T5-style Models with Limited Resourcescited by 7
- 2024Look Ahead or Look Around? A Theoretical Comparison Between Autoregressive and Masked Pretrainingcited by 7
- 2025Efficient Self-Supervised Learning for Earth Observation via Dynamic Dataset Curationcited by 7
- 2023V1T: large-scale mouse V1 response prediction using a Vision Transformercited by 6
- 2024HDT: Hierarchical Document Transformercited by 6
- 2024100K or 100 Days: Trade-offs when Pre-Training with Academic Resourcescited by 6
- 2024Symmetric Dot-Product Attention for Efficient Training of BERT Language Modelscited by 5
- 2025Leaner Transformers: More Heads, Less Depthcited by 5
- 2023Navigating Scaling Laws: Compute Optimality in Adaptive Model Trainingcited by 4
- 2023Exponentially Faster Language Modellingcited by 4
- 2024Sustainable self-supervised learning for speech representationscited by 4
- 2024Achieving Peak Performance for Large Language Models: A Systematic Reviewcited by 4
- 2023Adapting to the Low-Resource Double-Bind: Investigating Low-Compute Methods on Low-Resource African Languagescited by 3
- 2023Approximating CKY with Transformerscited by 3
- 2023Increasing The Performance of Cognitively Inspired Data-Efficient Language Models via Implicit Structure Buildingcited by 3
- 2024Efficient Backpropagation with Variance-Controlled Adaptive Samplingcited by 3
- 2024N-gram Prediction and Word Difference Representations for Language Modelingcited by 3
- 2024ReLU's Revival: On the Entropic Overload in Normalization-Free Large Language Modelscited by 3
- 2024AERO: Entropy-Guided Framework for Private LLM Inferencecited by 3
- 2025Scaling Laws for Data-Efficient Visual Transfer Learningcited by 3
50 most cited of 81 All 81 (JSON)
- 2026Reading Is Not Leaking: Local, Auditable Measurement and Reduction of Inference Exposure from Public Footprints26 Sep 2026
- 2026Conditioned Initialization for Attention7 Sep 2026
- 2026Speedrunning Tabular Foundation Model Pretraining2 Jun 2026
- 2026Convex Optimization for Alignment and Preference Learning on a Single GPU22 May 2026
- 2026ProteinJEPA: Latent prediction improves protein language model pretraining8 May 2026
- 2026Parcae: Scaling Laws For Stable Looped Language Models14 Apr 2026
- 2026Preservation Is Not Enough for Width Growth: Regime-Sensitive Selection of Dense LM Warm Starts5 Apr 2026
- 2026Preconditioned Attention: Enhancing Efficiency in Transformers28 Mar 2026
- 2026Spectral Conditioning of Attention Improves Transformer Performance7 Mar 2026
- 2026RexBERT: Context Specialized Bidirectional Encoders for E-commerce4 Feb 2026
- 2025Learning Speech Representations with Variational Predictive Coding31 Dec 2025
- 2025A Multi-fidelity Double-Delta Wing Dataset and Empirical Scaling Laws for GNN-based Aerodynamic Field Surrogate24 Dec 2025
38 more
- 2025REVE: A Foundation Model for EEG -- Adapting to Any Setup with Large-Scale Pretraining on 25,000 Subjects24 Oct 2025
- 2025What is the Best Sequence Length for BABYLM?22 Oct 2025
- 2025Topoformer: brain-like topographic organization in Transformer language models through spatial querying and reweighting21 Oct 2025
- 2025First Attentions Last: Better Exploiting First Attentions for Efficient Transformer Training16 Oct 2025
- 2025Retrieval Capabilities of Large Language Models Scale with Pretraining FLOPs24 Aug 2025
- 2025BioClinical ModernBERT: A State-of-the-Art Long-Context Encoder for Biomedical and Clinical NLP12 Jun 2025
- 2025Stepsize anything: A unified learning rate schedule for budgeted-iteration training30 May 2025
- 2025Leaner Transformers: More Heads, Less Depth27 May 2025
- 2025MaxPoolBERT: Enhancing BERT Classification via Layer- and Token-Wise Aggregation21 May 2025
- 2025Enhancing Transformers Through Conditioned Embedded Tokens19 May 2025
- 2025Scaling Laws for Data-Efficient Visual Transfer Learning17 Apr 2025
- 2025Efficient Self-Supervised Learning for Earth Observation via Dynamic Dataset Curation9 Apr 2025
- 2025A Multi-Power Law for Loss Curve Prediction Across Learning Rate Schedules17 Mar 2025
- 2025Text Compression for Efficient Language Generation14 Mar 2025
- 2025SAGE-Amine: Generative Amine Design with Multi-Property Optimization for Efficient CO2 Capture4 Mar 2025
- 2025Slamming: Training a Speech Language Model on One GPU in a Day19 Feb 2025
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Features13 Feb 2025
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference18 Dec 2024
- 2024Hysteresis Activation Function for Efficient Inference15 Nov 2024
- 2024When are 1.58 bits enough? A Bottom-up Exploration of BitNet Quantization8 Nov 2024
- 2024100K or 100 Days: Trade-offs when Pre-Training with Academic Resources30 Oct 2024
- 2024AERO: Entropy-Guided Framework for Private LLM Inference16 Oct 2024
- 2024ReLU's Revival: On the Entropic Overload in Normalization-Free Large Language Models12 Oct 2024
- 2024Encryption-Friendly LLM Architecture3 Oct 2024
- 2024Achieving Peak Performance for Large Language Models: A Systematic Review7 Sep 2024
- 2024N-gram Prediction and Word Difference Representations for Language Modeling5 Sep 2024
- 2024Diffusion Guided Language Modeling8 Aug 2024
- 2024HDT: Hierarchical Document Transformer11 Jul 2024
- 2024LETS-C: Leveraging Text Embedding for Time Series Classification9 Jul 2024
- 2024An Adaptive Stochastic Gradient Method with Non-negative Gauss-Newton Stepsizes5 Jul 2024
- 2024Look Ahead or Look Around? A Theoretical Comparison Between Autoregressive and Masked Pretraining1 Jul 2024
- 2024Sustainable self-supervised learning for speech representations11 Jun 2024
- 2024Symmetric Dot-Product Attention for Efficient Training of BERT Language Models10 Jun 2024
- 2024You Only Scan Once: Efficient Multi-dimension Sequential Modeling with LightNet31 May 2024
- 2024Transformers Can Do Arithmetic with the Right Embeddings27 May 2024
- 2024Knowledge Distillation vs. Pretraining from Scratch under a Fixed (Computation) Budget30 Apr 2024
- 2024Improving the Capabilities of Large Language Model Based Marketing Analytics Copilots With Semantic Search And Fine-Tuning16 Apr 2024
- 2024Accelerating Transformer Pre-training with 2:4 Sparsity2 Apr 2024
50 newest of 81 All 81 (JSON)
- 2024Diffusion Guided Language Modelingcited by 15
- 2024Diffusion Guided Language Modeling8 Aug 2024
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
- 2024Nomic Embed: Training a Reproducible Long Context Text Embeddercited by 265
- 2023Regulating ChatGPT and other Large Generative AI Modelscited by 104
- 2023Data Distillation: A Surveycited by 87
- 2025REVE: A Foundation Model for EEG -- Adapting to Any Setup with Large-Scale Pretraining on 25,000 Subjectscited by 80
- 2024Transformers Can Do Arithmetic with the Right Embeddingscited by 78
- 2023The MiniPile Challenge for Data-Efficient Language Modelscited by 75
- 2026Parcae: Scaling Laws For Stable Looped Language Modelscited by 55
- 2023No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Modelscited by 41
- 2023Simplifying Transformer Blockscited by 37
- 2023AutoML in the Age of Large Language Models: Current Challenges, Future Opportunities and Riskscited by 35
- 2023MosaicBERT: A Bidirectional Encoder Optimized for Fast Pretrainingcited by 34
12 most cited of 78 All 78 (JSON)
- 2026Reading Is Not Leaking: Local, Auditable Measurement and Reduction of Inference Exposure from Public Footprints26 Sep 2026
- 2026Conditioned Initialization for Attention7 Sep 2026
- 2026Speedrunning Tabular Foundation Model Pretraining2 Jun 2026
- 2026ProteinJEPA: Latent prediction improves protein language model pretraining8 May 2026
- 2026Parcae: Scaling Laws For Stable Looped Language Models14 Apr 2026
- 2026Preservation Is Not Enough for Width Growth: Regime-Sensitive Selection of Dense LM Warm Starts5 Apr 2026
- 2026Preconditioned Attention: Enhancing Efficiency in Transformers28 Mar 2026
- 2026Spectral Conditioning of Attention Improves Transformer Performance7 Mar 2026
- 2026RexBERT: Context Specialized Bidirectional Encoders for E-commerce4 Feb 2026
- 2025Learning Speech Representations with Variational Predictive Coding31 Dec 2025
- 2025A Multi-fidelity Double-Delta Wing Dataset and Empirical Scaling Laws for GNN-based Aerodynamic Field Surrogate24 Dec 2025
- 2025REVE: A Foundation Model for EEG -- Adapting to Any Setup with Large-Scale Pretraining on 25,000 Subjects24 Oct 2025
12 newest of 78 All 78 (JSON)