Structure-enhanced pairwise feature learning for face clustering

Shaoying Li, Jie Li, Bincheng Wang, Wei Yao, Bo LiuComplex 2023

Abstract

Face clustering groups massive unlabeled face images according to their underlying identities and has proven to be a valuable tool for data analysis. Most recent studies have utilized graph convolutional networks (GCNs) to explore the structural properties of faces, thereby effectively achieving improved clustering performance. However, these methods usually suffer from computational intractability for large-scale graphs and tend to be sensitive to some postprocessing thresholds that serve to purify the clustering results. To address these issues, in this paper, we consider each pairwise relationship between two samples as a learning unit and infer clustering assignments by evaluating a group of pairwise connections. Specifically, we propose a novel clustering framework, named structure-enhanced pairwise feature learning (SEPFL), which mixes neighborhood information to adaptively produce pairwise representations for cluster identification. In addition, we design a combined density strategy to select representative pairs, thus ensuring training effectiveness and inference efficiency. The extensive experimental results show that SEPFL achieves better performance than other advanced face clustering techniques.

Introduction

Face clustering is the task of grouping millions of unlabeled face images into identities. While Graph Convolutional Networks (GCNs) have recently dominated this field by capturing structural relationships, they face two major hurdles: computational intractability and high sensitivity to manually tuned post-processing thresholds. Building and processing massive global graphs is memory-intensive and slow, and if thresholds are slightly off, clustering quality plummets.

The researchers propose SEPFL (Structure-Enhanced Pairwise Feature Learning), a novel framework that shifts face clustering from complex graph-level operations to efficient pairwise relationship learning. The authors argue that treating the relationship between pairs of images as the fundamental unit of learning—provided they are enriched with local context—can overcome the limitations of global graph methods.

Methodology

The SEPFL framework introduces two primary innovations to enhance pairwise learning:

Neighborhood Mixing Module

Standard pairwise methods often just concatenate the features of two images. SEPFL goes further by "mixing" the features of their neighbors. It uses a three-step process—embedding center-neighbor relations, mixing that info across the spatial dimension, and generating weights—to ensure the model understands local structural variations. This allows the classifier to distinguish between a "true" connection and a "noisy" one that just happens to look similar.

Illustration of neighborhood information mixing in SEPFL.

Combined Density Strategy

To ensure training effectiveness and inference efficiency, the model cannot evaluate every possible pair ($N^2$ complexity). The authors designed a density-based selection tool that combines Similarity Density (how close neighbors are) with Spherical Density (how many neighbors are within a high-similarity "shell"). This helps the model select representative pairs along the path to a cluster's "peak" while ignoring "undesirable connections" that bridge two different clusters.

Density scale used in the combined density strategy for selecting representative pairs.

Once pairs are classified as "connected" or "not," a simple Breadth-First Search (BFS) is used to group them into final clusters.

Experiments and Results

The authors evaluated SEPFL on two major benchmarks:

  • MS-Celeb-1M (MS1M): A massive dataset cleaned to ~5.82 million images and 86K identities. Tests across five scales (584K to 5.21M images) proved the method's scalability.
  • DeepFashion: To demonstrate generalization beyond faces, the method was tested on 27K images across 4K clothing categories.

Key Performance Metrics

SEPFL consistently outperformed existing methods like Ada-NETS and STAR-FC:

  • Accuracy: On the largest MS1M test set (5.21M images), SEPFL achieved a Pairwise F-score ($F_P$) of 86.27 and a BCubed F-score ($F_B$) of 85.05, outperforming Ada-NETS by roughly 2.28% and 1.77% respectively.
  • Generalization: On DeepFashion, it beat Ada-NETS by 2.77% in $F_P$.
  • Efficiency: The method is significantly faster during inference than traditional GCN approaches because it avoids complex graph-cleansing iterations.

Conclusion

SEPFL demonstrates that context-aware pairwise learning is a powerful alternative to global graph-based clustering. By explicitly mixing neighborhood information, the model gains "contextual awareness" similar to a GCN but without the overhead. While the method currently relies on the quality of the initial feature space provided by pre-trained extractors, future work will explore "efficient feature learning" to transform input data into a more cluster-friendly space during the learning process.

Summary updated

BibTeX
@inproceedings{li2023structure,
  author = {Shaoying Li and Jie Li and Bincheng Wang and Wei Yao and Bo Liu},
  title = {{Structure-enhanced pairwise feature learning for face clustering}},
  booktitle = {Complex},
  year = {2023},
  doi = {10.1007/s40747-023-00982-z},
}
Figure