OpenFace 3.0: A Lightweight Multitask System for Comprehensive Facial Behavior Analysis

Jiewen Hu, Leena Mathur, Paul Pu Liang, Louis-Philippe Morency

TL;DR

OpenFace 3.0 is a major upgrade to the popular open-source facial analysis toolkit, introducing a lightweight multitask model that simultaneously handles landmark detection, action unit (AU) recognition, gaze estimation, and emotion recognition. By leveraging a unified architecture and a smart three-stage training process, it achieves state-of-the-art performance—especially on challenging non-frontal faces—while remaining efficient enough to run in real-time on a standard CPU.

What Problem Does This Paper Address?

Facial behavior analysis is a cornerstone of affective computing, robotics, and human-computer interaction. However, researchers often face a "fragmentation" problem: most high-performing models are specialized for a single task (e.g., just gaze or just landmarks). Running multiple specialized models at once is computationally expensive, often requiring high-end GPUs that aren't available in mobile or edge-computing scenarios.

Furthermore, existing toolkits like OpenFace 2.0, while widely used, lack integrated emotion recognition and struggle with "in-the-wild" conditions, such as extreme head poses or poor lighting. OpenFace 3.0 aims to bridge this gap by providing a single, easy-to-use, and highly efficient "all-in-one" system.

Methods

The core of OpenFace 3.0 is a Unified Multitask Model. Instead of separate pipelines, the system uses a shared backbone to extract a single facial representation used by all downstream tasks.

  • The Architecture: It starts with RetinaFace for face detection. Features are then extracted using an EfficientNet backbone (for context) and a Stacked Hourglass network (for precise spatial landmarks). These are concatenated into a "Unified Facial Representation."
  • Task-Specific Heads:
    • AU Detection: Uses a Dynamic Graph Convolutional Network (GCN). Rather than treating facial muscles as independent, the GCN models the relationships between different regions of the face.
  • Gaze Estimation: Employs independent fully-connected layers to predict yaw and pitch for each eye.
  • Emotion Recognition: Uses a simple, efficient fully-connected layer to classify eight categorical emotions.
  • Three-Stage Training: To prevent the tasks from "fighting" each other during training, the authors use a phased approach:
  • Train the landmark detector independently.
  • Freeze the backbone and train task-specific classifiers.
  • Unfreeze everything and fine-tune the entire system using homoscedastic uncertainty weighting. This technique automatically adjusts the "importance" of each task's loss function to ensure balanced learning across diverse datasets.

Datasets

The model was trained and evaluated on a massive standardized collection of datasets:

  • Landmarks: 300W (indoor/outdoor) and WFLW (diverse faces).
  • Emotion: AffectNet (1 million images).
  • Action Units: DISFA and BP4D (video-based annotations).
  • Gaze: MPII Gaze and Gaze360 (covering 360-degree ranges).

Key Insights and Ideas

  • Cross-Task Synergy: One of the most interesting findings is that multitasking actually improves performance on difficult samples. For example, learning gaze direction helps the model better understand facial geometry, which in turn makes emotion recognition more accurate on angled (non-frontal) faces.
  • Efficiency is a Feature: By using a unified backbone, the model has significantly fewer parameters (29.4M) than its predecessor (44.8M) and runs nearly twice as fast on a CPU.
  • Usability as a Priority: The authors emphasize "one-line" installation via pip and a clean Python API. This lowers the barrier for researchers in fields like psychology or education who may not be computer vision experts.

Key Results

  • Speed & Efficiency: OpenFace 3.0 processes frames in 38ms on a CPU, compared to 75ms for OpenFace 2.0.
  • Superior Accuracy on Angled Faces: In emotion recognition tests on "hard" (angled > 45°) faces, OpenFace 3.0 achieved 58.64% accuracy, outperforming specialized state-of-the-art models like DDAMFN (57.41%).
  • Gaze Precision: It achieved a low angular error of 2.56 degrees on the MPII Gaze dataset, a significant improvement over the 9.10 degrees seen in version 2.0.
  • Landmark Robustness: The model achieved a Normalized Mean Error (NME) of 2.87 on the 300W dataset, rivaling much larger, specialized landmark detectors.

Limitations and Future Work

While the multitask approach helps with generalization, the authors acknowledge that data imbalance remains a challenge—some facial expressions or poses are much rarer than others in training sets.

Future work may involve:

  • Incorporating even more diverse non-frontal data to push the boundaries of "in-the-wild" analysis.
  • Exploring temporal modeling (using video sequences rather than just static frames) to better capture the dynamics of facial expressions.
  • Addressing potential biases in the underlying datasets to ensure equitable performance across different demographic groups.

Summary updated

BibTeX
@inproceedings{hu2025openface,
  author = {Jiewen Hu and Leena Mathur and Paul Pu Liang and Louis-Philippe Morency},
  title = {{OpenFace 3.0: A Lightweight Multitask System for Comprehensive Facial Behavior Analysis}},
  booktitle = {FG},
  year = {2025},
  url = {https://openreview.net/forum?id=TDRobjl135},
}

Loading related content...

Figure