Skip to content

SparPR: Runtime KV-Cache Recovery for Resource-Constrained LLM Inference on Consumer Hardware

Oct 2026 · 0 citations · 11 references
Computer Science

TL;DR

Sparse Partial Recomputation is presented, a runtime KV-cache recovery mechanism that does not modify model weights and requires no offline training and switches between sparse recomputation and full recovery according to a runtime cost comparison.

Abstract

Running large language models (LLMs) on consumer hardware is bottlenecked by the key-value (KV) cache, which grows with every decoded token and quickly exhausts the memory and bandwidth of a single consumer GPU. We present SparPR (Sparse Partial Recomputation), a runtime KV-cache recovery mechanism that does not modify model weights and requires no offline training. SparPR couples three online decisions: Query-Aware key-block selection scores historical blocks against the current query; dynamic budget control estimates per-block copy and recompute costs to decide how many blocks to retain; and on-demand local recomputation with cost-aware fallback merges retained blocks into continuous spans and switches between sparse recomputation and full recovery according to a runtime cost comparison. Implemented on FlexGen/FlexLLMGen, SparPR is evaluated on a single consumer laptop (RTX 3070 Ti 8GB, Ryzen 9 6900HX, 16GB RAM). It cuts end-to-end latency by 31%, 52%, and 63% at 1k, 2k, and 4k prompt tokens respectively, with 1.4x-2.7x higher throughput, and completes an 8k-token workload in 44 minutes where the FlexGen baseline times out. Under a fixed cache budget, SparPR retains a Needle Accuracy that stays well above StreamingLLM and H2O at every keep ratio, and ablation studies confirm that the three mechanisms act jointly.

View source

Similar papers

#machine learning Preprint Oct 2026

Exact Memory-Time Optimization for Prefix-Cached Language Model Serving

This work introduces Prefix-Certificate Retention (PCR), an exact finite-trace formulation for static, grouped, reset-on-access timeouts, and derives a linear-time-in-grid-size dynamic program for ordered timeouts and bounds that certify the cost of this restriction.

Shivam Gupta · 0 citations
#artificial intelligence Preprint Oct 2026

Adaptive DHiSparse: Speculative Decoding over a Load-Adaptive KV Hierarchy

Long-context serving runs out of KV memory before the hardware reaches its useful throughput. HiSparse stores history in host memory and fetches only the selected entries, but it uses one cache budget at every load and does not handle draft-model speculative decoding such as DSpark and DFlash2. We present Adaptive DHiS...

Naji Alazhar, Wassel Alazhar · 0 citations

Dynamic Flow, Static Graph: KV Cache Reuse for Efficient LLM Serving on Mobile NPUs

This work proposes an intra-graph mechanism that maps selective KV recomputation onto static NPU graphs, reconciling algorithmic dynamicity with NPU staticity, and develops an inter-graph scheduler to optimize chunk merging and minimize padding with dynamic programming.

Zheng-Xiang Huang, Sheng Chen, Chao-Yue Niu et al. · 2 citations
Open access Nov 2026

Characterizing KV-Cache Performance in Large Language Model Inference: Context Length, Attention Architecture, and GPU Memory Residency

Large language models (LLMs) commonly employ key–value (KV) caching to avoid recomputing previous attention states during autoregressive inference. However, its measured performance benefit depends on workload characteristics and the memory environment. This study presents a controlled systems characterization across i...

Abed Al Raoof K. Bsoul, Yazan Alshboul · 0 citations
#artificial intelligence Preprint Nov 2026

FlashOffloading: Low-Latency KV Cache Offloading for Long-Context LLM Serving

FlashOffloading is presented, a host-DRAM-centric inference architecture that fully offloads the KV cache in both the prefill and decode phases, optimizing KV offloading latency across the entire pipeline and delivering throughput gains under a time-per-output-token (TPOT) service-level objective (SLO).

Xuan Wang, Zhuan-Hao Wu, Ting-Zhu Fang et al. · 0 citations

Related blog posts

MIT News · Artificial Intelligence Nov 23, 2026

Many languages, one common neural code

Analyzing speakers of 21 languages, an MIT study using multilingual AI finds the human brain may represent meaning in much the same way.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.