[Paper Review] Greedy bi-criteria approximations for $k$-medians and $k$-means
This paper proposes a greedy bi-criteria approximation algorithm for $k$-medians and $k$-means clustering that iteratively selects centers from a candidate set to minimize clustering cost. It achieves a $1+\varepsilon$ approximation with $\mathcal{O}(k\log(1/\varepsilon))$ centers using either all data points or carefully sampled candidates, significantly improving runtime over prior methods while matching or outperforming $k$-means++ in empirical evaluation.
This paper investigates the following natural greedy procedure for clustering in the bi-criterion setting: iteratively grow a set of centers, in each round adding the center from a candidate set that maximally decreases clustering cost. In the case of $k$-medians and $k$-means, the key results are as follows. $\bullet$ When the method considers all data points as candidate centers, then selecting $\mathcal{O}(k\log(1/\varepsilon))$ centers achieves cost at most $2+\varepsilon$ times the optimal cost with $k$ centers. $\bullet$ Alternatively, the same guarantees hold if each round samples $\mathcal{O}(k/\varepsilon^5)$ candidate centers proportionally to their cluster cost (as with $ exttt{kmeans++}$, but holding centers fixed). $\bullet$ In the case of $k$-means, considering an augmented set of $n^{\lceil1/\varepsilon ceil}$ candidate centers gives $1+\varepsilon$ approximation with $\mathcal{O}(k\log(1/\varepsilon))$ centers, the entire algorithm taking $\mathcal{O}(dk\log(1/\varepsilon)n^{1+\lceil1/\varepsilon ceil})$ time, where $n$ is the number of data points in $\mathbb{R}^d$. $\bullet$ In the case of Euclidean $k$-medians, generating a candidate set via $n^{\mathcal{O}(1/\varepsilon^2)}$ executions of stochastic gradient descent with adaptively determined constraint sets will once again give approximation $1+\varepsilon$ with $\mathcal{O}(k\log(1/\varepsilon))$ centers in $dk\log(1/\varepsilon)n^{\mathcal{O}(1/\varepsilon^2)}$ time. Ancillary results include: guarantees for cluster costs based on powers of metrics; a brief, favorable empirical evaluation against $ exttt{kmeans++}$; data-dependent bounds allowing $1+\varepsilon$ in the first two bullets above, for example with $k$-medians over finite metric spaces.
Motivation & Objective
- To design a greedy algorithm that achieves near-optimal clustering cost with a slightly larger number of centers than $k$, enabling efficient approximation in the bi-criteria setting.
- To improve upon existing $k$-means and $k$-median approximation algorithms by reducing runtime while maintaining strong approximation guarantees.
- To analyze the performance of greedy center selection under different candidate set constructions, including full data points, subsampled points, and mean-based candidate sets.
- To provide theoretical bounds on approximation quality that depend on problem structure and initialization, with data-dependent improvements possible.
Proposed method
- The algorithm uses a greedy iterative procedure that, in each round, selects the center from a candidate set that most reduces the total clustering cost.
- The candidate set is adaptively constructed via a routine called 'select', which can return all data points, a subsampled set proportional to cost reduction, or means of subsets of size $\lceil 1/\varepsilon \rceil$.
- For $k$-means, the method uses $n^{\lceil 1/\varepsilon \rceil}$ candidate centers formed from all subsets of size $\lceil 1/\varepsilon \rceil$, enabling $1+\varepsilon$ approximation with $\mathcal{O}(k\log(1/\varepsilon))$ centers.
- For Euclidean $k$-medians, candidate centers are generated via $n^{\mathcal{O}(1/\varepsilon^2)}$ stochastic gradient descent runs with adaptive constraints, achieving $1+\varepsilon$ approximation in $\mathcal{O}(dk\log(1/\varepsilon)n^{\mathcal{O}(1/\varepsilon^2)})$ time.
- The analysis leverages a novel cost decomposition and volume-based sampling arguments to bound the approximation factor, especially in the generalized $p$-norm $k$-median setting.
- A key technical component is a probabilistic sampling strategy that ensures high-probability coverage of good centers by sampling from balls with radius proportional to estimated cost.
Experimental results
Research questions
- RQ1Can a simple greedy algorithm achieve $1+\varepsilon$ approximation for $k$-means and $k$-medians using only $\mathcal{O}(k\log(1/\varepsilon))$ centers?
- RQ2What candidate set construction enables strong approximation guarantees while keeping runtime polynomial in $n$ and $d$?
- RQ3How does the performance of greedy compare to $k$-means++ in practice, especially when initialized with $k$-means++ centers?
- RQ4Can data-dependent bounds improve the approximation factor without requiring strong assumptions on the input?
- RQ5What is the trade-off between approximation quality, number of centers, and runtime in greedy bi-criteria clustering?
Key findings
- When all data points are used as candidate centers, $\mathcal{O}(k\log(1/\varepsilon))$ centers achieve a cost within $2+\varepsilon$ of the optimal $k$-center cost.
- Using $\mathcal{O}(k/\varepsilon^5)$ subsampled candidates (similar to $k$-means++) still achieves $2+\varepsilon$ approximation with $\mathcal{O}(k\log(1/\varepsilon))$ centers.
- For $k$-means, using all subsets of size $\lceil 1/\varepsilon \rceil$ as candidate centers yields a $1+\varepsilon$ approximation with $\mathcal{O}(k\log(1/\varepsilon))$ centers and runtime $\mathcal{O}(dk\log(1/\varepsilon)n^{1+\lceil 1/\varepsilon \rceil})$.
- For Euclidean $k$-medians, $\mathcal{O}(k\log(1/\varepsilon))$ centers suffice for $1+\varepsilon$ approximation when candidates are generated via $n^{\mathcal{O}(1/\varepsilon^2)}$ SGD runs, with total time $\mathcal{O}(dk\log(1/\varepsilon)n^{\mathcal{O}(1/\varepsilon^2)})$.
- Empirical results show the greedy method with $k$-means++-inspired sampling outperforms $k$-means++ in median and minimum cost across five UCI datasets, even when initialized with $k$-means++.
- The analysis shows that data-dependent bounds can improve the approximation factor, achieving $1+\varepsilon$ with $\mathcal{O}(k\log(1/\varepsilon))$ centers under certain structural assumptions on the data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.