NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Representation Learning for Clustering: A Statistical Framework

Hassan Ashtiani, Shai Ben-David

TL;DR

This paper introduces a formal statistical framework for "teaching" a clustering algorithm what a user wants by providing it with a manually clustered small sample of data. The authors prove that if the chosen class of data representations is not too complex (measured by a new version of pseudo-dimension), the algorithm can learn a mapping that allows standard $k$-means to generalize the user's intent to the entire dataset with high accuracy.

What Problem Does This Paper Address?

Clustering is notoriously subjective. What one person considers a "coherent group" (e.g., customers grouped by age) might be completely different from another person's view (e.g., customers grouped by spending habits). Standard algorithms like $k$-means are mathematically rigid; they don't know your intent unless you hand-craft the features or the distance metric yourself.

The authors address the "communication gap" between a domain expert and a clustering algorithm. They propose a protocol:

  1. The user is given a small, random sample of the data.
  2. The user manually clusters this sample.
  3. The algorithm uses this "labeled" sample to find a representation (a way of transforming the data) such that $k$-means clustering on the transformed data matches the user’s sample clustering.

The core scientific question is: How much data does the user need to cluster manually to ensure the algorithm learns a representation that works for the rest of the dataset?

Methods

The authors develop a theoretical framework called PAC-SRLK (Probably Approximately Correct Supervised Representation Learner for $k$-means).

Key components include:

  • The TERM Algorithm: A theoretical "Transductive Empirical Risk Minimizer" that searches through a class of possible mappings to find the one that minimizes the difference between the algorithm's output and the user's sample clustering.
  • $(\eta, \epsilon)$-Uniqueness: To make the problem tractable, the authors assume the "good" representations have a unique $k$-means solution. Specifically, any clustering that is nearly as good as the optimal one (within $\eta$) must be physically similar to the optimal one (within $\epsilon$). This prevents the algorithm from getting confused by "ties" or unstable solutions.
  • Multivariate Pseudo-Dimension: The authors extend the classical notion of pseudo-dimension (used for real-valued functions) to vector-valued functions. This allows them to measure the "capacity" or "richness" of the set of possible data transformations.

Datasets

As this is a purely theoretical paper, no empirical datasets or benchmarks were used. The authors prove mathematical theorems that apply to any finite domain set $X$ and any class of embeddings $\mathcal{F}$ that meet their criteria.

Key Insights and Ideas

  • The "k-Richness" Property: The authors note that for any possible way you might want to partition a dataset into $k$ groups, there exists some distance function that makes that partition the optimal $k$-means solution. This highlights why we must constrain the "class of representations"—otherwise, the algorithm could just "overfit" the sample perfectly without learning any meaningful pattern.
  • Clustering as Supervised Learning: By treating the user's sample as "ground truth," the authors bridge the gap between unsupervised clustering and supervised learning. This allows them to use powerful tools like VC-dimension and uniform convergence to provide guarantees.
  • Representation vs. Metric Learning: The paper frames the problem as learning a mapping $f(x)$ rather than just a distance metric $d(x, y)$. This is a subtle but important distinction that allows for more flexible data transformations (like non-linear embeddings).

Key Results

The paper provides the first formal sample complexity bounds for this type of representation learning:

  • General Bound: For a class of mappings with a finite pseudo-dimension, the number of samples $m$ needed to achieve an error of $\epsilon$ with high probability is roughly proportional to $\frac{k + Pdim(\mathcal{F})}{\epsilon^2}$.
  • Linear Mappings: For the specific case of learning a linear transformation from $d_1$-dimensional space to $d_2$-dimensional space, the required sample size is $O\left(\frac{k + d_1 d_2 + \log(1/\delta)}{\epsilon^2}\right)$.
  • Translation: If you want to learn a projection into a new space, the amount of work the human has to do scales linearly with the number of parameters in that projection.

Limitations and Future Work

  • Computational Complexity: The TERM algorithm used in the proofs is an exhaustive search, which is computationally "hard" (NP-hard in many cases). The paper focuses on statistical feasibility (how much data is needed) rather than algorithmic efficiency (how fast it runs).
  • The Uniqueness Assumption: The bounds rely on the $(\eta, \epsilon)$-uniqueness property. In real-world "messy" data, $k$-means solutions might be unstable, which could break the current theoretical guarantees.
  • Beyond $k$-means: The framework is currently specific to $k$-means. Extending this to other clustering objectives (like spectral clustering or linkage-based methods) remains an open challenge.
  • Metric Learning: The authors suggest that a more general approach involving learning arbitrary distance functions (rather than explicit mappings) is a promising but difficult next step.

Summary updated

BibTeX
@inproceedings{ashtiani2015representation,
  author = {Hassan Ashtiani and Shai Ben-David},
  title = {{Representation Learning for Clustering: A Statistical Framework}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2015},
}
Figure