mlsanityData to 7 Oct 2026

Clustering and Median Aggregation Improve Differentially Private Inference

arXiv 2506.04566 ↗First posted 5 Jun 2025cs.LG cs.AI cs.CLcited by 5

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

  1. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  2. 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
  3. 2016Semi-supervised Knowledge Transfer for Deep Learning from Private Training Datacited by 347
  4. 2018Scalable Private Learning with PATEcited by 266
  5. 2022Synthetic Text Generation with Differential Privacy: A Simple and Practical Recipecited by 108
  6. 2023Privacy-Preserving In-Context Learning with Differentially Private Few-Shot Generationcited by 94
  7. 2024Gecko: Versatile Text Embeddings Distilled from Large Language Modelscited by 81
  8. 2023Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Modelscited by 80
  9. 2024Differentially Private Synthetic Data via Foundation Model APIs 2: Textcited by 74
  10. 2022Differentially Private Language Models for Secure Data Sharingcited by 68
  11. 2023Harnessing large-language models to generate private synthetic textcited by 65
  12. 2023Differentially Private Synthetic Data via Foundation Model APIs 1: Imagescited by 63
22 more
  1. 2023DP-OPT: Make Large Language Model Your Privacy-Preserving Prompt Engineercited by 56
  2. 2023Privacy-Preserving In-Context Learning for Large Language Modelscited by 50
  3. 2018Privacy-preserving Predictioncited by 48
  4. 2022Differentially Private Decoding in Large Language Modelscited by 34
  5. 2024Privacy-Preserving Instructions for Aligning Large Language Modelscited by 34
  6. 2022Submix: Practical Private Prediction for Large-Scale Language Modelscited by 31
  7. 2015Differentially Private k-Means Clusteringcited by 27
  8. 2024Private prediction for large-scale synthetic text generationcited by 24
  9. 2024Differentially Private Next-Token Prediction of Large Language Modelscited by 21
  10. 2016Locating a Small Cluster Privatelycited by 20
  11. 2017Accuracy First: Selecting a Differential Privacy Level for Accuracy-Constrained ERMcited by 20
  12. 2024Prompt Public Large Language Models to Synthesize Data for Private On-device Applicationscited by 17
  13. 2024Differentially Private Tabular Data Synthesis using Large Language Modelscited by 16
  14. 2025Synthesizing Privacy-Preserving Text Data via Finetuning without Finetuning Billion-Scale LLMscited by 15
  15. 2025Differentially Private Synthetic Data via APIs 3: Using Simulators Instead of Foundation Modelcited by 13
  16. 2024KnowledgeSG: Privacy-Preserving Synthetic Text Generation with Knowledge Distillation from Servercited by 11
  17. 2022Scalable Differentially Private Clustering via Hierarchically Separated Treescited by 10
  18. 2023Synthetic Query Generation for Privacy-Preserving Deep Retrieval Systems using Differentially Private Language Modelscited by 10
  19. 2024Data-adaptive Differentially Private Prompt Synthesis for In-Context Learningcited by 10
  20. 2020Differentially private k-means clustering via exponential mechanism and max covercited by 7
  21. 2024Adaptively Private Next-Token Prediction of Large Language Modelscited by 4
  22. 2019Data-Dependent Differentially Private Parameter Learning for Directed Graphical Modelscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 1.

5 papers.