MeanCache: User-Centric Semantic Caching for LLM Web Services
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) like ChatGPT and Llama have revolutionized natural language processing and search engine dynamics. However, these models incur exceptionally high computational costs. For instance, GPT-3 consists of 175 billion parameters, where inference demands billions of floating-point operations. Caching is a natural solution to reduce LLM inference costs on repeated queries, which constitute about 31% of the total queries. However, existing caching methods are incapable of finding semantic similarities among LLM queries nor do they operate on contextual queries, leading to unacceptable false hit-and-miss rates. This paper introduces MeanCache, a user-centric semantic cache for LLM-based services that identifies semantically similar queries to determine cache hit or miss. Using MeanCache, the response to a user's semantically similar query can be retrieved from a local cache rather than re-querying the LLM, thus reducing costs, service provider load, and environmental impact. MeanCache leverages Federated Learning (FL) to collaboratively train a query similarity model without violating user privacy. By placing a local cache in each user's device and using FL, MeanCache reduces the latency and costs and enhances model performance, resulting in lower false hit rates. MeanCache also encodes context chains for every cached query, offering a simple yet highly effective mechanism to discern contextual query responses from standalone. Our experiments benchmarked against the state-of-the-art caching method, reveal that MeanCache attains an approximately 17% higher F-score and a 20% increase in precision during semantic cache hit-and-miss decisions while performing even better on contextual queries. It also reduces the storage requirement by 83% and accelerates semantic cache hit-and-miss decisions by 11%.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 22 of its 55 references that are in the map. First posted on arXiv 5 Mar 2024.
Builds on
22 of 55 references.
References · 22
- 2017Attention Is All You Needcited by 59,932
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,592
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2018Federated Optimization in Heterogeneous Networkscited by 2,971
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
- 2020Tackling the Objective Inconsistency Problem in Heterogeneous Federated Optimizationcited by 897
- 2020Federated Learning with Matched Averagingcited by 564
- 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
10 more
- 2020Flower: A Friendly Federated Learning Research Frameworkcited by 449
- 2024QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebookscited by 354
- 2024The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bitscited by 289
- 2017Efficient Natural Language Response Suggestion for Smart Replycited by 228
- 2024How to Train Data-Efficient LLMscited by 91
- 2024Compositional Generative Modeling: A Single Model is Not All You Needcited by 41
- 2023FedDebug: Systematic Debugging for Federated Learning Applicationscited by 6
- 2023FedDefender: Backdoor Attack Defense in Federated Learningcited by 4
- 2022Towards cost-effective and resource-aware aggregation at Edge for Federated Learningcited by 3
- 2023TraceFL: Interpretability-Driven Debugging in Federated Learning via Neuron Provenancecited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 10.
14 papers.
Sort:
By area:
- 2025Towards AI Search Paradigmcited by 19
- 2025Advancing Semantic Caching for LLMs with Domain-Specific Embeddings and Synthetic Datacited by 7
- 2025Category-Aware Semantic Caching for Heterogeneous LLM Workloadscited by 4
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Cachingcited by 3
- 2026Asynchronous Verified Semantic Caching for Tiered LLM Architecturescited by 3
- 2024EACO-RAG: Towards Distributed Tiered LLM Deployment using Edge-Assisted and Collaborative RAG with Adaptive Knowledge Updatecited by 2
- 2026From Exact Hits to Close Enough: Semantic Caching for LLM Embeddingscited by 1
- 2026Closing the Operational Gap in Semantic Cachingcited by 1
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systemscited by 0
- 2026MemBoost: A Memory-Boosted Framework for Cost-Aware LLM Inferencecited by 0
- 2026Networking-Aware Energy Efficiency in Agentic AI Inference: A Surveycited by 0
- 2026Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoderscited by 0
- 2026Similarity Is Not Validity: Defending LLM Semantic Caches Against Poisoning28 Sep 2026
- 2026On Device Agentic Operation Caches -- Classifier-Centric NL-to-Action Generation27 Sep 2026
- 2026Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoders20 Aug 2026
- 2026Closing the Operational Gap in Semantic Caching18 Jun 2026
- 2026Networking-Aware Energy Efficiency in Agentic AI Inference: A Survey9 Apr 2026
- 2026MemBoost: A Memory-Boosted Framework for Cost-Aware LLM Inference27 Mar 2026
- 2026Asynchronous Verified Semantic Caching for Tiered LLM Architectures13 Feb 2026
- 2026From Exact Hits to Close Enough: Semantic Caching for LLM Embeddings7 Feb 2026
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching30 Jan 2026
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systems16 Jan 2026
- 2025Category-Aware Semantic Caching for Heterogeneous LLM Workloads29 Oct 2025
- 2025Towards AI Search Paradigm20 Jun 2025
- 2026Asynchronous Verified Semantic Caching for Tiered LLM Architecturescited by 3
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systemscited by 0
- 2026Networking-Aware Energy Efficiency in Agentic AI Inference: A Surveycited by 0
- 2026On Device Agentic Operation Caches -- Classifier-Centric NL-to-Action Generationcited by 0
- 2026On Device Agentic Operation Caches -- Classifier-Centric NL-to-Action Generation27 Sep 2026
- 2026Networking-Aware Energy Efficiency in Agentic AI Inference: A Survey9 Apr 2026
- 2026Asynchronous Verified Semantic Caching for Tiered LLM Architectures13 Feb 2026
- 2026Semantic Caching and Intent-Driven Context Optimization for Multi-Agent Natural Language to Code Systems16 Jan 2026
- 2025Towards AI Search Paradigmcited by 19
- 2025Advancing Semantic Caching for LLMs with Domain-Specific Embeddings and Synthetic Datacited by 7
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Cachingcited by 3
- 2026From Exact Hits to Close Enough: Semantic Caching for LLM Embeddingscited by 1
- 2026Closing the Operational Gap in Semantic Cachingcited by 1
- 2026MemBoost: A Memory-Boosted Framework for Cost-Aware LLM Inferencecited by 0
- 2026Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoderscited by 0
- 2026Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoders20 Aug 2026
- 2026Closing the Operational Gap in Semantic Caching18 Jun 2026
- 2026MemBoost: A Memory-Boosted Framework for Cost-Aware LLM Inference27 Mar 2026
- 2026From Exact Hits to Close Enough: Semantic Caching for LLM Embeddings7 Feb 2026
- 2026From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching30 Jan 2026
- 2025Towards AI Search Paradigm20 Jun 2025
- 2025Advancing Semantic Caching for LLMs with Domain-Specific Embeddings and Synthetic Data3 Apr 2025