NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Large Scale Distributed Deep Networks

Jeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Quoc V. Le, Mark Z. Mao, Marc'Aurelio Ranzato, Andrew W. Senior, Paul A. Tucker, Ke Yang, Andrew Y. NgNeurIPS 2012

TL;DR

This paper introduces DistBelief, a framework for training massive deep neural networks across thousands of CPUs. They developed two novel distributed training algorithms, Downpour SGD and Sandblaster L-BFGS, which enable training models with billions of parameters and achieve state-of-the-art results on ImageNet and significantly speed up speech recognition tasks.

What Problem Does This Paper Address?

The paper tackles the challenge of training increasingly large and complex deep neural networks. While GPUs have accelerated training for moderately sized models, they hit a memory bottleneck when models or datasets become too large. This limits the potential for further accuracy gains that often come with increased model scale. The authors aim to overcome this by enabling distributed training on massive clusters of CPUs, allowing for models with billions of parameters that wouldn't fit on a single machine or GPU.

Methods

The core contribution is the DistBelief software framework, designed for distributed computation in neural networks and graphical models. DistBelief supports two main types of parallelism:

  • Model Parallelism: The neural network itself is partitioned across multiple machines. Each machine handles a subset of the network's nodes, and the framework manages communication and synchronization for nodes that have edges crossing partition boundaries.
  • Data Parallelism (via Replicas): Multiple copies (replicas) of the entire model are used to process different subsets of the training data simultaneously, allowing for faster optimization.

Within DistBelief, two novel distributed optimization algorithms are introduced:

  • Downpour SGD: An asynchronous stochastic gradient descent (SGD) approach. Multiple model replicas independently fetch parameters from a central parameter server, compute gradients on their data subsets, and push updates back. This asynchronous nature makes it robust to machine failures and allows for efficient use of resources. It leverages adaptive learning rates (Adagrad) for stability.
  • Sandblaster L-BFGS: A distributed implementation of the L-BFGS batch optimization algorithm. It uses a coordinator to manage operations across parameter server shards, allowing for large models without sending all parameters to a central server. It also incorporates load balancing and "backup tasks" to handle straggler machines.

Datasets

  • ImageNet: A large-scale dataset for visual object recognition, containing 16 million images across 21,000 categories. The authors trained a network on this dataset.
  • Speech Recognition Data: A dataset of 1.1 billion weakly labeled examples for acoustic processing.

Key Insights and Ideas

  • Asynchronous SGD works for nonconvex problems: Surprisingly, asynchronous SGD, which is typically avoided for nonconvex problems like deep learning, performs very well when combined with adaptive learning rates (Adagrad). This challenges conventional wisdom.
  • L-BFGS can be competitive: The Sandblaster L-BFGS implementation shows that batch methods can be competitive with or even faster than SGD variants for large-scale training, especially when network bandwidth is a concern.
  • Scale matters for locally-connected models: Models with local connectivity (like those used for image recognition) benefit significantly more from distributing across many machines than fully-connected models, where communication overhead can become a bottleneck.
  • Adagrad is crucial for asynchronous SGD stability: The Adagrad adaptive learning rate procedure is key to making asynchronous SGD robust and stable for training deep networks, effectively stabilizing volatile parameters and adjusting learning rates dynamically.
  • Distributed training unlocks massive models: The primary takeaway is that distributed training on large CPU clusters allows for the creation and training of models far larger than previously possible, leading to significant performance improvements.

Key Results

  • ImageNet Performance: Trained a deep network with over 1 billion parameters on ImageNet, achieving a cross-validated accuracy of over 15%. This represents a relative improvement of over 60% compared to prior state-of-the-art on the 21k category task.
  • Speech Recognition Speedup: Accelerated the training of a modestly sized speech model (42 million parameters) to achieve the same classification accuracy in less than 1/10th the time required on a GPU.
  • Model Parallelism Speedups: Demonstrated speedups of up to 2.2x for a speech model and over 12x for a large image model (1.7 billion parameters) by distributing a single model instance across multiple machines.
  • Optimization Method Comparison: Downpour SGD with Adagrad and 200 model replicas emerged as the fastest method for reaching a target accuracy, significantly outperforming conventional SGD, Downpour SGD without Adagrad, and Sandblaster L-BFGS, especially within a computational budget of 2000 CPU cores.

Limitations and Future Work

  • Communication Overhead: While the framework manages communication, for highly connected models, communication costs can eventually dominate and limit speedups from adding more machines.
  • Resource Budget Analysis: The paper notes that while they demonstrate speedups, a more thorough analysis of resource trade-offs (cores vs. machines vs. time) is presented, suggesting that Downpour SGD with Adagrad offers the best balance for typical budgets, while Sandblaster L-BFGS shows promise for extremely large resource budgets.
  • Future Work: The paper implies that the underlying algorithms are applicable to any gradient-based machine learning algorithm, suggesting broader applicability beyond deep networks. The success on ImageNet with a 1 billion parameter model hints at the potential for even larger models and further performance gains.

Summary updated

BibTeX
@inproceedings{dean2012large,
  author = {Jeffrey Dean and Greg Corrado and Rajat Monga and Kai Chen and Matthieu Devin and Quoc V. Le and Mark Z. Mao and Marc'Aurelio Ranzato and Andrew W. Senior and Paul A. Tucker and Ke Yang and Andrew Y. Ng},
  title = {{Large Scale Distributed Deep Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
  url = {https://openreview.net/forum?id=rJWCdvbObH},
}
Figure