Skip to main content
QUICK REVIEW

[Paper Review] Shallow decision trees for explainable $k$-means clustering

Eduardo Sany Laber, Lucas Murtinho|arXiv (Cornell University)|Dec 29, 2021
Rough Sets and Fuzzy LogicComputer Science6 citations
TL;DR

This paper proposes ExShallow, an efficient algorithm for explainable $k$-means clustering that constructs shallow decision trees to minimize both the $k$-means cost and explainability metrics like Weighted Average Depth (WAD) and Weighted Average Explanation Size (WAES). It outperforms existing methods by achieving comparable or better clustering quality with significantly shallower trees, enhancing interpretability without sacrificing performance.

ABSTRACT

A number of recent works have employed decision trees for the construction of explainable partitions that aim to minimize the $k$-means cost function. These works, however, largely ignore metrics related to the depths of the leaves in the resulting tree, which is perhaps surprising considering how the explainability of a decision tree depends on these depths. To fill this gap in the literature, we propose an efficient algorithm that takes into account these metrics. In experiments on 16 datasets, our algorithm yields better results than decision-tree clustering algorithms such as the ones presented in \cite{dasgupta2020explainable}, \cite{frost2020exkmc}, \cite{laber2021price} and \cite{DBLP:conf/icml/MakarychevS21}, typically achieving lower or equivalent costs with considerably shallower trees. We also show, through a simple adaptation of existing techniques, that the problem of building explainable partitions induced by binary trees for the $k$-means cost function does not admit an $(1+ε)$-approximation in polynomial time unless $P=NP$, which justifies the quest for approximation algorithms and/or heuristics.

Motivation & Objective

  • To address the lack of attention in prior work to leaf depth metrics in explainable decision tree clustering, which directly impact model interpretability.
  • To develop an algorithm that simultaneously minimizes $k$-means cost and explainability metrics like WAD and WAES.
  • To provide a tunable trade-off between clustering quality and tree depth via a parameter $\lambda$.
  • To improve upon existing explainable clustering algorithms by generating partitions with lower cost and significantly shallower trees.
  • To ensure computational efficiency while enhancing interpretability in $k$-means clustering via decision trees.

Proposed method

  • The algorithm builds a decision tree top-down, starting from a non-explainable $k$-means partition obtained via Lloyd's algorithm.
  • At each node, it selects a cut (dimension and threshold) that optimizes a trade-off between $k$-means cost, WAD, and WAES using a tunable parameter $\lambda$.
  • It introduces an efficient evaluation method for estimating the impact of potential cuts on WAD and WAES, enabling fast pruning of suboptimal splits.
  • The algorithm uses a weighted cost function that combines clustering cost and depth-based explainability metrics, allowing controlled trade-offs.
  • It employs binary search to optimize $\lambda$ for each dataset, ensuring better performance than baseline methods in both cost and explainability.
  • The method is designed to be computationally efficient, with running times comparable to other state-of-the-art explainable clustering algorithms.

Experimental results

Research questions

  • RQ1Can we design an explainable clustering algorithm that simultaneously minimizes $k$-means cost and leaf depth metrics like WAD and WAES?
  • RQ2How does the inclusion of depth-based explainability metrics affect the performance and interpretability of decision tree-based clustering?
  • RQ3Can we achieve better explainability than existing methods without degrading clustering quality?
  • RQ4What is the impact of tuning the trade-off parameter $\lambda$ on the balance between clustering cost and tree depth?
  • RQ5Is the proposed algorithm computationally efficient enough to be practical for real-world datasets?

Key findings

  • On 16 datasets, ExShallow achieved $k$-means cost comparable to or better than the best existing methods, with statistically significant improvements in WAES and WAD.
  • For the Avila dataset, ExShallow reduced WAES from 5.4 (ExGreedy) to 3.7 and WAD from 6.2 to 3.8, demonstrating a substantial gain in explainability.
  • ExShallow with optimized $\lambda$ achieved lower normalized partition cost (NPC) than KMC in 10 out of 16 datasets, while also improving WAES and WAD.
  • The algorithm achieved a median normalized partition cost of 1.15, outperforming ExGreedy (1.17) and IMM (1.16), with significantly lower WAES (3.35 vs. 3.63) and WAD (3.58 vs. 3.72).
  • Running times were competitive, with ExShallow's average time (2.65s) close to ExGreedy (3.81s) and faster than IMM (3.22s), making it practical for real-world use.
  • ExShallow consistently outperformed ExGreedy and IMM in explainability metrics while matching or surpassing them in clustering quality, demonstrating its superiority in balancing cost and interpretability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.