Scheduling Inference Workloads on Distributed Edge Clusters with Reinforcement Learning

Gabriele Castellano, Juan-José Nieto, Jordi Luque, Ferran Diego, Carlos Segura, Diego Perino, Flavio Esposito, Fulvio Risso, Aravindh RamanarXiv 2023 · DOI

Abstract

The proliferation of real-time applications like Augmented Reality (AR) and autonomous driving necessitates low-latency Deep Neural Network (DNN) inference. While edge computing addresses latency issues inherent in cloud-based systems, it introduces challenges related to resource constraints and hardware heterogeneity. We present ASET (Adaptive Scheduling of Edge Tasks), a Reinforcement Learning-based framework that dynamically manages inference requests across distributed edge clusters. ASET operates as a meta-policy, learning to switch between established scheduling heuristics to maximize the success rate of queries under varying network conditions. Our results demonstrate that ASET significantly outperforms static policies, particularly in complex, highly distributed edge environments.

Introduction

Modern "tactile" applications require millisecond-level response times for DNN inference. Centralized cloud data centers, despite their immense compute power, often fail to meet these requirements due to high network transit times. Edge computing mitigates this by moving computation closer to the user. However, edge nodes are often resource-constrained and heterogeneous, ranging from low-power TPUs at the far edge to regional server hubs.

A critical challenge in edge computing is the scheduling trade-off: deciding whether to process a request locally on a potentially congested node or offload it to a more distant but idle node. Static scheduling rules, such as "always send to the closest node," often prove inadequate as they cannot adapt to shifting workloads or diverse application requirements.

The ASET Framework

To address these challenges, we propose ASET, an adaptive scheduling algorithm powered by Deep Q-Learning (DQN).

Meta-Policy Approach

A key innovation of ASET is its operation as a meta-policy. Rather than making a scheduling decision for every individual packet—which would be computationally prohibitive—ASET observes the system state over a fixed time window (e.g., 25 seconds). It then selects the most appropriate static scheduling policy to employ for the subsequent interval. The agent chooses from a suite of baseline policies, including:

  • Closest: Minimizes network latency.
  • Load Balancing: Distributes tasks to the least busy nodes.
  • Cheaper: Maximizes throughput by selecting efficient model variants.
  • Least Impedance: A greedy approach targeting optimal end-to-end latency.
The ASET RL Agent architecture, illustrating the state-action-reward loop used to select optimal scheduling policies.

State and Reward

The RL agent's state is encoded as a 3D tensor capturing worker throughput, load, and the specific latency/accuracy requirements of incoming queries. The reward function is designed to maximize the percentage of "successful" queries—those that meet Quality of Service (QoS) constraints and are not rejected due to resource exhaustion.

Experimental Evaluation

We evaluated ASET using a sophisticated simulation environment modeled on a realistic ISP network topology. This topology includes 1,000 antennas across multiple layers (access, central office, and cloud). We simulated ten diverse applications, such as "Tele-Robots" and "Face Assistant," each with unique frame rates and tolerated delays (20ms to 600ms). Performance data was derived from real-world profiling of DNN models like MobileNet-SSD and Yolo-v3 on various hardware backends.

Results and Discussion

Our evaluation reveals that no single static policy is universally optimal. While "Closest" performs well for low-latency tasks, it can lead to rapid node saturation. Conversely, "Load Balancing" may increase latency beyond acceptable limits for sensitive applications.

Comparison of query success rates in cloud-based (a) and edge-based (b) topologies, highlighting ASET's superior performance in distributed environments.

ASET consistently outperformed all static baselines, particularly in "Full-Edge" topologies where the decision space is more complex. In centralized "DC-Cloud" setups, the performance gap is narrower as there are fewer scheduling options. Furthermore, ASET demonstrated strong generalization capabilities, maintaining high performance even when request rates doubled beyond training levels. It also proved effective at handling traffic bursts by pre-emptively switching strategies to avoid congestion.

Conclusion

ASET provides a robust, adaptive solution for scheduling DNN inference in distributed edge environments. By leveraging RL as a meta-policy, it achieves high query success rates while maintaining the computational efficiency required for real-time deployment. Future work will explore the integration of scheduling with long-term resource orchestration and the use of transfer learning to reduce training requirements for new network topologies.

Summary updated

BibTeX
@misc{castellano2023scheduling,
  author = {Gabriele Castellano and Juan-José Nieto and Jordi Luque and Ferran Diego and Carlos Segura and Diego Perino and Flavio Esposito and Fulvio Risso and Aravindh Raman},
  title = {{Scheduling Inference Workloads on Distributed Edge Clusters with Reinforcement Learning}},
  year = {2023},
  eprint = {2301.13618},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.13618},
}
Figure