Universal Adversarial Defense in Remote Sensing Based on Pre-trained Denoising Diffusion Models

Weikang Yu, Yonghao Xu, Pedram GhamisiarXiv 2023

TL;DR

UAD-RS is a novel defense framework that uses pre-trained denoising diffusion models to "purify" remote sensing images corrupted by adversarial attacks. By adaptively adding and then removing Gaussian noise, it effectively strips away invisible, malicious perturbations, protecting Earth Observation models from a wide variety of attacks without requiring prior knowledge of the attack type.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) have become the backbone of AI for Earth Observation (AI4EO), powering everything from disaster monitoring to land-cover classification. However, these models have a "glass heel": they are incredibly vulnerable to adversarial examples. These are images modified with tiny, human-imperceptible perturbations designed to trick a model into making a confident but wrong prediction.

In high-stakes remote sensing applications, a fooled model could misidentify a flood zone or a military target, leading to catastrophic real-world consequences. Existing defenses, like adversarial training, are often computationally expensive and fail to generalize—meaning a model trained to resist "Attack A" might still fall victim to "Attack B." The authors aim to create a universal defense that can handle heterogeneous attack patterns using a single, unified model.

Methods

The authors propose Universal Adversarial Defense in Remote Sensing (UAD-RS), which treats adversarial defense as an image purification problem. The core idea is to use Denoising Diffusion Probabilistic Models (DDPMs).

The process works in two main stages:

  1. Forward Diffusion: The adversarial image is mixed with a controlled amount of random Gaussian noise. This random noise effectively "drowns out" and disrupts the structured, malicious adversarial patterns.
  2. Reverse Denoising: A pre-trained diffusion model then iteratively removes the noise to reconstruct a clean, "purified" version of the image that adheres to the distribution of the original training data.
The UAD-RS framework uses diffusion and denoising to purify adversarial samples.

A key innovation is the Adaptive Noise Level Selection (ANLS) mechanism. If you add too little noise, the adversarial attack might survive; add too much, and you destroy the image's useful features. ANLS uses a "task-guided" Frechet Inception Distance (FID) ranking strategy to automatically find the optimal noise level for each dataset, ensuring the best balance between purification and detail preservation.

Datasets

The framework was evaluated on four diverse remote sensing benchmarks:

  • Scene Classification: UC-Merced (UCM) and the Aerial Image Dataset (AID).
  • Semantic Segmentation: Vaihingen and Zurich Summer.

These datasets cover various spatial resolutions and spectral bands (RGB and Near-Infrared), providing a rigorous test for the "universality" of the defense.

Key Insights and Ideas

  • Adversarial Noise is Fragile: The central "aha" moment is that adversarial perturbations are highly structured and specific to the victim model. Random Gaussian noise is "orthogonal" to this structure. By adding random noise, you break the attack's spell before the denoising process begins.
  • Task-Guided Purification: Unlike standard image denoising, which just aims for visual appeal, UAD-RS uses an encoder from the actual application model (e.g., a classifier) to calculate FID. This ensures the purified image isn't just "pretty" but is specifically optimized to be correctly interpreted by the downstream AI.
  • Zero-Knowledge Defense: UAD-RS doesn't need to know which attack algorithm was used (e.g., FGSM vs. CW). It only needs to know what "clean" remote sensing data looks like, making it much more practical for real-world deployment where new attacks are constantly emerging.

Key Results

UAD-RS was tested against seven different attack types, including both white-box and black-box methods.

  • Quantitative Superiority: On the UCM dataset, UAD-RS significantly outperformed state-of-the-art methods like PSGAN and TGDN. For instance, against the potent CW attack on an AlexNet classifier, accuracy plummeted to near 0% without defense but was restored to 54.10% with UAD-RS.
  • Qualitative Fidelity: Visually, UAD-RS preserves fine spatial details (like individual trees or river textures) better than competing methods, which often produce blurred results or strange color artifacts.
Figure 1: Illustration of universal adversarial defense on scene classification in remote sensing (RS) images. The adversarial examples generated with heterogeneous attack methods significantly affect the performance of different DNNs. The proposed UAD-RS aims to protect the DNNs from the universal adversarial patterns by purifying the adversarial examples in a unified model.

Limitations and Future Work

While powerful, UAD-RS has a few hurdles:

  • Inference Speed: Diffusion models are iterative, meaning they require multiple steps to denoise an image. This makes UAD-RS slower than simple CNN-based filters, which could be a bottleneck for real-time applications.
  • Computational Cost: Pre-training diffusion models on massive remote sensing datasets requires significant GPU resources.
  • High-Contrast Challenges: The authors noted that in datasets with extreme brightness (like Zurich Summer), the Gaussian noise addition can be uneven, sometimes leading to ambiguous denoising results in very bright pixels.

Future research will focus on speeding up the purification process and exploring how UAD-RS can be adapted for other tasks like domain adaptation and general image enhancement.

Summary updated

BibTeX
@misc{yu2023universal,
  author = {Weikang Yu and Yonghao Xu and Pedram Ghamisi},
  title = {{Universal Adversarial Defense in Remote Sensing Based on Pre-trained Denoising Diffusion Models}},
  year = {2023},
  eprint = {2307.16865},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.16865},
}
Figure