Deterministic Feature Selection for $k$-means Clustering

Christos Boutsidis, Malik Magdon-IsmailarXiv 2011 · DOI

TL;DR

This paper introduces the first deterministic feature selection algorithms for $k$-means clustering that come with provable theoretical guarantees. By leveraging deterministic matrix sparsification techniques, the authors eliminate the failure probabilities inherent in previous randomized methods and prove that a remarkably small subset of original features is sufficient to preserve clustering quality.

What Problem Does This Paper Address?

$k$-means is one of the most popular clustering algorithms in data science, but it struggles with the "curse of dimensionality." When datasets contain thousands or millions of features, $k$-means becomes incredibly slow and prone to overfitting due to noisy, irrelevant dimensions.

To fix this, researchers use feature selection to pick a subset of the original dimensions before clustering. While many heuristic methods exist, algorithms with rigorous theoretical guarantees on the final clustering error have historically been randomized. These randomized algorithms suffer from two major flaws: they can fail completely with a constant probability, and they can return entirely different feature sets every time they are run on the same data.

This paper addresses these gaps by providing deterministic algorithms that guarantee stable, repeatable, and provably accurate feature selection for $k$-means.

Methods

The authors frame the $k$-means problem using a linear algebraic formulation, representing the clustering process as a matrix approximation problem. The core novelty lies in how they select features:

  1. Spectral Guidance via SVD: All proposed algorithms begin by computing the Singular Value Decomposition (SVD) of the data matrix—specifically focusing on the top-$k$ right singular vectors, which capture the most significant structural information of the dataset.
  2. Deterministic Decompositions of the Identity: Instead of randomly sampling features based on leverage scores (the standard prior approach), the authors adapt deterministic spectral sparsification techniques (originally developed by Batson, Spielman, and Srivastava). They present two greedy algorithms (DeterministicSamplingI and DeterministicSamplingII) that iteratively select features to preserve the matrix norms of crucial structural matrices.
  3. Hybrid Approach: They also introduce a randomized hybrid algorithm that combines their deterministic sparsification with previous randomized techniques to break existing dimensional barriers.

Datasets

Not discussed in the paper. This is a purely theoretical paper focused on proving structural bounds, algorithmic complexity, and mathematical guarantees. No empirical evaluations or experimental datasets were used.

Key Insights and Ideas

  • The Existence of a "Magic" Feature Subset: The paper proves a surprising existential result (Corollary 3): for any dataset, there always exists a tiny subset of just $O(k/\epsilon^2)$ original features that keeps the optimal clustering error within a constant factor $(5 + \epsilon)$ of the global optimum.
  • Bridging Sparsification and Clustering: The authors successfully connect the problem of feature selection to the literature on graph and matrix sparsification, showing that deterministic tools designed to preserve matrix eigenvalues can be adapted to preserve clustering objectives.
  • Breaking the $\Omega(k \log k)$ Barrier: Previous randomized methods required selecting at least $\Omega(k \log k)$ features to provide guarantees. This work proves that you can drop down to $O(k)$ features while maintaining a competitive error bound.

Key Results

The paper provides theoretical guarantees for three distinct settings:

  • Deterministic Supervised Feature Selection: Given an initial candidate partition, the algorithm selects $O(k)$ features in deterministic low-order polynomial time $O(mn \min\{m, n\} + rk^2n)$. The resulting clustering quality is guaranteed to be within a constant factor of the input partition.
  • Deterministic Unsupervised Feature Selection: Without any prior partition knowledge, the algorithm selects $r$ features (where $r > k$) deterministically. The approximation error factor scales with $O(n/r)$, where $n$ is the original number of features.
  • Randomized Hybrid Unsupervised Feature Selection: By introducing a small amount of randomness, a hybrid algorithm selects a small subset of features ($k < r < 4k \log k$) in faster time, providing an $O(k \log(k)/r)$ error guarantee with a success probability of at least 0.4.

Limitations and Future Work

  • Weak Unsupervised Deterministic Bound: The authors acknowledge that the theoretical guarantee for their purely deterministic unsupervised algorithm is relatively weak, as the error factor scales with the ratio of original features to selected features ($O(n/r)$).
  • Lack of Empirical Validation: Because the paper is entirely theoretical, the practical performance of these algorithms on real-world datasets remains untested. The authors explicitly note that empirical investigation is an interesting future direction, suspecting the algorithms will perform much better in practice than their worst-case theoretical bounds suggest.
  • Computational Overhead: The deterministic variants require computing the exact SVD of the data matrix, which takes cubic time ($O(mn \min\{m, n\})$), potentially limiting scalability for massive datasets unless approximate SVD methods are substituted.

Summary updated

BibTeX
@misc{boutsidis2011deterministic,
  author = {Christos Boutsidis and Malik Magdon-Ismail},
  title = {{Deterministic Feature Selection for $k$-means Clustering}},
  year = {2011},
  eprint = {1109.5664},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1109.5664},
}
Figure