跳到正文
arXiv cs.CL· Baran Atalar, Xutong Liu, Jinhang Zuo, Siwei Wang, Wei Chen, Carlee Joe-Wong·· 10 天前AI 评分23

面向低成本 LLM 服务的连续语义缓存框架

Continuous Semantic Caching for Low-Cost LLM Serving

AI 导读

研究者提出首个面向连续查询空间的语义 LLM 响应缓存理论框架,用动态 ε-net 离散化结合 Kernel Ridge Regression 量化估计不确定性,并将部分反馈泛化到连续语义邻域。

正文 · 原文

View PDF

Abstract:As Large Language Models (LLMs) become increasingly popular, caching responses so that they can be reused by users with semantically similar queries has become a vital strategy for reducing inference costs and latency. Existing caching frameworks have proposed to decide which query responses to cache by assuming a finite, known universe of discrete queries and learning their serving costs and arrival probabilities. As LLMs' pool of users and queries expands, however, such an assumption becomes increasingly untenable: real-world LLM queries reside in an infinite, continuous embedding space. In this paper, we establish the first rigorous theoretical framework for semantic LLM response caching in continuous query space under uncertainty. To bridge the gap between discrete optimization and continuous representation spaces, we introduce dynamic $\epsilon$-net discretization coupled with Kernel Ridge Regression. This design enables the system to formally quantify estimation uncertainty and generalize partial feedback on LLM query costs across continuous semantic query neighborhoods. We develop both offline learning and online adaptive algorithms optimized to reduce switching costs incurred by changing the cached responses. We prove that our online algorithm achieves a sublinear regret bound against an optimal oracle, which reduces to existing bounds for discrete query models. Extensive empirical evaluations demonstrate that our framework approximates the continuous optimal cache well while also reducing computational and switching overhead compared to existing methods.
Comments: Accepted to ACM MobiHoc 2026
Subjects: Machine Learning (cs.LG); Computation and Language (cs.CL)
Cite as: arXiv:2604.20021 [cs.LG]
  (or arXiv:2604.20021v2 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2604.20021

arXiv-issued DOI via DataCite

Submission history

From: Baran Atalar [view email]
[v1] Tue, 21 Apr 2026 21:56:43 UTC (688 KB)
[v2] Tue, 6 Oct 2026 19:32:25 UTC (1,780 KB)

来源:arXiv cs.CL · arxiv.org