Reproduce “Efficient On-Device Diffusion LLM Inference with Mobile NPU” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Tuowei Wang, Yanfan Sun, Ju Ren

llada.cpp is an algorithm–runtime co-design for running diffusion language models efficiently on smartphone NPUs. By combining speculative multi-block denoising, confidence-based token revision, and swap-aware memory management, it achieves 17×–42× lower latency than a CPU baseline for LLaDA-8B, up to 3.9× lower latency than an equal-size autoregressive model, and reduces energy per request from 581 J to 158 J on the reported workload while largely preserving benchmark accuracy.

Key insights

  • NPU acceleration alone is insufficient: the largest gains come from coordinating denoising-window utilization, token-state management, KV-cache reuse, and memory movement.
  • Speculative future-block decoding can hurt accuracy when early predictions are treated as final; progressive confidence-based revision restores quality and can slightly exceed the CPU reference on several tasks.
  • The CPU–NPU division of labor is deliberate: dense matrix operations run on the NPU, while sparse revisions, control flow, and irregular cache updates remain on the CPU.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.