paper-with-me

Papers

MVR-cache: Optimizing Semantic Caching via Multi-Vector Retrieval and Learned Prompt Segmentation

2026-05-24 · Ali Noshad, Zishan Zheng, Yinjun Wu arxiv

To reduce LLM costs and latency, semantic caching systems must accurately identify when a new prompt matches a cached one. Current methods often rely on simplistic similarity measures, which limit their effectiveness. We introduce MVR-cache, a novel semantic caching approach that significantly improves retrieval accuracy by integrating Multi-Vector Retrieval (MVR). MVR-cache is built upon a learnable segmentation model that intelligently splits prompts, enabling fine-grained similarity comparisons via MaxSim. We derive the model's training objective from a rigorous theoretical analysis. This can ensure that optimizing this objective directly maximizes cache hits under strict correctness constraints. To solve the resulting non-differentiable combinatorial optimization problem, we leverage a reinforcement learning-based training strategy with the theoretically grounded objectives as the reward. Experimental results on established benchmarks across diverse tasks confirm that in comparison to the state-of-the-art, MVR-cache consistently increases the cache hit rates by up to 37% while maintaining the same correctness guarantees. MVR-cache is available at https://github.com/PKU-SDS-lab/MVR-Cache

📄 PDF Abstract BibTeX arXiv:2605.24914

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

LLMCache: Layer-Wise Caching Strategies for Accelerated Reuse in Transformer Inference

2025-12-18 · Harsh Vardhan Bansal arxiv

Transformer-based language models have achieved remarkable performance across a wide range of tasks, yet their high inference latency poses a significant challenge for real-timeand large-scale deployment. While existing …

Semantic Similarity

From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching

2026-01-30 · Zhixiang Zhang, Zesen Liu, Yuchong Xie, Quanfeng Huang 외 arxiv

Semantic caching has emerged as a pivotal technique for scaling LLM applications, widely adopted by major providers including AWS and Microsoft. By utilizing semantic embedding vectors as cache keys, this mechanism effec…

Adaptive Semantic Prompt Caching with VectorQ

2025-02-06 · Luis Gaspar Schroeder, Shu Liu, Alejandro Cuadron, Mark Zhao 외

Semantic prompt caches reduce the latency and cost of large language model (LLM) inference by reusing cached LLM-generated responses for semantically similar prompts. Vector similarity metrics assign a numerical score to…

Language ModelingLanguage ModellingLarge Language Model

GPT Semantic Cache: Reducing LLM Costs and Latency via Semantic Embedding Caching

2024-11-08 · Sajal Regmi, Chetan Phakami Pun

Large Language Models (LLMs), such as GPT, have revolutionized artificial intelligence by enabling nuanced understanding and generation of human-like text across a wide range of applications. However, the high computatio…

Natural Language UnderstandingRetrieval

An Ensemble Embedding Approach for Improving Semantic Caching Performance in LLM-based Systems

2025-07-08 · Shervin Ghaffari, Zohre Bahranifard, Mohammad Akbari arxiv

Semantic caching enhances the efficiency of large language model (LLM) systems by identifying semantically similar queries, storing responses once, and serving them for subsequent equivalent requests. However, existing s…

Semantic Similarity