Machine Learning and Knowledge Extraction

DaVinci Face: Unified Multi-Task Face Analysis via Spatial and Channel Cross-Attention

Thoalfeqar Gatea Jarullah, Ahmad Saeed Mohammad

Computational

Key points

From the paper's conclusion
  • Extending the dual-attention operation from the DaViT backbone into the DaVinci Decoder, DaVinci Face implements dual self-attention in the encoder and both spatial cross-attention and channel cross-attention in the decoder, which enables the model to extract local and global features, allowing it to accommodate a wide range of tasks.

Abstract

Multi-task face analysis aims to predict various facial attributes from a single image simultaneously. However, recent frameworks typically rely on either simple attention mechanisms or only spatial cross-attention to enrich task tokens. While spatial attention excels at local tasks like landmark localization and attribute estimation, it falls short on tasks requiring global information such as facial expression recognition, age estimation, and gender recognition, which rely heavily on channel dependencies. To address this issue, DaVinci Face is proposed. Built on the DaViT architecture, it is a multi-task face analysis framework that performs nine face analysis tasks including face verification, facial expression recognition, age, gender, and race recognition, attribute estimation, head pose estimation, landmark detection, and visibility detection. Extending the dual-attention operation from the DaViT backbone into the DaVinci Decoder, DaVinci Face implements dual self-attention in the encoder and both spatial cross-attention and channel cross-attention in the decoder, which enables the model to extract local and global features, allowing it to accommodate a wide range of tasks. Extensive evaluations on 13 benchmark datasets (including CelebA, RAF-DB, and FairFace) indicate that integrating channel cross-attention alongside spatial cross-attention provides consistent, complementary gains on global semantic tasks, particularly when paired with a four-layer decoder pretrained on Glint360K. Under this configuration, DaVinci Face achieves a 4.08 Mean Absolute Error for age estimation on the UTKFace dataset and 90.87% accuracy for facial expression recognition on the RAF-DB dataset, performing competitively against related multi-task methods. Furthermore, because of the ability of the proposed dual-attention decoder to extract local and global information effectively, the backbone network can be made smaller, which reduces the overall computational footprint of the proposed method, making it lighter, where DaVinci Face achieves a high inference speed of 270 Frames Per Second on a T4 GPU and a low parameter footprint of 42.34M parameters compared to FaceXFormer, which runs at 173 Frames Per Second and uses 109.29M parameters.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

DaVinci Face: Unified Multi-Task Face Analysis via Spatial and Channel Cross-Attention — Science Skim