Approximate Clustering with Same-Cluster Queries

Nir Ailon, Anup Bhattacharya, Ragesh Jaiswal, Amit Kumar

This paper, authored by Nir Ailon, Anup Bhattacharya, Ragesh Jaiswal, and Amit Kumar, explores a hybrid approach to one of the most fundamental problems in data science: $k$-means clustering. By allowing an algorithm to ask a "human expert" a limited number of simple questions, the authors show we can bypass the theoretical hardness that usually plagues clustering.

TL;DR

The authors present a framework where a $k$-means algorithm can ask an oracle, "Do these two points belong to the same optimal cluster?" They prove that with a number of queries independent of the dataset size, one can achieve a $(1+\epsilon)$-approximation for $k$-means on any dataset, effectively making an NP-hard problem tractable through minimal supervision.

What Problem Does This Paper Address?

Clustering is typically "unsupervised"—the algorithm tries to find patterns without any labels. However, the $k$-means problem (minimizing the sum of squared distances to cluster centers) is notoriously difficult. It is NP-hard to solve exactly, and even finding a very close approximation is NP-hard for general datasets.

Previous work in "Semi-Supervised Active Clustering" (SSAC) showed that if you could ask an expert "same-cluster queries," you could solve the problem efficiently. However, those results relied on a "margin assumption"—the idea that clusters are already well-separated. This paper asks: Can we get a near-optimal approximation for any dataset using a small number of queries, without assuming the data is "easy" to cluster?

Methods

The authors build their approach on two main pillars:

  1. Modified $k$-means++ Seeding: The standard $k$-means++ algorithm picks centers based on their distance from existing centers ($D^2$-sampling). The authors show that by using queries to ensure each newly sampled center belongs to a new (uncovered) optimal cluster, they can improve the standard $O(\log k)$ approximation to a constant factor approximation (specifically, a factor of 24) with just $O(k^2 \log k)$ queries.
  2. The PTAS (Polynomial Time Approximation Scheme): To get the even tighter $(1+\epsilon)$-approximation, the authors use a more sophisticated sampling strategy. They use $D^2$-sampling to find candidate points, then use queries to "filter" these points into a uniform sample from a specific cluster. According to Inaba’s Lemma, the mean of a small uniform sample is a very good approximation of the true cluster mean.
  3. Handling "Faulty" Experts: Real experts make mistakes. The authors extend their algorithm to handle a "faulty oracle" that gives the wrong answer with probability $q < 1/2$. They solve this by treating the query responses as a Stochastic Block Model (SBM)—a graph problem where you try to recover communities from noisy edge data—and applying robust graph-clustering techniques.

Datasets

This is a theoretical paper focused on provable guarantees. As such, it does not use empirical datasets (like MNIST or ImageNet). Instead, the results are proven to hold for any dataset $X \subseteq \mathbb{R}^d$. The performance is measured by "Query Complexity" (how many questions are asked) and "Time Complexity" (computational steps).

Key Insights and Ideas

  • Independence from $n$: Perhaps the most striking insight is that the number of queries needed for a $(1+\epsilon)$-approximation depends only on $k$ (number of clusters) and $\epsilon$ (desired accuracy), not on $n$ (the number of points in the dataset). You can cluster a billion points with the same number of questions as a thousand points.
  • The Power of "Same-Cluster" Queries: These queries are much easier for a human to answer than providing a full label or a coordinate for a center, yet they provide enough "structural" information to break through NP-hardness.
  • Irreducibility: The authors use a concept called "irreducibility"—if a dataset cannot be well-approximated by $k-1$ clusters, then $D^2$-sampling is mathematically guaranteed to eventually "hit" the $k$-th cluster, making it easier to find with queries.
  • Bridging Clustering and Community Detection: By using SBM recovery techniques to handle faulty oracles, the paper creates a clever bridge between geometric clustering ($k$-means) and graph-based community detection.

Key Results

  • The PTAS: The algorithm achieves a $(1+\epsilon)$-approximation in $O(nd \cdot poly(k/\epsilon))$ time using $O(k^9/\epsilon^4)$ queries.
  • Lower Bound: Using the Exponential Time Hypothesis (ETH), the authors prove a conditional lower bound: any efficient query algorithm needs at least $\Omega(k / \text{poly log } k)$ queries. This shows that their query complexity, while high in its exponents, is somewhat "on the right track" in its dependence on $k$.
  • Constant Factor Improvement: They show that a very simple modification to the industry-standard $k$-means++ seeding, using only $O(k^2 \log k)$ queries, yields a 24-approximation.

Limitations and Future Work

  • High Exponents: While the query complexity is independent of $n$, the exponents (like $k^9$ or $k^{15}$ for the faulty version) are theoretically polynomial but practically daunting. Reducing these exponents is a clear next step.
  • Oracle Consistency: The model assumes the expert is consistent with a unique optimal solution. In cases where multiple equally good clusterings exist, the "expert" might confuse the algorithm if they switch between different optimal mental models.
  • Human Factors: The paper doesn't explore how a real human would interact with this. Future work could involve user studies to see if "same-cluster" queries are as intuitive in practice as they are powerful in theory.

Summary updated

BibTeX
@inproceedings{ailon2018approximate,
  author = {Nir Ailon and Anup Bhattacharya and Ragesh Jaiswal and Amit Kumar},
  title = {{Approximate Clustering with Same-Cluster Queries}},
  booktitle = {ITCS},
  year = {2018},
  url = {https://openreview.net/forum?id=LHcsOahiHpB},
}
Figure