Deep learning with COTS HPC systems

Adam Coates, Brody Huval, Tao Wang, David J. Wu, Bryan Catanzaro, Andrew Y. Ng

TL;DR

This paper demonstrates how to train massive neural networks—up to 11 billion parameters—using a small cluster of just 16 GPU servers. By leveraging commodity high-performance computing (HPC) technology like InfiniBand and custom-optimized CUDA kernels, the authors achieved 6.5x the scale of Google’s famous "DistBelief" system using only 2% as many machines.

The Challenge of Scaling Deep Learning

In the early 2010s, the "bigger is better" mantra of deep learning was already well-established. However, scaling to networks with billions of parameters was a luxury reserved for tech giants. For example, Google’s 2012 state-of-the-art system required 16,000 CPU cores across 1,000 machines to train a 1-billion-parameter model.

The primary challenge wasn't just raw compute; it was communication. While GPUs offer massive arithmetic throughput, standard Ethernet is far too slow to synchronize the massive amounts of data required for "model parallelism" (where a single model is split across multiple processors). The authors sought to prove that researchers could achieve "Google-scale" results using Commodity Off-The-Shelf (COTS) HPC hardware that is much more accessible to universities and smaller labs.

Methods and Hardware

The researchers built a cluster of 16 servers, each equipped with two quad-core CPUs, four NVIDIA GTX680 GPUs, and FDR InfiniBand. This high-speed interconnect (56 Gbps) provided the low latency and high bandwidth necessary for tight coordination between GPUs.

Key Technical Innovations

  1. Block-Sparse CUDA Kernels: Standard linear algebra libraries (BLAS) are optimized for dense matrices. Because the authors' models used "locally connected" layers (sparse connectivity), they grouped neurons into 3D blocks that share receptive fields. This allowed them to treat sparse operations as a series of smaller, highly efficient dense matrix multiplications.
  2. Model Parallelism via MPI: Instead of "data parallelism" (where every GPU has a full copy of the model), they used "model parallelism" by partitioning the network's spatial dimensions across the GPU grid.
  3. Distributed Array Abstraction: They developed a software layer atop MVAPICH2 (an MPI implementation) that automatically handles the "ghost zones" or overlapping input windows needed by neurons at the edges of a GPU's assigned partition.
Model parallelism across a multi-GPU grid, highlighting the overlapping "ghost zones" required for boundary neurons.

Datasets

  • Unlabeled Training: 10 million thumbnails harvested from YouTube videos, pre-processed into 200x200 whitened color images.
  • Evaluation:
  • Labeled Faces in the Wild (LFW): 13,152 images used to test the "face-detecting" capabilities of the neurons.
  • ImageNet: 48,000 images used as distractors for the classification benchmarks.

Key Insights

  • The Interconnect is King: The authors argue that the move from 1,000 machines to 16 isn't just about GPU speed; it's about the interconnect. InfiniBand allows for microsecond-level latency, which is essential when GPUs need to synchronize after every forward and backward pass.
  • Locally Connected > Convolutional (for this scale): Unlike standard CNNs that share weights across the whole image, these models used "untied" weights. Every single location in the image has its own unique filter, which is why the parameter count explodes to 11 billion.
  • Efficiency Scales with Size: Interestingly, the system's scaling efficiency improved as the models got larger. Small networks didn't have enough work to hide the communication overhead, but 11-billion-parameter models kept the GPUs fully saturated.

Key Results

  • Massive Scale: They successfully trained a model with 11.2 billion parameters. At the time, this was the largest neural network ever reported.
  • Hardware Efficiency: They trained a 1-billion-parameter model on just 3 machines in a few days—a task that previously required 1,000 machines.
  • Feature Discovery: The system replicated the famous "cat neuron" and "face neuron" results. Without any labels, the network learned to recognize human faces with 88% accuracy (compared to 64.7% for a random network).
Learned features from the unsupervised network, demonstrating the emergence of face, body, and cat detectors.
  • Throughput: Their custom kernels achieved nearly 1 TFLOPS on a single GPU, approaching the theoretical peak of the hardware.

Limitations and Future Work

While the 11-billion-parameter model was a feat of engineering, it actually performed slightly worse on face detection (86.5%) than the 1.8-billion-parameter model (88.2%). The authors suggest that simply scaling up the number of neurons isn't enough; new architectures or better hyperparameter tuning are needed to utilize that extra capacity.

Furthermore, implementing these systems requires deep knowledge of both GPU architecture and HPC message-passing interfaces (MPI), which remains a barrier to entry. The authors point toward packaging these engineering solutions into optimized software libraries to allow the broader community to experiment with extremely large-scale neural networks.

Summary updated

BibTeX
@inproceedings{coates2013deep,
  author = {Adam Coates and Brody Huval and Tao Wang and David J. Wu and Bryan Catanzaro and Andrew Y. Ng},
  title = {{Deep learning with COTS HPC systems}},
  booktitle = {International Conference on Machine Learning},
  year = {2013},
}
Figure