SWARM Parallelism: Training Large Models Can Be Surprisingly Communication-Efficient
Max Ryabinin, Tim Dettmers, Michael Diskin, Alexander Borzunov

TL;DR
This paper introduces SWARM parallelism, a communication-efficient model-parallel training method tailored for unreliable and heterogeneous devices, enabling large model training with minimal network bandwidth.
Contribution
The paper proposes SWARM parallelism, a novel training algorithm optimized for poorly connected, heterogeneous, and unreliable hardware environments, and demonstrates its effectiveness in large-scale language model training.
Findings
SWARM reduces communication overhead significantly.
Training a 1B-parameter Transformer on limited bandwidth hardware.
SWARM outperforms existing parallelism methods in unreliable settings.
Abstract
Many deep learning applications benefit from using large models with billions of parameters. Training these models is notoriously expensive due to the need for specialized HPC clusters. In this work, we consider alternative setups for training large models: using cheap "preemptible" instances or pooling existing resources from multiple regions. We analyze the performance of existing model-parallel algorithms in these conditions and find configurations where training larger models becomes less communication-intensive. Based on these findings, we propose SWARM parallelism, a model-parallel training algorithm designed for poorly connected, heterogeneous and unreliable devices. SWARM creates temporary randomized pipelines between nodes that are rebalanced in case of failure. We empirically validate our findings and compare SWARM parallelism with existing large-scale training approaches.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsAdvanced Neural Network Applications · Topic Modeling · Ferroelectric and Negative Capacitance Devices
MethodsAttention Is All You Need · Linear Layer · Byte Pair Encoding · Adam · Layer Normalization · Label Smoothing · Multi-Head Attention · Dense Connections · Residual Connection · Position-Wise Feed-Forward Layer
