Consistent Bounded-Asynchronous Parameter Servers for Distributed ML

Jinliang Wei, Wei Dai, Abhimanu Kumar, Xun Zheng, Qirong Ho, Eric P. Xing

Abstract

In distributed ML applications, shared parameters are usually replicated among computing nodes to minimize network overhead. Therefore, proper consistency model must be carefully chosen to ensure algorithm's correctness and provide high throughput. Existing consistency models used in general-purpose databases and modern distributed ML systems are either too loose to guarantee correctness of the ML algorithms or too strict and thus fail to fully exploit the computing power of the underlying distributed system. Many ML algorithms fall into the category of iterative convergent algorithms which start from a randomly chosen initial point and converge to optima by repeating iteratively a set of procedures. We've found that many such algorithms are to a bounded amount of inconsistency and still converge correctly. This property allows distributed ML to relax strict consistency models to improve system performance while theoretically guarantees algorithmic correctness. In this paper, we present several relaxed consistency models for asynchronous parallel computation and theoretically prove their algorithmic correctness. The proposed consistency models are implemented in a distributed parameter server and evaluated in the context of a popular ML application: topic modeling.

Introduction

Distributed machine learning (ML) relies on a "Parameter Server" architecture where model parameters are replicated across multiple computing nodes. The central challenge is maintaining consistency—ensuring nodes operate on a sufficiently similar version of the model without incurring crippling synchronization overhead.

Traditional systems often oscillate between two extremes:

  1. Bulk Synchronous Parallel (BSP): High mathematical safety but low performance due to "stragglers" (slow nodes that block the entire cluster).
  2. Totally Asynchronous: High speed but lacks theoretical convergence guarantees.

This paper proposes a middle ground: bounded-asynchronous models that exploit the inherent robustness of iterative ML algorithms to noise, allowing for improved throughput while maintaining mathematical correctness.

Proposed Consistency Models

The authors introduce three models that bridge the gap between synchronous and asynchronous execution:

  • Clock-bounded Asynchronous Parallel (CAP): An evolution of Stale Synchronous Parallel (SSP), ensuring no worker exceeds a predefined "clock" (iteration) distance from the slowest worker.
  • Value-bounded Asynchronous Parallel (VAP): This model tracks the magnitude of parameter updates. A worker is permitted to continue as long as its local, unsynchronized changes do not exceed a threshold ($v_{thr}$).
  • Clock-Value-bounded Asynchronous Parallel (CVAP): A hybrid approach combining both temporal and value-based constraints.
Worker 1 update acknowledgment process illustrating how blocking occurs when bounds are reached.

As shown in the figure above, a worker may be blocked (e.g., at update 6) until previous updates (like update 4) are acknowledged and synchronized across the cluster, ensuring the "staleness" remains within defined bounds.

System Architecture

The proposed models are implemented in Petuum PS, a distributed parameter server designed for high-performance ML. To minimize network traffic, the system employs a hierarchical caching strategy.

Hierarchical system architecture of the Petuum parameter server showing thread-level and process-level caches.

The architecture consists of multiple client processes, each containing several client threads. Each thread maintains a local cache, which aggregates into a process-level cache before communicating with the global servers. This structure ensures that most parameter accesses are serviced locally, significantly reducing the frequency of network-bound synchronization.

Evaluation and Results

The system was evaluated using the 20News dataset (11,000 documents, 1.3 million tokens) for Latent Dirichlet Allocation (LDA) topic modeling.

Key findings include:

  • Convergence Proof: The authors provide a theoretical proof that distributed SGD under the VAP model converges at a rate of $O(1/\sqrt{T})$, matching the standard rate for non-distributed SGD.
  • Scalability: Experiments on an 8-node cluster demonstrated near-linear scalability. By relaxing consistency through VAP, the system avoids the bottlenecks associated with strict synchronization.
  • Efficiency: The hierarchical cache effectively reduces network overhead, allowing the system to fully utilize the available compute resources.

Conclusion and Future Work

By formalizing bounded asynchrony through time and value thresholds, this work provides a robust framework for high-performance distributed ML. While the current evaluation is limited to moderate cluster sizes and convex optimization, the results suggest that these models are highly effective for iterative convergent algorithms. Future research could explore automated tuning for the $s$ and $v_{thr}$ hyperparameters and extend the theoretical proofs to non-convex optimization problems common in deep learning.

Summary updated

BibTeX
@misc{wei2013consistent,
  author = {Jinliang Wei and Wei Dai and Abhimanu Kumar and Xun Zheng and Qirong Ho and Eric P. Xing},
  title = {{Consistent Bounded-Asynchronous Parameter Servers for Distributed ML}},
  year = {2013},
  eprint = {1312.7869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1312.7869},
}
Figure