KVSwap: Disk-aware KV Cache Offloading for Long-Context On-device Inference
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Language models (LMs) underpin emerging mobile and embedded AI applications like meeting and video summarization and document analysis, which often require processing multiple long-context inputs. Running an LM locally on-device improves privacy, enables offline use, and reduces cost, but long-context inference quickly hits a memory capacity wall as the key-value (KV) cache grows linearly with context length and batch size. Existing KV-cache offloading schemes are designed to transfer cache data from GPU memory to CPU memory; however, they are not suitable for embedded and mobile systems, where the CPU and GPU (or NPU) typically share a unified memory and the non-volatile secondary storage (disk) offers limited I/O bandwidth. We present KVSwap, a software framework tailored for local devices that achieves high memory efficiency while effectively leveraging disk storage. KVSwap stores the full cache on disk, uses highly compact in-memory metadata to predict which entries to preload, overlaps computation with hardware-aware disk access, and orchestrates read patterns to match storage device characteristics. Our evaluation shows that across representative LMs and storage types, KVSwap delivers higher throughput under tight memory budgets while maintaining generation quality over existing KV cache offloading schemes.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 48 of its 83 references that are in the map. First posted on arXiv 14 Nov 2025.
Builds on
48 of 83 references.
Closest ancestors · 10
Same direction, newest first
- 2025SpeCache: Speculative Key-Value Caching for Efficient Generation of LLMs20 Mar
- 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection5 Nov
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Management28 Jun
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving11 Oct
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
Other references · 38
- 2017Attention Is All You Needcited by 59,932
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2025Qwen3 Technical Reportcited by 8,195
- 2025Qwen2.5-VL Technical Reportcited by 5,418
- 2023Let's Verify Step by Stepcited by 3,598
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2025InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Modelscited by 1,769
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
26 more
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
- 2023A Survey on Multimodal Large Language Modelscited by 898
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 228
- 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 216
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 200
- 2022Language model compression with weighted low-rank factorizationcited by 192
- 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memorycited by 170
- 2024LongWriter: Unleashing 10,000+ Word Generation from Long Context LLMscited by 142
- 2024PowerInfer-2: Fast Large Language Model Inference on a Smartphonecited by 101
- 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
- 2024OpenELM: An Efficient Language Model Family with Open Training and Inference Frameworkcited by 74
- 2024A Systematic Survey of Text Summarization: From Statistical Methods to Large Language Modelscited by 52
- 2021Sparse Attention with Linear Unitscited by 41
- 2023Building Real-World Meeting Summarization Systems using Large Language Models: A Practical Perspectivecited by 34
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Servingcited by 9
- 2026Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devicescited by 8
- 2026DUAL-BLADE: Dual-Path NVMe-Direct KV-Cache Offloading for Edge LLM Inferencecited by 2
- 2026From Rigid to Dynamic: Entropy-Guided Adaptive Inference for Long-Context LLMscited by 0
- 2026SPLASH: Co-Designing Sparse Attention with High-Bandwidth Flash for Efficient Long-Context Inferencecited by 0
- 2026SPLASH: Co-Designing Sparse Attention with High-Bandwidth Flash for Efficient Long-Context Inference20 Sep 2026
- 2026From Rigid to Dynamic: Entropy-Guided Adaptive Inference for Long-Context LLMs8 Jun 2026
- 2026DUAL-BLADE: Dual-Path NVMe-Direct KV-Cache Offloading for Edge LLM Inference29 Apr 2026
- 2026Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devices17 Feb 2026
- 2025EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Serving16 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2026KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inference
- 2026KV Cache Offloading for Context-Intensive Tasks
- 2026TierKV: Long-Context On-Device LLMs via Predictive Multi-Tier KV Caching
- 2026HillInfer: Efficient Long-Context LLM Inference on the Edge with Hierarchical KV Eviction using SmartSSD
- 2026SparKV: Overhead-Aware KV Cache Loading for Efficient On-Device LLM Inference
- 2026ScoutAttention: Efficient KV Cache Offloading via Layer-Ahead CPU Pre-computation for LLM Inference
- 2025A Cost-Effective Near-Storage Processing Solution for Offline Inference of Long-Context LLMs
- 2026TTKV: Temporal-Tiered KV Cache for Long-Context LLM Inference