DSL-FIQA: Assessing Facial Image Quality via Dual-Set Degradation Learning and Landmark-Guided Transformer

Wei-Ting Chen, Gurunandan Krishnan, Qiang Gao, Sy-Yen Kuo, Sizhuo Ma, Jian Wang

TL;DR

DSL-FIQA introduces a novel transformer-based framework for generic face image quality assessment (GFIQA) that effectively decouples image degradation from facial content using global self-supervised learning. By combining a dual-set contrastive learning strategy with landmark-guided attention, it achieves state-of-the-art performance in predicting the perceptual quality of real-world facial images. Additionally, the authors introduce CGFIQA-40k, a large-scale, demographically balanced dataset designed to mitigate skin tone and gender biases prevalent in existing benchmarks.

What Problem Does This Paper Address?

Evaluating the perceptual quality of human faces—known as Generic Face Image Quality Assessment (GFIQA)—is essential for optimizing face restoration algorithms and filtering high-quality data for generative models. However, it presents unique challenges. General image quality metrics often miss face-specific nuances, while biometric quality metrics focus purely on recognizability rather than human visual preference.

Existing GFIQA methods suffer from two major flaws:

  1. Rigid Generative Priors: Methods relying on pre-trained models like StyleGAN2 struggle to evaluate real-world images that deviate from the training data's specific shooting angles or quality.
  2. Oversimplified Degradation Assumptions: Traditional self-supervised methods use patch-based contrastive learning, assuming that degradation is uniform across an entire image. In reality, real-world images often feature localized degradations, such as a moving face against a static background (local motion blur) or uneven lighting.

Furthermore, existing datasets are either limited in size or exhibit severe demographic biases, skewing heavily towards male faces and lighter skin tones.

Methods

DSL-FIQA tackles these limitations through a hybrid CNN-Transformer architecture featuring two primary mechanisms:

1. Dual-Set Degradation Representation Learning (DSL)

To move away from flawed patch-level assumptions, the authors propose learning degradation features from a global perspective using two distinct image sets:

  • Set $\mathcal{S}$ (Synthetic): Generated by taking a single high-quality face image and applying various synthetic distortions (blur, noise, JPEG compression, extreme lighting). This keeps the underlying content constant while varying the degradation.
  • Set $\mathcal{R}$ (Real-world): A compilation of in-the-wild face images containing realistic, unpredictable degradations across diverse subjects.

Using a technique called Soft Proximity Mapping (SPM) and a bidirectional contrastive loss, the network learns to align the degradation representations of the real-world images with their synthetic counterparts. This allows the model to isolate and extract degradation features globally, completely independent of the facial structure or identity.

2. Landmark-Guided Transformer

Human eyes naturally prioritize specific facial regions (like the eyes, nose, and mouth) when judging image quality. To mimic this, the model extracts 1313 facial landmarks using a 3D Morphable Face Model (3DMM). Instead of using raw coordinates—which introduce ambiguity when faces are unaligned or cropped—the network applies a fixed sinusoidal positional encoding scheme to assign a unique identifier to each landmark. These identifiers are injected into the transformer decoder via cross-attention, guiding the model's regional confidence branch to focus on perceptually salient features.

Figure 2. Overview of our proposed model. The model contains a core GFIQA network, a degradation extraction network, and a landmark detection network. In our approach, face images are cropped into several patches to fit the input size requirements of the pre-trained ViT feature extractor (See Sec. 3.1). Each patch is then processed individually, and their Mean Opinion Scores (MOS) are averaged to determine the final quality score. For clarity in the figure, the segmentation of the image into patches is not shown.

Datasets

The model was trained and evaluated on three datasets:

  • GFIQA-20k & PIQ23: Standard existing benchmarks for face image quality assessment.
  • CGFIQA-40k (New): The authors introduce the Comprehensive Generic Face IQA Dataset, consisting of 39,312 valid, 512x512 resolution images. It is explicitly curated to provide a balanced distribution across gender and skin tones (categorized via the Fitzpatrick scale) and includes complex real-world edge cases like facial occlusions (masks and accessories). Each image is annotated with a Mean Opinion Score (MOS) derived from 20 human labelers.

Key Insights and Ideas

  • Global Over Local: By treating the image as a whole and mapping synthetic-to-real distributions, the model successfully bypasses the incorrect assumption that image degradation is uniform across local patches.
  • Identity-Free Spatial Context: Using fixed landmark identifiers rather than coordinate positions ensures that even when the image is cropped into patches for the Vision Transformer (ViT) backbone, the model maintains a consistent awareness of which facial feature it is currently evaluating.
  • Outlier Mitigation: Switching the optimization target from a standard $L_2$ loss to a Charbonnier loss makes the network significantly more robust against annotation discrepancies and rare, extreme real-world degradations.

Key Results

DSL-FIQA consistently outperformed all competing biometric, generic, and face-specific IQA methods across all three datasets.

  • Quantitative Performance: On the new CGFIQA-40k dataset, DSL-FIQA achieved a Pearson Linear Correlation Coefficient (PLCC) of 0.9873 and a Spearman’s Rank Order Correlation Coefficient (SRCC) of 0.9880, noticeably outperforming the previous state-of-the-art StyleGAN-IQA (PLCC: 0.9822, SRCC: 0.9821).
  • Qualitative Alignment: t-SNE visualizations demonstrated that the DSL framework successfully groups images into well-demarcated clusters based purely on their degradation type (e.g., Gaussian blur vs. low-light), whereas traditional patch-based methods result in significant overlap.

Limitations and Future Work

While a dedicated limitations section is not included, the authors note a theoretical constraint within the DSL framework: it is technically possible for two entirely different real-world images in Set $\mathcal{R}$ to map to identical degradation representations. However, they argue that given the immense complexity and environmental variability of real-world imaging (lighting, sensor noise, camera settings), this likelihood is practically negligible. Future work will likely leverage the balanced nature of the CGFIQA-40k dataset to train fairer, more robust downstream facial recognition and restoration models.

Summary updated

BibTeX
@misc{chen2024dsl,
  author = {Wei-Ting Chen and Gurunandan Krishnan and Qiang Gao and Sy-Yen Kuo and Sizhuo Ma and Jian Wang},
  title = {{DSL-FIQA: Assessing Facial Image Quality via Dual-Set Degradation Learning and Landmark-Guided Transformer}},
  year = {2024},
  eprint = {2406.09622},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09622},
}
Figure