paper-with-me

홈 › Papers

Clustering and Median Aggregation Improve Differentially Private Inference

2025-06-05 · Kareem Amin, Salman Avestimehr, Sara Babakniya, Alex Bie, Weiwei Kong, Natalia Ponomareva, Umar Syed

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.

📄 PDF Abstract BibTeX arXiv:2506.04566

Code (0)

등록된 구현이 없습니다.

Tasks

ClusteringLanguage ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

Differentially-Private Sublinear-Time Clustering

2021-12-27 · Jeremiah Blocki, Elena Grigorescu, Tamalika Mukherjee

Clustering is an essential primitive in unsupervised machine learning. We bring forth the problem of sublinear-time differentially-private clustering as a natural and well-motivated direction of research. We combine the …

Clustering

Differentially Private Clustering: Tight Approximation Ratios

2020-08-18 · NeurIPS 2020 12 · Badih Ghazi, Ravi Kumar, Pasin Manurangsi

We study the task of differentially private clustering. For several basic clustering problems, including Euclidean DensestBall, 1-Cluster, k-means, and k-median, we give efficient differentially private algorithms that a…

Clustering

Differentially Private Algorithms for Clustering with Stability Assumptions

2021-06-11 · Moshe Shechner

We study the problem of differentially private clustering under input-stability assumptions. Despite the ever-growing volume of works on differential privacy in general and differentially private clustering in particular…

Clustering

Differentially Private Clustering in Data Streams

2023-07-14 · Alessandro Epasto, Tamalika Mukherjee, Peilin Zhong

The streaming model is an abstraction of computing over massive data streams, which is a popular way of dealing with large-scale modern data analysis. In this model, there is a stream of data points, one after the other.…

Clustering

Differentially Private Clustering via Maximum Coverage

2020-08-27 · Matthew Jones, Huy Lê Nguyen, Thy Nguyen

This paper studies the problem of clustering in metric spaces while preserving the privacy of individual data. Specifically, we examine differentially private variants of the k-medians and Euclidean k-means problems. We …

Clustering