Reversible Adversarial Examples with Beam Search Attack and Grayscale Invariance

Haodong Zhang, Chi Man Pun, Xia DuarXiv 2023

This paper, presented by researchers from the University of Macau, introduces a new framework for creating Reversible Adversarial Examples (RAE). By combining a query-efficient black-box attack with grayscale-invariant data hiding, the authors achieve high-fidelity images that fool AI models while allowing authorized users to recover the original data perfectly.

TL;DR

The authors propose the first targeted black-box reversible adversarial attack, using a novel beam search strategy to minimize model queries and a grayscale-invariant embedding technique to maintain high visual quality (PSNR > 40dB). This allows for secure data storage where images are "camouflaged" from unauthorized AI classifiers but fully restorable by the owner.

What Problem Does This Paper Address?

Adversarial examples are inputs designed to fool machine learning models while remaining indistinguishable to humans. Reversible Adversarial Examples (RAE) take this a step further by embedding the original image data (or other secret info) directly into the adversarial image using Reversible Data Hiding (RDH).

However, existing RAE methods face two major hurdles:

  1. White-Box Dependency: Most current methods require full access to the target model's architecture and weights (white-box). In real-world scenarios, attackers usually only have access to the model's output scores (black-box).
  2. Visual Quality vs. Attack Success: Generating strong adversarial perturbations often degrades image quality, making the "hidden" nature of the attack obvious to human observers.

Methods

The proposed framework consists of two main components: a Beam Search Attack and RDH-GI (Reversible Data Hiding with Grayscale Invariance).

1. Beam Search Attack

To operate in a black-box setting, the authors developed a score-based heuristic attack. Instead of randomly guessing perturbations (which wastes the "query budget"), they use a Beam Search strategy:

  • Random Attack Phase: The algorithm generates random noise in a low-frequency subspace (using Discrete Cosine Transform) and queries the model to see if the target class probability increases.
  • Beam Search Phase: It records the "gain" of historical perturbations. Periodically, it selects the direction with the highest historical gain and applies a new perturbation in that direction with a decayed step size without needing a new query. This significantly reduces the total number of queries needed to fool the model.
Fig. 1: Overvall framework of proposed reversible adversarial attack.

2. RDH-GI Embedding

Once the adversarial image is created, secret data is embedded. To keep the image looking natural, the authors use grayscale invariance:

  • Data is embedded into the Red (R) and Blue (B) channels.
  • The Green (G) channel is then adjusted to ensure the overall grayscale value of the pixel remains unchanged.
  • They utilize a 3rd-degree polynomial predictor (MGD) to calculate prediction errors for more efficient embedding.
Fig. 2: Workflow of the predictor MGD.

Datasets

The framework was evaluated using two standard computer vision benchmarks:

  • ImageNet: 1,000 randomly sampled images.
  • CIFAR-10: 30,000 images used for the test set.
  • Victim Models: The primary target was ResNet50, with additional testing on ResNet18, GoogleNet, and DenseNet121 for ablation studies.

Key Insights and Ideas

  • Exploiting History: The "aha" moment in the Beam Search Attack is realizing that successful past directions are likely to be successful in the future. By "reusing" these directions without querying the model, the authors bypass the high cost of black-box attacks.
  • Grayscale as a Shield: Human vision is highly sensitive to changes in luminance (grayscale) but less so to subtle shifts in chrominance. By locking the grayscale value, the RAE becomes much harder for a human to detect, even if the R and B channels have been modified.
  • Low-Frequency Focus: By sampling perturbations from the low-frequency subspace via DCT, the attack targets the most vital information the model uses for classification, making the attack more potent.

Key Results

  • Query Efficiency: On ImageNet, the method achieved a 95% success rate with approximately 8,000 queries, outperforming SOTA methods like SimBA-DCT. On CIFAR-10, queries were stabilized at around 300.
  • Visual Fidelity: The average Peak Signal-to-Noise Ratio (PSNR) was 43.15dB compared to the source image, significantly higher than competing RAE methods (which often hover between 29-41dB). A PSNR > 40dB generally indicates that the distortion is virtually invisible to the human eye.
  • Black-Box Success: The method achieved a 90% success rate for untargeted black-box attacks and 33% for targeted black-box attacks—a feat the authors claim is a first for RAEs.

Limitations and Future Work

  • Targeted Attack Success: While 33% is a breakthrough for targeted black-box RAEs, it is still significantly lower than white-box or untargeted settings.
  • Computational Overhead: While the beam search reduces queries, the internal logic of tracking historical gains adds linear time complexity.
  • Future Directions: The authors intend to explore more sophisticated noise generation methods to further enhance the success rate of targeted attacks in restricted black-box environments.

Summary updated

BibTeX
@misc{zhang2023reversible,
  author = {Haodong Zhang and Chi Man Pun and Xia Du},
  title = {{Reversible Adversarial Examples with Beam Search Attack and Grayscale Invariance}},
  year = {2023},
  eprint = {2306.11322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.11322},
}
Figure