NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FAN-Trans: Online Knowledge Distillation for Facial Action Unit Detection

Jing Yang, Jie Shen, Yiming Lin, Yordan Hristov, Maja Pantic · DOI

Introduction

Facial Action Unit (AU) detection is a critical task in affective computing, aiming to identify the movement of specific facial muscles. However, the task is complicated by the subtle nature of these movements, their frequent co-occurrence, and sensitivity to head pose variations. Traditional methods often rely on fixed region-of-interest (ROI) cropping, which lacks robustness. This paper introduces FAN-Trans, a framework that integrates face alignment features, Transformer-based relational modeling, and Online Knowledge Distillation (OKD) to achieve state-of-the-art performance without manual ROI cropping.

Methodology

The FAN-Trans architecture leverages several key innovations to capture the spatial and relational nuances of facial expressions.

Landmark-Aware Feature Extraction

Instead of generic backbones, the model utilizes a pre-trained Face Alignment Network (FAN). Because FANs are optimized to locate facial landmarks, their internal representations are inherently tuned to the geometry and fine-grained details of the human face, providing a "free" context for AU detection.

Hybrid CNN-Transformer Architecture

The framework employs a hybrid approach:

  1. CNN Module: Abstracts FAN features and reduces spatial resolution.
  2. Transformer Module: Treats each AU as a "token," enabling the model to learn complex co-occurrence relationships across the entire face.

To ensure feature diversity, a learnable attention drop mechanism is introduced. By selectively masking connections in the self-attention map, the model is forced to learn more discriminative features for individual AUs rather than over-relying on global patterns.

Diverse Classifiers and Online Knowledge Distillation

The model uses two distinct classification strategies:

  • One-to-One ($C_{o2o}$): Predicts an AU based on its specific feature.
  • One-to-Many ($C_{o2m}$): Predicts all AUs from a single AU's feature, forcing the network to internalize anatomical correlations.

During training, Online Knowledge Distillation (OKD) is used to allow these branches to learn from an ensemble of their own outputs. This collaborative learning phase improves accuracy without increasing inference-time complexity, as auxiliary branches are discarded after training.

Key Results

FAN-Trans was evaluated on the BP4D and DISFA benchmarks, setting new performance records. On BP4D, it achieved an average F1-score of 64.8%, and on DISFA, it reached 63.8%, representing a 2.3% improvement over previous transformer-based methods.

Qualitative Analysis

Visualization using Score-CAM demonstrates that the model's attention naturally aligns with the relevant muscle groups for specific AUs. For instance, the model focuses on the eye region for lid tightening and the mouth region for lip pressing, validating its ability to "know where to look" without explicit ROI supervision.

Score-CAM visualizations showing the model's attention maps for various Facial Action Units across different subjects.

Conclusion

FAN-Trans demonstrates that combining landmark-aware features with the relational modeling of Transformers and the efficiency of online distillation significantly advances facial action unit detection. By moving away from rigid ROI cropping and embracing learnable attention and label dependencies, the model achieves superior robustness and accuracy.

Summary updated

BibTeX
@inproceedings{yang2023fan,
  author = {Jing Yang and Jie Shen and Yiming Lin and Yordan Hristov and Maja Pantic},
  title = {{FAN-Trans: Online Knowledge Distillation for Facial Action Unit Detection}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00596},
}
Figure