MANIQA: Multi-dimension Attention Network for No-Reference Image Quality Assessment

Sidi Yang, Tianhe Wu, Shuwei Shi, Shanshan Lao, Yuan Gong, Mingdeng Cao, Jiahao Wang, Yujiu Yang

Introduction

Traditional No-Reference Image Quality Assessment (NR-IQA) methods evaluate image quality without a ground-truth reference. However, these methods often struggle with images generated or restored by Generative Adversarial Networks (GANs) due to the "perceptual-distortion tradeoff." GANs produce lifelike textures that satisfy human observers but deviate from the statistical properties of natural images. Traditional algorithms often penalize these "hallucinated" details as noise. MANIQA (Multi-dimension Attention Network) addresses this by bridging the gap between machine vision and human subjective perception.

Methodology

MANIQA utilizes a Transformer-based architecture to capture long-range dependencies and multi-dimensional relationships within an image. The pipeline consists of four primary stages:

The MANIQA architecture overview, illustrating the flow from ViT feature extraction to the dual-branch prediction.

1. Feature Extraction

The model employs a Vision Transformer (ViT) backbone to extract features across multiple semantic levels. By utilizing layers 7, 8, 9, and 10, the network captures a blend of fine-grained details and high-level contextual information.

2. Transposed Attention Block (TAB)

Moving beyond standard spatial self-attention, the TAB applies attention across the channel dimension. This allows the model to implicitly capture global context by weighing the importance of different feature maps, effectively re-weighting features based on their relevance to quality assessment.

3. Scale Swin Transformer Block (SSTB)

The SSTB module applies spatial attention to strengthen local interactions among image patches. To stabilize training within the residual connections, it incorporates a learnable scale factor ($\alpha$).

4. Dual-Branch Prediction

Human perception does not weigh every part of an image equally. MANIQA mimics this behavior through a dual-branch structure:

  • Scoring Branch: Predicts a quality score for each individual local patch.
  • Weighting Branch: Assigns an importance weight to each patch.

The final image score is calculated as the weighted sum of these local scores, focusing the assessment on salient regions that drive human opinion.

Key Results

MANIQA demonstrated state-of-the-art performance across multiple benchmarks, most notably winning first place in the No-Reference track of the NTIRE 2022 Perceptual Image Quality Assessment Challenge.

Comparison of MANIQA against traditional and deep learning-based IQA metrics on the PIPAL dataset, showing superior PLCC and SROCC.

On the PIPAL validation set—a dataset rich in GAN-based distortions—MANIQA achieved an SROCC of 0.686 and a PLCC of 0.707. This significantly outperformed previous leading methods such as TReS (SROCC 0.643). Furthermore, the model showed excellent generalization on traditional datasets, achieving a near-perfect PLCC of 0.983 on the LIVE dataset.

Discussion and Conclusion

The success of MANIQA highlights the advantages of Transformers over traditional CNNs for NR-IQA, particularly in modeling complex, non-local distortions introduced by generative models. The integration of channel-wise and spatial-wise attention provides a comprehensive understanding of image quality that aligns closely with human judgment.

While highly effective, the authors acknowledge that distinguishing "unreal" GAN textures from high-quality natural textures remains a challenge. Future research will focus on categorizing specific generative artifacts and optimizing the ViT backbone for real-time deployment.

Summary updated

BibTeX
@inproceedings{yang2022maniqa,
  author = {Sidi Yang and Tianhe Wu and Shuwei Shi and Shanshan Lao and Yuan Gong and Mingdeng Cao and Jiahao Wang and Yujiu Yang},
  title = {{MANIQA: Multi-dimension Attention Network for No-Reference Image Quality Assessment}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
}
Figure