Abstract
Traditional face recognition (FR) systems rely on holistic feature extraction using deep Convolutional Neural Networks (CNNs). However, these models often struggle with the rigid spatial constraints of convolutional grids when processing distinct facial components. This paper introduces part fViT, a novel end-to-end pipeline that leverages the flexibility of Vision Transformers (ViTs) to perform part-based face recognition. By integrating a lightweight landmark-detecting CNN with a ViT, the system learns to identify and extract discriminative facial patches without explicit landmark supervision. Our approach achieves state-of-the-art results on challenging benchmarks, including CFP-FP and IJB-C, demonstrating the efficacy of part-based attention in the transformer architecture.
Introduction
For the past decade, the dominant paradigm in face recognition has been the holistic approach: mapping an entire face image into a high-dimensional embedding space using a CNN and a margin-based loss function (e.g., ArcFace). While effective, this method overlooks the inherent structure of the human face, which is composed of distinct, informative parts like the eyes, nose, and mouth.
Early computer vision attempted part-based recognition, but these methods were largely abandoned due to the complexity of manual landmark labeling and the difficulty of integrating irregular patch extraction into the rigid grid structure of CNNs. Vision Transformers (ViTs) offer a solution to this bottleneck. Because ViTs treat images as sequences of tokens rather than fixed grids, they are naturally suited for processing patches sampled from arbitrary coordinates. This paper explores whether a part-based ViT can outperform holistic models by focusing on the most discriminative regions of the face.
Methodology
The proposed architecture, part fViT, consists of a dual-network pipeline designed for end-to-end training.
1. The Baseline: fViT
As a control, the authors developed fViT, a "vanilla" Vision Transformer adapted for face recognition. To overcome the tendency of ViTs to overfit on facial datasets, the authors implemented rigorous regularization techniques, including Mixup, RandAugment, Cutout, and stochastic depth. This baseline establishes the performance of a standard transformer architecture on large-scale FR tasks.
2. The Innovation: part fViT
The part fViT model introduces a two-stage internal process:
- Landmark CNN: A lightweight MobileNetV3 backbone predicts $(x, y)$ coordinates for a set of $R$ landmarks.
- Differentiable Sampling and ViT: Using the predicted coordinates, the system employs differentiable grid sampling to extract patches centered at these landmarks. These patches are then converted into visual tokens and fed into the ViT.
Crucially, the system requires no ground-truth landmark data. The Landmark CNN is trained solely through the recognition loss; it learns to locate the eyes, nose, and other features because those regions provide the most discriminative information for the ViT to minimize identity classification error. This unsupervised discovery of landmarks creates an efficient information bottleneck, forcing the network to find stable features across varying poses and lighting conditions.
Experimental Setup
Training and Evaluation
The models were trained on MS1MV3 (a refined version of MS-Celeb-1M with ~93k identities) and VGGFace2. Evaluation was conducted across a comprehensive suite of standard benchmarks:
- Verification Tasks: LFW, CFP-FP (Frontal-to-Profile), and AgeDB-30.
- Large-scale Benchmarks: IJB-B, IJB-C, and MegaFace.
- Landmark Discovery: MAFL and AFLW were used to assess the Landmark CNN’s ability to locate anatomical features despite the lack of supervised labels.
Results and Discussion
State-of-the-Art Performance
The part fViT model demonstrated significant improvements over existing holistic and part-based methods:
- CFP-FP: On this challenging frontal-to-profile dataset, part fViT-B achieved an accuracy of 99.21%, surpassing previous leaders such as VPL and ArcFace-challenge.
- IJB-C: The model set a new benchmark on IJB-C with a 97.29% TAR@FAR=1e-4.
Qualitative Insights
Analysis of the model's internal mechanics revealed several key findings:
- Unsupervised Landmark Discovery: Despite the lack of labels, the Landmark CNN naturally gravitated toward the eyes, nose, and mouth. This confirms that the model identifies these regions as the most critical for identity verification.
- Attention Dynamics: Visualization of the ViT’s attention heads showed that part fViT exhibits much sharper, more localized attention on specific facial features compared to the vanilla fViT, which often displayed diffused or "noisy" attention maps.
- Efficiency: While increasing the number of landmarks (up to 196) improved accuracy, a more efficient 49-landmark configuration was 4x faster than the full model while still outperforming many holistic state-of-the-art methods.
Conclusion
Part fViT demonstrates that the Vision Transformer's token-based architecture is uniquely qualified to revive part-based face recognition. By allowing a lightweight CNN to discover and sample discriminative landmarks, the system achieves superior accuracy on pose-sensitive and large-scale benchmarks.
While the model excels on large datasets like MS1MV3, future work will focus on improving performance on smaller-scale datasets where optimized ResNet architectures still hold a slight edge. Additionally, the authors plan to scale the method to massive datasets such as Glink360 (10 million identities) to further validate the robustness of part-based transformers in extreme-scale face recognition.
Summary updated