Joint Optimization of DNN Model Caching and Request Routing in Mobile Edge Computing
Shuting Qiu, Fang Dong, Siyu Tan, Ruiting Zhou, Dian Shen, Patrick P. C. Lee, Qilin Fan
TL;DR
This work tackles the problem of jointly caching dynamic DNN submodels and routing user requests in mobile edge computing to balance inference precision and model loading latency. It introduces CoCaR, an offline LP-based algorithm with randomized rounding, and CoCaR-OL, an online variant that leverages historical request patterns to adapt caching decisions in real time. By reformulating the problem with auxiliary variables A_{n,u,h} and providing theoretical guarantees, the methods achieve near-optimal performance, with CoCaR providing at least a 46% gain in average inference precision and CoCaR-OL delivering substantial QoE improvements in online settings. The results demonstrate that fine-grained dynamic DNN caching can significantly improve edge resource utilization, user QoE, and cache hit rates in MEC environments with limited cache capacity and volatile request patterns.
Abstract
Mobile edge computing (MEC) can pre-cache deep neural networks (DNNs) near end-users, providing low-latency services and improving users' quality of experience (QoE). However, caching all DNN models at edge servers with limited capacity is difficult, and the impact of model loading time on QoE remains underexplored. Hence, we introduce dynamic DNNs in edge scenarios, disassembling a complete DNN model into interrelated submodels for more fine-grained and flexible model caching and request routing solutions. This raises the pressing issue of jointly deciding request routing and submodel caching for dynamic DNNs to balance model inference precision and loading latency for QoE optimization. In this paper, we study the joint dynamic model caching and request routing problem in MEC networks, aiming to maximize user request inference precision under constraints of server resources, latency, and model loading time. To tackle this problem, we propose CoCaR, an offline algorithm based on linear programming and random rounding that leverages dynamic DNNs to optimize caching and routing schemes, achieving near-optimal performance. Furthermore, we develop an online variant of CoCaR, named CoCaR-OL, enabling effective adaptation to dynamic and unpredictable online request patterns. The simulation results demonstrate that the proposed CoCaR improves the average inference precision of user requests by 46\% compared to state-of-the-art baselines. In addition, in online scenarios, CoCaR-OL achieves an improvement of no less than 32.3\% in user QoE over competitive baselines.
