On the Price of Differential Privacy for Hierarchical Clustering

Chengyuan Deng, Jie Gao, Jalaj Upadhyay, Chen Wang, Samson Zhou

Abstract

Hierarchical clustering (HC) is a fundamental tool for organizing data into nested structures, yet its application to sensitive datasets is often hindered by the high cost of differential privacy (DP). Traditional edge-level DP models suffer from prohibitive additive errors that render the resulting dendrograms virtually useless. This paper investigates a more practical privacy paradigm: weight-level DP. By assuming a minimum unit-weight constraint, the authors propose a polynomial-time algorithm that achieves polylogarithmic multiplicative error, effectively bypassing previous impossibility results and providing a viable path for private hierarchical clustering in real-world applications.

1. Introduction

Hierarchical clustering (HC) is essential for uncovering the multi-scale structure of data in fields ranging from computational biology to financial network analysis. The goal is to produce a dendrogram—a tree representing a sequence of recursive partitions. However, when the underlying data involves sensitive relationships, such as financial transactions or social interactions, the clustering process must satisfy differential privacy (DP) to protect individual privacy.

Historically, researchers have evaluated HC quality using Dasgupta’s objective, a cost function that penalizes the early separation of similar items. Under the standard edge-level DP model, which hides the presence or absence of specific edges, it has been mathematically proven that any algorithm must incur an error of at least $\Omega(n^2/\epsilon)$. For most practical datasets, this error is so large that it dwarfs the signal, making private HC appear fundamentally impractical.

2. A Shift in the Privacy Model: Weight-Level DP

To overcome the limitations of edge-level privacy, this research shifts the focus to weight-level DP. In this model, the topology of the network (who could potentially interact with whom) is considered public knowledge, while the intensity or volume of those interactions (the edge weights) is treated as sensitive information.

This model is particularly relevant for infrastructure or financial networks where the existence of a connection is often public record, but the specific traffic or transaction volume is confidential. To achieve utility within this framework, the authors introduce a unit-weight constraint, assuming that every existing edge has a minimum weight of 1. They demonstrate that without this assumption—if weights could be arbitrarily small—the same $\Omega(n^2/\epsilon)$ impossibility result returns.

3. The HierarchicalClustering-DP Algorithm

The authors introduce HierarchicalClustering-DP, a polynomial-time algorithm designed to maintain high utility while satisfying $\epsilon$-differential privacy. The approach relies on three primary stages:

  1. The "Bump Up" Mechanism: To protect the structure from noise, the algorithm first artificially increases every edge weight by a factor of $O(\log n / \epsilon)$. This ensures that the "gap" between significant clusters and noise is sufficiently amplified.
  2. Input Perturbation: Standard Laplace noise is added to these modified weights. Because noise is added only once at the beginning, the algorithm avoids the "privacy budget depletion" typically associated with iterative private queries.
  3. Recursive Partitioning: The algorithm then applies a non-private approximation for the "balanced sparsest cut" problem on the noisy graph. By recursively splitting the graph, it constructs the final dendrogram.

This "bump up" strategy is the core innovation, ensuring that even after perturbation, the weights remain positive and the relative importance of edges is preserved for the partitioning step.

4. Theoretical and Empirical Evaluation

Theoretical Guarantees

The proposed algorithm achieves a multiplicative error of $O(\log^{1.5} n / \epsilon)$. Unlike previous additive bounds that scale with the square of the number of nodes, this multiplicative bound scales with the quality of the optimal solution itself. This represents a significant theoretical breakthrough, as it suggests the algorithm's performance improves as the data's inherent clustering becomes clearer.

Experimental Results

The authors validated their approach using both synthetic benchmarks and classic real-world datasets:

  • Synthetic Data: Using Stochastic Block Models (SBM) and Hierarchical SBMs, the authors showed that the algorithm accurately recovers community structures even under strict privacy constraints.
  • Real-World Data: Testing on the IRIS, WINE, and BOSTON datasets from scikit-learn, the algorithm consistently outperformed naive input perturbation (adding noise without the "bump up" trick).
  • Scalability: The algorithm demonstrated efficient scaling to graphs with over 1,500 nodes, a significant improvement over previous DP-HC mechanisms that often required exponential time.

5. Discussion and Future Work

While this work provides a much-needed "practical middle ground" for private clustering, several avenues for future research remain. The current multiplicative error, while polylogarithmic, is still higher than non-private approximations. Furthermore, the reliance on "pure" $\epsilon$-DP leaves open the question of whether approximate DP ($\epsilon, \delta$) could yield even tighter bounds.

Finally, while the unit-weight assumption is realistic for many transaction-based datasets, it may require adaptation for datasets involving normalized or fractional values. Nonetheless, by reframing the privacy model and introducing the weight-amplification technique, this paper provides a robust framework for deploying hierarchical clustering in privacy-sensitive environments.

Summary updated

BibTeX
@inproceedings{deng2025price,
  author = {Chengyuan Deng and Jie Gao and Jalaj Upadhyay and Chen Wang and Samson Zhou},
  title = {{On the Price of Differential Privacy for Hierarchical Clustering}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=yLhJYvkKA0},
}
Figure