arXiv:2602.13165cs.IRcs.AI2026-02被引 3

Krites让静态缓存更智能,不增加延迟却能多用3.9倍的优质答案。

Asynchronous Verified Semantic Caching for Tiered LLM Architectures

  • 用LLM异步判断能否复用静态缓存答案,提升覆盖范围。
  • 在对话和搜索场景下,静态命中率最高提升3.9倍,延迟不变。
  • 适合高并发、低延迟的LLM服务场景,如搜索与智能助手。

大型语言模型(LLMs)现已成为搜索、辅助及智能体工作流的关键环节,语义缓存对降低推理成本和延迟至关重要。生产环境通常采用分层静态-动态设计:静态缓存包含从日志中挖掘的预审优质回复,动态缓存则在线填充。目前两层常使用单一嵌入相似度阈值,导致权衡困境:保守阈值错失安全复用机会,激进阈值则可能返回语义错误结果。我们提出Krites,一种异步、由LLM判断的缓存策略,可在不改变服务决策的前提下扩展静态缓存覆盖范围。在关键路径上,Krites表现如标准静态阈值策略;当最近的静态邻居略低于阈值时,系统异步调用LLM裁判,确认是否可接受该静态回复。若通过验证,该匹配将被提升至动态缓存,使后续重复或改写请求可复用已审核的静态答案,逐步扩大静态覆盖。在对话与搜索工作负载的追踪模拟中,相较于调优基线,Krites使以已审核静态答案服务的请求数占比(直接静态命中+经验证提升)最高提升3.9倍,且关键路径延迟保持不变。

原文摘要 · Abstract (English)

Large language models (LLMs) now sit in the critical path of search, assistance, and agentic workflows, making semantic caching essential for reducing inference cost and latency. Production deployments typically use a tiered static-dynamic design: a static cache of curated, offline vetted responses mined from logs, backed by a dynamic cache populated online. In practice, both tiers are commonly governed by a single embedding similarity threshold, which induces a hard tradeoff: conservative thresholds miss safe reuse opportunities, while aggressive thresholds risk serving semantically incorrect responses. We introduce Krites, an asynchronous, LLM-judged caching policy that expands static coverage without changing serving decisions. On the critical path, Krites behaves exactly like a standard static threshold policy. When the nearest static neighbor of the prompt falls just below the static threshold, Krites asynchronously invokes an LLM judge to verify whether the static response is acceptable for the new prompt. Approved matches are promoted into the dynamic cache, allowing future repeats and paraphrases to reuse curated static answers and expanding static reach over time. In trace-driven simulations on conversational and search workloads, Krites increases the fraction of requests served with curated static answers (direct static hits plus verified promotions) by up to3.9 times for conversational traffic and search-style queries relative to tuned baselines, with unchanged critical path latency.

语义缓存大模型优化延迟优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。