Improved Face Representation via Joint Label Classification and Supervised Contrastive Clustering

Zhenduo ZhangarXiv 2023

Abstract

Face clustering tasks can learn hierarchical semantic information from large-scale data, which has the potential to help facilitate face recognition. However, there are few works on this problem. This paper explores it by proposing a joint optimization task of label classification and supervised contrastive clustering to introduce the cluster knowledge to the traditional face recognition task in two ways. We first extend ArcFace with a cluster-guided angular margin to adjust the within-class feature distribution according to the hard level of face clustering. Secondly, we propose a supervised contrastive clustering approach to pull the features to the cluster center and propose the cluster-aligning procedure to align the cluster center and the learnable class center in the classifier for joint training. Finally, extensive qualitative and quantitative experiments on popular facial benchmarks demonstrate the effectiveness of our paradigm and its superiority over the existing approaches to face recognition.

Introduction

Modern face recognition typically relies on margin-based softmax losses, such as ArcFace, which employ a fixed penalty to force features of the same identity closer together. However, this "one-size-fits-all" approach ignores the inherent difficulty variations across different identities caused by pose, age, and lighting. While face clustering—grouping similar faces without labels—has advanced significantly, it is rarely used to inform the training of recognition models. This research addresses this gap by using "clusterability" as a signal to dynamically guide the learning process.

Methodology

The proposed framework integrates an encoder with a momentum encoder to maintain a dynamic Feature Queue and a Cluster-Center Bank. The core architecture, illustrated in Figure 1, consists of three novel components:

Overview of the proposed joint optimization framework for face recognition.
  1. Cluster-Guided ArcFace (CG-ArcFace): Instead of a fixed angular margin, the model calculates a concentration level ($\phi$) for each class. "Loose" classes (hard to cluster) receive a larger margin to force more compact representations, while "tight" clusters receive a smaller margin.
  2. Supervised Cluster Contrastive Loss ($L_{Clu-Con}$): This loss pulls individual face features toward their respective cluster centers in the bank while pushing them away from other cluster centers, utilizing a class-adaptive temperature to handle varying difficulty levels.
  3. Cluster-Aligning Loss ($L_{Clu-Ali}$): This bridges the gap between feature-space cluster centers (actual feature averages) and learnable class centers (classifier weights), ensuring the classifier's ideal representation matches the actual data distribution.

Experimental Results

The model was trained on the refined MS1M dataset and evaluated across standard benchmarks including LFW, CFP-FP, CPLFW, AgeDB, CALFW, IJB-B/C, and MegaFace.

As shown in Table 1, the proposed method, Ours(ResNet-100), achieved state-of-the-art results across multiple benchmarks:

  • Pose-Invariant Recognition: Achieved 99.12% on CFP-FP and 93.51% on CPLFW.
  • Age-Invariant Recognition: Reached 98.58% on AgeDB.
  • Large-Scale Verification: On IJB-C, it achieved a True Acceptance Rate (TAR) of 96.80% at a False Acceptance Rate (FAR) of $10^{-4}$.
Comparison of verification accuracy and IJB/MegaFace performance against state-of-the-art methods.

Qualitative analysis further demonstrated that the model significantly widened the similarity distribution gap between positive and negative pairs compared to standard ArcFace.

Discussion and Conclusion

The primary insight of this work is that the state of the feature space (clustering quality) serves as an effective diagnostic tool for the loss function. Unlike previous methods that rely on image quality, this approach captures structural "hardness" (pose, age, occlusion) through cluster concentration. Furthermore, the Cluster-Aligning Loss resolves the disconnect between classifier weights and actual feature averages.

While the method demonstrates superior performance, it introduces additional computational overhead due to the momentum encoder and feature queue. Future work may explore refining the cluster concentration metric or integrating it into broader metric learning tasks beyond face recognition.

Summary updated

BibTeX
@misc{zhang2023improved,
  author = {Zhenduo Zhang},
  title = {{Improved Face Representation via Joint Label Classification and Supervised Contrastive Clustering}},
  year = {2023},
  eprint = {2312.04029},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.04029},
}
Figure