Black-box adversarial attacks against image quality assessment models

Yu Ran, Ao-Xiang Zhang, Mingjie Li, Weixuan Tang, Yuan-Gen WangExpert Systems with Applications 2024

Abstract: The goal of No-Reference Image Quality Assessment (NR-IQA) is to predict the perceptual quality of an image in line with its subjective evaluation. To put the NR-IQA models into practice, it is essential to study their potential loopholes for model refinement. This paper makes the first attempt to explore the black-box adversarial attacks on NR-IQA models. Specifically, we first formulate the attack problem as maximizing the deviation between the estimated quality scores of original and perturbed images, while restricting the perturbed image distortions for visual quality preservation. Under such formulation, we then design a Bi-directional loss function to mislead the estimated quality scores of adversarial examples towards an opposite direction with maximum deviation. On this basis, we finally develop an efficient and effective black-box attack method against NR-IQA models. Extensive experiments reveal that all the evaluated NR-IQA models are vulnerable to the proposed attack method. And the generated perturbations are not transferable, enabling them to serve the investigation of specialities of disparate IQA models.

Introduction

Image Quality Assessment (IQA) is a critical component in digital imaging pipelines, ranging from social media enhancement to smartphone camera benchmarking. While Full-Reference IQA compares a target image to a pristine original, No-Reference IQA (NR-IQA) models—typically implemented using Deep Neural Networks (DNNs)—must estimate quality without a reference, mimicking human perception.

However, DNNs are notoriously vulnerable to adversarial attacks: small, often imperceptible perturbations that lead to significant model failures. While white-box attacks (where model parameters are known) have been studied, this work focuses on the more practical black-box scenario. In this setting, the attacker can only query the model for a quality score without access to its internal architecture or gradients. This task is particularly challenging because NR-IQA is a regression problem (predicting continuous values) rather than a classification task, rendering standard attack methods less effective.

Methodology

The authors propose a systematic black-box attack framework consisting of two primary components:

  1. Bi-directional Adversarial Loss: Traditional attacks often use Mean Squared Error (MSE) to push predictions away from the ground truth. However, this lacks directional control. The proposed Bi-directional loss explicitly forces high-quality images toward the lowest possible scores and low-quality images toward the highest, maximizing the perceptual discrepancy.
  2. Random Search-Based Attack: In the absence of gradients, the attack employs an iterative random search algorithm. Starting with an initial perturbation, the method refines the adversarial image using a patch-based strategy. The patch size is dynamically adjusted via a decay mechanism—initially using large patches to explore the search space and gradually shrinking them for fine-tuning.
The proposed black-box attack procedure using iterative random search.

To ensure the perturbations remain invisible to human observers, the attack is constrained by an $\ell_\infty$-norm, limiting the maximum change per pixel to a negligible value (e.g., 3/255).

Experimental Results

The attack was evaluated on three benchmark datasets: LIVE, CSIQ, and TID2013. Four state-of-the-art NR-IQA models were targeted: DBCNN, UNIQUE, TReS, and LIQE. The experimental results demonstrate a significant collapse in model performance across all datasets. Models that previously showed high correlation with human Mean Opinion Scores (MOS) saw their performance drop drastically. For instance, the TReS model's correlation on the CSIQ dataset plummeted from 0.91 to -0.28.

Comparison of prediction scores for original images and adversarial examples against MOS. The attack successfully pushes scores to the extremes.

Key Insights

  • Directional Effectiveness: The Bi-directional loss proved far more effective than standard MSE, highlighting that the direction of the error is as crucial as its magnitude in regression-based attacks.
  • Non-Transferability: Adversarial examples generated for one model rarely fooled another. This suggests that different NR-IQA models rely on distinct, model-specific features to judge quality.
  • Vulnerability of Multitask Learning: Even models like LIQE, which utilize multitask learning for improved robustness, were susceptible to the attack, indicating that current training paradigms are insufficient against dedicated black-box adversaries.

Conclusion

This research provides the first systematic exploration of black-box attacks on NR-IQA models, revealing significant vulnerabilities in state-of-the-art systems. While the attack is effective within a practical query budget of 10,000, future work could focus on further improving query efficiency and testing against authentic, "in-the-wild" distortions. These findings underscore the need for developing more robust adversarial training techniques specifically tailored for image quality assessment.

Summary updated

BibTeX
@article{ran2024black,
  author = {Yu Ran and Ao-Xiang Zhang and Mingjie Li and Weixuan Tang and Yuan-Gen Wang},
  title = {{Black-box adversarial attacks against image quality assessment models}},
  journal = {Expert Systems with Applications},
  year = {2024},
  url = {https://openreview.net/forum?id=ELID3HCf8P},
}
Figure