Abstract
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 present polynomial algorithms with constant multiplicative error and lower additive error than the previous state-of-the-art for each problem. Additionally, our algorithms use a clustering algorithm without differential privacy as a black-box. This allows practitioners to control the trade-off between runtime and approximation factor by choosing a suitable clustering algorithm to use.
Introduction
Clustering is a fundamental tool for data analysis, used in applications ranging from image segmentation to collaborative filtering. However, standard clustering algorithms, such as Lloyd's algorithm for $k$-means, are highly sensitive to individual data points. A shift in a single data point can significantly alter the resulting cluster centers, potentially leaking sensitive information about that individual.
Differential Privacy (DP) offers a mathematical framework to mitigate this risk, but often at the expense of utility. Previous private clustering algorithms frequently suffered from high "additive error"—an extra cost added to the objective function independent of the data's natural clustering quality. Many prior works exhibited additive errors scaling with $O(k^{1.5})$, where $k$ is the number of clusters. This research introduces new algorithms for $k$-medians and Euclidean $k$-means that reduce this error to be nearly linear in $k$, $O(k \log n)$, making private clustering more viable for large-scale applications.
Methodology
The proposed framework bridges the gap between private data and standard clustering tools through a three-stage process:
- Potential Center Selection via Maximum Coverage: The algorithm identifies a set of "potential centers" by iterating through exponentially increasing distance thresholds. At each threshold, it employs a Differentially Private Maximum Coverage algorithm to select centers that "cover" the maximum number of points within that distance. This ensures the potential centers represent the underlying data distribution while maintaining privacy.
- Sanitization: Private demand points are "snapped" to their nearest potential center. The algorithm then counts the points associated with each center and adds Laplace noise to these counts, creating a "sanitized" weighted dataset.
- Black-Box Clustering: Finally, any standard, non-private clustering algorithm (e.g., a 2.675-approximation for $k$-medians) is run on the sanitized dataset. Since the dataset is already private, the final output inherits the DP guarantees. This modularity allows practitioners to swap in faster or more accurate non-private algorithms as they become available.
Key Results
The primary contribution of this work is the significant reduction in additive error while maintaining a constant multiplicative error factor. For $k$-medians, the algorithm achieves a cost of $O(\text{OPT} + \frac{k\Delta}{\epsilon_p} \log n \log \frac{e}{\delta_p})$, closely matching known lower bounds. For Euclidean $k$-means, the additive error is similarly reduced to be nearly linear in $k$.
As shown in the table above, the proposed algorithms ("Ours") achieve $O(1)$ multiplicative error and $O(k \log n)$ additive error for $k$-medians, outperforming the $O(k \log n)^{1.5}$ error in previous work by Stemmer et al. Similar improvements are observed for Euclidean $k$-means, where the additive error is reduced from $O(k^{1.5})$ to $O(k \log n)$ plus lower-order terms.
Discussion
While these algorithms represent a significant advancement, certain limitations remain. The methods assume a bounded metric space with a known diameter $\Delta$; if $\Delta$ is extremely large or unknown, the additive error may become significant. Additionally, like most DP algorithms, the utility guarantees are asymptotic, meaning the additive error is only "small" relative to the total cost when the dataset size $n$ is sufficiently large. Future research may focus on tightening these bounds further or extending these techniques to other clustering paradigms, such as hierarchical or density-based methods.
Summary updated