Structure-Aware Face Clustering on a Large-Scale Graph With 107 Nodes

Shuai Shen, Wanhua Li, Zheng Zhu, Guan Huang, Dalong Du, Jiwen Lu, Jie Zhou

Abstract

Face clustering at the scale of millions of images is a significant challenge due to memory constraints and the loss of global structural information in local-based methods. This paper introduces STAR-FC (STructure-AwaRe Face Clustering), a framework that employs a novel "structure-preserved" subgraph sampling strategy for training and a two-step inference process using "Node Intimacy." STAR-FC achieves state-of-the-art accuracy on massive benchmarks, processing 12 million images in under two hours while scaling effectively to 20 million training nodes.

Introduction

Face clustering—grouping images of the same person without manual labels—is essential for organizing massive photo libraries and generating pseudo-labels for face recognition models. However, existing Graph Convolutional Network (GCN) approaches face a "Goldilocks" problem: global-based methods are accurate but hit a memory wall on massive graphs, while local-based methods save memory but lose the global structure, leading to lower accuracy and redundant inference. STAR-FC addresses this by maintaining structural information during both training and inference at an unprecedented scale of $10^7$ nodes.

Methods

STAR-FC introduces two primary innovations to handle large-scale graphs efficiently:

1. Structure-Preserved Subgraph Sampling (SPSS)

To train on 10–20 million nodes without exceeding GPU memory, the authors avoid random node sampling. Instead, they pick "cluster seeds" and include their nearest neighbor clusters. This preserves "hard negatives"—edges between different people who look very similar—allowing the GCN to learn more discriminative boundaries.

2. Two-Step Inference: Parsing and Refinement

During inference, the model performs two distinct steps:

  • Graph Parsing: A trained GCN predicts a confidence score for every edge, and low-confidence edges are immediately pruned.
  • Graph Refinement (Node Intimacy): To remove remaining false positives, the authors introduce Node Intimacy (NI). Inspired by human social circles, NI measures the density of mutual neighbors between nodes. This is implemented using highly efficient sparse matrix multiplications, ensuring the complexity grows linearly ($O(|E|)$) with the number of edges.
The STAR-FC framework overview, illustrating the training pipeline with Structure-Preserved Subgraph Sampling (SPSS) and the two-step inference process.

Key Results

The researchers evaluated STAR-FC on major benchmarks including MS1M (~5.8M images) and WebFace42M (~42M images). STAR-FC achieved a state-of-the-art pairwise F-score of 91.97 on MS1M, outperforming previous methods like GCN-V+E and DA-Net.

Comparison of Pairwise F-score across different training data scales, showing STAR-FC's superior performance and scalability.

As shown in the performance comparison, STAR-FC's accuracy continues to improve as the training data scale increases from 0.4M to 20M nodes, whereas other methods plateau or fail due to memory constraints. Furthermore, the system performed inference on 12 million images in just 1.7 hours, demonstrating significant efficiency gains over traditional clustering methods like K-Means or DBSCAN at this scale.

Conclusion and Future Work

STAR-FC provides a powerful baseline for large-scale clustering by treating clusters as the atomic unit of sampling and leveraging neighborhood consensus through Node Intimacy. While it handles massive scales effectively, future work could address the bottleneck of initial K-Nearest Neighbors (KNN) graph construction for datasets exceeding 100 million nodes, or explore more complex structural metrics to further improve the refinement process.

Summary updated

BibTeX
@inproceedings{shen2021structure,
  author = {Shuai Shen and Wanhua Li and Zheng Zhu and Guan Huang and Dalong Du and Jiwen Lu and Jie Zhou},
  title = {{Structure-Aware Face Clustering on a Large-Scale Graph With 107 Nodes}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00897},
}
Figure