Quality-Aware Image-Text Alignment for Real-World Image Quality Assessment

Lorenzo Agnolucci, Leonardo Galteri, Marco Bertini · DOI

Abstract

Evaluating image quality without a reference (No-Reference IQA) is a fundamental challenge in computer vision, traditionally hampered by the high cost of human-labeled datasets. We present QualiCLIP, a novel self-supervised approach that fine-tunes the CLIP model to perceive technical image quality. By aligning image features with quality-related antonym prompts through a ranking-based strategy on synthetic degradations, QualiCLIP achieves state-of-the-art performance among opinion-unaware methods. Our results demonstrate superior generalization across diverse benchmarks, including real-world distortions and AI-generated content.

Introduction

No-Reference Image Quality Assessment (NR-IQA) aims to evaluate image quality without a "perfect" reference. Most high-performing models are "opinion-aware," relying on thousands of human-provided Mean Opinion Scores (MOS). This dependency creates a bottleneck in scalability and often leads to poor generalization across different distortion types. While Vision-Language Models (VLMs) like CLIP offer robust semantic understanding, they are inherently "quality-blind," focusing on high-level content rather than low-level technical characteristics like noise or blur.

Methodology: Teaching CLIP Quality

QualiCLIP introduces a self-supervised framework to "teach" CLIP about image quality without human intervention.

Synthetic Degradation and Ranking Loss

The training process utilizes the KADIS-700k dataset, applying 24 types of synthetic distortions at five increasing intensity levels. Instead of direct score regression, QualiCLIP employs a ranking loss. The model is trained to ensure that as distortion intensity increases, the image's similarity to "positive" prompts (e.g., "Good photo") decreases, while its similarity to "negative" prompts (e.g., "Bad photo") increases.

Figure 1: The QualiCLIP training pipeline. The model uses degraded crops and ranking losses against antonym prompts to align image features with quality-related text embeddings.

Consistency and Zero-Shot Inference

To ensure the model focuses on technical quality rather than semantic content, a consistency constraint is applied across different crops of the same image. At test time, the quality score is derived from the cosine similarity between the input image and the learned embeddings of the text prompts, enabling zero-shot assessment without further fine-tuning.

Experimental Results

QualiCLIP was benchmarked against 16 metrics across authentic, restoration, and AI-generated content (AIGC) datasets.

Table 1: Quantitative performance of QualiCLIP compared to other opinion-unaware (OU) methods. QualiCLIP sets a new state-of-the-art across nearly all evaluated benchmarks.

As shown in Table 1, QualiCLIP significantly outperforms existing opinion-unaware methods like NIQE and CLIP-IQA. In cross-dataset experiments, QualiCLIP even surpassed several supervised (opinion-aware) models. This is particularly evident in AIGC datasets, where supervised models often fail to generalize to novel, non-standard distortions, whereas QualiCLIP remains robust.

Conclusion

QualiCLIP demonstrates that framing IQA as a self-supervised ranking problem effectively bridges the gap between semantic and technical image understanding. By leveraging synthetic data and the robust feature space of CLIP, the model provides a scalable, high-performance solution for real-world quality assessment. Future work will explore extending this framework to aesthetic and perceptual quality using generative models for training data.

Summary updated

BibTeX
@misc{agnolucci2024quality,
  author = {Lorenzo Agnolucci and Leonardo Galteri and Marco Bertini},
  title = {{Quality-Aware Image-Text Alignment for Real-World Image Quality Assessment}},
  year = {2024},
  eprint = {2403.11176},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.11176},
}
Figure