Semantic Caching: From Exact Hits to Close Enough

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 of our code is open source.

Link
https://www.semanticscholar.org/paper/6a01aba2c9637e7949f9419eb25b5cee25b6f0bb
Found by
Semantic Scholar
Authors
D. Biton, Roy Friedman
Categories
evaluation, dataset
Published
2026-11-06
Last seen by the radar
2026-11-08
Citations
1
Influential citations
0
Radar score
38.01 / 100 (how it is scored)
Why it scored so
Matched: dataset, evaluat; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3799682.3840580
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar