Manuscript Offprint

arXiv:2609.03079

LeanStream: A Speculate-and-Refine Streaming Framework for Efficient on-Device LLM Inference

Renyuan Liu, Yuyang Leng, Kaiyan Liu, Yuzhou Zhong, Shaohan Hu, Chun-Fu, Chen, Peijun Zhao, Heechul Yun, Shuochao Yao

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

Abstract

On-device LLM inference is attractive for privacy and responsiveness, but remains challenging on mobile and embedded devices because model weights far exceed available DRAM. Prior systems exploit activation sparsity and offload weights to SSD or flash storage, but face a fundamental systems trade-off: accurate sparse execution decisions require the latest context, whereas efficient computation–I/O overlap requires early prediction. As a result, existing designs either initialize execution or incur redundant weight fetches, extra computation, and large cache overheads. We present LeanStream, a streaming speculate-and-refine framework for efficient on-device LLM inference. LeanStream progressively refines computation, loading, and cache-retention priorities using partial GPU results, enabling fine-grained overlap between GPU execution and storage I/O. We implement LeanStream on both mobile and embedded platforms. Compared with prior on-device LLM inference systems, LeanStream reduces memory usage by 4.8×−7.5×4.8\times-7.5\times at the best throughput achieved by prior work, while further improving token generation throughput by 1.6×−2.1×1.6\times-2.1\times.

CCS Concepts

• Computing methodologies → Machine learning; • Software and its engineering;

References (62)

  • Llm in a flash: Efficient large language model inference with limited memory
  • Powerinfer: Fast large language model serving with a consumer-grade gpu
  • Powerinfer-2: Fast large language model inference on a smartphone (opens arXiv in a new tab)
  • Contextual sparsity for efficient llms at inference time
  • Training-free activation sparsity in large language models
  • Efficient llm inference using dynamic input pruning and cache-aware masking
  • Sti: Turbocharge nlp inference at the edge via elastic pipelining
  • D2moe: Dual routing and dynamic scheduling for efficient on-device moe-based llm serving
  • Unleashing the full potential of cpu/gpu hybrid inference for moe models
  • Tokenflow: Responsive llm text streaming serving under request burst via preemptive scheduling
  • 6g non-terrestrial networks enabled low-altitude economy: Opportunities and challenges (opens arXiv in a new tab)
  • Llama 2: Open Foundation and Fine-Tuned Chat Models
  • Qwen3 Technical Report
  • Deepiot: Compressing deep neural network structures for sensing systems with a compressor-critic framework
  • Fastdeepiot: Towards understanding and optimizing neural network execution time on mobile and embedded devices
  • Dynaspa: Exploiting spatial sparsity for efficient dynamic dnn inference on devices
  • Daf: An efficient end-to-end dynamic activation framework for on-device dnn training
  • On-device dynamic dnn inference through spatial sparsity exploitation
  • Scaleflow: Efficient deep vision pipeline with closed-loop scale-adaptive inference
  • Physical self-supervised learning: Imu sensing without manual labels
  • Llama 2: Early adopters' utilization of meta's new open-source pretrained model
  • Introducing and enhancing intrinsic activation sparsity within large language models
  • Moefication: Transformer feed-forward layers are mixtures of experts
  • Pipedream: Generalized pipeline parallelism for dnn training
  • Centauri: Enabling efficient scheduling for communication-computation overlap in large model training via communication partitioning
  • {FlashNeuron}: {SSD-Enabled} {Large-Batch} training of very deep neural networks
  • Zero-infinity: Breaking the gpu memory wall for extreme scale deep learning
  • {I/O} stack optimization for smartphones
  • Design tradeoffs for {SSD} performance
  • An empirical study of {File-System} fragmentation in mobile storage systems
  • Distributed representations of words and phrases and their compositionality
  • Glove: Global vectors for word representation
  • Learning a nonlinear embedding by preserving class neighbourhood structure
  • The tensor algebra compiler
  • Constrained model predictive control: Stability and optimality
  • The explicit linear quadratic regulator for constrained systems
  • Complex decisions made simple: a primer on stochastic dynamic programming
  • Approximate nearest neighbors: towards removing the curse of dimensionality
  • The power of comparative reasoning
  • Lookupfin: making transformers compute-lite for cpu inference
  • Multiplying matrices without multiplying
  • T-mac: Cpu renaissance via table lookup for low-bit llm deployment on edge
  • Lut-nn: Empower efficient neural network inference with centroid learning and table lookup
  • Scalable and sustainable deep learning via randomized hashing
  • Mongoose: A learnable lsh framework for efficient neural network training
  • Optimal data-dependent hashing for approximate near neighbors
  • Learning space partitions for nearest neighbor search (opens arXiv in a new tab)
  • Practical and optimal lsh for angular distance
  • Bolt: Accelerated data mining with fast vector compression
  • IEEE transactions on pattern analysis and machine intelligence, 40(4):769–790, 2017
  • Binarized neural networks
  • Smoothquant: Accurate and efficient post-training quantization for large language models
  • Gray and David L. Neuhoff
  • Estimating or propagating gradients through stochastic neurons for conditional computation (opens arXiv in a new tab)
  • Categorical Reparameterization with Gumbel-Softmax
  • Principal component analysis
  • {InfiniGen}: Efficient generative inference of large language models with dynamic {KV} cache management
  • Learning relaxed belady for content distribution network caching
  • {GL-Cache}: Group-level learning for efficient and high-performance caching
  • Standardized comparison over long language sequences
  • Truthfulqa: Measuring how models mimic human falsehoods
  • Coqa: A conversational question answering challenge