Abstract
Blind image quality assessment (BIQA) aims to automatically evaluate the perceived quality of a single image, whose performance has been improved by deep learning-based methods in recent years. However, the paucity of labeled data somewhat restrains deep learning-based BIQA methods from unleashing their full potential. In this paper, we propose to solve the problem by a pretext task customized for BIQA in a self-supervised learning manner, which enables learning representations from orders of magnitude more data. To constrain the learning process, we propose a quality-aware contrastive loss based on a simple assumption: the quality of patches from a distorted image should be similar, but vary from patches from the same image with different degradations and patches from different images. Further, we improve the existing degradation process and form a degradation space with the size of roughly $2\times10^7$. After pre-trained on ImageNet using our method, models are more sensitive to image quality and perform significantly better on downstream BIQA tasks. Experimental results show that our method obtains remarkable improvements on popular BIQA datasets.
Introduction
Blind Image Quality Assessment (BIQA) is a critical task for digital platforms, enabling the automatic filtering of low-quality content without a reference image. Despite the success of deep learning, BIQA models are often limited by data scarcity. While semantic tasks like object recognition benefit from millions of labeled images in ImageNet, the largest BIQA datasets contain only about 40,000 labeled images.
Furthermore, standard pre-training on ImageNet creates a "semantic trap." These models are optimized for semantic invariance—recognizing a "dog" regardless of whether the image is blurry or clear. For BIQA, models must be the opposite: hyper-sensitive to the very distortions that semantic models are taught to ignore. To address this, we introduce Quality-aware Pre-trained (QPT) models.
Methodology
Our approach bridges the "semantic-quality gap" through a self-supervised learning framework consisting of two core innovations.
Massive Degradation Space
To simulate the complex, multi-step distortions found in real-world digital images, we developed a sophisticated degradation pipeline. Beyond simple filters, our method incorporates geometric deformations, color changes, and texture adjustments. We introduce three key operations to increase complexity:
- Skip Operations: Randomly bypassing certain degradation steps.
- Shuffle Order: Randomizing the sequence of applied distortions.
- High-order Degradations: Applying degradations multiple times to mimic the "life" of an image (e.g., blurring a compressed image and then compressing it again).
This creates a theoretical space of over $2 \times 10^7$ unique distortion compositions, forcing the model to learn a wide variety of quality representations.
Quality-aware Contrastive Loss (QC-Loss)
Standard contrastive learning attempts to make different views of the same image look similar. Our QC-Loss modifies this to prioritize quality sensitivity. The model learns to distinguish between patches based on their degradation state, even when the underlying subject matter is identical.
As shown in the framework above, the loss is calculated using specific pairs:
- Positive Pairs: Patches from the same image with the same degradation.
- Negative Pairs (Degradation-based): Patches from the same image but with different degradations.
- Negative Pairs (Content-based): Patches from different images.
Experiments and Results
We pre-trained a ResNet-50 model on the unlabeled ImageNet dataset (1.2 million images) and evaluated it on five major BIQA benchmarks: BID, CLIVE, KonIQ10K, SPAQ, and FLIVE.
Performance Gains
QPT-ResNet50 achieved significant improvements over existing methods. On the BID dataset, it improved the Spearman Rank-Order Correlation Coefficient (SRCC) by 3.0% and the Pearson Linear Correlation Coefficient (PLCC) by 4.6% compared to previous leaders. Remarkably, a standard ResNet-50 using QPT weights outperformed specialized architectures designed specifically for IQA.
Generalizability
QPT weights are "plug-and-play." When used as a backbone for other state-of-the-art architectures like HyperIQA or TReS, they consistently boosted performance. This suggests that the quality representations learned during our self-supervised pre-training are robust and highly transferable.
Conclusion
By explicitly teaching models to care about distortions through a massive degradation space and a quality-aware contrastive loss, QPT models overcome the limitations of semantic-heavy pre-training. This approach sets new state-of-the-art records across multiple benchmarks and provides a scalable solution to the data scarcity problem in BIQA. Future work will explore larger Transformer-based architectures and even larger pre-training datasets.
Summary updated