Efficient On-Device Diffusion LLM Inference with Mobile NPU

📅 2026-06-11
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenges of deploying diffusion-based large language models (dLLMs) on mobile devices, where high computational overhead from repeated denoising steps and poor alignment with the high-throughput characteristics of neural processing units (NPUs) hinder efficient inference. To tackle these issues, the authors propose LLaDA.cpp—the first dLLM inference framework optimized for mobile NPUs—featuring multi-token speculative decoding, a dual-path progressive refinement mechanism, a swap-optimized memory runtime, and a CPU-NPU cooperative execution strategy. These innovations collectively mitigate workload shrinkage, difficulties in KV cache reuse, and NPU address space limitations. Experimental results demonstrate that LLaDA-8B achieves 17–42× lower latency than CPU baselines across diverse hardware platforms and dLLM workloads while preserving generation quality.
📝 Abstract
Diffusion large language models (dLLMs) accelerate generation by denoising multiple tokens in parallel, making them attractive for latency-sensitive mobile inference. However, repeated denoising introduces substantial computation on smartphones. Mobile neural processing units (NPUs) offer high-throughput dense matrix computation, but efficiently exploiting them remains challenging: token commitment shrinks per-block effective workloads, token revision complicates KV cache reuse, and limited NPU-visible address space incurs costly remapping and data transfer overheads. In this paper, we propose llada.cpp, the first NPU-aware inference framework for accelerating dLLMs on smartphones. llada.cpp aligns block-wise dLLM inference with the execution characteristics of mobile NPUs through three techniques. (1) Multi-Block Speculative Decoding fills the shrinking workload in late-stage current-block decoding with speculative future-block tokens. (2) Dual-Path Progressive Revision keeps committed tokens revisable until stable and refreshes unstable tokens through a CPU-side path without stalling dense NPU execution. (3) Swap-Optimized Memory Runtime compacts NPU-visible address layouts and overlaps data staging with NPU computation to reduce remapping and transfer overheads. We implement llada.cpp as an end-to-end framework and evaluate it across diverse hardware platforms and dLLM workloads. llada.cpp reduces LLaDA-8B generation latency by 17x-42x over the CPU baseline with prefix KV cache reuse, while preserving generation quality.
Problem

Research questions and friction points this paper is trying to address.

diffusion LLM
on-device inference
mobile NPU
KV cache reuse
memory overhead
Innovation

Methods, ideas, or system contributions that make the work stand out.

diffusion LLM
mobile NPU
speculative decoding
KV cache reuse
memory optimization