Abstract
A common practice in modern face recognition methods is to specifically align the face area based on prior knowledge of human face structure before feature extraction. Usually implemented independently, this step complicates the design of end-to-end models. This study explores end-to-end face recognition through alignment learning, requiring neither prior knowledge of facial landmarks nor artificially defined geometric transformations. Driven solely by identity clues, the model automatically learns optimal geometric transformations. Trained on public datasets, the model achieves a verification accuracy of 99.33% on the LFW dataset, rivaling state-of-the-art single-model methods.
Introduction
In traditional face recognition pipelines, alignment is a critical but cumbersome intermediate step. Standard systems detect a face, locate specific landmarks (e.g., eyes, nose, mouth), and mathematically warp the image to a canonical "upright" position. This approach suffers from two main drawbacks: the high cost of manual landmark labeling and the reliance on human-defined geometric rules that may not be optimal for deep learning feature extraction.
This paper proposes a unified architecture that replaces manual alignment with an automated "Alignment Learning" module. By integrating a Spatial Transformer Network (STN), the model learns to normalize faces using only identity labels, moving closer to a truly end-to-end recognition process.
Proposed Architecture
The researchers developed a unified pipeline consisting of four primary components:
- Detection Network: A GoogLeNet-based module that identifies the face and generates a rough crop.
- Localization Network: A compact CNN that analyzes the cropped face to predict transformation parameters.
- Spatial Transformer (STN): The "warper" that applies geometric transformations (Similarity, Affine, or Projective) based on the localization network's output.
- Recognition Network: A ResNet-based model that extracts identity features from the aligned image, optimized using Softmax and Center Loss.
Crucially, the Localization Network receives no direct supervision regarding facial landmarks. It learns to transform the image in a way that minimizes the recognition loss, effectively discovering its own alignment strategy.
Alignment Learning and Emergent Behavior
A key finding of this research is the "emergent behavior" of the alignment module. Despite never being taught the concept of an "upright" face, the model naturally learned to transform tilted or profile views into a front-facing, normalized orientation. This suggests that standard alignment is indeed mathematically advantageous for recognition, but the model can find even more nuanced transformations than human-defined rules allow.
The study also compared different transformation types, finding that Projective transformations—which account for perspective shifts—outperformed simpler Affine or Similarity transformations. This flexibility allows the model to handle a wider range of poses and perspective distortions.
Experimental Results
The model was trained on a cleaned version of the CASIA-WebFace dataset (approx. 460,000 images) and evaluated on standard benchmarks:
- LFW (Labeled Faces in the Wild): The model achieved a verification accuracy of 99.08% (using projective transformation), comparable to state-of-the-art models using much larger datasets.
- Ablation Study: Removing the alignment module (Identical transformation) caused accuracy to drop to 97.68%, demonstrating the significant value of the learned warping.
- YTF (YouTube Faces): The model reached 94.7% accuracy on video-based verification.
Conclusion
By shifting from rule-based alignment to learned alignment, this work demonstrates that deep networks can autonomously discover optimal pre-processing strategies for face recognition. While the localization network requires careful initialization and training stability tricks, the resulting end-to-end system is more robust and less dependent on expensive landmark annotations. Future work may involve integrating the initial detection step into the same network for a fully fluid raw-image-to-identity pipeline.
Summary updated