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

DevFeed: [LeanStream: A Speculate-and-Refine Streaming Framework for Efficient on-Device LLM Inference](<https://devfeed.tech/articles/leanstream-a-speculate-and-refine-streaming-framework-for-efficient-on-device-llm-inference-120480.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2609.03079>)

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

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [On-device AI](<https://devfeed.tech/topics/on-device-ai.md>), [Local AI](<https://devfeed.tech/topics/local-ai.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [device](<https://devfeed.tech/tags/device.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [embedded-devices](<https://devfeed.tech/tags/embedded-devices.md>), [framework](<https://devfeed.tech/tags/framework.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [i-o](<https://devfeed.tech/tags/i-o.md>), [inference](<https://devfeed.tech/tags/inference.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-inference](<https://devfeed.tech/tags/llm-inference.md>), [memory](<https://devfeed.tech/tags/memory.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [model](<https://devfeed.tech/tags/model.md>), [on-device](<https://devfeed.tech/tags/on-device.md>), [overlap](<https://devfeed.tech/tags/overlap.md>), [storage](<https://devfeed.tech/tags/storage.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [systems](<https://devfeed.tech/tags/systems.md>), [throughput](<https://devfeed.tech/tags/throughput.md>), [token](<https://devfeed.tech/tags/token.md>), [trade](<https://devfeed.tech/tags/trade.md>)

## AI overview

LeanStream targets on-device LLM inference when model weights exceed available DRAM. Earlier sparse-execution systems face a trade-off: accurate execution choices need recent context, while overlapping computation with storage I/O requires early prediction. LeanStream progressively updates computation, loading, and cache-retention priorities from partial GPU results, allowing finer overlap between GPU execution and SSD or flash I/O. Implemented on mobile and embedded platforms, it reports 4.8x-7.5x lower memory use than prior systems at their best throughput, while increasing token generation throughput by 1.6x-2.1x. These figures are abstract-level comparisons; the excerpt does not provide evaluation details.

## Source excerpt

arXiv:2609.03079v2 Announce Type: replace 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 serialize 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$\times$ to 7.5$\times$ at the best throughput achieved by prior work, while further improving token generation throughput by 1.6$\times$ to 2.1$\times$. Source code is available at https://github.com/RenyuanLIU/LeanStream.