mlsanityData to 7 Oct 2026

MeanCache: User-Centric Semantic Caching for LLM Web Services

arXiv 2403.02694 ↗First posted 5 Mar 2024cs.LG cs.AI cs.CLcited by 14

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,592
  6. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  7. 2018Federated Optimization in Heterogeneous Networkscited by 2,971
  8. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  9. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
  10. 2020Tackling the Objective Inconsistency Problem in Heterogeneous Federated Optimizationcited by 897
  11. 2020Federated Learning with Matched Averagingcited by 564
  12. 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
10 more
  1. 2020Flower: A Friendly Federated Learning Research Frameworkcited by 449
  2. 2024QuIP#: Even Better LLM Quantization with Hadamard Incoherence and Lattice Codebookscited by 354
  3. 2024The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bitscited by 289
  4. 2017Efficient Natural Language Response Suggestion for Smart Replycited by 228
  5. 2024How to Train Data-Efficient LLMscited by 91
  6. 2024Compositional Generative Modeling: A Single Model is Not All You Needcited by 41
  7. 2023FedDebug: Systematic Debugging for Federated Learning Applicationscited by 6
  8. 2023FedDefender: Backdoor Attack Defense in Federated Learningcited by 4
  9. 2022Towards cost-effective and resource-aware aggregation at Edge for Federated Learningcited by 3
  10. 2023TraceFL: Interpretability-Driven Debugging in Federated Learning via Neuron Provenancecited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 10.

14 papers.

Sort:

By area: