arXiv:2609.06551cs.DCSep 2026

Manuscript Offprint

arXiv:2609.06551

EStream: Fast and Memory-Efficient MoE Prefill through Expert Virtualization on Mobile NPUs

Junming Zhang, Zhenzhe Zheng, Fan Wu, Xiaoyao Huang, Jie Wu

Junming Zhang*

elliott-z@sjtu.edu.cn

Shanghai Jiao Tong University

Shanghai, China

Zhenzhe Zheng*†

zhenzhezheng@sjtu.edu.cn

Shanghai Jiao Tong University

Shanghai, China

Fan Wu

wu-fan@sjtu.edu.cn

Shanghai Jiao Tong University

Shanghai, China

Xiaoyao Huang

huangxy32@chinatelecom.cn

Cloud Computing Research

Institute, China Telecom

China

Jie Wu

jiewu@temple.edu

Temple University

Philadelphia, Pennsylvania, USA

Abstract

Mobile vendors and application developers increasingly deploy LLMs on smartphones for diverse prefill-only services. Yet current systems rely mainly on dense models whose regular computation maps efficiently to mobile NPUs, leaving more capable MoEs underused. MoE prefill does not fit mobile NPUs: NPU graphs are fixed at compile time, yet MoE picks experts at runtime; and one request touches most experts, more than a phone can hold in memory. We present ESTREAM, which resolves both by separating what the NPU must fix from what MoE decides at runtime. A single compiled expert graph serves every expert, with each expert's routed tokens and weight address bound at call time, so dynamic MoE execution runs entirely on the NPU without padding or CPU/GPU fallback. Expert virtualization keeps the expert pool in UFS flash storage and pages it through a fixed-size NPU-addressable arena, group by group, with loading hidden behind computation, so memory is bounded by the arena rather than by the model. It further introduces a hardware-aware configuration algorithm that automatically configures the UFS-NPU pipeline and maximizes loading-computation overlap. Across 18 comparative settings covering three 7B–16B MoEs and 256–4,096-token prompts, we evaluate ESTREAM on a commercial Snapdragon smartphone. Compared to the fastest baseline at each setting, ESTREAM achieves a 2.25–27.57× pure-prefill TTFT speedup and reduces peak physical memory by 1.19–12.29×. ESTREAM further scales to MoE models with up to 46.7B parameters.

1 Introduction

Mobile systems increasingly run language models on the device, where keeping inference local protects user data and enables operation under poor network conditions [57, 60]. Beyond open-ended content generation, these models serve semantic decision tasks, including intent recognition, content moderation, recommendation, factual verification, and candidate ranking [18, 45]; on mobile phones, for example,

Android's Gemini Nano flags scam calls entirely on the device [25], and Apple's assistant maps requests to intents [1] (Figure 1, left). These workloads obtain their useful outputs from prefill-stage logits without iterative autoregressive decoding, are known as prefill-only workloads, and already constitute a substantial class of user requests [45].

However, existing mobile systems remain designed primarily around dense Transformers [12, 60], creating a mismatch with the broader LLM landscape, where sparse Mixture-of-Experts (MoE) has emerged as a leading architecture for scaling model capability without a proportional increase in per-token computation [16, 19, 21]. MoE can outperform dense models under similar inference-FLOP budgets [12, 16, 35, 54]. For example, Qwen3-30B-A3B holds 30B parameters but activates only 3B per token, yet outperforms dense Qwen3-4B across all reported benchmarks [54]. This capacity-computation advantage could enable more capable mobile services, such as on-device content moderation and personalized content recommendation [22]. Apple's newly announced on-device model holds 20B sparse parameters in flash, yet routes experts per prompt rather than per token because per-token expert swapping is too slow [4].

Realizing this opportunity on phone-class SoCs remains difficult because MoE prefill creates two coupled mismatches. First, dynamic MoE execution conflicts with graph-centric NPU interfaces. Each layer reveals which experts are active, and how many tokens each receives, only after routing. Although low-level NPU primitives support runtime control, addressing, and data movement [27], common deployment stacks expose the NPU only through precompiled graphs with fixed tensor shapes [11, 51]. Existing NPU systems therefore compile graphs of fixed capacity and invoke them repeatedly until all routed tokens are processed, while retaining routing, indexing, or dispatch on the CPU/GPU [6] (Figure 1, right, bottom). This adds padding, host-control, and cross-processor synchronization overheads. Second, token-level sparsity becomes nearly dense at request level. Although each token activates only a few experts, multi-token prefill collectively touches most of the expert pool

*Junming Zhang and Zhenzhe Zheng contributed equally to this research. †Corresponding author.

Figure

Figure 1: On-device prefill-only applications process private data, but MoE prefill remains inefficient on mobile devices.

(Figure 1, right, top), causing severe memory pressure in resident runtimes [45]. Existing remedies relieve this pressure at a cost. CPU/GPU offloading systems handle dynamic routing and reduce expert residency by caching and prefetching, but do so on the CPU/GPU rather than the NPU [52, 55, 56]. Model-side pruning or expert substitution trades accuracy for efficiency [8, 13, 26, 33].

In this work, we present ESTREAM, a low-latency, memory-efficient, and accuracy-preserving system for on-device MoE prefill. First, for the graph mismatch, topology-invariant expert graph sharing compiles one expert graph for all experts of the same shape, and runtime route and parameter binding passes each expert's tokens and weight address as inputs on every call; with routing also on the NPU, no expert is padded and no step returns to the CPU/GPU, i.e., full-NPU prefill. Second, for the memory mismatch, expert virtualization keeps the expert pool in UFS flash storage and streams experts, a group at a time, through a fixed-size arena the NPU reads directly, freeing each group's space after its last use; a request may activate every expert, yet only one arena's worth is ever in memory. Third, to hide the storage latency that this streaming introduces, a UFS-NPU pipeline overlaps each group's load with non-expert computation and execution of groups already loaded, with group size, queue depth, and resident group count automatically configured.

We implement ESTREAM on a OnePlus 15 with a Snapdragon 8 Elite Gen 5 SoC using weight-only Q4 quantization, floating-point activations, and no approximation-based sparsity. We evaluate OLMoE, LFM2.5, and DeepSeek-V2 across 18 model-length settings up to 4,096 tokens, with additional experiments on Qwen3-30B-A3B and Mixtral-8×7B.

This paper makes the following contributions:

  • We identify two mismatches that block full-NPU MoE prefill on mobile devices. Input-dependent expert execution conflicts with graph-centric NPU stacks that bind graph structure, tensor capacity, and parameters ahead of execution, while request-level densification activates

nearly the entire expert pool even when device memory can hold only a fraction of it.

  • We design and implement ESTREAM, which reuses a topology-invariant graph across shape-compatible experts, binds routes and parameters at runtime, virtualizes the expert pool over a bounded NPU-addressable arena streamed from UFS, and automatically configures the UFS-NPU pipeline. It thereby enables fast and memory-efficient MoE prefill on mobile SoCs without modifying the model. To our knowledge, it is the first system to run full-NPU large MoE prefill on a commercial smartphone.

  • Across the 18 primary model-length settings, ESTREAM achieves a 2.25–27.57× pure-prefill TTFT speedup and uses 6.45–12.29× less physical memory than the fastest completed non-offloading baseline at each point. Against a same-backend reference with every expert resident, it uses 3.73–6.36× less memory, while its latency gap narrows to 4.3–23.0% at 4K.

References (19)