Skip to main content
QUICK REVIEW

[Paper Review] A fast and recursive algorithm for clustering large datasets with $k$-medians

Hervé Cardot, Peggy Cénac|arXiv (Cornell University)|Jan 21, 2011
Advanced Clustering Algorithms ResearchComputer Science19 references6 citations
TL;DR

This paper proposes a fast, recursive stochastic gradient algorithm for k-medians clustering that processes large, high-dimensional datasets sequentially with O(kn) computational complexity. It leverages Robbins-Monro stochastic approximation to converge almost surely to stationary points of the k-medians criterion, with an automatic step-size selection procedure and improved performance via averaging, outperforming k-means, trimmed k-means, and PAM in speed and robustness on real-world TV audience data.

ABSTRACT

Clustering with fast algorithms large samples of high dimensional data is an important challenge in computational statistics. Borrowing ideas from MacQueen (1967) who introduced a sequential version of the $k$-means algorithm, a new class of recursive stochastic gradient algorithms designed for the $k$-medians loss criterion is proposed. By their recursive nature, these algorithms are very fast and are well adapted to deal with large samples of data that are allowed to arrive sequentially. It is proved that the stochastic gradient algorithm converges almost surely to the set of stationary points of the underlying loss criterion. A particular attention is paid to the averaged versions, which are known to have better performances, and a data-driven procedure that allows automatic selection of the value of the descent step is proposed. The performance of the averaged sequential estimator is compared on a simulation study, both in terms of computation speed and accuracy of the estimations, with more classical partitioning techniques such as $k$-means, trimmed $k$-means and PAM (partitioning around medoids). Finally, this new online clustering technique is illustrated on determining television audience profiles with a sample of more than 5000 individual television audiences measured every minute over a period of 24 hours.

Motivation & Objective

  • To address the challenge of clustering large, high-dimensional datasets efficiently and robustly.
  • To develop a sequential, recursive algorithm for k-medians that avoids storing all data and scales linearly with sample size.
  • To improve convergence and performance through averaged stochastic gradient estimators and data-driven step-size selection.
  • To provide a robust alternative to k-means that is less sensitive to outliers by minimizing L1-norms instead of squared errors.
  • To demonstrate the method's practical utility on a real-world dataset of over 5,000 TV viewers monitored over 24 hours.

Proposed method

  • Adapts MacQueen’s sequential k-means idea to k-medians using stochastic gradient descent on the L1-loss criterion.
  • Employs a recursive update rule: $ X_{n+1}^{r} = X_n^r - a_n^r \frac{X_n^r - Z_n}{\|X_n^r - Z_n\|} $ if $ Z_n $ is assigned to cluster $ r $, with $ a_n^r $ as the step size.
  • Uses averaged estimators to improve convergence and estimation accuracy, reducing variance in the recursive updates.
  • Introduces a data-driven procedure to automatically select the descent step size based on empirical L1 loss.
  • Applies the Robbins-Monro stochastic approximation framework to prove almost sure convergence to stationary points of the k-medians objective.
  • Implements a two-step procedure: first run sequential k-means to estimate initial step size, then apply the k-medians algorithm.

Experimental results

Research questions

  • RQ1Can a recursive, online algorithm for k-medians clustering achieve comparable accuracy to batch methods like PAM or trimmed k-means while being significantly faster?
  • RQ2How does the performance of the averaged sequential k-medians estimator compare to k-means, trimmed k-means, and PAM in terms of computation speed and estimation accuracy?
  • RQ3Can a data-driven, automatic step-size selection procedure improve the robustness and convergence of recursive k-medians clustering without manual tuning?
  • RQ4Does the recursive k-medians algorithm maintain stability and convergence properties under high-dimensional and large-sample conditions?
  • RQ5To what extent does the k-medians approach reduce sensitivity to outliers compared to k-means in real-world data?

Key findings

  • The proposed recursive k-medians algorithm achieves O(kn) computational complexity, making it highly scalable for large datasets.
  • The averaged version of the algorithm demonstrates superior performance in terms of estimation accuracy compared to k-means, trimmed k-means, and PAM in the simulation study.
  • The algorithm converges almost surely to the set of stationary points of the k-medians loss criterion under mild regularity conditions.
  • The data-driven step-size selection procedure based on empirical L1 loss improves performance without requiring manual tuning.
  • On real TV audience data with over 5,000 individuals, the algorithm successfully identified meaningful audience profiles in real-time, demonstrating its suitability for online clustering.
  • The method is more robust to outliers than k-means due to the use of L1-norms, while maintaining linear-time complexity.

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.