Joint Model Caching and Resource Allocation in Generative AI - Enabled Wireless Edge Networks

Zhang Liu, Hongyang Du, Lianfen Huang, Zhibin Gao, Dusit NiyatoWCNC 2024

Introduction

Generative AI (GenAI) models, such as ChatGPT and diffusion-based image generators, are revolutionizing digital content creation. However, their deployment is traditionally confined to resource-rich cloud data centers due to massive computational and memory requirements. Relying on the cloud for AI-generated content (AIGC) introduces significant latency and privacy risks. This paper explores the deployment of GenAI at the wireless edge, where models are cached on servers co-located with base stations to provide low-latency services.

System Model and Problem Formulation

The researchers propose a three-tier architecture consisting of the Cloud, Edge, and User layers. The core challenge lies in the limited storage and processing power of edge nodes. It is impossible to cache all available GenAI models or provide maximum resources to every user simultaneously.

System architecture of GenAI-enabled wireless edge networks and examples of image repair tasks.

The problem is formulated as a Mixed-Integer Nonlinear Programming (MINLP) task, aiming to jointly optimize model caching decisions and the allocation of communication (bandwidth) and computation (denoising steps) resources. The objective is to maximize a "Total Utility" function that balances high image quality with low service latency.

Deep Reinforcement Learning Framework

To solve this NP-hard problem in dynamic wireless environments, the authors implement a Deep Deterministic Policy Gradient (DDPG) reinforcement learning approach.

  • Quality-Latency Trade-off: A key innovation is treating the iterative denoising process of diffusion models as a tunable resource. Fewer denoising steps reduce latency but may lower image quality.
  • Actor-Critic Architecture: The DDPG agent uses an Actor network to generate continuous actions for resource allocation and caching, while a Critic network evaluates these actions based on the resulting utility.

Experimental Evaluation

The framework was tested using the RePaint model, a diffusion-based tool for image inpainting. Two datasets were used to simulate diverse user requests:

  1. Places2 Dataset: For landscape and scenery restoration.
  2. CelebA Dataset: For human face repair.

The simulation involved 10 to 18 mobile users with varying channel conditions and request patterns based on a Zipf-like popularity distribution.

Key Results

The DDPG-based approach was compared against two benchmarks: a Genetic Algorithm-based heuristic (HCRAS) and a Random Caching scheme (RCARS).

Comparison of Total Utility across different numbers of users for DDPG, HCRAS, and RCARS.

As shown in the results, the DDPG approach consistently achieves the highest total utility. Specifically, at 18 users, DDPG outperformed the heuristic by 17.33% and the random baseline by 30.21%. Furthermore, the DDPG agent achieved a significantly higher model hit ratio, demonstrating its ability to learn and predict user request patterns effectively.

Conclusion

This research demonstrates that deep reinforcement learning can effectively manage the complex trade-offs required to bring Generative AI to the wireless edge. By intelligently caching popular models and dynamically adjusting computational intensity, edge networks can provide high-quality AI services with minimal delay. Future work will look into cooperative caching across multiple edge nodes and incorporating energy efficiency into the optimization goals.

Summary updated

BibTeX
@inproceedings{liu2024joint,
  author = {Zhang Liu and Hongyang Du and Lianfen Huang and Zhibin Gao and Dusit Niyato},
  title = {{Joint Model Caching and Resource Allocation in Generative AI - Enabled Wireless Edge Networks}},
  booktitle = {WCNC},
  year = {2024},
  url = {https://openreview.net/forum?id=1WMVNCNaaa},
}
Figure