MemLLM: End-to-end In-Storage Acceleration of On-device Retrieval-Augmented Generation using Precomputed KV Caches
Seungkwan Kang, Hyungseok Ko, Heemin Kim, Myoungsoo Jung
Key points
From the paper's conclusion- Evaluated across eight real-world RAG datasets and six on-device LLM models, MemLLM achieves an average end-to-end speedup of 4.06$\times$ over the GPU baseline.
Abstract
Retrieval-augmented generation (RAG) on edge devices enables personalized large language model (LLM) inference while preserving privacy. However, RAG's inherent length asymmetry makes the prefill phase the dominant bottleneck. While precomputing the KV caches offline alleviates the prefill cost on server systems, the multi-gigabyte caches over the narrow interconnect create a severe I/O wall for on-device systems. To mitigate this, we propose MemLLM, an end-to-end in-storage processing (ISP) architecture that executes the complete attention pipeline based on precomputed KV caches within the SSD. MemLLM utilizes per-channel accelerators to fully utilize the aggregated NAND channel bandwidth and accelerates all KV cache-related computations on the storage-side to minimize PCIe transfers. To efficiently handle the sparse updates required by RAG, MemLLM introduces a fused recomputation-query kernel paired with a hardware-based filter logic to halve the NAND read volume and eliminate write-back penalties. Furthermore, MemLLM's global SRAM-based stateful reduction engine enables a completely DRAM-less dataflow, thereby removing the internal memory bottlenecks and bounding the PCIe egress to an $O(1)$ footprint. A full-stack software stack allows asynchronous, zero-copy transfers from the ISP to the host and provides transparent execution within modern ML frameworks. Evaluated across eight real-world RAG datasets and six on-device LLM models, MemLLM achieves an average end-to-end speedup of 4.06$\times$ over the GPU baseline.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- PCR: A Prefetch-Enhanced Cache Reuse System for Low-Latency RAG ServingACM Transactions on Architecture and Code Optimization · 2026
- CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge FusionACM Transactions on Computer Systems · 2026
- On-device large language models: a survey of model compression and system optimizationArtificial Intelligence Review · 2026
- To Keep or Not to Keep: Learning KV Cache Retention in Disaggregated LLM Serving SystemsarXiv · 2026
- DARIC: A Position-Independent KV Cache Reuse System with Distribution-Aware RecomputationarXiv · 2026
- Range: Decoupling KV-Cache Reuse Granularity from Storage WorkarXiv · 2026