k-Median Clustering via Metric Embedding: Towards Better Initialization with Differential Privacy

Chenglin Fan, Ping Li, Xiaoyun Li · DOI

Introduction

Clustering is a fundamental task in unsupervised learning, yet it faces a persistent "chicken and egg" dilemma: identifying optimal clusters requires good initial centers, while finding good centers typically necessitates knowledge of the underlying clusters. While the industry-standard $k$-median++ algorithm employs a probabilistic seeding approach to mitigate this, it often falls short in non-Euclidean metric spaces and struggles to maintain accuracy under the constraints of Differential Privacy (DP).

Researchers from Baidu have proposed a novel initialization scheme based on Hierarchically Well-Separated Trees (HST). This approach, termed "HST initialization," not only provides robust starting points for general metric spaces but also significantly narrows the gap between practical DP clustering and theoretical lower bounds.

Methodology: HST Initialization

The core of the proposed method involves embedding data into a Hierarchically Well-Separated Tree (HST). This structure allows for a multi-scale representation of the dataset, facilitating the identification of well-separated dense regions.

The mapping between spatial data partitioning and the Hierarchically Well-Separated Tree (HST) structure.

The algorithm proceeds in three main stages:

  1. Tree Construction: The data is recursively partitioned into "balls" of decreasing diameter. This creates a hierarchy where internal nodes represent clusters at varying scales and leaves correspond to individual data points.
  2. Subtree Scoring (NDP-HST): To select $k$ initial centers, the algorithm evaluates subtrees rather than individual points. A scoring function $N_v \cdot 2^{h_v}$ is applied to each node $v$, where $N_v$ is the point count and $h_v$ is the node's level (representing its scale). This function prioritizes dense regions that are physically large and well-separated.
  3. Leaf Selection: Within the top $k$ disjoint subtrees identified by the scoring function, a greedy search is performed to find the most representative leaf node to serve as a cluster center.

Differential Privacy Integration

In privacy-sensitive domains like healthcare or social networking, clustering must be performed without compromising individual data points. Standard initialization methods often fail here because the noise required for DP can overwhelm the signal during the iterative refinement process.

The DP-HST variant addresses this by leveraging the disjoint nature of the HST structure. Since the tree levels partition the data into disjoint sets, the sensitivity of the point counts is low. By adding Laplace noise only to the counts within each node, the algorithm maintains high utility. Crucially, because the tree structure can be based on a public "universe" or pre-defined hierarchy, only the counts require protection, allowing for a more efficient use of the privacy budget.

Experimental Evaluation

The researchers evaluated HST initialization against $k$-median++ on both synthetic and real-world datasets, including MNIST and various graph-based metrics.

Key Findings

  • Improved Approximation: In general metric spaces, HST initialization achieves an expected cost of $O(\log \min\{n, \Delta\})$ relative to the optimum, frequently outperforming $k$-median++.
  • Privacy Performance: For DP $k$-median, the method reduced additive error from $O(\log^2 n)$ to $O(\log n \log \log n)$, approaching theoretical limits.
  • Convergence and Imbalance: The method demonstrated faster convergence to local optima. Its advantages were most pronounced on imbalanced datasets, where the tree-based scoring effectively identified smaller, distinct clusters that probabilistic methods often missed.

Conclusion

HST initialization represents a significant step forward for $k$-median clustering, particularly in the context of differential privacy. By combining density and scale through metric embedding, it provides a principled way to find high-quality initial centers. This reduces the reliance on numerous iterations—a critical advantage when every step incurs a privacy cost—and ensures robust performance across diverse data geometries.

Summary updated

BibTeX
@inproceedings{fan2023k,
  author = {Chenglin Fan and Ping Li and Xiaoyun Li},
  title = {{k-Median Clustering via Metric Embedding: Towards Better Initialization with Differential Privacy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=9zV2OXCrVF},
}
Figure