Beyond Query Similarity: Safety-Conditioned Cache Routing for LLM Response Reuse
On the map: Efficient LLM inference and serving → Efficient reasoning and agent inference also fits: KV cache optimization
Abstract (arXiv)
Semantic response caching reuses a cached response for a semantically similar query to improve LLM inference efficiency. However, query similarity alone can lead to unsafe reuse when safety conditions change. Existing approaches improve cache safety through stricter similarity checks, context-aware validation, or response verification, yet they may still miss safety conflicts between the cached response and the new request or introduce unnecessary verification overhead. We argue that safe and efficient semantic caching requires a reuse policy that makes the cached response's safety conditions explicit and uses them to guide the reuse decision with a balance between safety and utility. In this paper, we propose SafeCache, a safety-aware framework that separates candidate retrieval from safety approval and formulates semantic response reuse as a safety-conditioned routing problem. SafeCache matches each cached-response condition against the new request and aggregates the per-condition mismatches into an overall risk score. A separate contradiction guard prevents explicit conflicts from being diluted by strong matches. It further estimates matching uncertainty and calibrates the routing policy under a required unsafe-reuse target and a verifier-call budget to choose among direct reuse, selective verification, or regeneration. Experiments show that SafeCache achieves the better safety-utility trade-off among the evaluated baselines, enabling safer response reuse at comparable cache utility.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Efficient reasoning and agent inference, one of 12 directions in Efficient LLM inference and serving. Builds on 23 of its 32 references that are in the map. Submitted 7 Nov 2026.
Builds on
23 of 32 references.
Closest ancestors · 1
Same direction, newest first
Other references · 22
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2017On Calibration of Modern Neural Networkscited by 5,356
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,713
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2019Towards Scalable Multi-domain Conversational Agents: The Schema-Guided Dialogue Datasetcited by 450
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 307
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 262
- 2021SituatedQA: Incorporating Extra-Linguistic Contexts into QAcited by 159
- 2025LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inferencecited by 152
- 2024Hydragen: High-Throughput LLM Inference with Shared Prefixescited by 94
- 2024TurboRAG: Accelerating Retrieval-Augmented Generation with Precomputed KV Caches for Chunked Textcited by 72
- 2024Marconi: Prefix Caching for the Era of Hybrid LLMscited by 47
10 more
- 2024GPT Semantic Cache: Reducing LLM Costs and Latency via Semantic Embedding Cachingcited by 24
- 2025Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online Adaptationcited by 20
- 2024MeanCache: User-Centric Semantic Caching for LLM Web Servicescited by 19
- 2025Cortex: Achieving Low-Latency, Cost-Efficient Remote Data Access For LLM via Semantic-Aware Knowledge Cachingcited by 7
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Cachingcited by 6
- 2026Asynchronous Verified Semantic Caching for Tiered LLM Architecturescited by 4
- 2026StepCache: Step-Level Reuse with Lightweight Verification and Selective Patching for LLM Servingcited by 4
- 2026From Exact Hits to Close Enough: Semantic Caching for LLM Embeddingscited by 3
- 2026Continuous Semantic Caching for Low-Cost LLM Servingcited by 3
- 2026Grounded Cache Routing for Retrieval-Augmented Generation: When Is It Safe to Reuse an Answer?cited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026LaCache: Robust Semantic Caching for LLM Serving
- 2026Risk-Constrained Freshness-Aware Semantic Caching for Open-Web Retrieval-Augmented LLMs
- 2026Similarity Is Not Validity: Defending LLM Semantic Caches Against Poisoning
- 2026Multi-Turn Semantic Caching for Low-Cost LLM Serving
- 2025TweakLLM: A Routing Architecture for Dynamic Tailoring of Cached Responses
- 2025Generative Caching for Structurally Similar Prompts and Responses
- 2026RelaxKV: Recomputation Guided by the Query with Sparse Context Attention for Efficient KV Cache Reuse
- 2026Randomization Boosts KV Caching, Learning Balances Query Load: A Joint Perspective