Nearly-Tight and Oblivious Algorithms for Explainable Clustering

Buddhima Gamlath, Xinrui Jia, Adam Polak, Ola Svensson

Introduction and Problem Statement

Traditional clustering algorithms, such as $k$-means or Lloyd’s algorithm, are often criticized as "black boxes." While they effectively group data points based on proximity to a center, the resulting Voronoi partitions do not provide a human-readable explanation for cluster assignments.

Explainable clustering addresses this by requiring clusters to be the leaves of a small decision tree. In this framework, each internal node represents a "threshold cut"—a simple, axis-aligned rule (e.g., "is Feature $X \le 0.4$?"). This makes the model interpretable by design. The central challenge is quantifying the price of explainability: the factor by which the clustering cost (e.g., $k$-medians or $k$-means objective) increases when we constrain the partition to an axis-aligned tree structure compared to an optimal, unconstrained clustering.

Comparison of clustering types: (a) non-explainable boundaries, (b) explainable axis-aligned boundaries, and (c) the resulting threshold tree.

The Randomized Oblivious Algorithm

The authors introduce a randomized algorithm that is notably "oblivious" to the full dataset. Instead of processing $n$ data points, the algorithm only requires the $k$ centers from a reference (non-explainable) clustering. This allows for a runtime of $O(dk \log^2 k)$, which is independent of the dataset size $n$.

Methodology

  1. Randomized Threshold Cuts: The algorithm recursively splits the set of centers. For $k$-medians, it picks a dimension and a threshold value uniformly at random from the bounding box of the centers.
  2. Refined Distributions for $\ell_p$-norms: For $k$-means ($p=2$), a uniform distribution is insufficient. The authors utilize a specific probability density function ($D_p$) that samples cuts based on the $(p-1)$-th power of the distance to the nearest center.
  3. Sample-Discard Mechanism: To ensure robustness, the algorithm discards "bad" cuts that would separate centers within a small distance threshold too early in the process.

Key Insights and Theoretical Results

A major technical breakthrough in this work was the realization that the cost of misclassifying a point can be bounded by the distance between centers rather than the diameter of the cluster. This insight allowed the authors to significantly improve the known bounds for the price of explainability:

  • $k$-medians: The algorithm achieves an $O(\log^2 k)$ approximation, a massive improvement over the previous $O(k)$ bound and nearly tight against the $\Omega(\log k)$ lower bound.
  • $k$-means: It achieves an $O(k \log^2 k)$ approximation, improving on the previous $O(k^2)$.
  • Lower Bounds: The paper establishes a new lower bound of $\Omega(k)$ for $k$-means, proving that explainable $k$-means is fundamentally harder than $k$-medians.

Conclusion and Future Work

This research provides a robust, efficient framework for interpretable clustering. By using randomized cuts and focusing on cluster centers, the algorithm avoids overfitting and scales to massive datasets. While the bounds are nearly tight, future work may focus on closing the remaining logarithmic gaps or exploring parallel implementations for the sequential tree-building process.

Summary updated

BibTeX
@inproceedings{gamlath2021nearly,
  author = {Buddhima Gamlath and Xinrui Jia and Adam Polak and Ola Svensson},
  title = {{Nearly-Tight and Oblivious Algorithms for Explainable Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=OJXadQoWoTU},
}
Figure