Recursive Offloading for LLM Serving in Multi-tier Networks

Zhiyuan Wu, Sheng Sun, Yuwei Wang, Min Liu, Bo Gao, Jinda Lu, Zheming Yang, Tian Wen · DOI

Abstract

RecServe is a recursive offloading framework designed to optimize Large Language Model (LLM) serving across multi-tier networks, including end devices, edge nodes, and cloud data centers. By utilizing task-specific confidence evaluation and dynamic, data-driven thresholds, RecServe ensures that simple queries are processed locally while complex tasks are escalated through the network hierarchy. This approach reduces communication overhead by over 50% compared to traditional cloud-centric serving models without significant loss in accuracy.

Introduction

The deployment of Large Language Models (LLMs) in real-world applications is often hindered by the "proximity vs. power" paradox. End devices, such as smartphones and IoT sensors, offer low latency but possess limited computational resources. Conversely, cloud data centers provide immense power but are plagued by high latency and bandwidth congestion.

Existing "model cascading" solutions attempt to bridge this gap by offloading tasks from small local models to larger cloud models when the local model is uncertain. However, these systems typically rely on static, manually-tuned thresholds that fail to adapt to fluctuating network conditions or varying task complexities. RecServe addresses these limitations by introducing a dynamic, recursive, and mathematically grounded offloading process.

System Architecture

RecServe operates across a hierarchical network structure consisting of three primary tiers: end devices, edge nodes, and cloud data centers. LLMs of increasing scale are deployed across these tiers (e.g., a tiny model on a device, a medium model at an edge node, and a massive model in the cloud).

Overview of the RecServe hierarchical architecture and the internal logic of the offloading scheduler at each tier.

As shown in the architecture above, each node evaluates the confidence of its local LLM's prediction. If the confidence falls below a dynamic threshold, the task is offloaded to the next tier in the hierarchy. This recursive logic allows for a "fail-fast" approach, maximizing the utility of intermediate edge nodes which are often underutilized in traditional serving models.

Methodology

The core of RecServe's intelligence lies in its task-specific confidence evaluation and dynamic thresholding mechanism.

Task-Specific Confidence Evaluation

To make informed offloading decisions, RecServe employs different metrics based on the nature of the NLP task:

  • Sequence-to-Classification (Seq2Class): Uses the maximum softmax probability of the predicted class.
  • Sequence-to-Sequence (Seq2Seq): Uses a normalized version of perplexity (PPL), mapping it to a 0-1 confidence score.

Dynamic Thresholding via Quantile Interpolation

Instead of a fixed threshold, RecServe maintains a sliding window (historical confidence queue) of recent scores. It uses a parameter ($\beta$) to set the threshold at a specific quantile of this distribution. This allows the system to adapt to the actual difficulty of the incoming workload in real-time. Essentially, the system targets the bottom $\beta$% of the hardest tasks for offloading, making the process robust against model-specific or data-specific score distributions.

Experimental Evaluation

The framework was evaluated across eight diverse datasets, including sentiment analysis (IMDB, SST-2) and translation (WMT16, OPUS100). The models used ranged from DistilRoBERTa on devices to RoBERTa-Large and large T5 models in the cloud.

Key Results

  • Communication Efficiency: RecServe consistently reduced communication traffic by over 50% compared to centralized cloud serving across almost all tested datasets.
  • Accuracy vs. Cost: On the IMDB dataset, RecServe achieved 93.74% accuracy with only 29.22MB of traffic (at $\beta=0.3$). In contrast, a cloud-only approach achieved 94.25% but required 60.82MB—nearly double the bandwidth for a marginal accuracy gain.
  • Performance Baselines: RecServe outperformed static thresholding (CasServe) and fixed probability offloading (ColServe) across the Pareto frontier of accuracy and communication cost.

Conclusion and Future Work

RecServe demonstrates that recursive, dynamic offloading is a viable path toward efficient LLM serving in distributed networks. While highly effective, the system currently faces a "cold start" challenge where initial offloading decisions may be sub-optimal before the confidence queue is populated. Future research will focus on multi-modal tasks, length-aware offloading models, and enhancing fault tolerance for volatile edge environments.

Summary updated

BibTeX
@article{wu2026recursive,
  author = {Zhiyuan Wu and Sheng Sun and Yuwei Wang and Min Liu and Bo Gao and Jinda Lu and Zheming Yang and Tian Wen},
  title = {{Recursive Offloading for LLM Serving in Multi-tier Networks}},
  journal = {IEEE Trans. Mobile Computing},
  year = {2026},
  doi = {10.1109/tmc.2025.3642580},
}
Figure