Abstract
Clustering is a fundamental task in data analysis, yet applying it to sensitive datasets requires rigorous privacy guarantees. Differential Privacy (DP) offers a robust framework for such guarantees, but existing DP clustering algorithms often face a "scalability gap": they are either theoretically sound but computationally prohibitive for large datasets, or fast but lack formal privacy-utility proofs. This paper introduces a novel approach to DP $k$-median and $k$-means clustering using Hierarchically Separated Trees (HSTs). By embedding data into a tree structure and applying private counting mechanisms, the proposed algorithm achieves near-linear time complexity, $\tilde{O}(nkd)$, and scales to datasets with tens of millions of points while maintaining high utility.
1. Introduction
As data science increasingly handles sensitive information—ranging from medical records to user telemetry—the need for privacy-preserving algorithms has become paramount. Differential Privacy (DP) has emerged as the gold standard for ensuring that the output of an algorithm does not reveal the presence or absence of any single individual in the dataset.
In the context of clustering, specifically $k$-median and $k$-means, the challenge lies in balancing the privacy budget with computational efficiency. Prior research has produced algorithms with strong theoretical approximation guarantees that are unfortunately too slow for modern "big data" scales. Conversely, practical heuristics often lack the provable guarantees necessary for high-stakes applications. This work bridges this gap by leveraging tree-based embeddings to create a scalable, parallelizable, and theoretically grounded DP clustering framework.
2. Methodology
The core of the proposed approach is the transformation of the clustering problem from a high-dimensional Euclidean space into a simpler tree-based metric using Hierarchically Separated Trees (HSTs), typically implemented via randomly-shifted quadtrees.
2.1 Tree Embedding and Private Counting
The algorithm begins by embedding the $d$-dimensional input points into an HST. In this structure, the distance between any two points is approximated by the height of their lowest common ancestor. Once the tree is constructed, the algorithm performs a private count of the points falling into each node. To satisfy differential privacy, Laplace noise is added to these counts.
2.2 Tree Trimming and Optimization
A critical innovation in this method is "tree trimming." If a node's noisy count falls below a certain threshold, the algorithm stops recursion at that branch. This serves two purposes: it prevents the privacy mechanism from wasting the privacy budget on outliers (which are statistically insignificant) and significantly reduces the computational search space. After trimming, the algorithm uses dynamic programming to find the optimal $k$ centers within the tree structure. Because optimization on trees is significantly more efficient than in Euclidean space, this step is remarkably fast.
2.3 Iterative Refinement for $k$-means
While HSTs approximate distances well for the $k$-median objective, the squared distances in $k$-means present a greater challenge. The authors address this by introducing an iterative refinement strategy. The process begins with a private 1-means solution and progressively improves the centers, ensuring the final clusters remain accurate despite the tree-based approximation.
2.4 Massively Parallel Computation (MPC)
To further enhance scalability, the authors demonstrate that the algorithm can be implemented in the Massively Parallel Computation (MPC) model. This allows the workload to be distributed across multiple machines, completing the process in a logarithmic number of communication rounds.
3. Experimental Evaluation
The authors evaluated the algorithm on several real-world datasets from the UCI Repository, ranging in size and dimensionality:
- SKYNTYPE: $n = 245,057, d = 4$
- SHUTTLE: $n = 58,000, d = 9$
- COVERTYPE: $n = 581,012, d = 54$
- HIGGS: $n = 11,000,000, d = 28$
3.1 Key Results
- Unprecedented Scale: The algorithm successfully processed the HIGGS dataset (11 million points), a scale previously unreachable for DP clustering algorithms with formal theoretical guarantees.
- Superior Efficiency: The algorithm runs in near-linear time, $\tilde{O}(nkd)$. In empirical tests, it scaled to datasets 40x larger than those handled by previous state-of-the-art private baselines.
- High Utility: Despite the introduction of noise for privacy, the resulting clusters were often within a small single-digit constant factor of non-private baselines like $k$-means++. On the SKYNTYPE dataset, the private algorithm's performance was nearly indistinguishable from its non-private counterpart.
4. Discussion and Limitations
While the algorithm performs exceptionally well in practice, its theoretical worst-case approximation factor includes a $d^{3/2}$ term. Although this did not negatively impact the empirical results on the tested datasets, it remains a theoretical point of divergence from some slower, non-scalable competitors. Additionally, the $k$-means implementation is inherently more complex than the $k$-median version due to the iterative refinement requirement.
5. Conclusion
This work presents a significant step forward in making differentially private clustering practical for large-scale industrial and research applications. By utilizing Hierarchically Separated Trees and private counting, the authors provide a method that is both mathematically rigorous and highly efficient. Future work may explore alternative tree structures to further tighten theoretical bounds and improve performance on high-dimensional data.
Summary updated