paper-with-me

홈 › Papers

Generative Caching for Structurally Similar Prompts and Responses

2025-11-14 · Sarthak Chakraborty, Suman Nath, Xuchao Zhang, Chetan Bansal, Indranil Gupta arxiv

Large Language Models (LLMs) are increasingly being used to plan, reason, and execute tasks across diverse scenarios. In use cases like repeatable workflows and agentic settings, prompts are often reused with minor variations while having a similar structure for recurring tasks. This opens up opportunities for caching. However, exact prompt matching fails on such structurally similar prompts, while semantic caching may produce incorrect responses by ignoring critical differences. To address this, we introduce \ourmethod{}, a generative cache that produces variation-aware responses for structurally similar prompts. \ourmethod{} identifies reusable response patterns across similar prompt structures and synthesizes customized outputs for new requests. We show that \ourmethod{} achieves 83\% cache hit rate, while having minimal incorrect hits on datasets without prompt repetition. In agentic workflows, it improves cache hit rate by $\sim$20\% and reduces end-to-end execution latency by $\sim$34\% compared to standard prompt matching.

📄 PDF Abstract BibTeX arXiv:2511.17565

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

ConvoCache: Smart Re-Use of Chatbot Responses

2024-06-26 · Conor Atkins, Ian Wood, Mohamed Ali Kaafar, Hassan Asghar 외

We present ConvoCache, a conversational caching system that solves the problem of slow and expensive generative AI models in spoken chatbots. ConvoCache finds a semantically similar prompt in the past and reuses the resp…

Chatbot

A Generative Caching System for Large Language Models

2025-03-22 · Arun Iyengar, Ashish Kundu, Ramana Kompella, Sai Nandan Mamidi

Caching has the potential to be of significant benefit for accessing large language models (LLMs) due to their high latencies which typically range from a small number of seconds to well over a minute. Furthermore, many …

TweakLLM: A Routing Architecture for Dynamic Tailoring of Cached Responses

2025-07-31 · Muhammad Taha Cheema, Abeer Aamir, Khawaja Gul Muhammad, Naveed Anwar Bhatti 외 arxiv

Large Language Models (LLMs) process millions of queries daily, making efficient response caching a compelling optimization for reducing cost and latency. However, preserving relevance to user queries using this approach…

Semantic Similarity

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

Efficient Prompt Caching via Embedding Similarity

2024-02-02 · Hanlin Zhu, Banghua Zhu, Jiantao Jiao

Large language models (LLMs) have achieved huge success in numerous natural language process (NLP) tasks. However, it faces the challenge of significant resource consumption during inference. In this paper, we aim to imp…

Question Answering