mlsanityData to 14 Oct 2026

Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online Adaptation

arXiv 2508.07675 ↗First posted 11 Aug 2025cs.LGcited by 13

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

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep

Other references · 27

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  2. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
  3. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
  4. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
  5. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
  6. 2022Efficiently Scaling Transformer Inferencecited by 539
  7. 2019Provably Efficient Reinforcement Learning with Linear Function Approximationcited by 520
  8. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
  9. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
  10. 2024GraphRouter: A Graph-based Router for LLM Selectionscited by 165
  11. 2023Accelerating LLM Inference with Staged Speculative Decodingcited by 151
  12. 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 128
15 more
  1. 2023SpotServe: Serving Generative Large Language Models on Preemptible Instancescited by 87
  2. 2024ServerlessLLM: Low-Latency Serverless Inference for Large Language Modelscited by 80
  3. 2017Improving Regret Bounds for Combinatorial Semi-Bandits with Probabilistically Triggered Arms and Its Applicationscited by 45
  4. 2023Survey of Vector Database Management Systemscited by 39
  5. 2024Cost-Effective Online Multi-LLM Selection with Versatile Reward Modelscited by 39
  6. 2013Optimal approximation for submodular and supermodular optimization with bounded curvaturecited by 29
  7. 2023Contextual Combinatorial Bandits with Probabilistically Triggered Armscited by 18
  8. 2024SCALM: Towards Semantic Caching for Automated Chat Services with Large Language Modelscited by 16
  9. 2022Batch-Size Independent Regret Bounds for Combinatorial Semi-Bandits with Probabilistically Triggered Arms or Independent Armscited by 15
  10. 2020Multinomial Logit Bandit with Low Switching Costcited by 10
  11. 2023Online Submodular Maximization via Online Convex Optimizationcited by 6
  12. 2025Offline Learning for Combinatorial Multi-armed Banditscited by 5
  13. 2023Cache me if you Can: an Online Cost-aware Teacher-Student framework to Reduce the Calls to Large Language Modelscited by 4
  14. 2019Similarity Caching: Theory and Algorithmscited by 3
  15. 2025A Unified Online-Offline Framework for Co-Branding Campaign Recommendationscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 13.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Rethinking Caching for LLM Serving Systems: Beyond Traditional Heuristics
  2. 2025IC-Cache: Efficient Large Language Model Serving via In-context Caching
  3. 2026Asynchronous Verified Semantic Caching for Tiered LLM Architectures
  4. 2026Randomization Boosts KV Caching, Learning Balances Query Load: A Joint Perspective
  5. 2025Category-Aware Semantic Caching for Heterogeneous LLM Workloads
  6. 2026Risk-Constrained Freshness-Aware Semantic Caching for Open-Web Retrieval-Augmented LLMs
  7. 2026ToolCaching: Towards Efficient Caching for LLM Tool-calling
  8. 2025Cache-to-Cache: Direct Semantic Communication Between Large Language Models