Contrastive Local Manifold Learning for No-Reference Image Quality Assessment

Zihao Huang, Runze Hu, Timin Gao, Yan Zhang, Yunhang Shen, Ke Li

TL;DR

LML-IQA is a novel no-reference image quality assessment (NR-IQA) framework that prevents "local manifold collapse" by differentiating quality variations within a single image. By leveraging a teacher-student architecture to identify salient regions and treating non-salient patches as intra-class negatives, the model achieves state-of-the-art performance and superior generalization across multiple benchmark datasets.

What Problem Does This Paper Address?

Evaluating image quality without a pristine reference (No-Reference IQA) is a significant challenge in computer vision. While deep learning and self-supervised contrastive learning have made strides, they often suffer from two key issues:

  1. Local Manifold Collapse: Traditional contrastive learning assumes all crops from the same image have identical quality. This forces their feature representations to converge, potentially obscuring subtle but important quality differences between images with similar content but different distortion levels.
  2. Uniformity Assumption: Human perception is non-uniform; we prioritize salient regions (like a face or a sharp object) over background areas when judging quality. Standard methods that treat all patches equally fail to capture this perceptual nuance.
Illustration of local manifold collapse vs. the proposed approach

Methods

The authors introduce LML-IQA, which combines Local Manifold Learning (LML) with a teacher-student mutual learning strategy.

  • Teacher-Student Architecture: A teacher model uses its self-attention maps to identify the most visually salient region of an image. This salient patch is designated as the "positive" sample.
  • Contrastive Learning Sampling: Unlike standard approaches, LML-IQA treats other patches from the same image as intra-class negatives. Patches from different images serve as inter-class negatives. This setup forces the model to maintain feature separation even within a single image, preserving the local manifold structure.
  • Mutual Learning & EMA: The student model learns to predict quality scores and perform contrastive tasks. The teacher model is not static; its parameters are updated via an Exponential Moving Average (EMA) of the student's weights. This ensures the saliency detection evolves and stabilizes throughout training.
  • Hybrid Loss: The model optimizes a joint loss function consisting of an InfoNCE contrastive loss (to structure the feature space) and an L1 regression loss (to align predictions with human-assigned quality scores).
Fig. 2. Overview of the LML-IQA framework. Given an input image, the teacher model first identifies the most salient region using visual saliency detection. Multiple random crops are generated, with the salient region as the positive sample, random crops from the same image as intra-class negatives, and crops from other images as inter-class negatives. These samples are processed by the student encoder for feature extraction and contrastive learning, followed by quality score prediction with the student decoder. Teacher-student mutual learning is enabled via an exponential moving average (EMA) mechanism.

Datasets

The model was evaluated on eight standard IQA datasets, covering both synthetic and real-world distortions:

  • Synthetic: LIVE, CSIQ, TID2013, and KADID. These involve applying known distortions (like blur or noise) to pristine images.
  • Real-World: LIVEC, KonIQ, LiveFB, and SPAQ. These consist of authentic, "in-the-wild" images captured by various devices.

Key Insights and Ideas

  • Intra-class Negatives are Key: By treating non-salient patches as negatives, the model avoids the "collapse" where all patches of an image look the same in feature space. This maintains a diverse feature space that is more sensitive to fine-grained distortions.
  • Saliency Matters: Aligning positive samples with human visual attention (saliency) provides more consistent and perceptually relevant guidance for the model than random cropping.
  • Data Efficiency: The local manifold learning approach allows the model to learn more from less data. LML-IQA outperforms several state-of-the-art methods even when trained on only 40-60% of the available data.
  • Robust Generalization: The model shows exceptional performance in cross-dataset validation (training on one dataset and testing on another without fine-tuning), suggesting it captures fundamental quality features rather than just memorizing dataset-specific biases.

Key Results

LML-IQA demonstrates significant performance gains over prior state-of-the-art (SOTA) methods:

  • TID2013: Achieved a Pearson Linear Correlation Coefficient (PLCC) of 0.942, a substantial jump from the previous best of 0.908.
  • CSIQ: Reached a PLCC of 0.977, compared to the SOTA of 0.965.
  • Cross-Dataset: In a challenging test training on LIVE and testing on CSIQ, LML-IQA achieved an SRCC of 0.833, outperforming other competitive models like DEIQT.
Performance comparison on standard IQA datasets

The model's robustness was further proven through gMAD competition testing, where it successfully identified quality differences that other SOTA models missed.

Fig. 3. gMAD competition results between DEIQT [6] and LML-IQA. The first two columns represent LML-IQA as the attacker and DEIQT as the defender, while the roles are reversed in the last two columns. Each row, from top to bottom, fixs the defender at different quality level constant, ranging from low to high. The numerical values below each image indicate the attacker’s perceived quality score.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{huang2024contrastive,
  author = {Zihao Huang and Runze Hu and Timin Gao and Yan Zhang and Yunhang Shen and Ke Li},
  title = {{Contrastive Local Manifold Learning for No-Reference Image Quality Assessment}},
  year = {2024},
  eprint = {2406.19247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.19247},
}
Figure