Fast Adaptive Task Offloading in Edge Computing based on Meta Reinforcement Learning

Jin Wang, Jia Hu, Geyong Min, Albert Y. Zomaya, Nektarios Georgalas · DOI

Abstract: Multi-access edge computing (MEC) aims to extend cloud service to the network edge to reduce network traffic and service latency. A fundamental problem in MEC is how to efficiently offload heterogeneous tasks of mobile applications from user equipment (UE) to MEC hosts. Recently, many deep reinforcement learning (DRL) based methods have been proposed to learn offloading policies through interacting with the MEC environment. However, these methods have weak adaptability to new environments because they have low sample efficiency and need full retraining. To overcome this weakness, we propose a task offloading method based on meta reinforcement learning, which can adapt fast to new environments with a small number of gradient updates and samples. We model mobile applications as Directed Acyclic Graphs (DAGs) and the offloading policy by a custom sequence-to-sequence (seq2seq) neural network. The experimental results demonstrate that this new offloading method can reduce the latency by up to 25% compared to three baselines while being able to adapt fast to new environments.

1. Introduction

Multi-access Edge Computing (MEC) is a paradigm designed to reduce latency by offloading heavy computational tasks from mobile devices (User Equipment or UE) to nearby edge servers. A significant challenge in MEC is finding the optimal offloading strategy, an NP-hard problem, particularly when tasks exhibit complex dependencies modeled as Directed Acyclic Graphs (DAGs).

Existing approaches generally fall into two categories: heuristics and deep reinforcement learning (DRL). Heuristics are fast but lack flexibility in changing environments, while standard DRL methods are "sample hungry," requiring extensive retraining for every new application or network shift. This paper introduces MRLCO (Meta Reinforcement Learning for Computation Offloading), a framework designed to bridge this adaptability gap by enabling rapid learning in new scenarios.

2. Meta Reinforcement Learning Framework

The core of MRLCO is a dual-loop learning structure that separates global strategy from local adaptation. This decentralized approach allows the heavy lifting to be performed by the MEC host while the UE handles lightweight fine-tuning.

The Meta Reinforcement Learning framework illustrating the interaction between the MEC Server (outer loop) and User Equipment (inner loop).
  • Outer Loop (Meta-Policy): Conducted on the MEC host, this loop learns a generalized meta-strategy across various offloading tasks. It focuses on identifying the underlying structure of the offloading problem.
  • Inner Loop (Task-Specific Policy): Conducted on the UE, this loop adapts the meta-policy to specific local conditions using a minimal amount of data. By starting from a well-informed meta-policy, the UE can reach an optimal strategy in just a few gradient steps.

3. Sequence-to-Sequence Policy Network

To accommodate the variable size and complex dependencies of task DAGs, MRLCO utilizes a custom Sequence-to-Sequence (Seq2Seq) neural network with an attention mechanism.

The Seq2Seq neural network architecture used for generating offloading decisions from task embeddings.

The model processes tasks based on their topological rank and uses the attention mechanism to focus on critical parent-child dependencies. This transforms the graph-partitioning problem into a more manageable sequence-labeling task. To ensure stable and efficient training, the framework incorporates Proximal Policy Optimization (PPO) and a first-order approximation of the meta-objective, similar to the Reptile algorithm.

4. Evaluation and Results

The researchers evaluated MRLCO using a synthetic DAG generator to simulate diverse application structures (varying in task count, "fatness," and density).

Key findings include:

  • Latency Reduction: MRLCO achieved up to a 25% reduction in average service latency compared to baseline methods like HEFT and standard fine-tuned DRL.
  • Sample Efficiency: While standard DRL might require thousands of episodes to adapt, MRLCO reached peak performance in as few as 9 to 20 gradient steps.
  • Adaptability: The framework demonstrated superior performance across unseen DAG topologies and fluctuating data rates (ranging from 5.5 to 11.5 Mbps).

5. Conclusion

MRLCO provides a robust solution for the "adaptability gap" in edge computing offloading. By leveraging meta-reinforcement learning and a Seq2Seq architecture, the system achieves high performance with minimal local computation. Future research will focus on addressing synchronous update bottlenecks and exploring off-policy meta-learning to further improve efficiency.

Summary updated

BibTeX
@article{wang2020fast,
  author = {Jin Wang and Jia Hu and Geyong Min and Albert Y. Zomaya and Nektarios Georgalas},
  title = {{Fast Adaptive Task Offloading in Edge Computing based on Meta Reinforcement Learning}},
  journal = {IEEE Trans. Parallel Distributed Syst.},
  year = {2020},
  doi = {10.1109/tpds.2020.3014896},
}
Figure