Retrieval-Augmented Generation for Mobile Edge Computing via Large Language Model

Runtao Ren, Yinyu Wu, Xuhui Zhang, Jinke Ren, Yanyan Shen, Shuqiang Wang, Kim-Fung TsangarXiv 2024 · DOI

Abstract

Mobile Edge Computing (MEC) is a critical enabler for low-latency applications, yet optimizing resource allocation in dynamic environments remains a significant challenge for traditional deep learning and reinforcement learning methods. This paper proposes a novel framework leveraging Retrieval-Augmented Generation (RAG) and Large Language Models (LLMs) to address these complexities. By integrating a vector-based retrieval mechanism with the reasoning capabilities of LLMs, the framework achieves substantial reductions in system latency—up to 86% in certain scenarios—while offering superior generalization and interpretability compared to black-box optimization models.

Introduction

Mobile Edge Computing (MEC) facilitates the offloading of computationally intensive tasks from mobile devices to edge servers, which is essential for applications like autonomous driving and augmented reality. However, real-time management of MEC systems involves multi-dimensional optimization of offloading ratios, transmit power, and server CPU allocation under fluctuating network conditions.

Existing solutions primarily utilize Deep Learning (DL) or Reinforcement Learning (RL). These approaches often suffer from poor generalization to unseen scenarios, architectural rigidity, and a lack of interpretability. To overcome these "black box" limitations, this research introduces a "retrieve-then-reason" paradigm using RAG.

Proposed RAG-Enabled MEC Framework

The proposed framework shifts from pure prediction to an informed reasoning process. It consists of three integrated modules:

  1. Storage Module: Maintains a vector database of mobile user configuration profiles (e.g., local computing cycles) represented as high-dimensional embeddings.
  2. Retrieval Module: Employs a Bi-encoder model to calculate similarity between incoming task requests and stored profiles, retrieving relevant historical "context" or best practices.
  3. Generation Module: An LLM (e.g., GPT-4o or Qwen2.5-Turbo) processes a prompt containing the retrieved context, current network status (bandwidth, noise), and optimization objectives. The LLM then reasons through these constraints to determine optimal resource allocation.
The RAG-based optimization workflow, illustrating the path from query to LLM-generated response via vector retrieval.

By using retrieval as a filter, the system narrows the search space for the LLM, enabling it to function as a zero-shot or few-shot optimizer capable of handling complex, non-convex logic without requiring massive retraining for every new environment.

Experimental Evaluation

The framework was evaluated against traditional RL baselines (DQN, DDPG, and PPO) using four synthetic datasets designed to stress-test different system variables: DSCC (Different Server Computational Capabilities), DUSD (Different User Data Volumes), DUP (Different User Power), and DUCC (Different User Computational Capabilities). Retrieval performance was measured using Hit Rate (HR) and Mean Reciprocal Rank (MRR), with the Bi-encoder achieving high precision (HR: 0.855 to 0.948).

Key Results and Insights

The RAG-based approach consistently outperformed RL baselines across all metrics. Notably, the system achieved a 57% improvement in latency under varying user computing abilities and an 86% improvement across different server capacities.

Comparison of average latency across different maximum data volumes, showing the stability of RAG-based LLM methods compared to RL baselines.

As shown in the performance analysis, while traditional RL methods experience a sharp increase in latency as task sizes grow (the "computational bottleneck"), the RAG-enabled LLM approach maintains a significantly flatter and more stable performance curve. This robustness is attributed to the LLM's ability to leverage retrieved "priors" to simplify the optimization problem.

Furthermore, the framework provides inherent interpretability. Unlike neural networks that provide only numerical outputs, the RAG framework allows operators to trace which information was retrieved and how it influenced the final decision.

Conclusion and Future Work

This research demonstrates that combining RAG with LLMs can redefine resource management in MEC. The framework offers a scalable, adaptable, and interpretable alternative to traditional RL. Future work will focus on addressing the inference latency of LLMs in millisecond-sensitive environments and scaling vector database management for large-scale, diverse user deployments.

Summary updated

BibTeX
@misc{ren2024retrieval,
  author = {Runtao Ren and Yinyu Wu and Xuhui Zhang and Jinke Ren and Yanyan Shen and Shuqiang Wang and Kim-Fung Tsang},
  title = {{Retrieval-Augmented Generation for Mobile Edge Computing via Large Language Model}},
  year = {2024},
  eprint = {2412.20820},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.20820},
}
Figure