arXiv:2610.03394cs.DCOct 2026

Manuscript Offprint

arXiv:2610.03394

EdgeAgent: Orchestrating On-Device LLM inference for End-User Multi-Agent Systems on CPU-GPU Unified Memory Architectures

Yuhai Long, Yuanxin Wei, Kai Wu, Jinhui Wei, Dan Huang, Jiangsu Du

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yuhai Long

longyh27@mail2.sysu.edu.cn

Sun Yat-sen University

School of Computer Science and

Engineering

Guangzhou, China

Jinhui Wei

weijh28@mail2.sysu.edu.cn

Sun Yat-sen University

School of Computer Science and

Engineering

Guangzhou, China

Yuanxin Wei

weiyx25@mail2.sysu.edu.cn

Sun Yat-sen University

School of Computer Science and

Engineering

Guangzhou, China

Dan Huang

huangd79@mail.sysu.edu.cn

Sun Yat-sen University

School of Computer Science and

Engineering

Guangzhou, China

Kai Wu

wukai6@cmic.chinamobile.com

China Mobile Internet Company Ltd.

Guangzhou, China

Jiangsu Du ∗^{*}

dujiangsu@mail.sysu.edu.cn

Sun Yat-sen University

School of Computer Science and

Engineering

Guangzhou, China

Abstract

Emerging multi-agent LLMs demand privacy-preserving edge deployment, yet current inference systems struggle with these collaborative workflows. Specifically, the memory-bound decode phase causes severe bus contention on unified memory architectures (UMA), paralyzing naive CPU-GPU co-execution. Furthermore, speculative decoding in multi-agent workloads faces extreme variance in drafting difficulty, alternating between complex reasoning and predictable structured generation. Compounded by frequent tool-induced stalls, this highly fragmented execution severely underutilizes hardware and defeats traditional static batching.

We present EDGEAGENT, a cross-layer inference system explicitly co-designed for edge UMA and multi-agent workloads. At the micro-architectural level, it bypasses rigid graph-compiler constraints to enable zero-copy UMA-aware tensor parallelism, utilizing asymmetric memory layouts to fully saturate both CPU and GPU compute units. At the scheduling level, it dynamically allocates draft budgets based on real-time sequence predictability to bound bandwidth waste. Concurrently, an asynchronous suspend-and-yield mechanism actively evicts stalled agents, ensuring continuous hardware saturation during unpredictable tool invocations.

Extensive evaluations on an Apple M4 SoC demonstrate that the UMA-aware execution alone contributes a 1.29×1.29\times speedup over batched speculative decoding. Adding the agent-aware scheduling lifts the full EdgeAgent system to a 1.77×1.77\times speedup under extreme tool-use latencies.

CCS Concepts: • Computer systems organization → Heterogeneous (hybrid) systems; • Software and its engineering → Scheduling; • Computing methodologies → Multi-agent systems.

Keywords: On-device LLM inference, Multi-agent systems, Unified memory architectures, Speculative decoding

ACM Reference Format:

Yuhai Long, Yuanxin Wei, Kai Wu, Jinhui Wei, Dan Huang, and Jiangsu Du. 2027. EdgeAgent: Orchestrating On-Device LLM inference for End-User Multi-Agent Systems on CPU-GPU Unified Memory Architectures. In Proceedings of the 32nd ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1 (ASPLOS '27), April 11–15, 2027, Heraklion, Greece. ACM, New York, NY, USA, 15 pages. https://doi.org/10.1145/3845814.3850072

∗^{*}Corresponding author.

1 Introduction

The application of large language models [8, 11, 14] (LLMs) is increasingly shifting from monolithic chat interfaces toward coordinated multi-agent systems. In recent agent frameworks, such as LangGraph [18] and OpenClaw [29], a common design choice is to decompose complex tasks into specialized roles and coordinate them through explicit orchestration mechanisms. With the enhanced capability of multi-agent systems, they start to take over more system access privileges, raising growing privacy and security concerns.

Figure

This work is licensed under a Creative Commons Attribution 4.0 International License.

ASPLOS '27, Heraklion, Greece

© 2027 Copyright held by the owner/author(s).

ACM ISBN 979-8-4007-3012-2/2027/04

https://doi.org/10.1145/3845814.3850072

Yuhai Long, Yuanxin Wei, Kai Wu, Jinhui Wei, Dan Huang, and Jiangsu Du

This trend makes on-device LLM inference deployment increasingly important. However, existing LLM inference systems can hardly handle such multi-agent workloads on end-user devices efficiently.

Most existing LLM inference systems [17, 30, 41] are primarily designed for cloud environments and multi-user workloads. These systems process hundreds of concurrent requests across multiple discrete GPUs, targeting high-throughput batching and multi-tenant isolation. Lacking awareness of fine-grained, intra-node memory contention, their hardware and workload assumptions render them highly inefficient when ported directly to edge devices. Conversely, existing edge frameworks (e.g., Llama.cpp [14], MLX [4]) primarily target single-user, single-request sequential inference. When confronted with collaborative multi-agent workloads which dynamically generate concurrent, highly fragmented requests on a single device, these monolithic edge systems lack the necessary orchestration, leaving available compute resources severely underutilized.

The more balanced CPU-GPU computing capability on modern edge devices enables effective use of tensor parallelism (TP) to coordinate heterogeneous execution and fully utilize on-chip compute resources [10, 16, 23, 37, 38]. Modern edge systems-on-chip (SoCs) typically integrate powerful mobile GPUs and highly capable CPUs with advanced matrix extensions, such as ARMv9 Scalable Matrix Extension [5] (SME) in the Apple M4 [3], forming a well-proportioned heterogeneous computing platform. TP [28], as a mainstream model parallelism technique, partitions LLM workloads (e.g., matrix multiplications) across multiple devices, making it suitable for distributing computation between CPUs and GPUs to speed up inference. During the compute-bound prefill phase, heterogeneous TP can fully exploit aggregated floating-point throughput by engaging both processing units simultaneously. However, during the decode phase, such CPU-GPU parallelism brings little performance gain under the shared unified memory architecture (UMA), since the decoding process is inherently memory-intensive and severely bounded by memory bandwidth.

To mitigate the memory bound in the decode phase, recent systems improve arithmetic intensity through speculative decoding (SD) [9, 21]. SD decouples generation into two stages: a lightweight draft model first proposes multiple candidate tokens, and the target model then verifies them in parallel, accepting the longest matching prefix. By amortizing target-model weight loading across multiple token verifications, SD reduces per-token bandwidth pressure and improves decode throughput.

However, integrating these hardware-aware optimizations for multi-agent workflows into existing graph-based edge frameworks, such as MLX, exposes three critical systemic bottlenecks. First, implementing CPU-GPU lock-free TP on shared memory exposes the limitations of modern graph compilers [2, 19]. Standard directed acyclic graph (DAG) executors cannot safely express asynchronous, orthogonal memory mutations to a single shared tensor, forcing run-times into eager synchronization which severely disrupts the graph optimization pipeline and explicit memory copies that negate the zero-copy benefits of UMA. Second, different agent tasks exhibit extreme variance in the difficulty of drafting (e.g., highly structured code synthesis vs. deliberate reasoning). As this drafting difficulty is related to the real-time context, traditional SD systems allocate a static draft length uniformly across all tasks. This inevitably results in the waste of limited memory bandwidth, which is frequently used to process rejected drafts. Third, agents frequently execute external tool calls [25, 40] that incur out-of-system stall. When an agent stalls on a tool call, the runtime cannot dynamically redistribute its idle speculative budget to remaining active agents, failing to fully exploit the available compute capacity and degrading overall system performance on edge devices.

To address these challenges, we propose EDGEAGENT, a co-designed inference system explicitly tailored for edge UMA and concurrent multi-agent workflows. EDGEAGENT adopts a cross-layer architecture featuring an agent-aware scheduling layer, which tightly couples real-time agent states and task predictability directly with the underlying UMA-aware execution layer. In summary, this paper makes the following contributions:

  • We design a UMA-aware execution layer with a zero-copy TP graph that adopts symmetric memory layouts to eliminate compiler overhead, together with optimized SME micro-kernels to jointly saturate heterogeneous edge compute units.

  • We design an agent-aware scheduling layer that dynamically allocates draft budgets based on real-time drafting difficulty, and employs an in-place suspend-and-yield mechanism to instantly reclaim computation slots during tool-induced stalls.

  • We implement and evaluate EDGEAGENT on modern edge architectures using trace-driven, concurrent multi-agent workflows. Experimental results demonstrate that our system delivers substantial improvements in both global concurrent throughput and end-to-end task makespan compared to state-of-the-practice inference frameworks.

References (11)