Face-MLLM: A Large Face Perception Model

Haomiao Sun, Mingjie He, Tianheng Lian, Hu Han, Shiguang ShanarXiv 2024 · DOI

Introduction

Multimodal Large Language Models (MLLMs) have demonstrated remarkable general-purpose reasoning capabilities. However, their performance often falters when tasked with fine-grained facial analysis. Standard models frequently provide generic or inaccurate descriptions of human faces, failing to capture the nuances required for specialized applications. This research introduces Face-MLLM, a model specifically engineered to bridge this gap by combining a massive re-annotated facial dataset with a novel three-stage training strategy.

The authors identify two primary obstacles to effective facial perception in MLLMs: data scarcity and format mismatch. Large-scale image-text datasets like LAION lack detailed facial descriptions, while traditional face perception datasets (e.g., CelebA, RAF-DB) are structured for classification rather than the natural language question-answering (QA) format preferred by MLLMs. Face-MLLM addresses these challenges by "translating" traditional data into a conversational format and training the model to recognize subtle facial features.

Methods and Architecture

Face-MLLM utilizes a streamlined architecture similar to LLaVA-v1.5, integrating a CLIP-ViT-L/336px vision encoder with a Vicuna-v1.5-7B language model via a multi-layer perceptron (MLP) adapter. The core innovation lies in the three-stage training paradigm designed to progressively build facial expertise.

The three-stage training paradigm and inference structure of Face-MLLM.
  1. Stage 1 (Alignment): The model learns to associate facial images with detailed text captions. Using 150,000 high-quality face captions, this stage aligns visual features with the LLM’s word embeddings.
  2. Stage 2 (Basic VQA): The model is trained on 4.75 million face-related QA pairs. A key feature is the introduction of "position-aware" queries (e.g., "What is the expression of the person on the left?"), which enhances the model's ability to handle multi-person images.
  3. Stage 3 (Specialized Perception): The model is fine-tuned on high-quality, manually labeled traditional datasets reformulated into QA pairs. Low-Rank Adaptation (LoRA) is employed here to refine expertise without sacrificing general reasoning capabilities.

Datasets and Benchmarking

The development of Face-MLLM involved the creation of a robust data engine. The researchers re-annotated 150,000 images from the LAION-Face dataset using Gemini-1.0-Pro-Vision to generate detailed captions and 36 specific facial attributes, such as hair color, nose shape, and lip thickness.

Furthermore, several classic benchmarks were reformulated into QA formats, including AgeDB for age and gender, RAF-DB for expressions, EmotioNet for Action Units, and LFWA for general attributes. To test the model's ability to generalize to novel descriptions, a new Zero-shot Facial Attribute Benchmark was introduced, consisting of 300 images and 760 questions focusing on fine-grained features like "phoenix eyes" or "cherry lips."

Key Results

Face-MLLM significantly outperforms existing state-of-the-art models across a variety of facial analysis tasks. On the RAF-DB expression recognition benchmark, it achieved an accuracy of 91.2%, a substantial improvement over LLaVA-v1.5's 55.4%. In age estimation, the model reached a Mean Absolute Error (MAE) of 5.06 years, nearly doubling the precision of the baseline.

Performance comparison of Face-MLLM against state-of-the-art MLLMs across multiple facial analysis benchmarks.

The model also demonstrated superior zero-shot performance on the new aesthetic attribute task, reaching a mean accuracy of 57.1%. Notably, specializing in faces did not degrade general performance; Face-MLLM scored 37.8 on the MM-Vet general vision-language benchmark, outperforming the standard LLaVA-v1.5 (32.9%). This suggests that fine-grained facial understanding can actually enhance broader visual reasoning.

Conclusion and Future Work

Face-MLLM establishes a new standard for open-source face perception by effectively combining large-scale re-annotation with a curriculum-based training approach. While the current data pipeline is efficient, the authors note that inherited errors from the re-annotation model (Gemini) can occur, particularly with obscured or extreme-angle faces. Future work will focus on improving label cleaning, expanding cultural and aesthetic diversity in facial descriptions, and exploring real-world applications in digital forensics and empathetic AI assistants.

Summary updated

BibTeX
@misc{sun2024face,
  author = {Haomiao Sun and Mingjie He and Tianheng Lian and Hu Han and Shiguang Shan},
  title = {{Face-MLLM: A Large Face Perception Model}},
  year = {2024},
  eprint = {2410.20717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.20717},
}
Figure