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

Representation Learning for Clustering: A Statistical Framework

Hassan Ashtiani, Shai Ben-David

Introduction

Clustering is a fundamental tool in unsupervised learning, yet it remains inherently subjective. The definition of "natural" groupings often depends on the specific domain and the user's goals. Traditionally, incorporating domain expertise into clustering has been an ad hoc process, involving manual feature engineering or the heuristic adjustment of distance metrics. This paper introduces a formal statistical framework, PAC Supervised Representation Learner for K-Means (PAC-SRLK), to systematically bridge the gap between user intent and algorithmic execution.

The PAC-SRLK Framework

The authors propose a protocol where a domain expert manually clusters a small, uniformly sampled subset of the data. The goal is to learn a mapping (representation) from a predefined hypothesis class $\mathcal{F}$ such that, when standard $k$-means is applied to the transformed data, the resulting partition matches the user's manual clustering.

The framework utilizes an Empirical Risk Minimization (ERM) approach. It searches for a mapping $f \in \mathcal{F}$ that minimizes the discrepancy between the user's labels on the sample and the clusters produced by $k$-means in the learned space. This approach shifts the focus from modifying the clustering objective function (e.g., adding pairwise constraints) to learning a data representation that naturally aligns with the desired semantics.

Statistical Generalization and Capacity Control

A central challenge in this approach is ensuring that the learned representation generalizes from the small sample to the entire dataset. Because $k$-means is highly flexible—a property known as "$k$-richness"—an unconstrained mapping class could easily overfit the user's sample, finding a distance metric that justifies an arbitrary and non-generalizable partition.

To address this, the authors introduce a multivariate version of pseudo-dimension to quantify the richness of the mapping class $\mathcal{F}$. They also define $(\eta, \epsilon)$-uniqueness, a condition ensuring that the $k$-means solution under the chosen mapping is stable and distinct. This prevents degenerate cases where multiple, significantly different clusterings yield the same optimal cost, which would undermine the reliability of the learned representation.

Key Results and Sample Complexity

The primary contribution of the paper is the establishment of formal sample complexity bounds for the PAC-SRLK framework. The authors prove that to achieve an $\epsilon$-optimal representation with probability $1-\delta$, the required sample size $m$ scales as:

$$m = \mathcal{O}\left(\frac{k + Pdim(\mathcal{F}) + \log(1/\delta)}{\epsilon^2}\right)$$

where $k$ is the number of clusters and $Pdim(\mathcal{F})$ is the pseudo-dimension of the mapping class.

For the practical case of learning a linear mapping from $\mathbb{R}^{d_1}$ to $\mathbb{R}^{d_2}$ (which is essentially equivalent to learning a Mahalanobis distance metric), the bound is refined to:

$$m = \mathcal{O}\left(\frac{k + d_1 d_2 + \log(1/\delta)}{\epsilon^2}\right)$$

These results provide the first theoretical guarantees for how much human supervision is required to reliably guide a clustering algorithm via representation learning.

Limitations and Future Work

While the paper provides a robust statistical foundation, it focuses on sample complexity rather than computational efficiency. Finding the optimal mapping via ERM over complex hypothesis classes may be computationally intensive, and the authors leave the development of efficient optimization algorithms for future work.

Furthermore, the current framework is tailored to Euclidean spaces and $k$-means. Extending these principles to more general distance functions and non-center-based clustering algorithms remains a significant theoretical challenge, as generalization bounds for clustering under non-Euclidean metrics are not yet well-established.

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