paper-with-me

Papers

When Classic Cache Policies Fail: Learning-Augmented Replacement for Semantic Retrieval Buffers

2026-07-01 · Yushi Sun, Bowen Cao, Wai Lam hf

LLM agents increasingly rely on retrieval buffers to store and reuse past experience, yet the cache management policies governing these buffers remain largely ad-hoc. We formalize this as an online semantic cache replacement problem with switching costs, where items are matched by embedding similarity and hit quality is continuous rather than binary. Through experiments on two datasets from MemoryBench-Full (LoCoMo, DialSim) with 8 replacement policies, we reveal a surprising finding: classic heuristics (LRU, LFU) consistently underperform the naive FIFO baseline on semantic workloads, due to the absence of temporal locality and frequency concentration. We propose SOLAR, a learning-augmented framework that derives modification timing from regret accumulation (achieving sim17\% modification rate) and content selection from Bayesian online learning over implicit retrieval feedback. We prove SOLAR achieves a constant competitive ratio leq 3, independent of cache size and horizon (vs.\ Ω(K) for FIFO), and eviction regret O(KTlog T), matching the Ω(KT) lower bound up to logarithmic factors. Experiments demonstrate 5--75\% relative improvement over FIFO at tight cache sizes, with a clearly characterized phase transition at the working set boundary. Synthetic experiments with 5000-item pools further reveal an inverted-U relationship between pool size and retrieval quality, justifying capacity constraints as a retrieval noise phenomenon rather than a storage limitation.

📄 PDF Abstract BibTeX arXiv:2607.00394

Code (0)

등록된 구현이 없습니다.

Tasks

Semantic Retrieval

Similar Papers 제목 키워드 기반

No-Regret Caching with Noisy Request Estimates

2023-09-05 · Younes Ben Mazziane, Francescomaria Faticanti, Giovanni Neglia, Sara Alouf

Online learning algorithms have been successfully used to design caching policies with regret guarantees. Existing algorithms assume that the cache knows the exact request sequence, but this may not be feasible in high l…

Selective Memory Retention for Long-Horizon LLM Agents

2026-06-28 · Pranath Reddy arxiv

When does retention matter for memory-augmented LLM agents? We study this with TraceRetain, a lightweight framework for bounded external memory in frozen LLM agents that scores entries by interpretable features (success,…

Cache Management for Mixture-of-Experts LLMs -- extended version

2025-09-02 · Spyros Angelopoulos, Loris Marchal, Adrien Obrecht, Bertrand Simon arxiv

Large language models (LLMs) have demonstrated remarkable capabilities across a variety of tasks. One of the main challenges towards the successful deployment of LLMs is memory management, since they typically involve bi…

Toward Robust and Efficient ML-Based GPU Caching for Modern Inference

2025-09-25 · Peng Chen, Jiaji Zhang, Hailiang Zhao, Yirong Zhang 외 arxiv

In modern GPU inference, cache efficiency remains a major bottleneck, and heuristic policies such as \textsc{LRU} can perform far worse than the offline optimum. Existing learning-based caching systems improve hit rates …

From Exact Hits to Close Enough: Semantic Caching for LLM Embeddings

2026-02-07 · Dvir David Biton, Roy Friedman 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 cla…