Guardians of Image Quality: Benchmarking Defenses Against Adversarial Attacks on Image Quality Metrics

Alexander Gushchin, Khaled Abud, Georgii Bychkov, Ekaterina Shumitskaya, Anna Chistyakova, Sergey Lavrushkin, Bader Rasheed, Kirill Malyshev, Dmitriy Vatolin, Anastasia Antsiferova

TL;DR

This paper introduces the first comprehensive benchmark for evaluating defenses against adversarial attacks on no-reference Image Quality Assessment (IQA) metrics. By systematically testing 30 defense strategies against 14 different attacks, the authors reveal that while some methods excel at restoring scores, maintaining perceptual quality remains a significant hurdle.

What Problem Does This Paper Address?

Image Quality Assessment (IQA) metrics are the silent arbiters of the digital world, used by search engines like Bing to rank images and by researchers to benchmark compression algorithms. However, modern neural-network-based IQA metrics are notoriously fragile. A malicious actor can add imperceptible "adversarial noise" to an image to artificially inflate its quality score, potentially manipulating search results or benchmark leaderboards.

While defenses for image classification (e.g., "is this a cat?") are well-studied, IQA presents a unique challenge. A defense must not only thwart the attack but also restore the original quality score and preserve the image's actual perceptual quality. Until now, there was no unified framework to compare how different defenses handle these multi-faceted requirements.

Methods

The authors developed a systematic evaluation pipeline consisting of four main components:

  1. Target IQA Models: 9 diverse no-reference metrics, including CNN-based (like Koncept) and Transformer-based (like MANIQA) architectures.
  2. Adversarial Attacks: 14 white-box and black-box attacks applied at three strength levels. Crucially, they test both non-adaptive attacks and adaptive attacks (where the attacker knows the defense is there and tries to bypass it).
  3. Defense Strategies: 30 methods categorized into three types:
  4. Adversarial Purification: Preprocessing steps like blurring, JPEG compression, or deep-learning-based denoising (e.g., MPRNet, Real-ESRGAN) to "clean" the image before scoring.
  5. Adversarial Training (AT): Fine-tuning the IQA model on adversarial examples.
  6. Certified Robustness: Methods like Randomized Smoothing that provide mathematical guarantees of robustness, albeit at a high computational cost.
  7. Evaluation Metrics: Beyond standard correlation (SROCC), they introduce $D_{score}$ to measure how well a defense restores the original score and $R_{score}$ to assess overall robustness.
Figure 1. Evaluation scheme. The benchmark consists of four parts: datasets, IQA models, adversarial attacks, and adversarial defenses of three types: Adversarial Training, Purification and Certified methods.

Datasets

The benchmark utilizes four major datasets to ensure diversity:

  • KonIQ-10k & KADID-10k: Standard datasets for natural and artificially distorted images.
  • NIPS 2017: A dataset specifically designed for adversarial attack evaluation.
  • AGIQA-3K: A dataset of AI-generated images.
  • New Adversarial Dataset: The authors contributed a new dataset of 5,200 adversarial images accompanied by over 60,000 subjective human responses to ground their findings in actual human perception.

Key Insights and Ideas

  • Compression is a Surprisingly Good Shield: Simple compression-based defenses like DiffJPEG were among the most effective. Adversarial noise is often high-frequency; compression naturally discards these frequencies, effectively "purifying" the image without destroying its underlying structure.
  • The Diffusion Dilemma: While diffusion-based models (like DiffPure) are state-of-the-art for classification defenses, they struggle with IQA. They often introduce their own processing artifacts that degrade the image's perceived quality, leading to poor correlation with human judgment.
  • Transformers are Naturally Tougher: IQA metrics based on Transformer architectures showed higher intrinsic resilience to subtle perturbations compared to CNN-based models, likely due to their global self-attention mechanisms.
  • Randomness is Essential for Adaptive Defense: In scenarios where the attacker knows the defense, deterministic methods (like simple blurring) fail quickly. Defenses that incorporate randomness, such as Random Rotate, proved much harder to bypass.

Key Results

The benchmark highlights a clear trade-off between robustness and perceptual quality.

Efficiency of various defenses across different metrics and attack scenarios.
  • DiffJPEG emerged as a top performer in purification, balancing score restoration ($D_{score}$) and robustness ($R_{score}$).
  • Real-ESRGAN won the subjective beauty contest. In the large-scale human study, it was the only method that consistently improved the perceptual quality of attacked images, effectively treating adversarial noise as a form of image degradation to be repaired.
  • Certified methods provide the best theoretical robustness but are "highly impractical" for real-world use due to extreme computational overhead (often 1000x slower than simple purification).
The Pareto-optimal front shows the trade-off between restoring scores and maintaining correlation with human quality judgment.

Limitations and Future Work

The authors acknowledge several areas for growth:

  • Multi-parameter Attacks: The current framework focuses on attacks with a single strength parameter; future versions should handle more complex, evolving attack strategies.
  • Transferability: The study doesn't yet explore how well a defense against one attack generalizes to others.
  • Ranking Complexity: The current ranking system is straightforward; a more nuanced statistical framework for weighting different evaluation measures is planned.

The benchmark is open for new submissions, providing a living leaderboard for the community to track progress in securing the "guardians" of our visual quality.

Summary updated

BibTeX
@inproceedings{gushchin2025guardians,
  author = {Alexander Gushchin and Khaled Abud and Georgii Bychkov and Ekaterina Shumitskaya and Anna Chistyakova and Sergey Lavrushkin and Bader Rasheed and Kirill Malyshev and Dmitriy Vatolin and Anastasia Antsiferova},
  title = {{Guardians of Image Quality: Benchmarking Defenses Against Adversarial Attacks on Image Quality Metrics}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Y3EQLjoYdQ},
}
Figure