Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online Adaptation
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large Language Models (LLMs) are revolutionizing how users interact with information systems, yet their high inference cost poses serious scalability and sustainability challenges. Caching inference responses, allowing them to be retrieved without another forward pass through the LLM, has emerged as one possible solution. Traditional exact-match caching, however, overlooks the semantic similarity between queries, leading to unnecessary recomputation. Semantic caching addresses this by retrieving responses based on semantic similarity, but introduces a fundamentally different cache eviction problem: one must account for mismatch costs between incoming queries and cached responses. Moreover, key system parameters, such as query arrival probabilities and serving costs, are often unknown and must be learned over time. Existing semantic caching methods are largely ad-hoc, lacking theoretical foundations and unable to adapt to real-world uncertainty. In this paper, we present a principled, learning-based framework for semantic cache eviction under unknown query and cost distributions. We formulate both offline optimization and online learning variants of the problem, and develop provably efficient algorithms with state-of-the-art guarantees. We also evaluate our framework on a synthetic dataset, showing that our proposed algorithms perform matching or superior performance compared with baselines.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 28 of its 42 references that are in the map. First posted on arXiv 11 Aug 2025.
Builds on
28 of 42 references.
Closest ancestors · 1
Same direction, newest first
Other references · 27
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2019Provably Efficient Reinforcement Learning with Linear Function Approximationcited by 520
- 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
- 2024GraphRouter: A Graph-based Router for LLM Selectionscited by 165
- 2023Accelerating LLM Inference with Staged Speculative Decodingcited by 151
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 128
15 more
- 2023SpotServe: Serving Generative Large Language Models on Preemptible Instancescited by 87
- 2024ServerlessLLM: Low-Latency Serverless Inference for Large Language Modelscited by 80
- 2017Improving Regret Bounds for Combinatorial Semi-Bandits with Probabilistically Triggered Arms and Its Applicationscited by 45
- 2023Survey of Vector Database Management Systemscited by 39
- 2024Cost-Effective Online Multi-LLM Selection with Versatile Reward Modelscited by 39
- 2013Optimal approximation for submodular and supermodular optimization with bounded curvaturecited by 29
- 2023Contextual Combinatorial Bandits with Probabilistically Triggered Armscited by 18
- 2024SCALM: Towards Semantic Caching for Automated Chat Services with Large Language Modelscited by 16
- 2022Batch-Size Independent Regret Bounds for Combinatorial Semi-Bandits with Probabilistically Triggered Arms or Independent Armscited by 15
- 2020Multinomial Logit Bandit with Low Switching Costcited by 10
- 2023Online Submodular Maximization via Online Convex Optimizationcited by 6
- 2025Offline Learning for Combinatorial Multi-armed Banditscited by 5
- 2023Cache me if you Can: an Online Cost-aware Teacher-Student framework to Reduce the Calls to Large Language Modelscited by 4
- 2019Similarity Caching: Theory and Algorithmscited by 3
- 2025A Unified Online-Offline Framework for Co-Branding Campaign Recommendationscited by 1
Built on by
Citing papers per year: 2026: 13.
13 papers.
Sort:
By area:
- 2026HARBOR: Automated Harness Optimizationcited by 11
- 2026Scaling the Long Video Understanding of Multimodal Large Language Models via Visual Memory Mechanismcited by 9
- 2026Prompt Injection Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Cachingcited by 4
- 2026MemBoost: A Memory-Boosted Framework for Cost-Aware LLM Inferencecited by 1
- 2026Hallucination Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Cachingcited by 1
- 2026Closing the Operational Gap in Semantic Cachingcited by 1
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systemscited by 0
- 2026POLAR: Online Learning for LoRA Adapter Caching and Routing in Edge LLM Servingcited by 0
- 2026Continuous Semantic Caching for Low-Cost LLM Servingcited by 0
- 2026FinCacheServe: Dependency-Consistent Answer Reuse for Cost-Efficient RAG Serving over Mutable Enterprise Documentscited by 0
- 2026PHOENIX: Fine-Tuned SLM-Powered Autonomous Satellite Lifetime Extension via Predictive Self-Healing and Multi-Agent AI Recoverycited by 0
- 2026Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoderscited by 0
1 more
- 2026Semantic Views: Certified Reuse of LLM Labels Across Semantic Queries8 Oct 2026
- 2026Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoders20 Aug 2026
- 2026PHOENIX: Fine-Tuned SLM-Powered Autonomous Satellite Lifetime Extension via Predictive Self-Healing and Multi-Agent AI Recovery7 Aug 2026
- 2026FinCacheServe: Dependency-Consistent Answer Reuse for Cost-Efficient RAG Serving over Mutable Enterprise Documents14 Jul 2026
- 2026Closing the Operational Gap in Semantic Caching18 Jun 2026
- 2026Hallucination Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Caching27 May 2026
- 2026HARBOR: Automated Harness Optimization22 Apr 2026
- 2026Continuous Semantic Caching for Low-Cost LLM Serving21 Apr 2026
- 2026POLAR: Online Learning for LoRA Adapter Caching and Routing in Edge LLM Serving17 Apr 2026
- 2026Scaling the Long Video Understanding of Multimodal Large Language Models via Visual Memory Mechanism31 Mar 2026
- 2026MemBoost: A Memory-Boosted Framework for Cost-Aware LLM Inference27 Mar 2026
- 2026Prompt Injection Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Caching19 Jan 2026
- 2026HARBOR: Automated Harness Optimizationcited by 11
- 2026Prompt Injection Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Cachingcited by 4
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systemscited by 0
- 2026PHOENIX: Fine-Tuned SLM-Powered Autonomous Satellite Lifetime Extension via Predictive Self-Healing and Multi-Agent AI Recoverycited by 0
- 2026PHOENIX: Fine-Tuned SLM-Powered Autonomous Satellite Lifetime Extension via Predictive Self-Healing and Multi-Agent AI Recovery7 Aug 2026
- 2026HARBOR: Automated Harness Optimization22 Apr 2026
- 2026Prompt Injection Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Caching19 Jan 2026
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systems16 Jan 2026
- 2026MemBoost: A Memory-Boosted Framework for Cost-Aware LLM Inferencecited by 1
- 2026Hallucination Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Cachingcited by 1
- 2026Closing the Operational Gap in Semantic Cachingcited by 1
- 2026Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoderscited by 0
- 2026Semantic Views: Certified Reuse of LLM Labels Across Semantic Queriescited by 0
- 2026Semantic Views: Certified Reuse of LLM Labels Across Semantic Queries8 Oct 2026
- 2026Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoders20 Aug 2026
- 2026Closing the Operational Gap in Semantic Caching18 Jun 2026
- 2026Hallucination Mitigation with Agentic AI, Nested Learning, and AI Sustainability via Semantic Caching27 May 2026
- 2026MemBoost: A Memory-Boosted Framework for Cost-Aware LLM Inference27 Mar 2026
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
- 2026Asynchronous Verified Semantic Caching for Tiered LLM Architectures
- 2026Randomization Boosts KV Caching, Learning Balances Query Load: A Joint Perspective
- 2025Category-Aware Semantic Caching for Heterogeneous LLM Workloads
- 2026Risk-Constrained Freshness-Aware Semantic Caching for Open-Web Retrieval-Augmented LLMs
- 2026ToolCaching: Towards Efficient Caching for LLM Tool-calling
- 2025Cache-to-Cache: Direct Semantic Communication Between Large Language Models