TL;DR
ViT-FIQA introduces a Vision Transformer-based approach to Face Image Quality Assessment (FIQA) by embedding a learnable "quality token" that captures global context via self-attention. By jointly optimizing for face recognition and quality regression, this method bridges the gap between transformer-driven face recognition and quality estimation, achieving top-tier performance across multiple challenging benchmarks.
What Problem Does This Paper Address?
In face recognition (FR) systems, not all images are created equal. A blurry photo, an extreme head angle, or poor lighting can cause even the best recognition algorithms to fail. Face Image Quality Assessment (FIQA) solves this by predicting the utility of a face image—essentially estimating how reliably an FR system can recognize the person in the photo.
Crucially, "utility" is not the same as aesthetic quality. A crisp, high-resolution portrait might have low utility if the person is wearing a mask or looking away from the camera.
While Vision Transformers (ViTs) have recently come to dominate face recognition tasks due to their ability to capture long-range dependencies, state-of-the-art FIQA methods have remained stubbornly reliant on Convolutional Neural Networks (CNNs). This paper addresses this gap by introducing ViT-FIQA, exploring how the self-attention mechanisms of transformers can be harnessed to better estimate face image utility.
Methods
The authors modify a standard ViT architecture (specifically a ViT-Small backbone) to solve a multi-task problem: learning discriminative face representations while simultaneously regressing a scalar quality score.
The core innovation lies in how the quality score is extracted:
- The Quality Token: Similar to the classification (
CLS) token used in standard ViTs, the authors introduce a learnable quality token ($q_0$) at the start of the input sequence, alongside the standard image patch tokens. - Attention Aggregation: As the sequence passes through the transformer encoder layers, global self-attention allows this quality token to interact with and gather contextual information from all image patches.
- Dual-Head Output: At the final layer, the network splits into two branches:
- FR Head: The patch tokens are passed through a fully connected layer to learn face representations, optimized using a margin-penalty softmax loss (CosFace).
- Regression Head: The refined quality token is fed into a regression layer to predict the scalar quality score, optimized using the CR-FIQA loss, which measures a sample's relative classifiability.
The authors evaluate two variations: ViT-FIQA (T), which uses the dedicated quality token, and ViT-FIQA (C), a baseline variant where the final face embedding itself is used for both recognition and quality regression without an extra token.
Datasets
- Training: The models were trained on MS1MV2, a refined version of the MS-Celeb-1M dataset containing roughly 5.8 million images across 85,000 identities.
- Evaluation: To test robustness, the authors evaluated their approach across seven diverse benchmarks:
- Labeled Faces in the Wild (LFW)
- Cross-Age LFW (CALFW)
- AgeDB-30
- Celebrities in Frontal-Profile in the Wild (CFP-FP)
- Adience
- Cross-Pose LFW (CPLFW)
- Cross-Quality LFW (XQLFW)
Key Insights and Ideas
- IQA $\neq$ FIQA: The experiments reinforce that general-purpose Image Quality Assessment (IQA) metrics (like BRISQUE) perform poorly at predicting face recognition utility. FIQA requires domain-specific awareness of what makes a face recognizable.
- The Power of Global Context: By utilizing a dedicated token that attends to the entire image, ViT-FIQA inherently excels at understanding how localized degradations (like a shadow over an eye or an awkward pose) impact the global recognisability of the face.
- Cross-Architecture Transferability: Even though ViT-FIQA is built on a transformer backbone, the quality scores it generates transfer remarkably well to completely different FR architectures, including traditional CNN-based models like ArcFace and MagFace.
Key Results
Performance was measured using Error-versus-Discard Characteristic (EDC) curves, which track how verification accuracy improves as low-quality images are progressively filtered out.
- Top-Tier Rankings: ViT-FIQA consistently achieved top-3 positions across the majority of the benchmarks. It particularly excelled on datasets featuring severe pose and quality variations, such as Adience, CFP-FP, CPLFW, and XQLFW, where it frequently ranked first or second.
- Token vs. No Token: Both the token-based (T) and embedding-based (C) variants showed strong performance, often closing the performance gap even under strict operating thresholds (e.g., a False Match Rate of $10^{-4}$).
Limitations and Future Work
While ViT-FIQA proved highly effective against pose and illumination challenges, it fell slightly short on datasets characterized by large age gaps, such as AgeDB-30 and CALFW. On these benchmarks, competing methods like CR-FIQA(L) and eDifFIQA(L) maintained an edge.
The authors note that handling the subtle, long-term structural changes introduced by aging remains a distinct challenge for transformer-based quality assessment. Future work will likely focus on making the quality token more robust to age-related variability.
Summary updated