The Price of Explainability for Clustering

Anupam Gupta, Madhusudhan Reddy Pittu, Ola Svensson, Rachel Yuan

Introduction

In the realm of unsupervised learning, clustering is a fundamental tool for discovering structure in data. However, the most common methods, such as $k$-means and $k$-medians, often produce results that are difficult for humans to interpret. These algorithms typically partition space using Voronoi diagrams, where a data point's membership in a cluster is determined by its distance to a set of centers. In high-dimensional space, these boundaries are defined by complex linear combinations of all input features, creating a "black box" effect. For instance, a cluster might be defined by a hyperplane involving age, weight, and income simultaneously, making it nearly impossible to provide a simple, rule-based explanation for why a specific point belongs to a specific group.

To address this, researchers have turned to explainable clustering. This approach restricts the clustering model to a decision tree structure using axis-aligned threshold cuts (e.g., "Is income > $50,000?"). While this significantly improves transparency, it introduces a performance penalty. This paper investigates the Price of Explainability (PoE): the worst-case ratio between the cost of an optimal explainable clustering and the cost of the best possible unconstrained clustering.

Methodology

The authors focus their analysis on the Random Thresholds algorithm. This strategy is deceptively simple: it recursively selects axis-aligned cuts at random from the set of coordinates that separate the centers of a reference optimal clustering. To analyze the efficiency of this approach, the paper introduces several innovative theoretical frameworks:

  • Closest Point Process: This reduction simplifies the analysis by treating a single data point as the origin and evaluating the expected cost increase relative to its nearest center.
  • Competing Exponential Clocks: The authors model the selection of cuts as a system of "clocks" where each potential cut rings at a rate proportional to its distance-based contribution. This novel viewpoint allows for a more elegant calculation of the expected cost of the decision tree.
  • Hitting Set Reduction: To establish the limits of what is computationally possible, the authors map the problem of finding the optimal explainable clustering to the classic Hitting Set problem from combinatorial optimization.

As a theoretical contribution, the study does not rely on empirical datasets like ImageNet. Instead, it utilizes mathematically constructed synthetic worst-case instances in $d$-dimensional space to prove that the derived upper bounds are tight and to establish fundamental lower bounds on performance.

Key Insights and Results

Settling the $k$-medians Question

The paper successfully settles a major open question regarding the $k$-medians objective. The authors prove that the Price of Explainability for $k$-medians is exactly $1 + H_{k-1}$, where $H$ is the harmonic number. This confirms that the performance sacrifice for explainability grows logarithmically ($\\approx \\ln k$) with the number of clusters. Crucially, they demonstrate that the simple Random Thresholds algorithm is actually optimal for this objective.

Advancing $k$-means Theory

For the $k$-means objective, the gap between theory and practice has historically been wider. Previous research established an upper bound of $O(k \ln k)$. The authors of this paper provide a significant improvement, reaching an upper bound of $O(k \ln \ln k)$. This was achieved through a "win-win" analysis: the authors realized that while an individual cut in the decision tree might be expensive, the recursive nature of the algorithm ensures that costs form a geometric sum. Either a cut is inexpensive, or it partitions the data in a way that makes subsequent sub-problems much easier to solve.

Computational Hardness

Beyond the cost ratios, the paper addresses the algorithmic difficulty of the problem. By reducing from the Hitting Set problem, the authors prove that finding the optimal explainable clustering is NP-hard. Specifically, it cannot be approximated within a factor of $(1/2 - o(1)) \ln k$ unless $P=NP$. This result essentially settles the algorithmic landscape for explainable $k$-medians, showing that the logarithmic overhead is both a mathematical necessity and a computational barrier.

Conclusion and Future Work

This research provides a rigorous foundation for understanding the trade-offs between interpretability and accuracy in clustering. By pinning down the PoE for $k$-medians and narrowing the gap for $k$-means, the authors have provided clear bounds for practitioners who require transparent machine learning models.

The primary remaining challenge is closing the final gap for $k$-means. While the upper bound is now $O(k \ln \ln k)$, the known lower bound is $\Omega(k)$. The authors conjecture that the true Price of Explainability for $k$-means is likely linear in $k$. Additionally, future research may explore whether allowing slightly more complex cuts—such as those involving two or three features rather than just one—could significantly reduce the "price" of interpretability.

Summary updated

BibTeX
@inproceedings{gupta2023price,
  author = {Anupam Gupta and Madhusudhan Reddy Pittu and Ola Svensson and Rachel Yuan},
  title = {{The Price of Explainability for Clustering}},
  booktitle = {FOCS},
  year = {2023},
  url = {https://openreview.net/forum?id=Bd8MIDq5Hc},
}
Figure