Continuous Semantic Caching for Low-Cost LLM Serving
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
As Large Language Models (LLMs) become increasingly popular, caching responses so that they can be reused by users with semantically similar queries has become a vital strategy for reducing inference costs and latency. Existing caching frameworks have proposed to decide which query responses to cache by assuming a finite, known universe of discrete queries and learning their serving costs and arrival probabilities. As LLMs' pool of users and queries expands, however, such an assumption becomes increasingly untenable: real-world LLM queries reside in an infinite, continuous embedding space. In this paper, we establish the first rigorous theoretical framework for semantic LLM response caching in continuous query space under uncertainty. To bridge the gap between discrete optimization and continuous representation spaces, we introduce dynamic ε-net discretization coupled with Kernel Ridge Regression. This design enables the system to formally quantify estimation uncertainty and generalize partial feedback on LLM query costs across continuous semantic query neighborhoods. We develop both offline learning and online adaptive algorithms optimized to reduce switching costs incurred by changing the cached responses. We prove that our online algorithm achieves a sublinear regret bound against an optimal oracle, which reduces to existing bounds for discrete query models. Extensive empirical evaluations demonstrate that our framework approximates the continuous optimal cache well while also reducing computational and switching overhead compared to existing methods.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 14 of its 32 references that are in the map. First posted on arXiv 21 Apr 2026.
Builds on
14 of 32 references.
Closest ancestors · 2
Same direction, newest first
- 2025Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online Adaptation11 Aug
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
Other references · 12
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
- 2017On Kernelized Multi-armed Banditscited by 352
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
- 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
- 2023Accelerating LLM Inference with Staged Speculative Decodingcited by 151
- 2024Cost-Effective Online Multi-LLM Selection with Versatile Reward Modelscited by 39
- 2019Learning to Cache With No Regretscited by 16
- 2025ContextCache: Context-Aware Semantic Cache for Multi-Turn Queries in Large Language Modelscited by 7
- 2026Asynchronous Verified Semantic Caching for Tiered LLM Architecturescited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Rethinking Caching for LLM Serving Systems: Beyond Traditional Heuristics
- 2025IC-Cache: Efficient Large Language Model Serving via In-context Caching
- 2026Randomization Boosts KV Caching, Learning Balances Query Load: A Joint Perspective
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference
- 2026Dynamic Model Routing and Cascading for Efficient LLM Inference: A Survey
- 2025Cache-to-Cache: Direct Semantic Communication Between Large Language Models
- 2025KV Cache Compression for Inference Efficiency in LLMs: A Review
- 2024ClusterKV: Manipulating LLM KV Cache in Semantic Space for Recallable Compression