TL;DR
This paper introduces Faceptor, a novel generalist model for face perception that unifies model structure, training, and representation across multiple tasks. By employing a single-encoder dual-decoder architecture with task-specific queries and a Layer-Attention mechanism, Faceptor achieves improved task extensibility and significantly higher storage efficiency compared to previous unified approaches, while matching or exceeding specialized models on most tasks.
What Problem Does This Paper Address?
The field of face perception has seen extensive research into various tasks like facial landmark localization, face parsing, age estimation, expression recognition, and face recognition. However, existing methods typically require a distinct deep model for each task. This leads to inefficiencies in data collection, model training, and deployment, especially in real-world applications where multiple face analysis tasks are often needed simultaneously. While some research has focused on unified representations or multi-task training, these approaches often lack task extensibility (difficulty in adding new tasks) and application efficiency (high storage overhead, slow inference). This paper aims to bridge this gap by proposing a truly unified model structure that is both extensible and efficient.
Methods
The authors propose two main architectural ideas for achieving a unified face perception model:
- Naive Faceptor: This model uses a shared backbone and three types of standardized output heads for different task categories (dense prediction, attribute prediction, identity prediction). This design improves task extensibility by allowing new tasks within a category to reuse existing head structures. However, it suffers from a lack of parameter sharing among heads, leading to increased storage.
- Faceptor: This is the core contribution. It adopts a single-encoder dual-decoder Transformer architecture.
- The encoder extracts shared features from the input image.
- The dual-decoder structure uses task-specific queries to represent semantic information for each task, enabling better handling of new tasks.
- A Pixel Decoder is used for dense prediction tasks.
- Crucially, the Layer-Attention mechanism is introduced within the decoder. This allows the model to adaptively select features from optimal encoder layers based on the specific task's needs, addressing the varying feature preferences across tasks.
- A two-stage training process is employed to ensure the effectiveness of Layer-Attention, particularly for data-sparse tasks.
Datasets
The authors trained and evaluated their models on a comprehensive set of 13 face perception datasets covering 6 tasks. Key datasets include:
- Dense Prediction: 300W, WFLW, COFW, AFLW-19 (for landmark localization); CelebAMask-HQ, LaPa (for face parsing).
- Attribute Prediction: MORPH II, UTKFace (for age estimation); AffectNet, RAF-DB, FERPlus (for expression recognition); CelebA, LFW-73 (for binary attribute classification).
- Identity Prediction: MS-Celeb-1M (for face recognition).
- Face Verification: LFW, CFP-FP, AgeDB-30, CALFW, CPLFW.
Key Insights and Ideas
- Unified Model Structure is Key: The paper argues that focusing on a unified model structure is more critical for achieving true generality than just unified representation or training.
- Task-Specific Queries for Extensibility: Using dedicated queries in the decoder allows the model to learn and represent diverse semantic information for new tasks without requiring a complete redesign of the output heads.
- Layer-Attention for Task-Specific Feature Selection: Different tasks benefit from features at different levels of abstraction. Layer-Attention allows Faceptor to dynamically leverage the most relevant encoder layers for each task, boosting performance.
- Two-Stage Training for Layer-Attention: Directly applying Layer-Attention can sometimes hurt performance. A two-stage training approach, where task-specific queries are learned first, followed by learning layer-aware embeddings, significantly improves its effectiveness.
- Auxiliary Learning for Data-Sparse Tasks: Leveraging strong tasks (like landmark localization) to help weaker, data-scarce tasks (like age estimation) is a powerful strategy within their framework.
Key Results
- Performance: Faceptor achieves state-of-the-art or comparable performance to specialized models on most of the 6 evaluated tasks (facial landmark localization, face parsing, age estimation, expression recognition, binary attribute classification, and face recognition).
- Storage Efficiency: Faceptor is significantly more parameter-efficient than Naive Faceptor, with 103.2M parameters compared to 178.9M for Naive Faceptor when handling 6 tasks. This advantage grows with the number of tasks.
- Task Extensibility: The proposed architecture is designed to be extensible to new tasks.
- Auxiliary Learning Gains: Auxiliary supervised learning improved performance on data-sparse tasks like age estimation (MAE reduced by 0.183 on MORPH II) and expression recognition (accuracy increased by 0.95% on RAF-DB).
- Face Recognition Trade-off: While Faceptor excels in most tasks, it shows a slight decrease in face recognition performance compared to some specialized methods, attributed to the inherent conflicts between learning identity-invariant features and task-specific features for other perception tasks.
Limitations and Future Work
- Face Recognition Performance: The paper acknowledges a slight dip in face recognition performance compared to highly specialized methods. This is attributed to the inherent conflict of learning identity-invariant features while simultaneously learning task-specific features for other perception tasks.
- Future Work: The authors suggest that the prompt tuning approach for Faceptor shows promise for cross-dataset transfer, indicating potential for adapting the model to new domains with minimal fine-tuning. Further exploration of this and other adaptation strategies could be a future direction. The effectiveness of the Layer-Attention mechanism, especially its two-stage training, suggests that further research into adaptive feature selection within unified models is warranted.
Summary updated