Skip to main content
QUICK REVIEW

[Paper Review] Asynchronous Parallel Stochastic Gradient Descent - A Numeric Core for Scalable Distributed Machine Learning Algorithms

Janis Keuper, Franz‐Josef Pfreundt|arXiv (Cornell University)|May 19, 2015
Stochastic Gradient Optimization TechniquesComputer Science14 references8 citations
TL;DR

This paper proposes Asynchronous Parallel Stochastic Gradient Descent (ASGD), a lock-free, communication-optimized algorithm for scalable distributed machine learning. By leveraging asynchronous single-sided communication via GASPI and mini-batch updates, ASGD achieves faster convergence and superior scalability over MapReduce-based and synchronous methods, outperforming SimuParallelSGD and BATCH in both speed and stability on large-scale K-Means clustering workloads with 1TB of data.

ABSTRACT

The implementation of a vast majority of machine learning (ML) algorithms boils down to solving a numerical optimization problem. In this context, Stochastic Gradient Descent (SGD) methods have long proven to provide good results, both in terms of convergence and accuracy. Recently, several parallelization approaches have been proposed in order to scale SGD to solve very large ML problems. At their core, most of these approaches are following a map-reduce scheme. This paper presents a novel parallel updating algorithm for SGD, which utilizes the asynchronous single-sided communication paradigm. Compared to existing methods, Asynchronous Parallel Stochastic Gradient Descent (ASGD) provides faster (or at least equal) convergence, close to linear scaling and stable accuracy.

Motivation & Objective

  • To address the scalability limitations of traditional MapReduce-based and synchronous SGD parallelization in distributed memory systems.
  • To enable fast, stable convergence in large-scale machine learning by eliminating communication bottlenecks and locking mechanisms.
  • To design a lock-free, asynchronous communication scheme suitable for distributed memory clusters with high communication latency.
  • To evaluate the impact of asynchronous communication and mini-batch updates on convergence speed and optimization stability.
  • To demonstrate linear scalability and superior performance on real-world, large-scale datasets such as 1TB of synthetic training data.

Proposed method

  • The method employs an asynchronous single-sided communication model based on the GASPI programming framework to eliminate locking and reduce communication overhead.
  • It uses a mini-batch update strategy, where gradients are accumulated over small batches (b=500) before updating the global model, improving convergence robustness.
  • The algorithm avoids synchronization points by allowing independent, non-blocking updates to shared model parameters across distributed nodes.
  • A Parzen-window function selects 'good' messages for local updates, ensuring only relevant gradient contributions are applied.
  • The system supports both early convergence with minimal communication and final aggregation via a MapReduce-like reduce step for full accuracy.
  • Communication frequency is controlled via the batch size b, with optimal performance achieved when bandwidth is not saturated.

Experimental results

Research questions

  • RQ1Can asynchronous, single-sided communication significantly improve the convergence speed and scalability of distributed SGD compared to synchronous and MapReduce-based approaches?
  • RQ2How does the integration of mini-batch updates affect the stability and accuracy of asynchronous SGD in distributed environments?
  • RQ3To what extent does the absence of locking mechanisms impact convergence and optimization error in large-scale machine learning workloads?
  • RQ4What is the optimal communication frequency (controlled by batch size b) for balancing convergence speed and communication overhead?
  • RQ5Does the proposed ASGD method maintain or improve accuracy compared to baseline SGD and SimuParallelSGD, especially under early termination?

Key findings

  • ASGD achieves faster convergence than SimuParallelSGD and MapReduce-based BATCH, with a speedup of orders of magnitude on 1TB of synthetic data.
  • The algorithm demonstrates better than linear scalability on 1024 CPUs, outperforming communication-heavy and synchronized methods.
  • ASGD maintains stable optimization error with lower variance in K-Means results compared to SGD, indicating improved robustness.
  • When communication bandwidth is exceeded, ASGD’s overhead increases to over 30%, highlighting the importance of tuning batch size b to hardware limits.
  • Disabling asynchronous communication (silent mode) significantly degrades early convergence, proving that asynchronous communication is the key driver of performance.
  • Final aggregation via a reduce step improves accuracy slightly, but the asynchronous method alone achieves competitive results with much lower latency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.