Introduction
Facial analysis is a critical component of modern human-computer interaction, encompassing tasks from emotion recognition to deepfake detection. Traditionally, these models rely on vast quantities of manually labeled video data, which is both costly and labor-intensive to acquire. While self-supervised learning (SSL) offers a path toward leveraging unlabeled data, general-purpose video models often fail to capture fine-grained facial nuances. Conversely, existing face-specific SSL models like MARLIN often converge on a "generic average face," lacking the discriminative power required to distinguish subtle expressions or individual identities.
PrefAce addresses these limitations through a novel face-centric pretraining framework. By integrating landmark-guided distillation with an instance-aware memory cache, PrefAce learns representations that are both structurally precise and highly discriminative.
Methodology
PrefAce utilizes a teacher-student distillation architecture, specifically tailored for facial geometry and temporal dynamics. The framework introduces two primary innovations:
1. Multiscale Landmark-Guided Self-Distillation
Unlike standard SSL methods that use random spatial cropping, PrefAce employs a face parsing tool to identify key regions such as the eyes, nose, and mouth. It performs "tube cropping"—extracting these specific regions across the temporal dimension—forcing the student network to align local, fine-grained structural details with the teacher's global understanding. This ensures the model captures the complex spatio-temporal relationships inherent in facial movements.
2. FaceFeat Cache
To prevent the model from collapsing into generic representations, PrefAce incorporates a FaceFeat Cache—a memory dictionary that stores representations of various video instances. Using an InfoNCE contrastive loss, the model is trained to maximize similarity between different views of the same video while minimizing similarity with other instances in the cache. This mechanism encourages the encoder to produce diverse and discriminative embeddings.
Experimental Setup
The model was pretrained on the YouTube Faces (YTF) dataset, a collection of uncurated, real-world facial videos. Evaluation was conducted across several downstream tasks:
- Facial Attribute Recognition (FAR): Evaluated on CelebV-HQ.
- Facial Expression Recognition (FER) & Sentiment Analysis: Evaluated on CMU-MOSEI.
- DeepFake Detection (DFD): Evaluated on FaceForensics++ (LQ).
- Lip Synchronization (LS): Evaluated on LRS2.
Results and Discussion
PrefAce consistently outperforms both supervised and unsupervised state-of-the-art (SOTA) baselines. On CelebV-HQ, it achieved an overall accuracy of 95.60%, surpassing the previous SOTA, MARLIN (94.69%). In deepfake detection, PrefAce reached 92.30% accuracy, a significant improvement over MARLIN’s 89.43%.
Embedding Diversity and Structure
A key insight of this work is the "diversity gap" in existing facial SSL models. As shown in Figure 1, t-SNE visualizations reveal that while previous methods like MARLIN produce overlapping clusters, PrefAce generates well-separated embeddings. This separation confirms that the FaceFeat Cache successfully promotes instance-level discriminative power.
Furthermore, PrefAce demonstrates remarkable qualitative success. Without explicit labels during pretraining, the model naturally groups faces by attributes such as pose, gender, and expression.
Robustness and Generalization
PrefAce exhibits exceptional few-shot robustness. When provided with only 1% of labels for downstream tasks, it maintained high performance (e.g., 79.16% on emotion recognition), whereas competing models showed significant degradation. This suggests that the learned features are highly transferable and capture fundamental facial characteristics.
Conclusion
PrefAce represents a significant step forward in self-supervised facial analysis. By prioritizing facial structure and instance diversity, it overcomes the "average face" problem prevalent in earlier models. While the current implementation relies on external face parsing tools—a potential area for future end-to-end integration—PrefAce sets a new benchmark for task-agnostic facial representation learning.
Summary updated