From Exact Hits to Close Enough: Semantic Caching for LLM Embeddings
Not on the map. Why?
Abstract (arXiv)
The rapid adoption of large language models (LLMs) has created demand for faster responses and lower costs. Semantic caching, reusing semantically similar requests via their embeddings, addresses this need but breaks classic cache assumptions and raises new challenges. In this paper, we explore offline policies for semantic caching, proving that implementing an optimal offline policy is NP-hard, and propose several polynomial-time heuristics. We also present online semantic aware cache policies that combine recency, frequency, and locality. Evaluations on diverse datasets show that while frequency based policies are strong baselines, our novel variant improves semantic accuracy. Our findings reveal effective strategies for current systems and highlight substantial headroom for future innovation. All code is open source.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 47 references that are in the map. First posted on arXiv 7 Feb 2026.
Builds on
15 of 47 references.
References · 15
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 598
- 2019ELI5: Long Form Question Answeringcited by 567
- 2024The Faiss librarycited by 370
- 2024RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generationcited by 97
- 2024GPT Semantic Cache: Reducing LLM Costs and Latency via Semantic Embedding Cachingcited by 21
- 2025vCache: Verified Semantic Prompt Cachingcited by 15
- 2024MeanCache: User-Centric Semantic Caching for LLM Web Servicescited by 14
3 more
- 2024InstCache: A Predictive Cache for LLM Servingcited by 6
- 2022Embedding Recycling for Language Modelscited by 5
- 2025A Generative Caching System for Large Language Modelscited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Closing the Operational Gap in Semantic Cachingcited by 1
- 2026Closing the Operational Gap in Semantic Caching18 Jun 2026