Explainable k-Means and k-Medians Clustering

Sanjoy Dasgupta, Nave Frost, Michal Moshkovitz, Cyrus Rashtchian
2/28/2020
cs.LGcs.CGcs.DS

Official code: navefr/ExKMC (100 stars, MIT, last commit 2023-01-18).

Abstract

Clustering is a popular form of unsupervised learning for geometric data. Unfortunately, many clustering algorithms lead to cluster assignments that are hard to explain, partially because they depend on all the features of the data in a complicated way. To improve interpretability, we consider using a small decision tree to partition a data set into clusters, so that clusters can be characterized in a straightforward manner. We study this problem from a theoretical viewpoint, measuring cluster quality by the $k$-means and $k$-medians objectives: Must there exist a tree-induced clustering whose cost is comparable to that of the best unconstrained clustering, and if so, how can it be found? In terms of negative results, we show, first, that popular top-down decision tree algorithms may lead to clusterings with arbitrarily large cost, and second, that any tree-induced clustering must in general incur an $Ω(\log k)$ approximation factor compared to the optimal clustering. On the positive side, we design an efficient algorithm that produces explainable clusters using a tree with $k$ leaves. For two means/medians, we show that a single threshold cut suffices to achieve a constant factor approximation, and we give nearly-matching lower bounds. For general $k \geq 2$, our algorithm is an $O(k)$ approximation to the optimal $k$-medians and an $O(k^2)$ approximation to the optimal $k$-means. Prior to our work, no algorithms were known with provable guarantees independent of dimension and input size.

View on arXivView PDF

Code Implementations(1)

navefr/ExKMCOfficial100%
MIT

Expanding Explainable K-Means Clustering

10019Cython, PythonMay 11, 20203 years agoMIT

Similar Papers

Cite this paper

@article{dasgupta2020explainable,
  title  = {Explainable k-Means and k-Medians Clustering},
  author = {Sanjoy Dasgupta and Nave Frost and Michal Moshkovitz and Cyrus Rashtchian},
  year   = {2020},
  eprint = {2002.12538},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.12538}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.12538.svg)](https://codeofpaper.com/paper/2002.12538)

Discussion