Nearly-Tight and Oblivious Algorithms for Explainable Clustering

Buddhima Gamlath, Xinrui Jia, Adam Polak, Ola Svensson

Introduction

Standard clustering algorithms like $k$-means are workhorses of unsupervised learning, but they often operate as "black boxes." A point belongs to a cluster simply because it is closest to a specific center, leaving users without a concise rule explaining why. This paper introduces a simple, randomized algorithm for "explainable clustering"—clustering defined by easy-to-understand decision trees. By using an "oblivious" approach that only looks at cluster centers rather than the entire dataset, the authors achieve nearly-tight approximation bounds for $k$-medians and $k$-means, significantly improving upon previous results while maintaining extreme computational efficiency.

The Challenge of Explainability

Explainable clustering, formalized by Dasgupta et al. in 2020, requires clusters to be formed by a decision tree. Each internal node in the tree splits the data based on a single feature and a threshold (e.g., "Is income > $50k?"). The leaves of this tree represent the $k$ clusters.

Axis-aligned splits

The primary challenge in this domain is the "Price of Explainability": how much more "costly" (in terms of sum-of-squared distances for $k$-means or sum-of-distances for $k$-medians) is a tree-based clustering compared to an unconstrained optimal clustering? Previous work showed gaps as large as $O(k)$ or $O(k^2)$, which are impractical for large numbers of clusters.

An Oblivious, Randomized Approach

The authors propose a remarkably simple randomized approach to build these decision trees. Instead of looking at all $n$ data points to decide where to split—which is computationally expensive and prone to overfitting—their algorithm is oblivious. It only requires the $k$ centers from a "reference" (non-explainable) clustering.

  1. Algorithm for $k$-medians: The method repeatedly picks a dimension and a threshold cut uniformly at random from the bounding box of the cluster centers. It continues this process until every center is isolated in its own leaf.
  2. Algorithm for $k$-means and $\ell_p$-norms: For higher-order objectives, uniform sampling is insufficient. The authors utilize a specialized distribution where the probability of a cut is proportional to the $(p-1)$-th power of the distance to the nearest center.
  3. Computational Efficiency: Because the algorithm ignores the data points during tree construction, it runs in $O(dk \log^2 k)$ time. This is near-linear in the number of centers ($k$) and dimensions ($d$), and completely independent of the massive number of data points ($n$).

Key Insights

  • Randomization as a Shield: Previous "greedy" algorithms that tried to find the "best" cut based on data points could be "fooled" by specific adversarial data layouts, leading to very deep trees and high costs. Randomly sampling cuts makes the algorithm robust against these worst-case scenarios.
  • The Power of Obliviousness: The authors demonstrate that the data itself isn't strictly necessary to build a good explanation. If you have the cluster centers, you have enough information to partition the space effectively, inherently preventing overfitting.
  • Refining the "Price": They realized that the cost of "misclassifying" a point into the wrong leaf is bounded by the maximum distance between centers in that leaf. By managing how quickly the maximum distance between centers decreases as the tree grows, they achieved much tighter bounds.

Key Results and Theoretical Bounds

The paper is primarily a theoretical contribution, using synthetic mathematical constructions (like standard basis vectors in $\mathbb{R}^k$) to prove lower bounds and demonstrate that certain costs are unavoidable.

Comparison of algorithmic bounds
  • Improved Upper Bounds: The algorithm achieves an approximation ratio of $O(\log^2 k)$ for $k$-medians and $O(k \log^2 k)$ for $k$-means. This is a massive improvement over the previous $O(k)$ and $O(k^2)$ bounds.
  • New Lower Bounds: The authors proved a new lower bound of $\Omega(k)$ for $k$-means, showing that their $O(k \log^2 k)$ result is nearly optimal (tight up to logarithmic factors).
  • Speed: The algorithm is exceptionally fast and can be applied as a post-processing step to any existing clustering result without needing to re-scan the original dataset.

Limitations and Future Work

  • The Logarithmic Gap: There remains a small gap between the lower bound ($\Omega(\log k)$) and upper bound ($O(\log^2 k)$) for $k$-medians. The authors conjecture that $O(\log k)$ is the true answer.
  • Sequential Nature: The current tree construction is inherently sequential. Exploring parallel versions of the algorithm would be a valuable next step for even larger-scale applications.
  • Axis-Aligned Constraints: The study is limited to axis-aligned splits. While this is the standard for "simple" explanations, future work could explore if allowing a small number of features per split (oblique trees) could further reduce the price of explainability.

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