Skip to main content
QUICK REVIEW

[Paper Review] HeterPS: Distributed Deep Learning With Reinforcement Learning Based Scheduling in Heterogeneous Environments

Ji Liu, Zhihua Wu|arXiv (Cornell University)|Nov 20, 2021
Advanced Neural Network ApplicationsComputer Science45 references6 citations
TL;DR

HeterPS is a distributed deep learning framework that uses reinforcement learning (RL)-based scheduling to optimize training of large-scale DNNs across heterogeneous computing resources (CPUs, GPUs). By dynamically assigning layers to appropriate hardware and managing data and provisioning, HeterPS achieves 14.5× higher throughput and 312.3% lower monetary cost than state-of-the-art methods.

ABSTRACT

Deep neural networks (DNNs) exploit many layers and a large number of parameters to achieve excellent performance. The training process of DNN models generally handles large-scale input data with many sparse features, which incurs high Input/Output (IO) cost, while some layers are compute-intensive. The training process generally exploits distributed computing resources to reduce training time. In addition, heterogeneous computing resources, e.g., CPUs, GPUs of multiple types, are available for the distributed training process. Thus, the scheduling of multiple layers to diverse computing resources is critical for the training process. To efficiently train a DNN model using the heterogeneous computing resources, we propose a distributed framework, i.e., Paddle-Heterogeneous Parameter Server (Paddle-HeterPS), composed of a distributed architecture and a Reinforcement Learning (RL)-based scheduling method. The advantages of Paddle-HeterPS are three-fold compared with existing frameworks. First, Paddle-HeterPS enables efficient training process of diverse workloads with heterogeneous computing resources. Second, Paddle-HeterPS exploits an RL-based method to efficiently schedule the workload of each layer to appropriate computing resources to minimize the cost while satisfying throughput constraints. Third, Paddle-HeterPS manages data storage and data communication among distributed computing resources. We carry out extensive experiments to show that Paddle-HeterPS significantly outperforms state-of-the-art approaches in terms of throughput (14.5 times higher) and monetary cost (312.3% smaller). The codes of the framework are publicly available at: https://github.com/PaddlePaddle/Paddle.

Motivation & Objective

  • To address the challenge of efficiently training large-scale deep neural networks (DNNs) in heterogeneous computing environments with diverse CPU and GPU resources.
  • To minimize training cost while satisfying strict throughput constraints in distributed DNN training.
  • To design a scalable, elastic framework that intelligently schedules DNN layers across heterogeneous resources using reinforcement learning.
  • To manage data storage and communication efficiently across distributed computing nodes to reduce I/O and communication overhead.
  • To enable cost-effective, high-throughput distributed training that outperforms existing frameworks like TensorFlow.

Proposed method

  • HeterPS employs a parameter server architecture to support distributed training and data management across heterogeneous resources.
  • It uses a reinforcement learning (RL)-based scheduler to assign each DNN layer to the most suitable computing resource (CPU or GPU) based on layer characteristics and resource capabilities.
  • The RL agent is trained using an LSTM-based policy network that learns optimal scheduling decisions from profiling data and throughput constraints.
  • A provisioning module dynamically scales the number of computing resources to meet throughput requirements while minimizing cost.
  • The framework integrates data management techniques to optimize data storage and communication, reducing I/O bottlenecks in data-intensive layers.
  • The scheduling and provisioning are jointly optimized using a unified RL framework to balance performance and cost.
Figure 1: The infrastructure architecture of HeterPS. A coordinator is connected to each computing resource (worker). Each worker can be CPU-based or GPU or XPU-based. XPU represents diverse types of processors optimized for the training process of DNN models. The training data is stored in a cluste
Figure 1: The infrastructure architecture of HeterPS. A coordinator is connected to each computing resource (worker). Each worker can be CPU-based or GPU or XPU-based. XPU represents diverse types of processors optimized for the training process of DNN models. The training data is stored in a cluste

Experimental results

Research questions

  • RQ1How can DNN training be efficiently scheduled across heterogeneous computing resources (CPUs and GPUs) to minimize cost while meeting throughput constraints?
  • RQ2Can reinforcement learning outperform heuristic, greedy, or Bayesian optimization methods in scheduling DNN layers for heterogeneous environments?
  • RQ3What is the impact of dynamic resource provisioning on training cost and throughput in distributed DNN training?
  • RQ4How does the RL-based scheduler scale with increasing numbers of resource types and model complexity?
  • RQ5To what extent can HeterPS reduce monetary cost and improve throughput compared to state-of-the-art frameworks like TensorFlow?

Key findings

  • HeterPS achieves up to 14.5× higher throughput than TensorFlow when training CTRDNN models on mixed CPU-GPU clusters.
  • The framework reduces monetary cost by up to 312.3% compared to state-of-the-art scheduling methods, demonstrating significant cost efficiency.
  • The RL-based scheduler outperforms greedy, heuristic, and Bayesian optimization methods in both cost and throughput, even under tight throughput constraints.
  • The scheduling time for the RL-LSTM model is negligible—only 0.2% to 1.8% of total training time—making it practical for real-world deployment.
  • The trained RL model generalizes well across different models (MATCHNET, CTRDNN, 2EMB, NCE), with inference time under 0.002 seconds per scheduling decision.
  • The framework’s provisioning method improves resource utilization by up to 57.9% compared to baseline approaches, especially under dynamic workloads.
Figure 2: The functional architecture of HeterPS.
Figure 2: The functional architecture of HeterPS.

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.