mlsanityData to 7 Oct 2026

How to Scale Your EMA

arXiv 2307.13813 ↗First posted 25 Jul 2023stat.ML cs.AI cs.LGcited by 22

Not on the map. Why?

Abstract (arXiv)

Preserving training dynamics across batch sizes is an important tool for practical machine learning as it enables the trade-off between batch size and wall-clock time. This trade-off is typically enabled by a scaling rule, for example, in stochastic gradient descent, one should scale the learning rate linearly with the batch size. Another important machine learning tool is the model EMA, a functional copy of a target model, whose parameters move towards those of its target model according to an Exponential Moving Average (EMA) at a rate parameterized by a momentum hyperparameter. This model EMA can improve the robustness and generalization of supervised learning, stabilize pseudo-labeling, and provide a learning signal for Self-Supervised Learning (SSL). Prior works have not considered the optimization of the model EMA when performing scaling, leading to different training dynamics across batch sizes and lower model performance. In this work, we provide a scaling rule for optimization in the presence of a model EMA and demonstrate the rule's validity across a range of architectures, optimizers, and data modalities. We also show the rule's validity where the model EMA contributes to the optimization of the target model, enabling us to train EMA-based pseudo-labeling and SSL methods at small and large batch sizes. For SSL, we enable training of BYOL up to batch size 24,576 without sacrificing performance, a 6× wall-clock time reduction under idealized hardware settings.

Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Builds on 50 of its 76 references that are in the map. First posted on arXiv 25 Jul 2023.

Builds on

50 of 76 references.

References · 50

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  6. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
  7. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  8. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  9. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  10. 2020Scaling Laws for Neural Language Modelscited by 6,411
  11. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  12. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
38 more
  1. 2015Continuous control with deep reinforcement learningcited by 3,279
  2. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
  3. 2020FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidencecited by 2,080
  4. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  5. 2016Identity Mappings in Deep Residual Networkscited by 1,960
  6. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,610
  7. 2018Group Normalizationcited by 1,514
  8. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  9. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
  10. 2020Big Self-Supervised Models are Strong Semi-Supervised Learnerscited by 1,375
  11. 2019SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognitioncited by 1,355
  12. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
  13. 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
  14. 2018Self-Attention with Relative Position Representationscited by 1,112
  15. 2022data2vec: A General Framework for Self-supervised Learning in Speech, Vision and Languagecited by 718
  16. 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 671
  17. 2017Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning resultscited by 470
  18. 2021High-Performance Large-Scale Image Recognition Without Normalizationcited by 359
  19. 2017Snapshot Ensembles: Train 1, get M for freecited by 349
  20. 2017Don't Decay the Learning Rate, Increase the Batch Sizecited by 313
  21. 2017Three Factors Influencing Minima in SGDcited by 270
  22. 2014One weird trick for parallelizing convolutional neural networkscited by 264
  23. 2021Understanding self-supervised Learning Dynamics without Contrastive Pairscited by 254
  24. 2019Revisiting Self-Training for Neural Sequence Generationcited by 154
  25. 2018Stochastic Modified Equations and Dynamics of Stochastic Gradient Algorithms I: Mathematical Foundationscited by 109
  26. 2022Efficient Self-supervised Learning with Contextualized Target Representations for Vision, Speech and Languagecited by 108
  27. 2022On the SDEs and Scaling Rules for Adaptive Gradient Algorithmscited by 100
  28. 2020BYOL works even without batch statisticscited by 95
  29. 2020Iterative Pseudo-Labeling for Speech Recognitioncited by 81
  30. 2021On the Validity of Modeling SGD with Stochastic Differential Equations (SDEs)cited by 73
  31. 2020SlimIPL: Language-Model-Free Iterative Pseudo-Labelingcited by 54
  32. 2021CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddingscited by 47
  33. 2022BYOL for Audio: Exploring Pre-trained General-purpose Audio Representationscited by 36
  34. 2021Kaizen: Continuously improving teacher using Exponential Moving Average for semi-supervised speech recognitioncited by 21
  35. 2023The Edge of Orthogonality: A Simple View of What Makes BYOL Tickcited by 15
  36. 2022Continuous Pseudo-Labeling from the Startcited by 11
  37. 2022Where Should I Spend My FLOPS? Efficiency Evaluations of Visual Pre-training Methodscited by 8
  38. 2022Continuous Soft Pseudo-Labeling in ASRcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 7; 2025: 6; 2026: 6.

22 papers.

Sort:

By area:

  1. 2023Nash Learning from Human Feedbackcited by 220
  2. 2024On Scaling Up 3D Gaussian Splatting Trainingcited by 49
  3. 2024How to set AdamW's weight decay as you scale model and dataset sizecited by 42
  4. 2025Small Batch Size Training for Language Models: When Vanilla SGD Works, and Why Gradient Accumulation Is Wastefulcited by 36
  5. 2025Straight to Zero: Why Linearly Decaying the Learning Rate to Zero Works Best for LLMscited by 34
  6. 2024D2O: Dynamic Discriminative Operations for Efficient Long-Context Inference of Large Language Modelscited by 30
  7. 2023Butterfly Effects of SGD Noise: Error Amplification in Behavior Cloning and Autoregressioncited by 14
  8. 2024Greedy-DiM: Greedy Algorithms for Unreasonably Effective Face Morphscited by 10
  9. 2024Efficient Federated Learning against Heterogeneous and Non-stationary Client Unavailabilitycited by 9
  10. 2025Training Dynamics of the Cooldown Stage in Warmup-Stable-Decay Learning Rate Schedulercited by 9
  11. 2024BOSC: A Backdoor-based Framework for Open Set Synthetic Image Attributioncited by 6
  12. 2026EMA Policy Gradient: Taming Reinforcement Learning for LLMs with EMA Anchor and Top-k KLcited by 4
10 more
  1. 2024The Impact of Print-Scanning in Heterogeneous Morph Evaluation Scenarioscited by 2
  2. 2025EMA Without the Lag: Bias-Corrected Iterate Averaging Schemescited by 2
  3. 2023Bootstrap Your Own Variancecited by 1
  4. 2025Understanding SGD with Exponential Moving Average: A Case Study in Linear Regressioncited by 1
  5. 2025PADAM: Parallel averaged Adam reduces the error for stochastic optimization in scientific machine learningcited by 1
  6. 2026Amortized Maximum Inner Product Search with Learned Support Functionscited by 1
  7. 2026Training for the Model You Return: Improving Optimization for Iterate-Averaged Language Modelscited by 1
  8. 2026A Unified Generalization Framework for Model Merging: Trade-offs, Non-Linearity, and Scaling Lawscited by 0
  9. 2026One Symptom, Three Levers: A Critical Review of On-Policy Self-Distillationcited by 0
  10. 2026Look Where It Counts: A Free, Label-Free Visual Evidence Signal for Fine-Grained Vision-Language Reasoningcited by 0