Skip to main content
QUICK REVIEW

[Paper Review] Learning to Cluster Faces via Transformer

Jinxing Ye, Xiaojiang Peng|arXiv (Cornell University)|Apr 23, 2021
Face recognition and analysisComputer Science38 references6 citations
TL;DR

This paper proposes Face Transformer (FaceT), a novel supervised face clustering framework that leverages a two-stage Transformer-based approach: Relation Encoder (RE) for contextual node enhancement and Linkage Predictor (LP) for precise pair-wise cluster linkage prediction. By modeling local topology and improving edge representations, FaceT achieves state-of-the-art performance, attaining 91.12% pairwise F-score on MS-Celeb-1M and 90.54% Bcubed F-score.

ABSTRACT

Face clustering is a useful tool for applications like automatic face annotation and retrieval. The main challenge is that it is difficult to cluster images from the same identity with different face poses, occlusions, and image quality. Traditional clustering methods usually ignore the relationship between individual images and their neighbors which may contain useful context information. In this paper, we repurpose the well-known Transformer and introduce a Face Transformer for supervised face clustering. In Face Transformer, we decompose the face clustering into two steps: relation encoding and linkage predicting. Specifically, given a face image, a extbf{relation encoder} module aggregates local context information from its neighbors and a extbf{linkage predictor} module judges whether a pair of images belong to the same cluster or not. In the local linkage graph view, Face Transformer can generate more robust node and edge representations compared to existing methods. Experiments on both MS-Celeb-1M and DeepFashion show that our method achieves state-of-the-art performance, e.g., 91.12\% in pairwise F-score on MS-Celeb-1M.

Motivation & Objective

  • To address the challenge of clustering faces under extreme variations in pose, occlusion, and image quality.
  • To improve clustering robustness by modeling contextual relationships between face images and their neighbors.
  • To overcome limitations of traditional clustering methods that assume convex or uniform cluster distributions.
  • To develop a unified, end-to-end framework that leverages attention mechanisms for better node and edge representation learning.
  • To achieve state-of-the-art performance on large-scale face clustering benchmarks.

Proposed method

  • FaceT decomposes face clustering into two stages: relation encoding and linkage prediction.
  • The Relation Encoder (RE) uses multi-head self-attention to aggregate local context from neighboring face images, enhancing node embeddings.
  • The Linkage Predictor (LP) employs a transformer-based edge enhancement module to refine edge representations and classify whether a pair of images belongs to the same cluster.
  • The model uses a dual-hop neighbor sampling strategy: hop1 for hard positive/negative sample mining and hop2 for local topology consistency.
  • The framework is trained end-to-end with a contrastive loss on pair-wise linkage predictions, enabling joint optimization of node and edge representations.
  • Hyperparameters such as encoder depth, number of attention heads, dropout, and neighbor hop counts are tuned for robustness and performance.

Experimental results

Research questions

  • RQ1Can self-attention mechanisms effectively model local topological context to improve face clustering under challenging conditions?
  • RQ2Does enhancing both node and edge representations simultaneously lead to better clustering performance than existing GCN-based or metric-learning methods?
  • RQ3How sensitive is the proposed FaceT framework to hyperparameter choices such as attention head count, dropout, and neighbor hop counts?
  • RQ4Can the model generalize across different deep feature extractors and training datasets?
  • RQ5Does the use of context-aware edge representation reduce misclassification of hard positive and negative pairs?

Key findings

  • FaceT achieves a pairwise F-score of 91.12% on the MS-Celeb-1M benchmark, setting a new state-of-the-art.
  • The model achieves a Bcubed F-score of 90.54% and NMI of 97.63% on MS-Celeb-1M, demonstrating superior clustering purity and compactness.
  • The Relation Encoder alone produces robust node representations that are measurable in Euclidean space, indicating effective contextual feature learning.
  • Reducing the dropout ratio from 0.4 to 0.2 slightly improves test performance, suggesting that excessive regularization may hinder learning.
  • Increasing the number of attention heads (from 4 to 8) improves performance slightly, with a peak F-score of 91.34%.
  • The model is most sensitive to hop1 and hop2 neighbor sampling strategies, with optimal performance when hop1 is set to 150 and hop2 to 5, indicating that neighbor selection strategy significantly impacts generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.