Parameter Database : Data-centric Synchronization for Scalable Machine Learning

Naman Goel, Divyakant Agrawal, Sanjay Chawla, Ahmed K. ElmagarmidarXiv 2015

Abstract

Distributed machine learning often suffers from synchronization bottlenecks. This paper presents a "Parameter Database" approach that utilizes data-centric synchronization to replace global barriers with fine-grained constraints. By enforcing specific read and write rules at the parameter level, the system achieves 50% to 80% speedups over traditional Bulk Synchronous Parallel (BSP) methods while maintaining functional equivalence to sequential execution.

Introduction

The scalability of distributed machine learning is frequently limited by the Bulk Synchronous Parallel (BSP) paradigm. In BSP, every worker must wait at a global barrier for the slowest participant—the "straggler"—before proceeding to the next iteration. While asynchronous models mitigate this by removing barriers, they often introduce mathematical instability due to the use of stale data. This research proposes a middle ground: Data-centric Synchronization. By treating model parameters as transactional entries in a database, synchronization is decoupled from the iteration cycle, allowing workers to proceed as soon as their specific data dependencies are met.

Methodology: Data-centric Synchronization

The core of the proposed system is the Parameter Database protocol, which enforces two primary constraints:

  1. Read Constraint (RC): A worker may read a parameter for iteration $i+1$ as soon as that specific parameter has been updated by all relevant workers for iteration $i$.
  2. Write Constraint (WC): A worker may only commit an update for iteration $i$ once all workers have finished reading the version from iteration $i-1$.

These constraints are managed via bit vectors and iteration tracking. This approach ensures that the execution history is serializable, meaning it produces results identical to a single-threaded, sequential program. Additionally, the authors introduce an Admissible Delay ($\delta$) parameter, allowing for controlled staleness to further boost performance in high-latency environments.

Experimental Results

The Parameter Database was evaluated against BSP using both synthetic and real-world datasets, focusing on Linear Regression and Stochastic Gradient Descent (SGD).

Performance Gains

The data-centric approach consistently outperformed BSP, providing speedups ranging from 50% to 80%. As shown in Figure 4, the percentage improvement remains significant across different worker counts for both SGD and MiniBatch algorithms.

Percentage improvement of the Parameter Database approach over BSP for SGD and MiniBatch algorithms across varying worker counts.

Scalability and Straggler Mitigation

A key finding is the system's superior scalability. Unlike BSP, where the cost of synchronization grows with the number of nodes, the Parameter Database's fine-grained approach allows it to maintain or even increase its performance advantage as the cluster grows.

Scaling performance on a synthetic dataset (960 features), showing increasing percentage improvement as the number of workers grows.

This scalability is partly due to natural straggler mitigation. Because synchronization is per-parameter, a slow worker only delays the specific computations that require its specific updates, rather than halting the entire system. This is particularly effective for high-dimensional, sparse datasets where parameter contention is low.

Conclusion

The Parameter Database offers a robust framework for scaling distributed machine learning without sacrificing mathematical correctness. By shifting from global iteration-based barriers to local data-centric constraints, the system significantly reduces idle time and mitigates the impact of stragglers. Future work will explore decentralized coordination to support massive clusters and deeper integration with data partitioning strategies.

Summary updated

BibTeX
@misc{goel2015parameter,
  author = {Naman Goel and Divyakant Agrawal and Sanjay Chawla and Ahmed K. Elmagarmid},
  title = {{Parameter Database : Data-centric Synchronization for Scalable Machine Learning}},
  year = {2015},
  eprint = {1508.00703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.00703},
}
Figure