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

A Proximity-Aware Hierarchical Clustering of Faces

Wei-An Lin, Jun-Cheng Chen, Rama Chellappa

Introduction

Face clustering—the unsupervised grouping of face images by identity—is a critical task in computer vision, particularly for organizing large-scale unlabeled datasets. However, traditional clustering methods often struggle with significant intra-class variations caused by changes in pose, lighting, and age. Furthermore, standard distance metrics like Cosine similarity frequently fail to capture the complex, high-dimensional manifold structure of face features.

To address these challenges, this research introduces Proximity-Aware Hierarchical Clustering (PAHC). PAHC is an unsupervised algorithm that learns the local geometry of deep feature neighborhoods by treating clustering as a series of local classification problems. By adapting to the local data distribution, PAHC achieves state-of-the-art results on challenging benchmarks and demonstrates the ability to "clean" massive, noisy datasets to improve downstream face recognition models.

Methodology

The PAHC pipeline is structured into three primary stages: feature extraction, local similarity modeling, and hierarchical grouping.

The PAHC pipeline: from unlabeled images to final clusters via deep representation and proximity-aware similarity.

1. Deep Feature Extraction

Input images are processed through a pre-trained Deep Convolutional Neural Network (DCNN) to generate compact, normalized feature vectors. These vectors serve as the initial representation for the clustering process.

2. Proximity-Aware Similarity

The core innovation of PAHC is its approach to measuring similarity. Rather than relying on a static distance formula, the method trains a linear Support Vector Machine (SVM) for every data point in the set.

The proximity-aware similarity mechanism uses linear SVMs to find hyperplanes that separate local neighborhoods from distant samples.

For a given point $x_i$, its $K$-nearest neighbors are designated as "positive" samples, while a set of distant points are treated as "negative" samples. The SVM identifies a hyperplane that optimally separates these sets. The similarity between two points $x_i$ and $x_j$ is then derived from how $x_j$ scores against $x_i$’s specific hyperplane (and vice versa). This technique effectively performs a form of "on-the-fly domain adaptation," capturing the unique geometric relationships within local neighborhoods.

3. Hierarchical Clustering

The custom similarity scores generated by the SVMs are used as input for an Agglomerative Hierarchical Clustering (AHC) algorithm. Using average linkage, the algorithm iteratively merges samples into the final identity groups.

Experimental Evaluation

The authors evaluated PAHC on several high-variance benchmarks designed to test robustness against extreme conditions:

  • CFP (Celebrity in Frontal-Profile): Specifically targets extreme pose variations.
  • IJB-A & JANUS CS3: Contains images and video frames with diverse illumination, resolutions, and occlusions.
  • MS-Celeb-1M: A massive dataset of 8 million images used to demonstrate the algorithm's utility in large-scale data curation.

Key Results and Insights

  • Superior Precision-Recall: PAHC consistently outperformed baseline methods like $k$-means and Approximate Rank-Order clustering across the CFP, IJB-A, and CS3 datasets. Notably, it maintained high precision even at high recall levels, where rank-based methods often falter by discarding geometric information.
  • Geometric Preservation: By focusing on the position of neighbors rather than just their rank, PAHC preserves the geometric "shape" of the identity manifold. This is crucial for linking frontal views to profile views of the same individual.
  • Automated Data Curation: The research demonstrates that PAHC can serve as an effective "data janitor." By clustering the noisy MS-Celeb-1M dataset and removing low-confidence clusters, the authors produced a high-quality subset of 3.5 million images. Fine-tuning a DCNN on this curated data led to a significant performance boost on the JANUS CS3 benchmark, increasing the verification rate at a $10^{-4}$ FAR from 0.5813 to 0.7252.

Conclusion and Future Work

PAHC offers a robust, unsupervised solution for face clustering by leveraging local geometric structures. While the computational cost of training per-sample SVMs is higher than simple distance calculations, the gains in precision and the ability to curate massive datasets provide significant value. Future research may focus on optimizing the computational overhead and exploring automated hyperparameter selection for varying data distributions.

Summary updated

BibTeX
@inproceedings{lin2017proximity,
  author = {Wei-An Lin and Jun-Cheng Chen and Rama Chellappa},
  title = {{A Proximity-Aware Hierarchical Clustering of Faces}},
  booktitle = {FG},
  year = {2017},
  url = {https://openreview.net/forum?id=0_Em44Ko1g},
}
Figure