Parle: parallelizing stochastic gradient descent

Pratik Chaudhari, Carlo Baldassi, Riccardo Zecchina, Stefano Soatto, Ameet TalwalkararXiv 2017

Abstract

Training large-scale deep learning models requires efficient parallelization. However, standard approaches often face a trade-off between communication overhead and generalization performance. This paper introduces Parle, a parallel training algorithm that achieves 2–4× wall-clock speedups over standard data-parallel SGD while simultaneously improving generalization. By coupling multiple model replicas and biasing them toward "flat minima" in the loss landscape, Parle delivers state-of-the-art error rates with significantly reduced communication frequency.

Introduction: The Challenge of Parallel SGD

Parallelizing deep learning typically involves distributing data across multiple GPUs or compute nodes. Researchers face two primary hurdles:

  1. Large-batch SGD: While it reduces communication costs, it often results in a "generalization gap," where the model performs poorly on unseen data.
  2. Small-batch SGD: This approach generalizes better but requires frequent synchronization between workers, creating a communication bottleneck that limits scalability.

Simple weight averaging (one-shot averaging) is ineffective due to the permutation symmetries of neural networks. Parle addresses these issues by ensuring parallel replicas remain aligned in weight space while searching for robust, flat regions of the loss landscape.

Methodology: Combining Local Entropy and Elastic Coupling

Parle is a hybrid algorithm that integrates two key techniques: Entropy-SGD and Elastic-SGD.

Entropy-SGD

Instead of minimizing the standard loss, Entropy-SGD minimizes "local entropy." This process smooths the loss landscape, biasing the optimizer toward "flat minima"—wide valleys in the error surface. These regions are empirically known to generalize better than the sharp, narrow minima often found by standard SGD.

Elastic-SGD

Elastic-SGD is a parallelization strategy where multiple model replicas are connected to a central "master" variable via a "quadratic spring." This coupling allows replicas to explore different areas of the weight space while being pulled toward a consensus configuration.

The Parle Innovation

Parle runs Entropy-SGD on each parallel worker and couples them using the Elastic-SGD framework. A critical component is "scoping": as training progresses, the coupling "springs" tighten and the local entropy smoothing is reduced. This causes the replicas to converge into a single, highly robust configuration. Because each worker performs more local computation to find flat regions, the required communication frequency with the master server is significantly lower than in traditional distributed SGD.

Experimental Evaluation

The authors evaluated Parle across several standard computer vision benchmarks:

  • MNIST: Classic LeNet architecture.
  • CIFAR-10 & CIFAR-100: Wide Residual Networks (WRN-28-10).
  • SVHN: WRN-16-4.
  • All-CNN: Used for data-splitting experiments.

Results and Discussion

Parle consistently outperformed baseline methods in both speed and accuracy.

Training curves for LeNet on MNIST, comparing Parle with SGD, Entropy-SGD, and Elastic-SGD.

Speed and Accuracy Gains

Parle achieved a 2–4× speedup in wall-clock time compared to standard data-parallel SGD. On CIFAR-10, Parle reached a 3.24% error rate, a substantial improvement over the 4.29% baseline. Similarly, on CIFAR-100, it achieved 17.64% error compared to 18.85% for SGD.

Performance of Parle on CIFAR-10 (left) and CIFAR-100 (right) using Wide Residual Networks.

Key Insights

  • Flat Minima as a Regularizer: Targeting wide valleys in the loss landscape yields solutions that are more robust to noise and data shifts.
  • Communication Efficiency: By shifting the burden from network communication to local computation, Parle bypasses latency bottlenecks.
  • Data Efficiency: Remarkably, Parle remains effective even when each replica sees only a subset of the training data (e.g., 25%), outperforming SGD trained on the full dataset.

Conclusion and Future Work

While Parle is highly effective at reducing wall-clock training time and improving accuracy, it comes with a higher total computational cost (FLOPs) due to the maintenance of multiple replicas. Future research will explore whether the benefits of targeting flat minima extend to other domains, such as Recurrent Neural Networks (RNNs) or Reinforcement Learning, and how the algorithm scales in massive-scale distributed environments.

Summary updated

BibTeX
@misc{chaudhari2017parle,
  author = {Pratik Chaudhari and Carlo Baldassi and Riccardo Zecchina and Stefano Soatto and Ameet Talwalkar},
  title = {{Parle: parallelizing stochastic gradient descent}},
  year = {2017},
  eprint = {1707.00424},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.00424},
}
Figure