Attentions Help CNNs See Better: Attention-based Hybrid Image Quality Assessment Network

Shanshan Lao, Yuan Gong, Shuwei Shi, Sidi Yang, Tianhe Wu, Jiahao Wang, Weihao Xia, Yujiu Yang

Introduction

Image Quality Assessment (IQA) is a critical component in computer vision, aiming to quantify human perception of image degradation. While established metrics like Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM) are effective for traditional distortions such as Gaussian noise or blur, they often fail when faced with the complex artifacts introduced by Generative Adversarial Networks (GANs). GANs frequently produce high-frequency "hallucinated" textures that appear realistic to local patch-based models but are perceived as unnatural or misaligned by human observers.

The Attention-based Hybrid Image Quality Assessment Network (AHIQ) addresses these limitations by integrating global semantic context with local texture details, mimicking the holistic way the human visual system processes images.

The AHIQ Architecture

The fundamental premise of AHIQ is that human visual perception relies on both local clarity and global consistency. To capture this duality, the authors propose a two-branch feature extraction framework:

  1. Vision Transformer (ViT) Branch: This branch captures long-range dependencies and global semantic information. It identifies the "what" and "where" of the image, providing the necessary context for quality evaluation.
  2. CNN Branch: Utilizing a shallow ResNet, this branch extracts fine-grained, local texture details and high-frequency information.

By combining these architectures, AHIQ overcomes the inherent "blindness" of CNNs to global structure and the relative "blurriness" of ViTs regarding fine-grained textures.

Semantic-Guided Deformable Convolution

A core innovation of AHIQ is its method of feature fusion. Rather than simply merging the two branches, the model employs Semantic-Guided Deformable Convolution. Features derived from the ViT branch are used to calculate spatial offsets for the deformable convolutions applied to the CNN features.

This mechanism effectively "warps" the CNN’s receptive field toward visually salient regions. By aligning local texture extraction with global semantic importance, the model filters out background noise and focuses on the details that humans actually prioritize when judging quality.

Patch-wise Prediction and Adaptive Weighting

Standard IQA models often use global average pooling to collapse feature maps into a single score, a process that can obscure localized quality issues. AHIQ instead utilizes a Patch-wise Prediction Module consisting of two sub-branches:

  • Score Branch: Predicts a quality score for every pixel or patch in the feature map.
  • Attention Branch: Predicts a weight (saliency) for each corresponding score.

The final image quality score is calculated as a weighted sum. This ensures that distortions in critical areas—such as a human face—carry significantly more weight than distortions in less significant areas, such as a flat background or sky.

Experimental Results

AHIQ was rigorously tested on several benchmark datasets, including LIVE, CSIQ, TID2013, and the large-scale KADID-10k. However, its most notable performance occurred on the PIPAL dataset, the primary benchmark for the NTIRE 2022 Perceptual IQA Challenge.

  • NTIRE 2022 Success: AHIQ ranked 1st place in the Full Reference (FR) track of the challenge, significantly outperforming previous state-of-the-art models like IQT.
  • Correlation Metrics: On the PIPAL test set, AHIQ achieved a Pearson Linear Correlation Coefficient (PLCC) of 0.823 and a Spearman’s Rank-Order Correlation Coefficient (SROCC) of 0.813.
  • Generalization: The model demonstrated robust cross-database performance. When trained on KADID-10k and tested on LIVE or CSIQ, it maintained higher accuracy than competing models, suggesting it learns generalizable perceptual features rather than memorizing dataset-specific artifacts.

Limitations and Future Work

While AHIQ represents a significant advancement, the authors note several areas for future development. The dual-branch architecture is computationally heavier than traditional single-branch models. Additionally, AHIQ is currently a Full-Reference model, requiring a pristine original image for comparison. Extending this hybrid attention logic to No-Reference IQA—where no ground truth is available—remains a primary challenge for the field. Finally, ablation studies indicate that the model's performance is sensitive to the specific choice of backbone (e.g., ResNet50 vs. ViT-B/8), suggesting that further optimization of the feature extraction layers could yield even better results.

Summary updated

BibTeX
@inproceedings{lao2022attentions,
  author = {Shanshan Lao and Yuan Gong and Shuwei Shi and Sidi Yang and Tianhe Wu and Jiahao Wang and Weihao Xia and Yujiu Yang},
  title = {{Attentions Help CNNs See Better: Attention-based Hybrid Image Quality Assessment Network}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
}
Figure