NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Resolution Attack: Exploiting Image Compression to Deceive Deep Neural Networks

Wangjia Yu, Xiaomeng Fu, Qiao Li, Jizhong Han, Xiaodan Zhang

TL;DR

Researchers have developed a "Resolution Attack" (RA) that generates images with dual semantics: they appear as one object at high resolution but transform into a completely different object when downsampled or compressed. By leveraging the frequency-domain priors of diffusion models, this attack successfully deceives both state-of-the-art AI classifiers and human observers, revealing a significant vulnerability in how machine learning models handle multi-resolution inputs.

What Problem Does This Paper Address?

Most deep learning models are trained and evaluated on images of a fixed resolution. However, in the real world, images are constantly subjected to compression and resizing—think of social media uploads, IoT sensor data, or distant objects in autonomous driving.

The authors identify a "resolution gap": if a model’s prediction changes drastically just because an image was shrunk, the system is not robust. While previous research has focused on adversarial perturbations (tiny, invisible pixel changes) or label noise, this paper explores a more structural threat.

Conceptual overview of the Resolution Attack, demonstrating how a high-resolution guitar transforms into a dog upon compression.

The "Resolution Attack" creates images that act as "semantic shapeshifters." For example, a high-resolution image of a guitar might look perfectly normal to a human, but once it is compressed for an AI classifier to process, it "becomes" a dog. This exploits the fact that classifiers often rely on low-resolution features that can be manipulated independently of high-frequency details.

Methods

The core of the paper is an automated, zero-shot framework based on Large-Scale Diffusion Models (specifically Stable Diffusion v1.5). The authors propose two main technical innovations to achieve this dual-semantic generation:

Architecture of the Dual-Stream Generative Denoising (DS) Module and Structural Guidance (SG) Module.
  1. Dual-Stream Generative Denoising (DS Module): Instead of a standard denoising process, the framework runs two parallel streams—one for the high-resolution prompt (e.g., "a vase with flowers") and one for the low-resolution prompt (e.g., "a photo of a dog"). It then uses frequency filters to blend them: the low-frequency components (the "coarse" shape) are taken from the low-resolution stream, while the high-frequency components (the "fine" details) are taken from the high-resolution stream.
  2. Time-Dependent Denoising Strategy: Diffusion models typically generate global structure in early steps and fine details in later steps. The authors use a staged approach: early steps focus on the low-resolution semantics, middle steps blend both, and final steps refine the high-resolution appearance.
  3. Structural Guidance (SG Module): For a variant called "Resolution Attack with Source Image" (RAS), the authors use DDIM Inversion and control signals (like depth maps and soft edges via ControlNet) to ensure the generated image maintains the specific geometry of a provided source image (e.g., a specific person's face) at low resolution.

Datasets

The study primarily uses categories from the ImageNet dataset to define the target classes for the attacks. For the "Source Image" (RAS) experiments, they curated a dataset of 100 frontal images of dogs to serve as the "hidden" low-resolution targets. They also evaluated the attack's effectiveness on models trained on the COCO dataset.

Key Insights and Ideas

  • Redundancy is a Vulnerability: High-resolution images contain massive amounts of redundant pixel space. The authors show that this redundancy can be "packed" with a secondary set of semantics that only becomes dominant when the high-frequency "camouflage" is stripped away by downsampling.
  • Frequency-Domain Decoupling: The core insight is that semantics aren't evenly distributed across frequencies. By "hiding" the low-resolution object in the low-frequency bands and the high-resolution object in the high-frequency bands, the attack creates a seamless transition that feels natural to the human eye.
  • Resolution as an Attack Vector: Unlike traditional adversarial attacks that require white-box access to a model's gradients, this attack is "task-agnostic." It exploits the fundamental mathematical process of image downsampling, making it effective against a wide variety of architectures (ResNets, ViTs, and even Vision-Language Models).
  • The Semantic Gap: The authors found that if the two objects are semantically similar (e.g., a dog and a lion), structural guidance is essential. If they are very different (e.g., a dog and a guitar), the model needs more freedom in the high-frequency stages to "mask" the underlying low-resolution shape.

Key Results

The attack demonstrated a high Corrective Attack Success Rate (ASRC), meaning both the high-res and low-res versions successfully deceived the classifiers into seeing two different things.

  • Classifier Vulnerability: On ResNet-50, the labeled attack success rate reached 71.4%.
  • Resolution Scaling: Interestingly, increasing the resolution (e.g., from 512x512 to 768x768) actually improved the attack success rate. Higher resolution provides more "pixel real estate" to hide the secondary semantics.
  • Generalization: The attack isn't just for simple classifiers. It successfully fooled Vision Transformers (ViTs) and Vision-Language Models (VLMs) like LLaVA, which had a 90% success rate in unlabeled attacks.
  • Applications: Beyond attacks, the framework proved highly effective for "implicit face swapping" and "facial camouflage," where a celebrity's face is hidden within a scene (like a snowy village) and only appears when the image is viewed as a thumbnail or from a distance.

Limitations and Future Work

  • Deepfake Detection: The authors acknowledge that because these images are generated via diffusion, they carry "AI fingerprints" and could potentially be detected by specialized deepfake scanners.
  • Computational Cost: The process requires 300 denoising steps, which is computationally heavier than simple gradient-based adversarial perturbations.
  • Semantic Constraints: While the attack is flexible, extremely large semantic gaps between the two objects can sometimes lead to visual artifacts in the high-resolution image.
  • Future Work: The authors suggest that this research should serve as an "alarm" for the community to develop defense strategies, such as multi-resolution training or specialized pre-processing filters that can detect frequency-domain semantic inconsistencies.

Summary updated

BibTeX
@inproceedings{yu2025resolution,
  author = {Wangjia Yu and Xiaomeng Fu and Qiao Li and Jizhong Han and Xiaodan Zhang},
  title = {{Resolution Attack: Exploiting Image Compression to Deceive Deep Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=OFukl9Qg8P},
}
Figure