TL;DR
This paper introduces ATTIQA, a novel pretraining framework that leverages large, unlabeled image datasets and the power of Vision-Language Models (VLMs) like CLIP to create a highly generalizable image quality assessment (IQA) feature extractor. By focusing on specific image attributes rather than just a single "quality score," ATTIQA achieves state-of-the-art performance and significantly improves generalization across diverse datasets.
What Problem Does This Paper Address?
No-reference image quality assessment (NR-IQA) is crucial for evaluating images without a pristine reference. However, existing NR-IQA datasets are often small, hindering the development of robust and generalizable deep learning models. While some approaches use large datasets for pretraining or adapt VLMs like CLIP, they face challenges: traditional pretraining on ImageNet focuses on semantic understanding, not image quality, and directly using VLMs can be imprecise due to their broad training. This paper aims to bridge this gap by creating a generalizable IQA feature extractor that effectively learns from large datasets and VLM knowledge, overcoming the limitations of small, specialized IQA datasets.
Methods
ATTIQA's core innovation lies in its attribute-aware pretraining strategy. Instead of relying on generic quality labels, it breaks down image quality into five key attributes: sharpness, contrast, brightness, colorfulness, and noisiness.
- Prompt Selection: The authors use GPT-4 to generate a large pool of positive and negative adjective-based prompts for each attribute. They then employ a sophisticated prompt selection strategy using two proxy tasks: one based on distortion intensity and another on human perception, to identify the most effective prompt pairs.
- Attribute Score Generation: Using the selected prompts, CLIP's zero-shot inference is employed to generate "pseudo-labels" (attribute scores) for unlabeled images. This is done by computing the similarity between image embeddings and prompt embeddings, and then using an antonym strategy with a softmax function to derive a score for each attribute.
- Attribute-Aware Pretraining: ATTIQA's IQA model is pretrained using these attribute-specific pseudo-labels. The model architecture includes a shared encoder and five separate attribute heads, each learning a distinct representation space for an attribute. A ranking-based loss (margin-ranking loss) is used during pretraining to minimize dependence on CLIP's potentially uncertain numerical scores and improve robustness.
- Fine-tuning: After pretraining, the model is fine-tuned on specific IQA datasets to predict the Mean Opinion Score (MOS). The features from the five attribute heads are concatenated and fed into regression MLPs for this final stage.
Datasets
The paper utilizes several datasets for training and evaluation:
- Pretraining: ImageNet is used for pretraining the backbone.
- IQA Datasets (for fine-tuning and evaluation):
- CLIVE
- KonIQ-10k
- SPAQ
- FLIVE
- Image Aesthetic Dataset: AVA (used similarly to IQA datasets).
- AI-Generated Content Dataset: AGIQA-3k (for evaluating performance on generated images).
- Synthetic Distortion Datasets (for validation): LIVE, CSIQ, TID2013, KADID-10k.
Key Insights and Ideas
- Decomposing Quality into Attributes is Key: Breaking down the ambiguous concept of "image quality" into specific, measurable attributes (sharpness, contrast, etc.) leads to more precise and generalizable representations. This is a significant departure from traditional single-score IQA.
- Leveraging VLMs for Pseudo-Labeling: Using CLIP with carefully crafted attribute-specific prompts is an effective way to generate large-scale, high-quality pseudo-labels for pretraining, circumventing the need for human annotation on massive datasets.
- Ranking Loss for Robustness: Employing a margin-ranking loss during pretraining, rather than a direct regression loss, makes the model more robust to the inherent uncertainties in VLM-generated scores.
- Attribute-Specific Representation Spaces: Creating separate representation spaces for each attribute allows the model to learn nuanced quality characteristics independently, contributing to better overall performance.
- Prompt Engineering Matters: The careful selection of prompts, informed by both distortion intensity and human perception, significantly impacts the quality of the generated pseudo-labels and, consequently, the model's performance.
Key Results
- State-of-the-Art Performance: ATTIQA achieves state-of-the-art (SOTA) performance on multiple "in-the-wild" NR-IQA datasets (KonIQ, CLIVE, SPAQ, FLIVE) and the AVA aesthetic dataset.
- Superior Generalization: ATTIQA demonstrates significantly better cross-dataset generalization capabilities compared to existing methods, showing less performance degradation on unseen datasets.
- Data Efficiency: The pretraining strategy is effective even with limited data, showing improved performance with larger pretraining datasets.
- Application Performance: ATTIQA excels as a metric for evaluating AI-generated images, aligning better with human preferences than other IQA models. It also shows promise as a reward function for image enhancement tasks.
- Attribute Head Impact: Experiments show that while all attribute heads contribute, sharpness appears to have a particularly strong correlation with overall MOS.
Limitations and Future Work
- Attribute Coverage: The authors acknowledge that their current focus on five attributes might not cover all relevant aspects of image quality (e.g., composition, focus). Future work could explore extending the representation space to include more attributes.
- VLM Dependency: While ATTIQA doesn't fine-tune CLIP, its performance is still influenced by CLIP's underlying knowledge and potential biases.
- Prompt Engineering Complexity: The prompt selection process, while effective, is complex and could potentially be further streamlined.
The paper suggests that ATTIQA's framework is extensible, allowing for the incorporation of additional image quality properties in the future.
Summary updated