Image Quality Assessment with Gradient Siamese Network

Heng Cong, Lingzhi Fu, Rongyu Zhang, Yusheng Zhang, Hao Wang, Jiarong He, Jin GaoWorkshops @ CVPR 2022

Introduction

Full-Reference Image Quality Assessment (FR-IQA) is a critical task in computer vision, aiming to evaluate the perceptual quality of a distorted image by comparing it to a pristine reference. While traditional metrics such as Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM) are widely used, they frequently diverge from human visual perception, particularly when evaluating images generated by Generative Adversarial Networks (GANs). GAN-based restoration often introduces sharp but unnatural artifacts that traditional metrics fail to penalize correctly.

To address these challenges, the Gradient Siamese Network (GSN) was developed. GSN is designed to capture fine-grained structural differences and leverage relative quality rankings, ultimately securing second place in the NTIRE 2022 Perceptual IQA Challenge.

Methodology

The GSN architecture is built upon three core innovations designed to align algorithmic scoring with human judgment.

1. Central Difference Convolution (CDC)

Standard Convolutional Neural Networks (CNNs) typically focus on intensity-level semantic features, which can inadvertently smooth over subtle texture discrepancies. GSN utilizes Central Difference Convolution (CDC), which explicitly incorporates the gradient—the difference between a center pixel and its local neighbors. By focusing on these local variations, the model becomes significantly more sensitive to the "unnatural" gradients often introduced by digital compression or AI-driven upscaling.

2. Multi-Level Feature Fusion

GSN employs a Siamese (twin) architecture where the reference and distorted images are processed through shared weights. To capture a holistic view of image quality, the network extracts features at three distinct levels: low, mid, and high. These features are then fused, allowing the model to simultaneously evaluate low-level structural details and high-level semantic context. This multi-scale approach ensures that both localized artifacts and global distortions are accounted for.

3. KL Divergence Ranking Loss

Most IQA models are trained using Mean Squared Error (MSE) to predict an absolute quality score. However, IQA is inherently a ranking problem. GSN introduces a loss function based on Kullback–Leibler (KL) divergence to learn the relative distance between samples within a batch. This approach teaches the network to distinguish the logical progression of quality (e.g., from "slightly blurry" to "heavily distorted") more effectively than independent regression.

Experimental Results

The model was rigorously tested on several benchmark datasets, including LIVE, CSIQ, and TID2013. For the NTIRE 2022 challenge, the model was pre-trained on the large-scale KADID-10k dataset and fine-tuned on the PIPAL dataset, which is known for its inclusion of diverse GAN-based artifacts.

Performance Metrics

GSN demonstrated superior performance in terms of Spearman (SRCC) and Pearson (PLCC) correlation coefficients. On the CSIQ and TID2013 benchmarks, the model achieved state-of-the-art or near-state-of-the-art alignment with human Mean Opinion Scores (MOS).

NTIRE 2022 Challenge

In the NTIRE 2022 Perceptual IQA Challenge (Track 1: Full-Reference), GSN earned the second-place position. This success underscores the model's robustness against complex, modern distortion types that often baffle traditional algorithms.

Ablation Study

The authors conducted ablation studies to quantify the impact of their innovations. Replacing standard convolutions with CDC resulted in a significant improvement in the "main score" (the sum of PLCC and SRCC), rising from 1.536 to 1.632. This validates the hypothesis that gradient-aware features are essential for high-fidelity quality assessment.

Discussion and Limitations

A key insight from this work is that gradients serve as a "secret sauce" for identifying unnatural artifacts. Furthermore, the use of spatial attention modules allows the network to prioritize regions with high detail, optimizing computational focus.

However, GSN is not without limitations. The model is computationally intensive, requiring approximately 36 hours of training on a Tesla V100 for the challenge dataset. Additionally, as a full-reference model, it requires the original image to function. Future research may explore adapting the gradient-aware Siamese approach to No-Reference (NR-IQA) scenarios, where a reference image is unavailable.

Conclusion

The Gradient Siamese Network represents a significant advancement in perceptual image quality assessment. By combining gradient-sensitive convolutions with a ranking-based loss function, GSN provides a metric that closely mirrors human perception, particularly in the challenging context of GAN-generated content.

Summary updated

BibTeX
@inproceedings{cong2022image,
  author = {Heng Cong and Lingzhi Fu and Rongyu Zhang and Yusheng Zhang and Hao Wang and Jiarong He and Jin Gao},
  title = {{Image Quality Assessment with Gradient Siamese Network}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
}
Figure