Learning to Cluster Faces via Hypergraph Convolution with Transformer on Large Graph

Dengdi Sun, Zhizhong Huang, Bin Luo, Zhuanlian Ding, S Lloyd, M Ester, H.-p Kriegel, J Sander, X Xu, Z Wang, L Zheng, Y Li, S Wang, L Yang, D Chen, X Zhan, R Zhao, C Loy, D Lin, Q Li, Z Han, X.-m Wu, S Bai, F Zhang, P Torr, J Cui, F Wen, R Xiao, Y Tian, X Tang, C Otto, D Wang, A Jain, J Shi, J Malik, W.-a Lin, J.-c Chen, R Chellappa, C Zhu, J Sun, S Guo, J Xu, C Zhang, X Wang, J Yan, S Yan, Z Li, Y Xiong, H Yan, C Castillo, B Frey, D Dueck, D Comaniciu, P Meer, W.-l Chiang, X Liu, S Si, S Bengio, C.-j Hsieh, Y Feng, H You, Z Zhang, R Ji, Y Gao, N Yadati, M Nimishakavi, P Yadav, V Nitin, A Louis, P Talukdar, J Zhang, Y Chen, X Xiao, R Lu, S Xia, W Wang, E Xie, X Li, D.-p Fan, K Song, D Liang, T Lu, P Luo, L Shao, C Qi, H Jia2023

Abstract

Face clustering is a very useful method in image annotation, image retrieval and other real-world applications. The main challenge is that with the increasing data scale, the large graph constructed by KNN is difficult to train due to out of memory. At the same time, the image features of the previous face clustering methods are extracted through CNN, which is not conducive to obtaining the global features of the image. In this paper, we propose a method that uses transformer to extract image features. Then, we use the extracted image features to construct a large graph by KNN, and we randomly partition the large graph into several non-overlapping subgraphs through METIS. In addition, we use hypergraph convolution to learn deeper high-order graph structure data. Experiments on both MS-Celeb-1M and DeepFashion show that our method achieves state-of-the-art performance, eg.90.08% in pair-wise F-score on MS-Celeb-1M.

Introduction

Face clustering—the process of grouping unlabeled facial images by identity—is essential for large-scale image annotation and retrieval. However, existing methods face three major hurdles. First, scalability is a significant issue; constructing a K-Nearest Neighbor (KNN) graph for millions of images often leads to "out-of-memory" (OOM) errors on GPUs. Second, traditional methods rely on Convolutional Neural Networks (CNNs) for feature extraction, which often struggle to capture the global context of an image. Finally, standard Graph Convolutional Networks (GCNs) are limited to pairwise relationships, failing to capture the "high-order" correlations present in complex face datasets.

Methodology

The proposed framework introduces a multi-stage pipeline designed to overcome these limitations by combining Vision Transformers (ViT) with Hypergraph Convolutional Networks (HGCN).

Overall pipeline of the proposed face clustering framework.

Feature Extraction and Graph Partitioning

Instead of a CNN, the model utilizes a Vision Transformer (ViT) to extract facial features. This allows the model to capture long-range dependencies and global information across the image, creating more robust embeddings for clustering. To handle massive datasets, a large KNN graph is constructed and then divided into several non-overlapping subgraphs using the METIS algorithm. This partitioning strategy effectively solves OOM issues without the computational redundancy of overlapping subgraphs.

Hypergraph Convolution (HGCN)

Within the partitioned subgraphs, the model constructs a hypergraph where a single "hyperedge" can connect multiple nodes. Unlike standard GCNs that only model pairwise edges, HGCN aggregates information through these hyperedges to learn deeper, more complex structural data.

Detailed view of the Hypergraph Convolution process involving hyperedge and node feature aggregation.

As shown in the figure above, the HGCN process involves two main steps: hyperedge feature aggregation and node feature aggregation. This high-order correlation modeling prevents the "over-smoothing" effect often seen in deep standard GCNs, where node features become indistinguishable. The final output is processed by a Multi-Layer Perceptron (MLP) classifier to predict connection confidence.

Experiments and Results

The model was evaluated on several prominent benchmarks, including MS-Celeb-1M, DeepFashion, and IJB-B.

Performance Benchmarks

The proposed method, referred to as H-GCN, achieved state-of-the-art (SOTA) results:

  • MS-Celeb-1M: Achieved a pair-wise F-score of 90.08%, significantly outperforming the previous SOTA, GCN-V+E (87.55%).
  • DeepFashion: Reached a Normalized Mutual Information (NMI) of 91.19%.
  • IJB-B: Consistently outperformed existing methods like L-GCN and ARO across various subsets (IJB-B-512, 1024, and 1845).

Ablation Studies

Ablation studies confirmed that both the feature extractor and the graph architecture are critical. The combination of ViT + HGCN (90.08% F-score) proved superior to CNN + HGCN (88.80%) and ViT + standard GCN (83.66%).

Conclusion

This paper demonstrates that combining the global feature-extraction power of Transformers with the high-order modeling of Hypergraph Convolutional Networks significantly advances the state-of-the-art in face clustering. By utilizing METIS for efficient graph partitioning, the framework remains scalable to large datasets. Future work may explore more advanced Transformer architectures and dynamic hypergraph construction methods to further refine clustering accuracy on web-scale data.

Summary updated

BibTeX
@misc{sun2023learning,
  author = {Dengdi Sun and Zhizhong Huang and Bin Luo and Zhuanlian Ding and S Lloyd and M Ester and H.-P Kriegel and J Sander and X Xu and Z Wang and L Zheng and Y Li and S Wang and L Yang and D Chen and X Zhan and R Zhao and C Loy and D Lin and Q Li and Z Han and X.-M Wu and S Bai and F Zhang and P Torr and J Cui and F Wen and R Xiao and Y Tian and X Tang and C Otto and D Wang and A Jain and J Shi and J Malik and W.-A Lin and J.-C Chen and R Chellappa and C Zhu and F Wen and J Sun and S Guo and J Xu and D Chen and C Zhang and X Wang and R Zhao and L Yang and X Zhan and D Chen and J Yan and C Loy and D Lin and S Yan and Z Li and Y Xiong and H Yan and D Lin and W.-A Lin and J.-C Chen and C Castillo and R Chellappa and B Frey and D Dueck and D Comaniciu and P Meer and W.-L Chiang and X Liu and S Si and Y Li and S Bengio and C.-J Hsieh and Y Feng and H You and Z Zhang and R Ji and Y Gao and N Yadati and M Nimishakavi and P Yadav and V Nitin and A Louis and P Talukdar and J Zhang and Y Chen and X Xiao and R Lu and S Xia and W Wang and E Xie and X Li and D.-P Fan and K Song and D Liang and T Lu and P Luo and L Shao and C Qi and J Zhang and H Jia},
  title = {{Learning to Cluster Faces via Hypergraph Convolution with Transformer on Large Graph}},
  year = {2023},
  doi = {10.18178/wcse.2023.06.018},
}
Figure