Reinforcement learning-based task scheduling for heterogeneous computing in end-edge-cloud environment

Wangbo Shen, Weiwei Lin, Wentai Wu, Haijie Wu, Keqin Li

TL;DR

Researchers have developed EECRL, a reinforcement learning-based framework designed to schedule complex tasks across the "End-Edge-Cloud" continuum. By leveraging Deep Q-Learning and a custom orchestration architecture, the system achieves a massive 278% performance boost over traditional algorithms in high-load, bursty scenarios.

What Problem Does This Paper Address?

As we move toward the Industrial Internet of Things (IIoT) and 5G, computing is no longer just "in the cloud." It’s a hierarchy: End devices (like sensors), Edge nodes (local gateways), and the Cloud.

The challenge is that this environment is incredibly messy. Hardware is "heterogeneous," meaning a single task might run on a standard CPU, an NVIDIA GPU, or a specialized Huawei Ascend NPU (Neural Processing Unit). Existing orchestrators like Kubernetes are great for single clusters but struggle with cross-cluster coordination and specialized AI hardware. Furthermore, traditional "greedy" schedulers often fail when a sudden burst of tasks arrives, leading to massive bottlenecks and idle high-performance resources.

Methods

The authors propose a two-part solution: a system architecture and a smart scheduling agent.

  1. The EECRL Framework: Built on top of Kubernetes and Rancher, this framework adds custom monitoring modules. Since standard Kubernetes doesn't natively track NPU or GPU utilization well across different clusters, the authors integrated low-level libraries (like npu-smi and nvidia-smi) to feed real-time hardware data into a central scheduler via Socket connections.
  2. The RL Scheduler: They employed a Deep Q-Network (DQN).
  3. State Space: The agent looks at node availability (cores, memory, disk, network) and the task queue (requirements and waiting times).
  4. Action Space: The agent can either assign a task to a specific node using a specific execution method (e.g., run on NPU vs. CPU) or—crucially—tell the task to wait.
  5. Reward Function: The agent is rewarded for minimizing a weighted balance of task completion time and waiting time.

Datasets

The study didn't use a static dataset but rather a real-world physical testbed and synthetic task queues:

  • Hardware Testbed: A Cloud server (Xeon CPU + Tesla T4 GPU), Edge nodes (Atlas 200 DK with Davinci NPUs), and End devices (Raspberry Pi 4B).
  • Task Types: They benchmarked three categories: AI-intensive (CNN inference on MNIST), memory-intensive (data list processing), and storage-intensive (file copying).
  • Task Queues: They evaluated two scenarios:
  • Stable-Arrival: 100 tasks arriving randomly over 1000 seconds.
  • Burst-Arrival: 1000 tasks arriving randomly over 1000 seconds (simulating a high-load "burst").

Key Insights and Ideas

  • The Power of Waiting: Unlike "First Fit" or greedy algorithms that shove a task onto the first available CPU, the RL agent learned that it is sometimes better to make a task wait a few seconds for a high-performance GPU or NPU to become free.
  • Multiplicative Latency Modeling: Estimating task runtime on different hardware is notoriously difficult. The authors discovered a "multiplicative relationship" between different versions of the same chip type. By benchmarking a task on one chip, they could accurately predict its performance on another version using a power multiple, significantly reducing the overhead of building lookup tables.
  • Overcoming Kubernetes Limitations: By using Rancher as a "manager of managers," the authors bypassed the single-cluster limitation of standard Kubernetes, allowing for true End-to-Cloud orchestration.

Key Results

  • Burst Performance: In the "Burst-Arrival" scenario, EECRL outperformed baseline algorithms (like Genetic Algorithms and Particle Swarm Optimization) by 278% in terms of average completion time.
  • Waiting Time Optimization: When specifically tuned to prioritize waiting time ($\alpha = 0.0$), the RL agent improved performance by over 243% compared to the "First Fit" (FF) greedy approach.
  • Adaptability: The RL model proved much more robust than heuristic models. While heuristics performed okay in stable conditions, they struggled to adapt when the task density increased, whereas the RL agent "learned" the optimal strategy for high-congestion states.

Limitations and Future Work

While EECRL is a significant step forward, the authors acknowledge a few areas for growth:

  • Objective Scope: The current model focuses on time (latency). Future iterations need to incorporate energy consumption and monetary cost, which are critical for edge devices running on batteries or cloud resources with varying price points.
  • Mathematical Proofs: As with many RL applications, the results are empirical. The authors note there is no formal mathematical proof for the optimal strategy in such a discrete, high-dimensional space yet.
  • Scaling: While tested on a representative testbed, scaling this to thousands of nodes across global regions remains a future engineering challenge.

Summary updated

BibTeX
@inproceedings{shen2025reinforcement,
  author = {Wangbo Shen and Weiwei Lin and Wentai Wu and Haijie Wu and Keqin Li},
  title = {{Reinforcement learning-based task scheduling for heterogeneous computing in end-edge-cloud environment}},
  booktitle = {Clust. Comput},
  year = {2025},
  url = {https://openreview.net/forum?id=e2Cr6odGOw},
}
Figure