Scale-Invariant Adversarial Attack Against Arbitrary-Scale Super-Resolution

Yihao Huang, Xin Luo, Qing Guo, Felix Juefei-Xu, Xiaojun Jia, Weikai Miao, Geguang Pu, Yang Liu

TL;DR

This paper introduces SIAGT (Scale-Invariant adversarial Attack with Good Transferability), the first scale-invariant adversarial attack designed specifically for arbitrary-scale super-resolution (SR) models. By targeting the underlying continuous image representation rather than the final upsampled output, SIAGT achieves highly effective image degradation with constant time and memory costs, while demonstrating exceptional cross-model transferability.

What Problem Does This Paper Address?

Traditional Single Image Super-Resolution (SISR) models are "fixed-scale," meaning you need a separate model for every upsampling factor ($\times 2$, $\times 4$, etc.). Recently, arbitrary-scale SR models based on Local Continuous Image Functions (LIIF) have gained popularity. These models treat an image as a continuous function mapping coordinates to RGB values, allowing a single network to zoom in to any arbitrary or non-integer scale.

While fixed-scale SR models have well-studied adversarial vulnerabilities, evaluating arbitrary-scale SR models has remained a challenge. Existing adversarial attacks are scale-dependent: they optimize a loss function based on the final high-resolution output. As the upsampling scale increases, the time and memory required to compute gradients explode exponentially.

Time and memory comparison showing exponential growth for scale-dependent attacks vs. constant overhead for SIAGT.

The authors address this gap by proposing an attack that remains efficient and effective regardless of the target magnification scale.

Methods

Instead of attacking the massive discrete pixel grid of the upsampled output, SIAGT attacks the scale-invariant continuous representation directly.

The method consists of two primary components:

  1. Scale-Invariant Loss ($L_{SI}$): The continuous image space is divided into a finite grid of $H \times W$ blocks (matching the low-resolution input). The algorithm randomly samples $n$ coordinate points within each block and computes the adversarial loss only at these discrete coordinates. This keeps the computational complexity bounded at $O(H \times W)$ rather than scaling with the output resolution $O(r_hH \times r_wW)$.
  2. Texture-Regularized Loss ($L_{TR}$): To make the attack white-box transferable to other unseen SR models, the authors introduce a coordinate-dependent loss. It deliberately expands the RGB value gap between a queried coordinate ($x_i$) and its immediate neighbor ($x_i + \Delta g_i$), effectively injecting high-frequency noise into the adversarial image.
Overview of SIAGT block division, coordinate sampling, and neighbor gap expansion for transferability.

Additionally, the authors modify the standard Projected Gradient Descent (PGD) strategy by using a dynamic, decaying step size ($\epsilon/t$ instead of a fixed $\epsilon/T$), which helps the optimization converge significantly faster.

Datasets

The method was evaluated using four classical benchmark datasets for super-resolution:

  • Set5 (5 images)
  • Set14 (14 images)
  • B100 (100 images)
  • Urban100 (100 images)

Low-resolution inputs were generated using standard bicubic downsampling.

Key Insights and Ideas

  • Attacking the Function, Not the Pixels: The core "aha moment" is that in implicit neural representations, changing the value of a single continuous coordinate point fundamentally alters the behavior of the continuous function across a wider neighborhood. Modifying a sparse, finite set of coordinates is sufficient to corrupt the entire continuous space.
  • Exploiting a Universal Weakness: Super-resolution models inherently struggle to reconstruct high-frequency details like sharp edges and fine textures. By designing $L_{TR}$ to maximize local high-frequency variance, the attack creates perturbations that are exceptionally difficult for any arbitrary-scale SR model to resolve, drastically boosting cross-model transferability.
Visual proof that LIIF models inherently struggle more with high-frequency components (|GT-SR|).

Key Results

  • Scale Invariance: As shown in Figure 2, while traditional scale-dependent attacks suffer from memory overflow at large scales, SIAGT maintains a flat, minimal memory and time footprint. At a scale of $\times 30$, SIAGT is hundreds of times faster.
  • Severe Degradation: Across all datasets and models (LIIF, LTE, CiaoSR), SIAGT successfully drops the PSNR of super-resolved outputs to near or below 20 dB (indicating heavy distortion), while keeping the adversarial low-resolution input virtually indistinguishable from the original (PSNR > 38 dB).
Qualitative results showing severe artifacts in the super-resolved outputs across different scales, despite an imperceptible attack on the input.
  • Cross-Model Transferability: When attacking a source model (e.g., LIIF) and testing on different target architectures (LTE, CiaoSR, A-LIIF, LMF), the inclusion of the $L_{TR}$ loss consistently yielded lower PSNRs compared to using $L_{SI}$ alone, outperforming common classification-based transfer attacks like DIM and ILA.
  • Downstream Impact: The attack severely breaks downstream applications that rely on super-resolution as a pre-processing step. For instance, on the WIDER FACE dataset, face detection accuracy using super-resolved images plummeted from 77.0% (clean) to just 19.9% (adversarial).

Limitations and Future Work

The primary limitation is that SIAGT is explicitly tailored for continuous-representation (LIIF-based) arbitrary-scale SR models due to its reliance on coordinate-based loss formulation. It cannot be directly applied to traditional fixed-scale SR architectures.

As for future directions, the authors suggest extending this continuous-representation adversarial attack framework to other popular coordinate-based neural architectures, such as Neural Radiance Fields (NeRF).

Summary updated

BibTeX
@article{huang2025scale,
  author = {Yihao Huang and Xin Luo and Qing Guo and Felix Juefei-Xu and Xiaojun Jia and Weikai Miao and Geguang Pu and Yang Liu},
  title = {{Scale-Invariant Adversarial Attack Against Arbitrary-Scale Super-Resolution}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2025},
  url = {https://openreview.net/forum?id=RX6iO1el7X},
}
Figure