Digital Twin-Assisted Efficient Reinforcement Learning for Edge Task Scheduling

Xiucheng Wang, Longfei Ma, Haocheng Li, Zhisheng Yin, Tom H. Luan, Nan Cheng

Abstract

In the rapidly evolving landscape of edge computing, efficient task scheduling is critical for supporting latency-sensitive applications such as Augmented Reality (AR) and image recognition. However, the scheduling of multiple tasks with diverse deadlines often manifests as an NP-hard "flow shop" problem. While Reinforcement Learning (RL) offers a robust framework for addressing such complexities, it is frequently hampered by the "exploration-exploitation" trade-off, where sequential real-world exploration leads to slow convergence. This paper proposes a Digital Twin (DT)-assisted framework to overcome these limitations. By leveraging a DT as a virtual sandbox for parallel exploration, we introduce two algorithms: DT-Assisted Asynchronous Q-learning (DTAQL) and DT-Assisted Exploring Q-learning (DTEQL). Our results indicate that DTEQL significantly outperforms traditional RL, achieving convergence in approximately 5,600 iterations compared to the 100,000+ iterations required by standard methods, while simultaneously improving the Quality of Service (QoS).

Introduction

Edge computing brings computational resources closer to the end-user, yet the management of these resources remains a significant challenge. When a user offloads multiple tasks to an edge server, the sequence of transmission and execution determines the overall system efficiency. Because only one task can typically be transmitted at a time, finding the optimal order to meet various deadlines is computationally intensive.

Reinforcement Learning has emerged as a preferred method for dynamic scheduling. However, the efficiency of RL is fundamentally limited by its exploration mechanism. In physical environments, an agent can only test one action at a time. High exploration leads to slow learning, while low exploration often results in the agent becoming trapped in sub-optimal local optima. This paper addresses this bottleneck by integrating Digital Twin technology to facilitate massive, parallel exploration in a virtualized environment.

Methodology

The core innovation of this research lies in shifting the RL exploration process from a sequential real-world execution to a parallel virtual-world simulation. The Digital Twin provides a high-fidelity, real-time mapping of the physical edge system, allowing for two distinct algorithmic approaches:

1. DT-Assisted Asynchronous Q-learning (DTAQL)

DTAQL utilizes multiple virtual agents operating within the DT. Each agent maintains an independent Q-table and explores the environment's state space autonomously. Periodically, these agents synchronize their findings to update a centralized master Q-table. This asynchronous update mechanism allows the system to aggregate knowledge from diverse scheduling paths simultaneously.

2. DT-Assisted Exploring Q-learning (DTEQL)

In contrast to the multi-agent approach, DTEQL employs a single agent interacting with the real environment. However, at each decision step, the agent "hallucinates" or simulates $\phi$ additional random actions within the DT. The rewards derived from these virtual actions are used to update the Q-table immediately. DTEQL is notably more memory-efficient than DTAQL and maintains a higher degree of exploration randomness, which prevents premature convergence on sub-optimal policies.

Experimental Setup

The proposed framework was evaluated using a dynamic simulation environment. The study generated 1,000 tasks with the following parameters:

  • Task Size ($d$): 0 to 2 Mb.
  • Complexity ($c$): 0 to 1,000 CPU cycles/bit.
  • Deadlines ($\epsilon$): 1 to 5 seconds.
  • Hardware: The edge server was modeled with a 10GHz CPU frequency.

The performance of DTAQL and DTEQL was benchmarked against traditional Q-learning (QL) to measure convergence speed, reward quality, and task latency.

Results and Discussion

The experimental results highlight the transformative impact of DT-assisted exploration on RL performance.

Convergence and Reward Quality

In a scenario involving 8 tasks ($N=8$), the DTEQL algorithm (with $\phi=500$) reached convergence in just 5,597 iterations. Traditional Q-learning failed to converge even after 100,000 iterations. Furthermore, DTEQL achieved a normalized reward of 1.0024, whereas traditional Q-learning reached only 0.4235. This suggests that standard RL methods struggle to navigate the exponential action space of task scheduling without the assistance of virtual exploration.

Quality of Service (QoS)

The efficiency of the learned policy directly translated to improved user experience. DTEQL reduced the average task delay to 0.64s, compared to 0.87s for traditional QL. By maintaining a lower deadline miss ratio, the DT-assisted approach ensures that time-sensitive tasks are prioritized effectively.

Comparative Analysis

Interestingly, DTEQL often outperformed DTAQL. The authors suggest that the inherent randomness in DTEQL’s action selection provides a broader exploration of the state space, whereas the multi-agent synchronization in DTAQL can sometimes lead agents to converge too quickly on a shared, potentially sub-optimal direction.

Conclusion and Future Work

This research demonstrates that Digital Twins can effectively break the sequential barrier of Reinforcement Learning. By multiplying the learning speed by the simulation capacity of the DT, edge systems can achieve near-optimal scheduling in a fraction of the time required by traditional methods.

Future research will focus on the costs associated with DT construction and the potential "sim-to-real" gap caused by synchronization lags. Additionally, the authors intend to expand this framework to Space-Air-Ground Integrated Networks (SAGIN), where continuous action spaces present even greater challenges for exploration efficiency.

Summary updated

BibTeX
@inproceedings{wang2022digital,
  author = {Xiucheng Wang and Longfei Ma and Haocheng Li and Zhisheng Yin and Tom H. Luan and Nan Cheng},
  title = {{Digital Twin-Assisted Efficient Reinforcement Learning for Edge Task Scheduling}},
  booktitle = {VTC Spring},
  year = {2022},
  doi = {10.1109/vtc2022-spring54318.2022.9860495},
}
Figure