No-Reference Image Quality Assessment via Transformers, Relative Ranking, and Self-Consistency

S. Alireza Golestaneh, Saba Dadsetan, Kris M. Kitani

TL;DR

The authors introduce TReS, a hybrid deep learning model for No-Reference Image Quality Assessment (NR-IQA) that combines the local feature extraction of CNNs with the global context of Transformers. By incorporating a novel relative ranking loss and a self-consistency mechanism, the model achieves state-of-the-art results across seven major datasets, proving particularly robust against real-world distortions and simple image transformations.

What Problem Does This Paper Address?

Image Quality Assessment (IQA) is the task of computationally predicting how a human would rate the quality of an image. While "Full-Reference" IQA compares a distorted image to a perfect original, No-Reference IQA (NR-IQA) must estimate quality without any "pristine" baseline—a much harder, real-world scenario.

Existing deep learning models for NR-IQA face three main hurdles:

  1. Locality Bias: Standard Convolutional Neural Networks (CNNs) are great at spotting local artifacts (like noise or blur) but struggle to model how different parts of an image relate to each other globally.
  2. Ranking Neglect: Most models treat IQA as a simple regression problem (predicting a score), ignoring the relative quality differences between images in a group.
  3. Sensitivity to Flips: Surprisingly, many IQA models produce different scores if an image is simply flipped horizontally, even though a human’s perception of quality remains unchanged.

Methods

The authors propose a framework called TReS (Transformers, Relative ranking, and Self-consistency):

  • Hybrid Architecture: The model uses a CNN backbone (ResNet50) to extract multi-scale local features. These features are then fed into a Transformer encoder. Because Transformers use self-attention, they can model non-local dependencies, allowing the network to understand how distortions in one area affect the overall perceived quality.
  • Relative Ranking Loss: Instead of just minimizing the error between the predicted and actual Mean Opinion Score (MOS), the authors use a triplet loss with an adaptive margin. This forces the model to correctly rank the highest and lowest quality images within a training batch, improving the monotonicity of the results.
  • Self-Consistency (Self-Supervision): To make the model robust, the authors enforce a "self-consistency" constraint. During training, the model processes both the original image and its horizontally flipped version. The loss function penalizes the model if the predicted quality scores for these two versions differ, effectively using the image itself as a source of self-supervision.

Datasets

The model was evaluated on seven standard IQA benchmarks, categorized into two types:

  • Synthetic Distortions: LIVE, CSIQ, TID2013, and KADID-10K (images artificially degraded with noise, blur, or compression).
  • Authentic (In-the-wild) Distortions: CLIVE, KonIQ-10k, and LIVE-FB (real-world photos with complex, overlapping distortions like poor lighting or sensor lag).

Notably, LIVE-FB is currently the largest "in-the-wild" dataset, making it a critical test for modern NR-IQA models.

Key Insights and Ideas

  • Transformers as Global Integrators: While CNNs are excellent "feature finders," Transformers act as "context builders." By treating CNN features as a sequence, the Transformer can weigh the importance of different regions—for example, realizing that a blurry background (bokeh) might be intentional, whereas a blurry subject is a quality defect.
  • Ranking Matters More than Absolute Scores: Human vision is highly comparative. By enforcing relative ranking for extreme cases (the best and worst images in a batch), the model learns a more stable representation of quality that generalizes better to unseen data.
  • Equivariance as a Regularizer: The discovery that standard IQA models are sensitive to horizontal flipping highlights a lack of robustness. Using self-consistency doesn't just fix the "flip problem"; it acts as a powerful regularizer that helps the model focus on actual quality features rather than spatial orientation.

Key Results

TReS achieved state-of-the-art (SOTA) performance across all seven datasets.

  • Correlation Metrics: The model showed significant gains in Spearman’s Rank-order Correlation Coefficient (SROCC) and Pearson’s Linear Correlation Coefficient (PLCC).
  • Large-Scale Performance: On the massive LIVE-FB dataset, TReS outperformed the previous best model (HyperIQA) by a notable margin (PLCC of 0.625 vs 0.602).
  • Cross-Dataset Generalization: When trained on one dataset and tested on another (without fine-tuning), TReS demonstrated superior "zero-shot" capability, suggesting it learns fundamental quality features rather than just memorizing dataset-specific artifacts.

Limitations and Future Work

  • Training Complexity: While the self-consistency mechanism doesn't add time during inference (testing), it requires more GPU memory and computation during training because the model must process multiple versions of the same image.
  • The "Why" is Missing: The authors note that current IQA datasets provide scores but not the reasoning behind them. Future work could involve models that not only predict a score but also provide a natural language description of why an image is rated poorly (e.g., "distracting motion blur on the primary subject").
  • Ablation Nuances: The ablation studies showed that while horizontal flipping is a great self-consistency task for real-world images, other transformations (like rotation) can actually hurt performance on synthetic datasets where the orientation might be tied to the distortion type.

Summary updated

BibTeX
@inproceedings{golestaneh2022no,
  author = {S. Alireza Golestaneh and Saba Dadsetan and Kris M. Kitani},
  title = {{No-Reference Image Quality Assessment via Transformers, Relative Ranking, and Self-Consistency}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  doi = {10.1109/wacv51458.2022.00404},
}
Figure