ATTN-FIQA: Interpretable Attention-based Face Image Quality Assessment with Vision Transformers

Guray Ozgur, Tahar Chettaoui, Eduarda Caldeira, Jan Niklas Kolf, Marco Huber, Andrea Atzori, Naser Damer, Fadi BoutrosarXiv 2026

TL;DR

ATTN-FIQA is a training-free, interpretable method for assessing face image quality by leveraging the internal attention mechanisms of pre-trained Vision Transformers (ViTs). By simply averaging pre-softmax attention scores from a single forward pass, it provides a reliable quality metric and spatial heatmaps that explain exactly which facial regions are degrading the image's utility for recognition.

What Problem Does This Paper Address?

Face Image Quality Assessment (FIQA) is the "gatekeeper" of modern face recognition systems. It predicts how useful a face image is for identity verification before the system even tries to match it. High-quality images lead to reliable matches; low-quality ones (blurry, occluded, or poorly lit) lead to errors.

However, existing State-of-the-Art (SOTA) FIQA methods suffer from two main drawbacks:

  1. Computational Cost: Many require multiple forward passes, backpropagation, or extensive additional training on top of the recognition model.
  2. The "Black Box" Problem: Most methods produce a single scalar score (e.g., 0.85). They don't tell the user why the score is low. Is it the sunglasses? The motion blur? The extreme head tilt?

The authors address these gaps by asking a fundamental question: Can the internal "thoughts" (attention patterns) of a standard Vision Transformer already tell us everything we need to know about image quality?

Methods

The core hypothesis of ATTN-FIQA is that attention magnitude equals quality.

In a Vision Transformer, "attention" represents how much the model focuses on specific patches of an image to extract features. The authors posit that high-quality faces with clear features allow for strong, focused alignments between "queries" and "keys" in the transformer blocks. Conversely, degraded images create ambiguity, leading to diffuse, low-magnitude attention patterns.

The Workflow: 1. Single Forward Pass: An image is fed into a pre-trained ViT-based face recognition model. 2. Pre-Softmax Extraction: The authors extract the attention matrices from the final transformer block. Crucially, they use pre-softmax scores. While standard attention uses softmax to create a probability distribution (summing to 1), pre-softmax scores preserve the raw magnitude of the relationship, which is a much richer signal for quality. 3. Aggregation: They flatten the matrices from all attention heads and compute the image-level quality score by simple averaging. 4. Spatial Heatmaps: Because the attention is patch-based, these scores can be mapped back onto the original image to create an interpretable quality heatmap.

Datasets

The authors conducted a massive evaluation to prove their method's robustness:

  • Validation: They used SynFIQA, a synthetic dataset of 550,000 images with ground-truth quality labels, to confirm that their scores correlate perfectly with known quality levels.
  • Benchmarks: They tested across eight diverse datasets: LFW, AgeDB-30, CFP-FP, CALFW, Adience, CPLFW, XQLFW, and the large-scale IJB-C.
  • Cross-Model Testing: They applied ATTN-FIQA to four different recognition architectures (ArcFace, ElasticFace, MagFace, CurricularFace) to ensure it wasn't just a fluke of one specific model.

Key Insights and Ideas

  • Attention as a "Free" Saliency Learner: The paper builds on the insight that ViTs are naturally saliency learners. They don't need to be told where the eyes and nose are; they figure it out to solve the recognition task. ATTN-FIQA simply "harvests" this existing knowledge.
  • The Pre-Softmax Advantage: This is the "aha moment" of the paper. Softmax normalization is great for training stability but terrible for quality assessment because it hides how "confident" the model is. By looking at the raw dot-product magnitudes, the authors can see exactly when the model is struggling to find clear landmarks.
  • Training-Free Deployment: Because it requires no architectural changes or new weights, ATTN-FIQA can be "plugged in" to any existing ViT-based face recognition system with near-zero overhead.

Key Results

  • Monotonic Correlation: On the SynFIQA dataset, the ATTN-FIQA score increased linearly and predictably as image quality improved, validating the core hypothesis.
  • Competitive with SOTA: Despite being training-free, ATTN-FIQA achieved competitive results against specialized, supervised FIQA models. It was particularly strong on the IJB-C dataset (unconstrained real-world images), matching or exceeding the performance of models like ViT-FIQA.
  • Architecture Agnostic: The method held up across different ViT depths (ViT-S vs. ViT-B) and different training loss functions (AdaFace vs. ArcFace). Interestingly, the smaller ViT-S model often provided slightly better quality signals than the larger ViT-B.
  • Visual Interpretability: The heatmaps clearly showed "blue" (low attention) zones over masks, scarves, and occlusions, while "red" (high attention) zones remained focused on discriminative features in high-quality samples.

Limitations and Future Work

  • Constrained Distribution Struggles: The authors noted that in datasets where the degradation is very specific and uniform (e.g., only age variation or only specific pose angles), the attention magnitudes have a harder time differentiating fine-grained quality differences compared to general, unconstrained noise.
  • Demographic Bias: As a training-free method, ATTN-FIQA inherits whatever biases exist in the pre-trained recognition model. If the base model struggles with certain ethnicities, the quality scores may reflect that bias.
  • Future Directions: The authors suggest exploring multi-layer attention aggregation (combining scores from multiple transformer blocks) and investigating ways to explicitly de-bias the attention-based quality signals.

Summary updated

BibTeX
@misc{ozgur2026attn,
  author = {Guray Ozgur and Tahar Chettaoui and Eduarda Caldeira and Jan Niklas Kolf and Marco Huber and Andrea Atzori and Naser Damer and Fadi Boutros},
  title = {{ATTN-FIQA: Interpretable Attention-based Face Image Quality Assessment with Vision Transformers}},
  year = {2026},
  eprint = {2604.22841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.22841},
}
Figure