Abstract
Training deep learning models at scale in shared distributed environments often suffers from resource inefficiencies. Traditional scheduling algorithms like First-Come-First-Served (FCFS) or Fair Scheduling (FS) typically ignore the diminishing marginal utility of computing resources as models approach convergence. This paper introduces RLPTO (Reinforcement Learning-based Performance-Time Optimized), a framework that leverages Proximal Policy Optimization (PPO) and time-series prediction to dynamically manage resources. By balancing model accuracy against training time, RLPTO optimizes cluster throughput and enables a user-defined tradeoff between model precision and execution speed.
Introduction
In distributed machine learning (DML) clusters, the "blind" allocation of resources often leads to significant waste. As a model begins to converge, the accuracy gains per unit of GPU/CPU time decrease sharply. Existing schedulers fail to account for these diminishing returns or effectively predict future workloads to right-size the cluster. RLPTO addresses these challenges by creating a system capable of preemptively reclaiming resources from converging models to jumpstart high-priority tasks without compromising overall system performance.
System Architecture
The RLPTO framework is designed as a holistic system comprising data management, task handling, and resource allocation modules.
As shown in Figure 1, the architecture integrates several key components:
- LSP (Long- and Short-period Prediction): This module combines ARIMA (for long-term trends) and GRU (for volatile, short-term shifts) to predict task volume, allowing the system to power nodes on or off proactively.
- Task Manager: Implements multi-priority queues (Normal, Urgent, and Interrupt). It supports preemptive scheduling, where high-priority tasks can immediately displace lower-priority ones to the Interrupt queue.
- Distributed Learning Cluster: The environment where training occurs, managed by the RL-based scheduler.
The RLPTO Scheduling Mechanism
The core of the framework is the Reinforcement Learning-based scheduler. Using the Proximal Policy Optimization (PPO) algorithm, the system treats resource allocation as a dynamic optimization problem.
RL Agent Design
- State Space: The agent monitors current loss, maximum historical loss, model accuracy, and real-time resource utilization.
- Action Space: The agent can incrementally increase or decrease the number of computing nodes (Workers) assigned to a specific task.
- Reward Function: A specialized formula rewards accuracy gains while penalizing excessive training time and resource consumption.
A critical component of this reward function is the $\beta$ parameter, a threshold defining the minimum accuracy improvement required to justify the cost of additional resources. This allows administrators to tune the system for either maximum precision (low $eta$) or maximum speed (high $eta$).
Experimental Evaluation
The researchers evaluated RLPTO using real-world internet traffic data for workload prediction and various image datasets (40,000 to 120,000 images) for training CNN and ResNet models.
Key Results
- Prediction Accuracy: The hybrid ARIMA-GRU model achieved a 97.1% accuracy rate in predicting cluster workload, significantly improving energy management.
- System Throughput: RLPTO consistently outperformed baselines such as SLAQ, Dolphin, and TRADL in terms of total system utility.
- Efficiency: With $\beta=0.0001$, RLPTO achieved higher accuracy than the SLAQ algorithm while maintaining shorter overall training times. On large-scale datasets, RLPTO's intelligent prioritization led to significantly faster completion times compared to Fair Scheduling.
- Scalability: Tests on clusters ranging from 8 to 16 nodes demonstrated that RLPTO effectively reduces the per-node task load, preventing performance degradation as the cluster grows.
Conclusion and Future Work
RLPTO provides a robust solution for the inefficiencies of distributed ML scheduling by dynamically reclaiming resources from converging models. While the current implementation focuses on computing nodes, future work will address action granularity in massive clusters and integrate data-locality awareness to further optimize scheduling efficiency.
Summary updated