Accuracy-Delay Trade-Off in LLM Offloading via Token-Level Uncertainty

Yumin Kim, Hyeonsu Lyu, Minjae Lee, Hyun Jong Yang · DOI

Abstract

Large language models (LLMs) offer significant potential for intelligent mobile services but are computationally intensive for resource-constrained devices. Mobile edge computing (MEC) allows such devices to offload inference tasks to edge servers (ESs), yet introduces latency due to communication and serverside queuing, especially in multi-user environments. In this work, we propose an uncertainty-aware offloading framework that dynamically decides whether to perform inference locally or offload it to the ES, based on token-level uncertainty and resource constraints. We define a margin-based token-level uncertainty metric and demonstrate its correlation with model accuracy. Leveraging this metric, we design a greedy offloading algorithm (GOA) that minimizes delay while maintaining accuracy by prioritizing offloading for high-uncertainty queries. Our experiments show that GOA consistently achieves a favorable trade-off, outperforming baseline strategies in both accuracy and latency across varying user densities, and operates with practical computation time. These results establish GOA as a scalable and effective solution for LLM inference in MEC environments.

Introduction

The rapid advancement of Large Language Models (LLMs) has created a significant challenge for mobile integration. While these models enable sophisticated reasoning and interaction, their computational demands often exceed the capabilities of mobile hardware, which is constrained by limited memory and battery life. Mobile Edge Computing (MEC) provides a potential solution by offloading inference tasks to powerful Edge Servers (ES). However, MEC is not without its own bottlenecks. In multi-user environments, simultaneous offloading leads to wireless communication congestion and significant queuing delays at the server, often negating the speed advantages of the more powerful hardware.

The Uncertainty-Aware Framework

To address this, we propose a framework that balances local processing using a Small Language Model (SLM) with edge-based LLM inference. The key innovation is the use of token-level uncertainty as a dynamic decision metric.

We utilize a "margin-based" uncertainty metric, defined by the difference in probability between the top two predicted tokens. When this margin is small, the model is considered "uncertain," indicating a high probability that the local SLM will produce an incorrect result. Empirical data confirms a strong negative correlation between this uncertainty metric and model accuracy, justifying its use as a proxy for task difficulty.

Correlation between token-level uncertainty and model accuracy (left) and the distribution of samples across uncertainty levels (right).

System Architecture and Algorithm

In a standard MEC setup, excessive offloading leads to high latency. Our framework (visualized below) mitigates this by categorizing tasks based on their uncertainty levels.

Comparison between standard edge offloading (left) and the proposed uncertainty-aware offloading framework (right).

To manage this system, we developed the Greedy Offloading Algorithm (GOA), which operates in two distinct stages:

  1. Mandatory Offloading: Tasks with uncertainty exceeding a predefined threshold ($\tau$) are automatically offloaded to ensure high accuracy.
  2. Delay-Optimized Offloading: For the remaining tasks, the algorithm iteratively selects users to offload based on a "weighted delay gap." This metric prioritizes users who would benefit most from offloading while considering the impact on total system queuing delay.

The threshold $\tau$ acts as a tunable "dial," allowing service providers to prioritize either maximum accuracy (low $\tau$) or minimum latency (high $\tau$).

Experimental Evaluation

We evaluated the framework using the bAbI dataset for reasoning tasks, employing LLaMA 3.2-1B-Instruct as the local SLM and LLaMA 3.2-8B-Instruct as the edge LLM.

Key Results

  • Superior Trade-offs: GOA consistently outperformed baseline strategies such as "Edge All" (offloading everything) and "Min Delay" (ignoring accuracy).
  • Scalability: In simulations with 120 concurrent users, GOA maintained a system delay of approximately 31.2 ms, compared to 44.2 ms for the "Edge All" approach, without significant loss in accuracy.
  • Operational Efficiency: The algorithm is highly efficient, requiring only 0.414 ms of computation time to manage 120 users, making it suitable for real-time deployment in dynamic network environments.

Conclusion

By leveraging token-level uncertainty, the GOA framework effectively navigates the accuracy-delay trade-off in MEC environments. This approach ensures that limited edge resources are allocated to the most challenging tasks, providing a scalable and practical solution for deploying advanced LLM capabilities on mobile devices. Future work will explore extending this logic to multi-token generation and dynamic power control for further optimization.

Summary updated

BibTeX
@misc{kim2026accuracy,
  author = {Yumin Kim and Hyeonsu Lyu and Minjae Lee and Hyun Jong Yang},
  title = {{Accuracy-Delay Trade-Off in LLM Offloading via Token-Level Uncertainty}},
  year = {2026},
  eprint = {2602.07958},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.07958},
}
Figure