# Ask in the Crowd: Differentially Private LLM Inference via Dummy-Augmented Shuffling

*Zhihao Liu, Zixiong Guo, Shuo Shao, Yu He, Wenli Wang, Meihui Chen, Di Wang, Yuke Hu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149860) · [OpenReview](https://openreview.net/forum?id=mitOdW71vU) · [Open on the map](../papers.html#p149860)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [LLM Serving Optimization](../pgroup/363.md) · Type: new method · Keywords: differentially private LLM inference, dummy query augmentation, query shuffling, KV cache reuse, privacy preservation

Areas: [Privacy & Federated Learning](../areas/privacy-federated.md) › Privacy Defenses and Attacks › Private Language Models

## Summary
DP-SPD is a differentially private LLM inference framework that hides real queries among client-generated dummy queries and reuses transformer KV caches to preserve utility while providing strong privacy protection.

## Explained to a 5-year-old
When you ask a big computer (like a chatbot) something, your question might be private. To keep it secret, we make up some fake questions too. These fake questions are created on your device before sending anything to the server. All the real and fake questions are then shuffled, or mixed up, in a random order. The mixed list is sent to the big computer, which cannot tell which question was yours. This way, your private thoughts stay safe while the computer still helps you.

## Explained to a 5-year-old, longer
When you use a big chatbot to answer questions, you might not want others to know what you asked. To keep your question secret, we can make up some fake questions that look like real ones. These fake questions are created on your device before sending anything to the server. All the real and fake questions are then shuffled, or mixed up, in a random order. The mixed list is sent to the big computer, which cannot tell which question was yours. Because the real question is hidden among the fake ones, even if someone watches the connection, they cannot guess your private query. To make this faster, the system notices that many questions start with the same words and reuses some memory. This reuse helps the computer answer quickly without having to process everything from scratch. The method also includes a careful analysis to ensure that the privacy protection holds mathematically. By testing on different tasks like answering yes/no questions and writing short texts, we see that the system still works well. The approach keeps the answers almost as good as if the real question had been sent directly. Overall, this technique lets people ask private questions safely while still getting helpful answers.

## For a technical reader
DP-SPD protects user queries in LLM-as-a-Service by having the client generate dummy queries and shuffle them with the real query before transmission. The shuffled batch is sent to the server, where the shared prefix among queries is exploited to reuse transformer key-value caches, reducing decoding latency. A formal differential-privacy analysis is provided, guaranteeing privacy under various inference-time attacks such as EIA, MIA, and GPT-based attacks. Evaluations on classification and generation tasks show that the approach retains utility close to plain-text inference while delivering strong privacy protection. The design balances privacy, efficiency, and ease of deployment for production LLM services.

## Problem
Deploying large language models as a service exposes user queries to potential privacy breaches, and existing differential privacy methods often degrade model utility significantly.

## Method
The approach protects queries by generating dummy queries on the client side, randomly shuffling all queries, and transmitting them to the server, where the shared-prefix structure is exploited to reuse transformer key-value caches during decoding, improving efficiency while preserving privacy.

## Results
The approach provides strong inference-time privacy protection while keeping utility close to plain-text inference under practical latency.

## Contributions
It introduces a client-side dummy-query generation and shuffling scheme combined with KV-cache reuse to improve both privacy and efficiency, and it analyzes privacy guarantees under multiple attack scenarios.

## Practical relevance
Enables secure deployment of LLM inference services while preserving model utility and efficiency, addressing critical privacy concerns for users.

## Research questions this paper is counted under

- [How can we preserve privacy of sensitive data in large language models while maintaining model utility?](../q/532.md)

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](../feedback/?on=p/149860)
