Automatic Cross-Replica Sharding of Weight Update in Data-Parallel Training
Not on the map. Why?
Abstract (arXiv)
In data-parallel synchronous training of deep neural networks, different devices (replicas) run the same program with different partitions of the training batch, but weight update computation is repeated on all replicas, because the weights do not have a batch dimension to partition. This can be a bottleneck for performance and scalability in typical language models with large weights, and models with small per-replica batch size which is typical in large-scale training. This paper presents an approach to automatically shard the weight update computation across replicas with efficient communication primitives and data formatting, using static analysis and transformations on the training computation graph. We show this technique achieves substantial speedups on typical image and language models on Cloud TPUs, requiring no change to model code. This technique helps close the gap between traditionally expensive (ADAM) and cheap (SGD) optimizers, as they will only take a small part of training step time and have similar peak memory usage. It helped us to achieve state-of-the-art training performance in Google's MLPerf 0.6 submission.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). First posted on arXiv 28 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2020: 1; 2021: 6; 2022: 8; 2023: 3; 2024: 7; 2025: 4; 2026: 1.
30 papers.
Sort:
By area:
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
- 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2021Efficient Large Scale Language Modeling with Mixtures of Expertscited by 175
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 125
- 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 109
- 2021BigSSL: Exploring the Frontier of Large-Scale Semi-Supervised Learning for Automatic Speech Recognitioncited by 88
- 2022Vision Models Are More Robust And Fair When Pretrained On Uncurated Images Without Supervisioncited by 80
- 2025FourCastNet 3: A geometric approach to probabilistic machine-learning weather forecasting at scalecited by 56
- 2022Galvatron: Efficient Transformer Training over Multiple GPUs Using Automatic Parallelismcited by 51
- 2022On the Factory Floor: ML Engineering for Industrial-Scale Ads Recommendation Modelscited by 34
18 more
- 2022On the Generalization Mystery in Deep Learningcited by 25
- 2022Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learningcited by 20
- 2023CommonCanvas: An Open Diffusion Model Trained with Creative-Commons Imagescited by 15
- 2023Improving Automatic Parallel Training via Balanced Memory Workload Optimizationcited by 13
- 2025Outlier-Safe Pre-Training for Robust 4-Bit Quantization of Large Language Modelscited by 13
- 2024Training and Serving System of Foundation Models: A Comprehensive Surveycited by 11
- 2024PartIR: Composing SPMD Partitioning Strategies for Machine Learningcited by 10
- 2024Hardware Phi-1.5B: A Large Language Model Encodes Hardware Domain Specific Knowledgecited by 10
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Trainingcited by 7
- 2021End-to-end Adaptive Distributed Training on PaddlePaddlecited by 5
- 2022CowClip: Reducing CTR Prediction Model Training Time from 12 hours to 10 minutes on 1 GPUcited by 4
- 2021An Oracle for Guiding Large-Scale Model/Hybrid Parallel Training of Convolutional Neural Networkscited by 2
- 2022Automatic Discovery of Composite SPMD Partitioning Strategies in PartIRcited by 2
- 2025Two-dimensional Sparse Parallelism for Large Scale Deep Learning Recommendation Model Trainingcited by 2
- 2025Partial Parameter Updates for Efficient Distributed Trainingcited by 1
- 2024PaSE: Parallelization Strategies for Efficient DNN Trainingcited by 0
- 2024Secure Multiparty Generative AIcited by 0
- 2026Raising Bars, Not Parameters: LilMoo Compact Language Model for Hindicited by 0
- 2026Raising Bars, Not Parameters: LilMoo Compact Language Model for Hindi3 Mar 2026
- 2025Partial Parameter Updates for Efficient Distributed Training26 Sep 2025
- 2025Two-dimensional Sparse Parallelism for Large Scale Deep Learning Recommendation Model Training5 Aug 2025
- 2025FourCastNet 3: A geometric approach to probabilistic machine-learning weather forecasting at scale16 Jul 2025
- 2025Outlier-Safe Pre-Training for Robust 4-Bit Quantization of Large Language Models24 Jun 2025
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Training20 Nov 2024
- 2024Secure Multiparty Generative AI27 Sep 2024
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Survey9 Jul 2024
- 2024PaSE: Parallelization Strategies for Efficient DNN Training4 Jul 2024
- 2024Hardware Phi-1.5B: A Large Language Model Encodes Hardware Domain Specific Knowledge27 Jan 2024
- 2024PartIR: Composing SPMD Partitioning Strategies for Machine Learning20 Jan 2024
- 2024Training and Serving System of Foundation Models: A Comprehensive Survey5 Jan 2024
18 more
- 2023CommonCanvas: An Open Diffusion Model Trained with Creative-Commons Images25 Oct 2023
- 2023Improving Automatic Parallel Training via Balanced Memory Workload Optimization5 Jul 2023
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel21 Apr 2023
- 2022Galvatron: Efficient Transformer Training over Multiple GPUs Using Automatic Parallelism25 Nov 2022
- 2022Automatic Discovery of Composite SPMD Partitioning Strategies in PartIR7 Oct 2022
- 2022On the Factory Floor: ML Engineering for Industrial-Scale Ads Recommendation Models12 Sep 2022
- 2022CoCa: Contrastive Captioners are Image-Text Foundation Models4 May 2022
- 2022CowClip: Reducing CTR Prediction Model Training Time from 12 hours to 10 minutes on 1 GPU13 Apr 2022
- 2022On the Generalization Mystery in Deep Learning18 Mar 2022
- 2022Vision Models Are More Robust And Fair When Pretrained On Uncurated Images Without Supervision16 Feb 2022
- 2022Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learning28 Jan 2022
- 2021Efficient Large Scale Language Modeling with Mixtures of Experts20 Dec 2021
- 2021End-to-end Adaptive Distributed Training on PaddlePaddle6 Dec 2021
- 2021BigSSL: Exploring the Frontier of Large-Scale Semi-Supervised Learning for Automatic Speech Recognition27 Sep 2021
- 2021GSPMD: General and Scalable Parallelization for ML Computation Graphs10 May 2021
- 2021An Oracle for Guiding Large-Scale Model/Hybrid Parallel Training of Convolutional Neural Networks19 Apr 2021
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM9 Apr 2021
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding30 Jun 2020
- 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,265
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 125
- 2021GSPMD: General and Scalable Parallelization for ML Computation Graphscited by 109
- 2021BigSSL: Exploring the Frontier of Large-Scale Semi-Supervised Learning for Automatic Speech Recognitioncited by 88
- 2022Vision Models Are More Robust And Fair When Pretrained On Uncurated Images Without Supervisioncited by 80
- 2025FourCastNet 3: A geometric approach to probabilistic machine-learning weather forecasting at scalecited by 56
- 2022Galvatron: Efficient Transformer Training over Multiple GPUs Using Automatic Parallelismcited by 51
- 2022On the Factory Floor: ML Engineering for Industrial-Scale Ads Recommendation Modelscited by 34
- 2022On the Generalization Mystery in Deep Learningcited by 25
- 2022Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learningcited by 20
12 most cited of 27 All 27 (JSON)
- 2026Raising Bars, Not Parameters: LilMoo Compact Language Model for Hindi3 Mar 2026
- 2025Partial Parameter Updates for Efficient Distributed Training26 Sep 2025
- 2025Two-dimensional Sparse Parallelism for Large Scale Deep Learning Recommendation Model Training5 Aug 2025
- 2025FourCastNet 3: A geometric approach to probabilistic machine-learning weather forecasting at scale16 Jul 2025
- 2025Outlier-Safe Pre-Training for Robust 4-Bit Quantization of Large Language Models24 Jun 2025
- 2024Hardware Scaling Trends and Diminishing Returns in Large-Scale Distributed Training20 Nov 2024
- 2024Secure Multiparty Generative AI27 Sep 2024
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Survey9 Jul 2024
- 2024PaSE: Parallelization Strategies for Efficient DNN Training4 Jul 2024
- 2024Hardware Phi-1.5B: A Large Language Model Encodes Hardware Domain Specific Knowledge27 Jan 2024
- 2024PartIR: Composing SPMD Partitioning Strategies for Machine Learning20 Jan 2024
- 2024Training and Serving System of Foundation Models: A Comprehensive Survey5 Jan 2024
12 newest of 27 All 27 (JSON)