Clustering with Same-Cluster Queries

Hassan Ashtiani, Shrinu Kushagra, Shai Ben-David

Introduction

Clustering is a fundamental task in unsupervised learning, yet it remains one of the most challenging. This difficulty stems from two primary sources: computational complexity and semantic ambiguity. Objectives such as $k$-means and $k$-median are notoriously NP-hard to solve exactly, even in two-dimensional Euclidean space. Furthermore, without domain-specific guidance, there is often no single "correct" way to partition a dataset; different applications may require different groupings of the same underlying data.

This paper introduces a framework for Semi-Supervised Active Clustering (SSAC). The authors demonstrate that by allowing a learner to ask a domain expert a limited number of "same-cluster queries," it is possible to bypass traditional computational barriers and resolve the inherent ambiguity of the clustering task.

The Problem: Hardness and Under-specification

Traditional clustering research often relies on "niceness" conditions—assumptions that the data is well-separated—to find efficient algorithms. However, many of these conditions do not actually eliminate the NP-hardness of the $k$-means objective.

The authors address this by introducing a human-in-the-loop component. They ask: Can a small amount of "weak supervision"—specifically, interactive queries to an expert who knows the target clustering—simultaneously resolve the ambiguity of the task and the computational burden of the optimization?

The SSAC Framework

The proposed framework relies on two key innovations: same-cluster queries and a new geometric property.

Same-Cluster Queries

In this setup, the algorithm can interact with an "oracle" (a domain expert). The algorithm selects two data points and asks, "Do these two points belong to the same cluster?" This form of supervision is significantly easier for a human to provide than labeling an entire dataset or defining a global objective function. The authors also show that these queries are mathematically equivalent to "cluster-assignment queries," making their results applicable to various forms of human feedback.

The $\gamma$-margin Property

To analyze the algorithm's performance, the authors introduce the $\gamma$-margin property. A dataset satisfies this property if every point is significantly closer to its own cluster center than to any point in a different cluster. This serves as a measure of "input niceness."

The Algorithm

The paper presents a probabilistic polynomial-time (BPP) algorithm that solves the clustering problem in two distinct phases:

  1. Phase 1: Center Approximation: The algorithm randomly samples points and uses same-cluster queries to identify a small subset of points belonging to the same cluster. The mean of these points is used to calculate an approximate cluster center.
  2. Phase 2: Boundary Discovery: Once an approximate center is established, the algorithm sorts the remaining points by their distance to that center. It then employs a binary search, aided by same-cluster queries, to identify the exact radius that defines the cluster boundary.

Theoretical Insights and Results

As a theoretical contribution, the paper uses synthetic mathematical constructions and reductions from the "Exact Cover by 3-Sets" (X3C) problem to establish rigorous bounds.

  • Query Efficiency: The algorithm is highly efficient in its use of the expert, requiring only $O(k^2 \log k + k \log n)$ queries, where $k$ is the number of clusters and $n$ is the number of data points. This is near-optimal, as the authors prove a lower bound of $\Omega(\log k + \log n)$ queries required to overcome NP-hardness.
  • Computational Speed: The algorithm runs in $O(kn \log n)$ time, making it practical for large datasets.
  • The Hardness Threshold: The paper identifies a sharp "phase transition" regarding the $\gamma$-margin. If $\gamma > 1$, the algorithm solves the problem efficiently with queries. However, if $\gamma \leq \sqrt{3.4} \approx 1.84$, the problem remains NP-hard for any algorithm that does not have access to an oracle.

Conclusion and Future Work

The most striking insight of this work is that a logarithmic number of queries acts as a "complexity unlock," transforming an NP-hard problem into a polynomial-time one. While the current framework assumes a "perfect oracle" (an expert who is always correct), it provides a robust foundation for future research.

Future directions include extending the model to handle "noisy" oracles who may make mistakes or abstain from answering, and exploring whether these techniques can be applied to non-Euclidean metric spaces where the geometric assumptions of $k$-means may not apply.

Summary updated

BibTeX
@inproceedings{ashtiani2016clustering,
  author = {Hassan Ashtiani and Shrinu Kushagra and Shai Ben-David},
  title = {{Clustering with Same-Cluster Queries}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=ryZWau-ubB},
}
Figure