Abstract
More than 70% of cloud computing is paid for but sits idle. A large fraction of these idle compute are cheap CPUs with few cores that are not utilized during the less busy hours. This paper aims to enable those CPU cycles to train heavyweight AI models. Our goal is against mainstream frameworks, which focus on leveraging expensive specialized ultra-high bandwidth interconnect to address the communication bottleneck in distributed neural network training. This paper presents a distributed model-parallel training framework that enables training large neural networks on small CPU clusters with low Internet bandwidth. We build upon the adaptive sparse training framework introduced by the SLIDE algorithm. By carefully deploying sparsity over distributed nodes, we demonstrate several orders of magnitude faster model parallel training than Horovod, the main engine behind most commercial software. We show that with reduced communication, due to sparsity, we can train close to a billion parameter model on simple 4-16 core CPU nodes connected by basic low bandwidth interconnect. Moreover, the training time is at par with some of the best hardware accelerators.
Introduction
Modern deep learning is currently trapped in a "hardware arms race," where training state-of-the-art models typically necessitates expensive GPU clusters and ultra-high-bandwidth interconnects like NVLink. This infrastructure is required to handle the massive data exchange between processors during dense training. However, a significant portion of cloud resources—over 70%—remains idle, consisting primarily of commodity 4-16 core CPUs. While these CPUs have ample RAM, they lack the raw parallel processing power of GPUs and are typically connected by slow, commodity networks.
Standard distributed training frameworks, such as Horovod, fail in these environments because the communication bottleneck of sending large weight matrices across slow networks stalls the process. This paper introduces D-SLIDE (Distributed SLIDE), a framework designed to turn these wasted CPU cycles into a viable engine for training heavyweight AI models by leveraging extreme algorithmic sparsity.
Methodology: D-SLIDE Architecture
D-SLIDE builds upon the Sub-Linear Deep Learning Engine (SLIDE) to enable efficient distributed training. The core innovation lies in combining extreme sparsity with model parallelism.
The framework employs several key strategies:
- Extreme Sparsity via Locality Sensitive Hashing (LSH): Instead of dense matrix multiplications, D-SLIDE uses LSH to treat neurons as items in a hash table. For any input, it only computes activations for the tiny fraction of neurons (typically <5%) most relevant to that input.
- Model Parallelism and Sharding: The model is sharded across multiple CPU nodes, with each node owning a segment of the network's layers.
- Sparse Communication: Because only a small fraction of neurons are active, nodes only exchange sparse activations and gradients. This drastically reduces the data footprint, making low-bandwidth (1 Gbps) networks sufficient.
- Load Balancing: To ensure even computational distribution, the algorithm forces each node to select a proportional number of active neurons ($K/n$).
- Large Batch Training: Unlike memory-constrained GPUs, CPUs utilize massive system RAM, allowing D-SLIDE to exploit large batch sizes for improved stability and accuracy.
Experimental Setup
The researchers evaluated D-SLIDE on two large-scale datasets representing "heavyweight" models with hundreds of millions to billions of parameters:
- Amazon670K: An extreme classification dataset with over 670,000 distinct labels, common in product recommendation.
- Text8: A natural language processing (NLP) dataset derived from Wikipedia with a vocabulary of 253,000 words.
Results and Discussion
The primary insight of this work is that sparsity acts as the "great equalizer," solving the communication bottleneck that typically plagues distributed training on commodity hardware.
Performance Comparison
- Vs. Horovod: In low-bandwidth (1 Gbps) settings, D-SLIDE achieved speeds 66x to 80x faster than Horovod, which struggled with network congestion.
- Vs. High-End GPUs: On the Text8 dataset, D-SLIDE running on just two CPU nodes converged 4x faster than a Tesla A100 GPU and 7x faster than a V100 GPU.
- Scalability: The system demonstrated strong scaling, where doubling the number of CPU nodes significantly reduced training time, validating the effectiveness of the sparse communication strategy.
Capability
D-SLIDE successfully trained a near-billion parameter model on a cluster of simple 4-16 core CPUs, a task usually requiring multi-million dollar GPU setups. This shifts the economics of AI training toward commodity hardware by prioritizing algorithmic efficiency over hardware brute force.
Limitations and Future Work
Despite its success, D-SLIDE faces some limitations. The current reliance on MPI for communication creates "critical sections" that limit intra-node parallelization. Additionally, while highly effective for Fully Connected layers (MLPs), performance on architectures with different data patterns, such as CNNs or Transformers, requires further exploration. Finally, the current heuristic for load balancing ($K/n$ neurons per node) could be improved with more dynamic strategies for complex architectures.
Summary updated