Introduction
No-Reference Image Quality Assessment (NR-IQA) is a critical task in computer vision that involves predicting human perception of image quality without access to a pristine reference image. This capability is essential for real-world applications such as social media platforms, video streaming services, and automated image enhancement pipelines. However, NR-IQA faces significant hurdles: the diversity of distortion scales (global vs. local), the scarcity of human-labeled datasets (Mean Opinion Scores), and the increasing complexity of artifacts introduced by modern Generative Adversarial Networks (GANs).
To address these challenges, the MSTRIQ (Multi-Stage fusing Swin transformer based on Siamese Network) framework was developed. By leveraging the hierarchical power of the Swin Transformer and a novel multi-stage fusion strategy, MSTRIQ achieves state-of-the-art performance in predicting perceptual quality.
Methodology
The MSTRIQ Architecture
The core of MSTRIQ is built upon the Swin Transformer backbone. Unlike standard Vision Transformers (ViTs) that use global self-attention, the Swin Transformer employs a hierarchical structure with shifted windows. This design allows the model to process images efficiently while maintaining spatial locality, which is crucial for identifying localized distortions.
A key innovation in MSTRIQ is Multi-Stage Feature Fusion. Rather than relying solely on the final layer's output, the model extracts and concatenates features from four distinct stages of the Transformer. This multi-resolution approach ensures that the model captures both fine-grained textures (early stages) and global structural integrity (later stages), making it robust against a wide variety of degradation types.
Siamese Training and Hybrid Loss
The model is trained using a Siamese Network strategy, where two identical branches share weights to process pairs of images. To optimize the network, the authors implemented a hybrid loss function that combines two distinct signals:
- Regression Loss (MSE): This forces the model to predict the absolute Mean Opinion Score (MOS) of an image.
- Rank Loss (Exponential): This constrains the model to correctly identify which image in a pair is of higher quality.
This dual approach mimics human perception; while humans may struggle to assign an exact numerical score to an image, they are highly proficient at comparing the relative quality of two images. The ranking constraint provides a stronger learning signal, especially when dealing with the inherent subjectivity of human ratings.
Inference and Data Augmentation
To overcome data scarcity, MSTRIQ utilizes advanced data augmentation, including random rotations and color space transformations (HSV, LAB, and Grayscale). During the testing phase, the model evaluates multiple random crops of an image. Instead of a simple arithmetic mean, the final score is calculated using the harmonic mean. The harmonic mean is more sensitive to low-value outliers, ensuring that if specific patches of an image contain significant distortions, the overall quality score reflects that degradation—aligning more closely with how humans perceive "deal-breaking" artifacts.
Experimental Results
MSTRIQ was evaluated against several major benchmarks, demonstrating superior performance across diverse datasets:
- KonIQ-10k: On this large-scale "in-the-wild" dataset, MSTRIQ achieved a Pearson Linear Correlation Coefficient (PLCC) of 0.954 and a Spearman Rank Correlation Coefficient (SRCC) of 0.946, outperforming previous leading models like TReS and HyperIQA.
- PIPAL Dataset: In the NTIRE 2022 Perceptual IQA Challenge, which focuses on difficult GAN-based distortions, MSTRIQ secured 2nd place in the no-reference track.
- TID2013: The model also showed high competitive performance on synthetic datasets featuring traditional distortions like blur and noise.
Ablation studies confirmed that both the multi-stage fusion module and the rank loss are critical components; removing either led to a measurable decline in the model's predictive accuracy.
Conclusion and Future Work
MSTRIQ represents a significant advancement in NR-IQA by successfully integrating hierarchical transformer features with a ranking-based training paradigm. While the model achieves state-of-the-art results, its reliance on large Swin Transformer variants and ensemble methods (combining multiple model sizes for challenges) introduces high computational complexity. Future research may focus on distilling these capabilities into more lightweight architectures suitable for mobile deployment and further refining patch-sampling strategies to maximize information extraction from local image regions.
Summary updated