On Mitigating Hard Clusters for Face Clustering

Yingjie Chen, Huasong Zhong, Chong Chen, Chen Shen, Jianqiang Huang, Tao Wang, Yun Liang, Qianru Sun

Abstract

Face clustering is a critical task for organizing large-scale unlabeled face datasets. However, real-world data is often heterogeneous, containing "hard clusters"—identities with very few images (small clusters) or high intra-class variance (sparse clusters). Traditional density-based clustering methods struggle with these variations, as a single threshold often fails to accommodate both dense and sparse groups. This paper introduces two plug-and-play modules: Neighborhood-Diffusion-based Density (NDDe) and Transition-Probability-based Distance (TPDi). NDDe provides a size-invariant density estimation via a diffusion process, while TPDi offers a sparsity-aware distance metric based on transition probabilities. Together, they enable robust clustering with a uniform threshold. Evaluations on MS1M and DeepFashion benchmarks show that the proposed method achieves state-of-the-art performance and significantly improves the recall of hard clusters.

1. Introduction

Labeling millions of faces manually is prohibitively expensive, making automated face clustering essential. However, real-world datasets are inherently heterogeneous. Some identities have hundreds of photos (large clusters), while others have only a few (small clusters). Similarly, some individuals look consistent across shots (dense clusters), while others vary significantly due to lighting or pose (sparse clusters). These small or sparse groups, termed hard clusters, pose a significant challenge for traditional algorithms like Density Peak Clustering (DPC), which typically rely on a uniform threshold. A threshold strict enough to separate dense clusters often shatters sparse ones, while a looser threshold merges distinct large clusters.

2. Methodology

The proposed framework enhances DPC by replacing standard density and distance metrics with two probabilistic modules designed to handle heterogeneity.

Overview of the proposed face clustering framework featuring NDDe and TPDi modules.

2.1 Neighborhood-Diffusion-based Density (NDDe)

Standard density metrics often bias toward large clusters. NDDe addresses this by modeling density as a fluid moving through a transition matrix of K-nearest neighbors. By reaching a stationary distribution through a diffusion process, the resulting density becomes invariant to the absolute size of the cluster, focusing instead on local structural importance.

2.2 Transition-Probability-based Distance (TPDi)

Cosine distance often fails in sparse clusters where points are far apart in feature space. TPDi measures "relative closeness" by analyzing transition probabilities. Two points are considered close if they share similar transition paths to common neighbors. This approach generalizes Jaccard distance, providing robustness against varying levels of sparsity.

3. Experiments and Results

The method was evaluated on the MS1M (5.8M images) and DeepFashion datasets.

Dataset statistics and performance comparison across varying cluster sizes and sparsities.

3.1 Performance on Hard Clusters

As shown in Figure 1, the dataset contains a significant number of small and sparse clusters. While baseline methods like STAR-FC and GCN(V+E) see a sharp decline in F-score as cluster size decreases (sz-1 to sz-5) or sparsity increases (sp-1 to sp-5), the proposed method maintains significantly higher performance. On the largest MS1M subset (5.21M images), the method achieved a Pairwise F-score ($F_P$) of 86.94, outperforming previous state-of-the-art models.

3.2 Versatility and Downstream Impact

A key advantage of NDDe and TPDi is their model-agnostic nature. Integrating these modules into existing architectures like GCN(V+E) resulted in "++" versions that consistently outperformed the originals, with improvements of over 4% on large-scale subsets. Furthermore, pseudo-labels generated by this method enabled a face recognition model to reach 80.80% accuracy on MegaFace, closely approaching the upper bound of ground-truth training.

4. Conclusion

By normalizing the data "landscape" through diffusion-based density and transition-probability distance, this work demonstrates that a uniform threshold can effectively cluster heterogeneous face datasets. Future work may explore the application of these modules to other domains, such as social network community detection or molecular biology.

Summary updated

BibTeX
@inproceedings{chen2022mitigating,
  author = {Yingjie Chen and Huasong Zhong and Chong Chen and Chen Shen and Jianqiang Huang and Tao Wang and Yun Liang and Qianru Sun},
  title = {{On Mitigating Hard Clusters for Face Clustering}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19775-8\_31},
}
Figure