Introduction
In modern computer vision, face analysis is often a fragmented process. Building an application that simultaneously recognizes an individual, estimates their age, and tracks facial landmarks typically requires deploying multiple specialized deep-learning models. This "one-model-per-task" approach is not only computationally expensive and difficult to scale but also fails to leverage the shared underlying features of the human face.
Previous attempts to unify these tasks generally followed two paradigms: universal representation with task-specific fine-tuning, or early multi-task learning models with fixed heads. These approaches often suffered from a lack of extensibility or significant parameter overhead.
Faceptor addresses these challenges by introducing a truly generalist architecture that is both extensible and efficient, capable of handling a wide array of face perception tasks within a single framework.
The Faceptor Architecture
Faceptor utilizes a single-encoder dual-decoder structure designed for maximum parameter sharing and task flexibility.
Single-Encoder Dual-Decoder
The core of the model is a Vision Transformer (ViT-B) encoder, pre-trained using the FaRL framework to extract robust general facial features. This encoder is paired with two specialized decoders:
- Transformer Decoder: This component uses learnable, task-specific queries to represent different semantic outputs. For instance, a single query might represent a binary attribute like "smiling," while a set of queries could represent age ranges.
- Pixel Decoder: To handle dense prediction tasks such as face parsing and landmark localization, the pixel decoder upsamples encoder features to restore spatial resolution.
Layer-Attention Mechanism
A key innovation in Faceptor is the Layer-Attention mechanism. Different facial tasks require information from different depths of the network; landmark localization relies on low-level geometric details found in early layers, whereas identity recognition requires high-level semantic abstractions from deeper layers. Layer-Attention allows the model to adaptively weight and combine features from various encoder layers based on the specific task being performed.
Training and Datasets
To ensure broad generalization, Faceptor was trained and evaluated on a massive collection of 13 datasets covering six major categories:
- Landmark Localization: 300W, WFLW, COFW, AFLW-19.
- Face Parsing: CelebAMask-HQ, LaPa.
- Age Estimation: MORPH II, UTKFace.
- Expression Recognition: AffectNet, RAF-DB, FERPlus.
- Binary Attributes: CelebA.
- Face Recognition: MS1MV3 (training), evaluated on LFW, CFP-FP, AgeDB-30, etc.
The training follows a two-stage process. First, task-specific queries are trained to understand the required semantics using top-layer features. Second, the model learns optimal Layer-Attention weights across the frozen encoder to refine performance for each task.
Key Results and Insights
Faceptor demonstrates that a generalist model can achieve state-of-the-art performance while remaining highly efficient.
- Efficiency: By sharing the vast majority of parameters across tasks, Faceptor requires only 103.2M parameters to handle six distinct task categories. This represents a 73% reduction in task-specific overhead compared to a "naive" multi-head implementation.
- Performance: The model achieves competitive or superior results compared to specialized models, including a 4.03 NME on WFLW for landmarks, a 1.96 MAE on MORPH II for age estimation, and 91.26% accuracy on RAF-DB for expression recognition.
- Extensibility: The use of queries as task definitions makes Faceptor highly extensible. Adding a new capability involves introducing new queries rather than redesigning the entire architecture.
Limitations
While Faceptor excels across most tasks, the authors noted a slight performance trade-off in face recognition compared to models optimized solely for that task. This is attributed to conflicting gradients: recognition requires invariance to facial expressions and textures, whereas parsing and expression recognition require sensitivity to those very features. Future research will focus on better de-conflicting these objectives through advanced routing or modular sub-networks.
Summary updated