Manuscript Offprint

arXiv:2610.37307

EdgePace: Deadline- and Freshness-Aware LLM Scheduling on Unified-Memory Platforms

Teng Mei, Chengxuan Pei, Weijun Wang, Jie Wu, Marco Canini, Yunming Xiao

Teng Mei ∗^{*}

The Chinese University of Hong Kong, Shenzhen

Shenzhen, China

mei347957756@gmail.com

Jie Wu

Fudan University

Shanghai, China

jwu@fudan.edu.cn

Chengxuan Pei ∗^{*}

The Chinese University of Hong Kong, Shenzhen

Shenzhen, China

chengxuanpei@link.cuhk.edu.cn

Marco Canini

KAUST

Thuwal, Saudi Arabia

marco@kaust.edu.sa

Weijun Wang

Institute for AI Industry Research

(AIR), Tsinghua University

Beijing, China

wangweijun@air.tsinghua.edu.cn

Yunming Xiao †^{\dagger}

The Chinese University of Hong Kong, Shenzhen

Shenzhen, China

yunmingxiao@cuhk.edu.cn

Abstract

Large language models (LLMs) increasingly run on edge devices alongside tasks that continuously process sensor data. In many applications, these foreground tasks prepare observations as inputs to the LLM, whose outputs guide subsequent processing or actions. The observations must be processed by foreground deadlines, and LLM feedback must arrive while its source observations remain useful. Yet the CPU and accelerators share a unified-memory system, so LLM inference can delay foreground processing through memory-bandwidth contention even when compute resources remain available. We present EDGEPACE, a bandwidth-aware runtime that protects foreground deadlines while sustaining timely LLM feedback. EDGEPACE creates safe suspension points across prefill and decode, monitors foreground memory demand and stalls at low cost, and schedules inference according to contention risk, deadline slack, and output freshness. We evaluate EDGEPACE on a OnePlus 13 and three NVIDIA Jetson platforms using multi-camera processing and robotic target tracking. Relative to unmanaged inference, it reduces foreground deadline misses by 24.1%–96.1% while retaining 64.9%–98.5% of LLM throughput. All measured LLM outputs arrive within their task-defined freshness windows. On OnePlus 13, for example, camera deadline misses fall by 91.3% while 90.4% of LLM throughput is retained.

1 Introduction

Large language models (LLMs) have been increasingly pushed to resource-constrained edge devices [41, 48, 50, 51], e.g., smartphones and NVIDIA Jetson boards, to enable interactive assistance and screen-based task automation [44], as well as speech understanding and perception of the local environment [52]. In these applications, LLM inference is part of a broader workflow: the device processes sensor data to inform the LLM while also running perception and control

Figure

(a) p95 latency

(b) Deadline misses

Figure 1. Compared to the compute-intensive background workload, the memory-intensive workload (a) delays the foreground task by 1.52×1.52\times on unified-memory devices and (b) causes 72.78% deadline misses.

tasks [16, 43]. Running the LLM locally lets this workflow respond without a cloud round-trip and keeps sensitive sensor data on the device.

Despite these benefits, LLM inference consumes a substantial share of an edge device's resources. In many applications, the LLM and foreground sensor-processing tasks run concurrently on the same device and share compute and memory resources (e.g., due to power, thermal or budget constraints). Foreground tasks face tight timing budgets, as delays can cause missed deadlines, dropped frames, or wrong decisions based on stale observations [9,47][9, 47]. The system must therefore sustain useful LLM performance while preserving the timely flow of sensor data through the workflow.

To understand the resource contention, we conduct a thorough analysis and identify the shared memory subsystem as the source. Edge devices such as smartphones and Jetson boards typically share a unified memory among all compute units: the CPU, the GPU, and NPU [28, 48]. Unified memory simplifies data sharing between these units, but their concurrent memory traffic must share limited memory

∗^{*}Teng Mei and Chengxuan Pei contributed equally to this work.

†^{\dagger}Corresponding author.

bandwidth. Model-weight transfers and KV-cache accesses make LLM inference a substantial consumer of that bandwidth [47, 50, 55]. Meanwhile, sensor-processing tasks on CPU must also use the same memory system while needing to satisfy hard deadlines; so contention can delay their requests and cause deadline misses even when compute resources are not saturated [9, 43].

To isolate this effect, we have deployed a four-camera input workload on a Jetson Nano Orion Super platform [27] alongside either no background task, a compute intensive GPU task, or a task generating sustained memory traffic. Figure 1 shows that the compute-intensive task has negligible interference with the four-camera task. In contrast, the sustained memory traffic increases the p95 latency of camera workload by 1.52×1.52\times and raises the failure rate (i.e., deadline misses in the figure) to 72.78%. Further, the interference also occurs with a real LLM background: co-running a Qwen2.5-1.5B model [37] alongside a four-camera task will increase the deadline miss rate of the latter to 18.33% ( §4.3\S4.3).

These results motivate a runtime that regulates LLM execution according to foreground timing and shared-memory bandwidth pressure. However, this is not straightforward. First, the runtime needs safe, frequent opportunities to pause LLM inference during both prefill and decode phases, without costly resumption or extensive changes to the LLM framework. Next, aggregate bandwidth alone may not be sufficient to indicate when foreground tasks are being delayed; the runtime needs more informative memory-pressure signals, but collecting them must not add appreciable interference. Moreover, scheduling must respond to dynamic scenarios with changing contention and foreground deadlines while allowing the LLM to finish before its input becomes stale.

We tackle the above problems with EDGEPACE, a bandwidth-aware runtime that co-schedules LLM inference and foreground tasks on edge platforms. EDGEPACE has three design pieces: (i) a fine-grained execution plan that partitions both prefill and decode phases at safe sublayer boundaries, allowing it to pause inference promptly and resume without repeating completed work; (ii) a lightweight monitor that samples hardware counters on foreground CPU threads and combines memory-demand and stall signals to detect pressure on foreground processing without burdening each scheduling decision; and (iii) a scheduler that uses these signals together with foreground deadline slack and the remaining freshness window of the LLM input to decide when inference should proceed or yield. Together, these components protect time-sensitive processing while allowing the LLM to make progress whenever resources permit.

We evaluate EDGEPACE across four heterogeneous platforms, including three Jetson platforms [27–29] and a OnePlus 13 with Snapdragon 8 Elite [33], and two workflows of multi-camera processing and robotic target tracking. Relative to unmanaged inference, EDGEPACE reduces the foreground deadline miss rate by 24.1%–96.1% while retaining 64.9%–98.5% of LLM throughput. For example, on AGX Orin, robotic tracking misses are reduced by 96.1% while retaining 93.4% throughput; on OnePlus 13, camera deadline misses are reduced by 91.3% while retaining 90.4% throughput. Crucially, EDGEPACE delivers all LLM outputs within their freshness windows. Overall, EDGEPACE achieves our goal of preserving both timely sensor processing and useful LLM inference across distinct environments and workflows.

References (12)