LDPCache: Locally Differentially Private Multi-Query Processing with Cache Optimization for Large Language Models
Haoqiang Shi, Ning Wang, Chuan He, Qian Ma, Zhigang Wang, Shen Su, Yu Gu, Zhihong Tian
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › LLM Serving Optimization · Type: new method · Keywords: local differential privacy, LLM as a service, caching, semantic similarity, edge computing
Areas: Privacy & Federated Learning › Privacy Defenses and Attacks › Private Language Models
Summary
LDPCache introduces a cache-enhanced locally differentially private framework that reuses cached responses for multi-query LLM processing, reducing privacy budget consumption while improving response accuracy.
Explained to a 5-year-old
People want to ask a big computer brain lots of questions, but they need to keep their questions secret. The computer remembers answers to similar questions and stores them in a secret box. When a new question comes, it checks if the secret box already has a good answer and uses that instead of asking the brain again. This way, fewer questions are sent out, keeping the secret safe. It also helps the answers be more accurate.
Explained to a 5-year-old, longer
In the cloud, there is a super smart computer that can answer many questions. But when you ask it, you might not want the computer to know exactly what you asked. To keep your questions secret, the computer adds some random noise before sending them. However, each time you ask, you use up some of your secret-keeping budget. If you ask many questions, you quickly run out of budget. The researchers noticed that people often ask similar questions one after another. They built a little memory box that stores answers to those similar questions. When a new question arrives, the system checks if the memory box already has a good answer. If it does, the system uses the stored answer instead of asking the big brain again. This saves the secret-keeping budget because fewer real questions are sent. The system also decides which old answers to keep in the memory box, making sure it has a variety and recent ones. As a result, users get faster, more accurate answers while staying more private.
For a technical reader
LDPCache adds a local differential privacy layer to multi-query LLM services by caching previous responses. It uses a scheduler that evaluates semantic similarity and expected accuracy to decide whether to reuse a cached answer, preserving privacy without querying the model. A multi-factor eviction policy manages limited edge memory, balancing query diversity, accuracy, and recency. Experiments show higher accuracy and lower privacy budget usage compared to existing baselines.
Problem
Providing privacy for edge users accessing cloud-based LLMs in a multi-query setting leads to rapid depletion of the local differential privacy budget, limiting both privacy and utility.
Method
The approach maintains a cache of historical responses and uses an LDP-compliant scheduler to decide whether a new query can reuse a cached result based on semantic similarity and expected accuracy gains, while a multi-factor eviction strategy manages cache memory to balance diversity, accuracy, and recency.
Results
The approach achieves significantly higher response accuracy compared to baseline methods.
Contributions
It is the first cache-enhanced LDP framework for multi-query LLM processing that makes cache hit decisions without querying the LLM while preserving LDP guarantees, and it introduces a multi-factor cache eviction strategy suitable for edge devices.
Practical relevance
It enables edge users to obtain LLM responses with stronger privacy protection and lower computational cost by reusing cached results.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction