Modern Image Quality Assessment (IQA) has shifted from simple mathematical formulas (like PSNR) to sophisticated deep neural networks that correlate highly with human perception. However, these networks inherit a classic deep learning flaw: adversarial vulnerability.
An attacker can add imperceptible "noise" to an image that tricks a metric into giving it a high score, even if the actual quality is poor. This has real-world consequences—from manipulating search engine rankings to "cheating" on public benchmarks for image compression or restoration algorithms. While defenses exist for image classification (e.g., "is this a cat?"), IQA is a regression task. A defense for IQA must not only resist the attack but also restore the original quality score and preserve the image's actual visual appeal. Until now, there was no systematic way to measure how well these defenses actually work.
This paper introduces the first comprehensive benchmark for defending IQA metrics against adversarial attacks. By evaluating 30 defense strategies against 14 different attacks across 9 popular IQA models, the authors reveal critical insights into how we can secure image quality evaluation.
The Benchmark Pipeline
To ensure diversity and robustness, the benchmark utilizes four major datasets: KonIQ-10k and KADID-10k (standard datasets with authentic and artificial distortions), NIPS 2017 (designed for evaluating adversarial attacks), and AGIQA-3K (AI-generated images). The authors also released a novel dataset of adversarial images generated during their study to aid future research.
The researchers categorized the 30 evaluated IQA defenses into three main approaches:
- Adversarial Purification: Pre-processing the image before the IQA metric sees it to "wash away" the adversarial noise. This ranges from simple methods like Gaussian blur and JPEG compression to advanced generative models like DiffPure (using diffusion models) and Real-ESRGAN.
- Adversarial Training (AT): Re-training the IQA model itself using adversarial examples so it learns to ignore the perturbations.
- Certified Robustness: Using mathematical frameworks (like randomized smoothing) to provide a "guarantee" that the metric's output won't change significantly within a certain range of pixel noise.
These defenses were evaluated in two scenarios: Non-adaptive (the attacker doesn't know a defense is being used) and Adaptive (the attacker knows the defense and incorporates its gradients into the attack strategy).
Key Insights and Trade-offs
The extensive evaluation yielded several surprising insights into what works and what fails when defending IQA models:
- Compression is a "Free" Defense: Simple compression-based methods like JPEG and DiffJPEG are surprisingly effective. Because adversarial noise is typically high-frequency, the quantization process in JPEG naturally discards it while preserving the structural "soul" of the image.
- The Adaptive Gap: Most simple purification methods (blurring, resizing) fail completely in adaptive settings. If the attacker knows you are blurring the image, they can craft noise that survives the blur. Only methods with high randomness or complex generative priors (like DiffPure) remain robust.
- Architectural Resilience: Transformer-based IQA models (like MANIQA or TOPIQ) are inherently more robust than CNN-based ones. Their global self-attention mechanisms allow them to look at the "big picture," making them less susceptible to the local pixel-level tweaks that fool CNNs.
There is a distinct "Pareto front" between robustness and image quality. Strong defenses often blur or distort the image so much that they lower the very quality score they are trying to protect. However, Real-ESRGAN emerged as a standout, often improving the perceptual quality of the defended image beyond the original "attacked" state.
Results and Future Directions
To verify if the "defended" images actually looked good to humans, the researchers conducted a massive subjective study with over 2,700 participants and 60,000+ responses.
In non-adaptive settings, DiffJPEG and DISCO provided the best balance of robustness and speed. In the much harder adaptive settings, DiffPure maintained the highest robustness, though at a high computational cost. Efficiency remains a major hurdle for mathematically guaranteed defenses; the fastest certified method was still 4x slower than the slowest purification method.
While this benchmark is a massive step forward, the authors acknowledge areas for future growth, including exploring multi-parameter attacks and deeper investigations into black-box transferability. As a living benchmark, the community can track the evolving state-of-the-art on the project's public leaderboard.
Summary updated