Abstract
Distributed Deep Learning (DDL) training typically relies on a Parameter Server (PS) architecture for model synchronization. However, static resource allocation in traditional PS setups leads to significant CPU underutilization due to the bursty nature of gradient aggregation. We introduce AutoPS, an elastic framework that decouples model aggregation from training jobs, transforming it into a shared, cluster-wide service. Our evaluation demonstrates that AutoPS can reduce CPU consumption by up to 75% with negligible impact on training throughput.
Introduction: The Inefficiency of Static Allocation
In distributed deep learning, the Parameter Server architecture is the standard for synchronizing weights across multiple workers. Traditionally, these servers are statically provisioned for the duration of a training job. This approach is fundamentally inefficient because DDL training is inherently bursty. A parameter server spends the vast majority of its time idle, waiting for workers to complete computationally intensive forward and backward passes. It only becomes active during brief windows to aggregate gradients layer-by-layer.
As shown in the figure above, CPU utilization across popular models like AlexNet, VGG19, and BERT often hovers between 20% and 40%. In large-scale cloud environments, where resources are rented in fixed VM or container sizes, this "rented-but-unused" capacity represents a significant financial waste; a single cloud CPU core can cost approximately $900/year, making this a multi-million dollar problem for large clusters.
The AutoPS Framework
To address this, we propose Parameter Service (AutoPS). The core innovation is moving away from a "one PS per job" model toward a shared, elastic "Aggregator" pool.
Key Design Principles
- Decoupled Aggregation: By treating model updates as a shared service, AutoPS can pack updates from multiple independent jobs onto the same physical CPU cores, filling the idle gaps in one job's cycle with the active bursts of another.
- Cyclic Scheduling: Leveraging the predictable, iterative nature of DDL training, AutoPS uses a heuristic to interleave bursty updates into available slots.
- Tensor-Level Management: While neural network layers have computational dependencies, their aggregations are independent. AutoPS manages resources at the "tensor level," allowing individual parts of a model to be migrated across the cluster dynamically to balance load without interrupting the entire training job.
- Transparent Integration: The system operates as an agent between the deep learning framework (e.g., MXNet) and the hardware, requiring no changes to the model code.
Evaluation and Results
We evaluated AutoPS using a variety of models (AlexNet, VGG19, AWD-LM, BERT) on standard benchmarks like ImageNet and WikiText-2. Additionally, we performed large-scale simulations using a 10-week job trace from a 2000-GPU cluster at Microsoft to verify performance in production-like environments.
Resource Efficiency and Performance
AutoPS achieved a reduction in CPU consumption by up to 75% in testbed experiments. In the large-scale Microsoft trace simulation, the system delivered an overall 52.7% cost reduction. Crucially, this efficiency did not come at the cost of performance; training speeds remained nearly identical to traditional PS baselines. In scenarios with high network interference, AutoPS actually improved training speed by up to 14.3x by dynamically migrating tasks away from congested nodes.
Migration Overhead
A key concern for dynamic systems is the overhead of moving data. AutoPS hides tensor migration time by performing transfers while workers are busy with computation. Experiments showed that migrating all tensors in a model takes between 13ms and 44ms, which is negligible compared to the seconds-long duration of a typical training iteration.
Conclusion and Future Work
AutoPS demonstrates that decoupling model aggregation from training jobs can significantly improve resource efficiency in DDL clusters. Future work will focus on enhancing multi-tenancy isolation to prevent "noisy neighbor" effects and extending official support to other major frameworks like PyTorch and TensorFlow.
Summary updated