English

Shapley-Inspired Feature Weighting in $k$-means with No Additional Hyperparameters

Machine Learning 2025-08-12 v1

Abstract

Clustering algorithms often assume all features contribute equally to the data structure, an assumption that usually fails in high-dimensional or noisy settings. Feature weighting methods can address this, but most require additional parameter tuning. We propose SHARK (Shapley Reweighted kk-means), a feature-weighted clustering algorithm motivated by the use of Shapley values from cooperative game theory to quantify feature relevance, which requires no additional parameters beyond those in kk-means. We prove that the kk-means objective can be decomposed into a sum of per-feature Shapley values, providing an axiomatic foundation for unsupervised feature relevance and reducing Shapley computation from exponential to polynomial time. SHARK iteratively re-weights features by the inverse of their Shapley contribution, emphasising informative dimensions and down-weighting irrelevant ones. Experiments on synthetic and real-world data sets show that SHARK consistently matches or outperforms existing methods, achieving superior robustness and accuracy, particularly in scenarios where noise may be present. Software: https://github.com/rickfawley/shark.

Keywords

Cite

@article{arxiv.2508.07952,
  title  = {Shapley-Inspired Feature Weighting in $k$-means with No Additional Hyperparameters},
  author = {Richard J. Fawley and Renato Cordeiro de Amorim},
  journal= {arXiv preprint arXiv:2508.07952},
  year   = {2025}
}
R2 v1 2026-07-01T04:44:15.610Z