Clustering and Median Aggregation Improve Differentially Private Inference
Not on the map. Why?
Abstract (arXiv)
Differentially private (DP) language model inference is an approach for generating private synthetic text. A sensitive input example is used to prompt an off-the-shelf large language model (LLM) to produce a similar example. Multiple examples can be aggregated together to formally satisfy the DP guarantee. Prior work creates inference batches by sampling sensitive inputs uniformly at random. We show that uniform sampling degrades the quality of privately generated text, especially when the sensitive examples concern heterogeneous topics. We remedy this problem by clustering the input data before selecting inference batches. Next, we observe that clustering also leads to more similar next-token predictions across inferences. We use this insight to introduce a new algorithm that aggregates next token statistics by privately computing medians instead of averages. This approach leverages the fact that the median has decreased local sensitivity when next token predictions are similar, allowing us to state a data-dependent and ex-post DP guarantee about the privacy properties of this algorithm. Finally, we demonstrate improvements in terms of representativeness metrics (e.g., MAUVE) as well as downstream task performance. We show that our method produces high-quality synthetic data at significantly lower privacy cost than a previous state-of-the-art method.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 34 of its 42 references that are in the map. First posted on arXiv 5 Jun 2025.
Builds on
34 of 42 references.
References · 34
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
- 2016Semi-supervised Knowledge Transfer for Deep Learning from Private Training Datacited by 347
- 2018Scalable Private Learning with PATEcited by 266
- 2022Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipecited by 108
- 2023Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generationcited by 94
- 2024Gecko: Versatile Text Embeddings Distilled from Large Language Modelscited by 81
- 2023Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Modelscited by 80
- 2024Differentially Private Synthetic Data via Foundation Model APIs 2: Textcited by 74
- 2022Differentially Private Language Models for Secure Data Sharingcited by 68
- 2023Harnessing large-language models to generate private synthetic textcited by 65
- 2023Differentially Private Synthetic Data via Foundation Model APIs 1: Imagescited by 63
22 more
- 2023DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineercited by 56
- 2023Privacy-Preserving In-Context Learning for Large Language Modelscited by 50
- 2018Privacy-preserving Predictioncited by 48
- 2022Differentially Private Decoding in Large Language Modelscited by 34
- 2024Privacy-Preserving Instructions for Aligning Large Language Modelscited by 34
- 2022Submix: Practical Private Prediction for Large-Scale Language Modelscited by 31
- 2015Differentially Private k-Means Clusteringcited by 27
- 2024Private prediction for large-scale synthetic text generationcited by 24
- 2024Differentially Private Next-Token Prediction of Large Language Modelscited by 21
- 2016Locating a Small Cluster Privatelycited by 20
- 2017Accuracy First: Selecting a Differential Privacy Level for Accuracy-Constrained ERMcited by 20
- 2024Prompt Public Large Language Models to Synthesize Data for Private On-device Applicationscited by 17
- 2024Differentially Private Tabular Data Synthesis using Large Language Modelscited by 16
- 2025Synthesizing Privacy-Preserving Text Data via Finetuning without Finetuning Billion-Scale LLMscited by 15
- 2025Differentially Private Synthetic Data via APIs 3: Using Simulators Instead of Foundation Modelcited by 13
- 2024KnowledgeSG: Privacy-Preserving Synthetic Text Generation with Knowledge Distillation from Servercited by 11
- 2022Scalable Differentially Private Clustering via Hierarchically Separated Treescited by 10
- 2023Synthetic Query Generation for Privacy-Preserving Deep Retrieval Systems using Differentially Private Language Modelscited by 10
- 2024Data-adaptive Differentially Private Prompt Synthesis for In-Context Learningcited by 10
- 2020Differentially private k-means clustering via exponential mechanism and max covercited by 7
- 2024Adaptively Private Next-Token Prediction of Large Language Modelscited by 4
- 2019Data-Dependent Differentially Private Parameter Learning for Directed Graphical Modelscited by 3
Built on by
Citing papers per year: 2025: 4; 2026: 1.
5 papers.
- 2025InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacycited by 10
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)cited by 5
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Privatecited by 2
- 2026EPSVec: Efficient and Private Synthetic Data Generation via Dataset Vectorscited by 2
- 2025Private Training & Data Generation by Clustering Embeddingscited by 0
- 2026EPSVec: Efficient and Private Synthetic Data Generation via Dataset Vectors31 Jan 2026
- 2025Private-RAG: Answering Multiple Queries with LLMs while Keeping Your Data Private10 Nov 2025
- 2025Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG)8 Oct 2025
- 2025InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacy30 Jun 2025
- 2025Private Training & Data Generation by Clustering Embeddings20 Jun 2025