RRTO: A High-Performance Transparent Offloading System for Model Inference in Mobile Edge Computing

Zekai Sun, Xiuxian Guan, Zheng Lin, Yuhao Qing, Haoze Song, Zihan Fang, Zhe Chen, Fangming Liu, Heming Cui, Wei Ni, Jun LuoarXiv 2025 · DOI

Abstract

Mobile Edge Computing (MEC) allows mobile devices to offload computationally intensive AI tasks to nearby edge servers. Current offloading techniques face a dilemma: non-transparent methods require intrusive code changes, while transparent methods suffer from extreme network latency due to fine-grained Remote Procedure Calls (RPCs). We present RRTO (Record/Replay Transparent Offloading), a system that provides the ease of transparent offloading with the performance of native offloading. RRTO identifies static operator sequences in machine learning models and replays them as a single batch on the server, reducing communication overhead by up to 98%.

The Challenge of Mobile AI Inference

Modern mobile applications increasingly rely on complex AI models for tasks like object detection and human pose estimation. However, mobile hardware often fails to meet the performance requirements for real-time execution. As shown in Figure 2, popular edge devices like the Raspberry Pi 4 and Jetson Nano exhibit inference latencies far exceeding the 30ms real-time threshold, while full-load inference significantly degrades battery life.

Inference time and battery life constraints on mobile and edge devices.

To address this, developers turn to offloading. Transparent offloading is preferred for its ease of deployment—it intercepts system calls without requiring source code access. However, traditional transparent systems intercept every individual operator (e.g., a single convolution), leading to thousands of RPCs per inference. In typical wireless networks, this "chatter" results in network round-trip times accounting for up to 95% of total latency.

RRTO: Record and Replay

RRTO overcomes the RPC bottleneck through a novel Record/Replay mechanism. Instead of a reactive approach, RRTO proactively identifies the model's execution pattern.

  1. Recording Phase: RRTO initially operates as a standard transparent system, logging CUDA kernel calls and data dependencies.
  2. Operator Sequence Search (OSS): The system analyzes these logs to find the stable inference loop. It uses a two-stage matching strategy—FastCheck for quick candidate identification and FullCheck for dependency verification—to filter out initialization noise.
  3. Replaying Phase: Once a sequence is identified, the client sends a single command to the server to "replay" the entire sequence. This collapses thousands of RPCs into a single transaction: sending input data and receiving the final result.

Evaluation in Real-World Environments

RRTO was evaluated using a wide range of models (ResNet, ConvNext, FasterRCNN) and a real-world robotic surveillance task (KAPAO). Testing was conducted in both indoor and outdoor settings to capture the impact of wireless signal instability.

Network bandwidth fluctuations in indoor and outdoor testing environments.

As illustrated in Figure 5, outdoor environments present significant bandwidth variability compared to indoor settings. Despite these fluctuations, RRTO demonstrated remarkable resilience.

Key Results

  • Latency Reduction: RRTO achieved average speedups of 72% (indoors) and 69% (outdoors) over state-of-the-art transparent baselines like Cricket. In specific high-complexity models, latency was reduced by 98%.
  • Energy Efficiency: By minimizing active radio time, RRTO reduced per-inference energy consumption by up to 94%.
  • Server Utilization: Server-side GPU utilization increased from ~1% to over 27%, indicating that the server spent more time computing and less time waiting for network packets.

Conclusion and Future Work

RRTO proves that transparent offloading can be highly efficient by exploiting the static nature of most mobile AI models. By shifting from per-operator RPCs to batch replay, it bridges the gap between ease of use and high performance. While currently optimized for static models, future work will explore handling dynamic activation models (DAMs) and multi-app scheduling on shared edge resources.

Summary updated

BibTeX
@misc{sun2025rrto,
  author = {Zekai Sun and Xiuxian Guan and Zheng Lin and Yuhao Qing and Haoze Song and Zihan Fang and Zhe Chen and Fangming Liu and Heming Cui and Wei Ni and Jun Luo},
  title = {{RRTO: A High-Performance Transparent Offloading System for Model Inference in Mobile Edge Computing}},
  year = {2025},
  eprint = {2507.21739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.21739},
}
Figure