Near-optimal Explainable $k$-means Clustering under $\ell_p$ Norm

Xinyuan Cao, Konstantin Makarychev, Ilias Papanikolaou, Liren ShanNeurIPS 2026

TL;DR

Standard $k$-means clustering draws invisible, multi-dimensional boundaries that are notoriously hard for humans to interpret, whereas "explainable" clustering uses simple, axis-aligned decision trees at the cost of higher mathematical error. This paper maps out that exact "price of explainability" when measuring distances beyond standard Euclidean geometry—specifically across all $\ell_p$ norms. The authors uncover a surprising geometric phase transition at $p=2$ and design near-optimal algorithms showing how growing slightly larger decision trees can rescue clustering quality, even in high dimensions.

What Problem Does This Paper Address?

Imagine explaining why a patient was placed in a specific medical risk group. If you used standard $k$-means, your answer is: "In 500-dimensional space, they were closest to centroid B." Not very helpful.

In explainable clustering, clusters must be formed by a threshold decision tree, where every split asks a single-feature question (e.g., "Is age $\le 45$?"). Each leaf represents a cluster. Naturally, slicing space with rigid, axis-aligned cuts instead of flexible Voronoi diagrams hurts clustering quality. Researchers measure this loss via the price of explainability (or competitive ratio): the worst-case ratio between the explainable tree’s cost and the unconstrained optimal $k$-means cost (sum of squared distances to centers).

Until now, explainable $k$-means was only understood for standard Euclidean distance ($\ell_2$ norm). However, many real-world applications rely on general $\ell_p$ norms—like Manhattan distance ($\ell_1$)—to capture different notions of similarity. Changing the norm fundamentally warps the geometry of the space, leaving open the question: How much quality do we lose for explainability under general $\ell_p$ norms, and can adding extra leaves to our decision tree soften the blow?

Methods

The authors design randomized polynomial-time algorithms across three "leaf budgets" for $k$ target clusters: trees with exactly $k$ leaves, $(1+\delta)k$ leaves (a small constant fraction of extra leaves), and $O(k^2)$ leaves.

  • Buffered Cuts for $(1+\delta)k$ Leaves (PARTITION_LEAF_BUFFER): Building on prior "center-sharing" ideas, when the algorithm makes a random threshold cut to split a set of centers, it creates a narrow buffer zone around the cut. Centers inside this buffer are duplicated and passed to both child nodes (while data points still take a single path). Crucially, unlike $\ell_2$ methods that constantly recompute the coordinate-wise median of centers at every node, this algorithm fixes an "anchor" median once per recursive call and samples cuts from a $p$-dependent distribution—a subtle structural change essential for taming $\ell_p$ geometry when $p > 2$.
  • Tree Aggregation & Majority Vote for $O(k^2)$ Leaves: To turn known $k$-medians (unsquared distance) guarantees into $k$-means (squared distance) bounds, the authors run an existing $\ell_p$ explainable $k$-medians algorithm twice independently, stacking one tree beneath every leaf of the other. This produces $k^2$ leaves, each holding two candidate centers. To pick the winner at each leaf when $1 \le p < 2$, they introduce a clever sub-tree that takes three independent random midpoint cuts and assigns the final center by majority vote, squaring the error probability and producing at most $8k^2$ total leaves.

Datasets

Not discussed in the paper. (This is a purely theoretical work proving worst-case mathematical upper and lower bounds, alongside adversarial geometric constructions.)

Key Insights and Ideas

  • $p=2$ is a Sharp Threshold for the Curse of Dimensionality: For $p \ge 2$, you can build explainable $k$-means trees whose error ratio has zero dependence on the data's dimension $d$. Below $p=2$ (such as $\ell_1$), every algorithm with $k$ or $(1+\delta)k$ leaves inevitably suffers a dimension-dependent penalty of $d^{2/p - 1}$. Why? Under $\ell_p$ ($p<2$), separating two centers on a hypercube diagonal forces an axis-aligned cut that inevitably strands at least one basis-vector point, blowing up its squared $\ell_p$ distance by $\Theta(d^{2/p - 1})$. This contrasts sharply with explainable $k$-medians, which avoids dimension dependence for all $p \ge 1$.
  • A Little Tree Bloat Goes a Long Way: Allowing just $\delta k$ extra leaves (e.g., $1.1k$ leaves) slashes the competitive ratio's dependence on $k$ from linear ($k$) down to polylogarithmic ($\text{polylog } k$) across all $p \ge 1$.
  • Quadratic Leaves Cure the Curse of Dimensionality: While $(1+\delta)k$ leaves cannot escape the $d^{2/p - 1}$ penalty for $1 \le p < 2$, expanding the budget to $O(k^2)$ leaves completely eliminates dimension dependence. Moreover, the authors prove via a novel "caterpillar tree" lower-bound construction that $\Omega(k^2)$ leaves are strictly necessary—anything less than $k^2/2$ leaves gets stuck with $d$.

Key Results

The authors establish tight (or nearly tight) upper and lower bounds across every regime of $p$ and leaf count:

Table 1: Summary of competitive ratios for explainable k-means under ℓp norm.
  • Exactly $k$ leaves: Achieves competitive ratios of $\tilde{O}(d^{2/p-1}k)$ for $1 \le p \le 2$ and $\tilde{O}_p(k \log^{1+2/p-4/p^2} k)$ for $p \ge 2$, nearly matching their $\Omega(d^{2/p-1}k)$ and $\Omega(k)$ lower bounds.
  • At most $(1+\delta)k$ leaves: Drops the $k$ factor to $\tilde{O}(\frac{d^{2/p-1}}{\delta}\log^2 k)$ for $1 \le p \le 2$ (tight up to $\log \log k$) and $\tilde{O}_p(\frac{1}{\delta}\log^{2+2/p-2/p^2} k)$ for $p > 2$.
  • At most $O(k^2)$ leaves: Achieves a completely dimension-free $\tilde{O}_p(\log^{2+2/p-2/p^2} k)$ ratio for all $p \ge 1$ using at most $8k^2$ leaves (for $1 \le p < 2$) or $2k^2$ leaves (for $p \ge 2$).

Limitations and Future Work

  • Polylogarithmic Gaps for $p > 2$: In the $(1+\delta)k$-leaf setting for $p > 2$, a small gap of $\log^{2/p - 2/p^2} k$ remains between the authors' algorithmic upper bound and their $\Omega(\frac{1}{\delta}\log^2 k)$ lower bound. Closing this gap is left as an open theoretical challenge.
  • Interpretability Trade-off at $O(k^2)$: While $8k^2$ leaves mathematically eliminate the curse of dimensionality for $1 \le p < 2$, if $k$ is large, a tree with $O(k^2)$ leaves may become bushy enough to strain human interpretability in practice—And as a purely theoretical paper, empirical performance on real-world datasets remains to be explored.

Summary updated

Abstract

We study explainable $k$-means clustering, introduced by Dasgupta, Frost, Moshkovitz, and Rashtchian (2020), and generalize it to $\ell_p$ norms. The goal is to find a clustering represented by a threshold decision tree while minimizing the $k$-means objective. Such a clustering is easy for humans to interpret because each internal node partitions the data by thresholding a single feature, so every cluster can be explained through a sequence of simple decisions. We give algorithms that find threshold trees with $(1+\delta)k$ leaves and competitive ratio $\tilde{O}_p(1/\delta\cdot \log^{2+2/p-2/p^2} k)$ for every finite $p \geq 2$ and $\tilde{O}(1/\delta \cdot d^{2/p-1}\log^2 k)$ for every $1 \leq p < 2$. For $1 \leq p < 2$, we show that this dependence on $d$ is unavoidable with less than $k^2/2$ leaves and provide an $\tilde{O}(\log^{2+2/p-2/p^2} k)$-competitive algorithm with $8k^2$ leaves. We also provide near-optimal algorithms for explainable $k$-means under $\ell_p$ norms with exactly $k$ leaves. Our algorithms achieve the price of explainability of $\tilde{O}(k)$ for every finite $p \geq 2$ and $\tilde{O}(d^{2/p-1} k)$ for $1\leq p \leq 2$. We complement these results with nearly matching lower bounds.
BibTeX
@inproceedings{cao2026near,
  author = {Xinyuan Cao and Konstantin Makarychev and Ilias Papanikolaou and Liren Shan},
  title = {{Near-optimal Explainable $k$-means Clustering under $\textbackslash\{\}ell\_p$ Norm}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=VPM3iJ2XSl},
}
Figure