Improving Black-Box Generative Attacks via Generator Semantic Consistency

Jongoh Jeong, Hunmin Yang, Jaeseok Jeong, Kuk-Jin Yoon

TL;DR

Generative adversarial attacks are fast but often fail to transfer to unknown "black-box" models because their internal representations lose track of the target object's shape. This paper introduces SCGA, a framework that uses a "Mean Teacher" to anchor early-stage perturbations to stable semantic features, significantly boosting attack transferability across different architectures and tasks without any extra cost at inference time.

What Problem Does This Paper Address?

Adversarial attacks aim to trick AI models by adding tiny, imperceptible perturbations to images. In a black-box setting, the attacker doesn't know the target model's architecture or parameters, so they rely on "transferability"—the hope that an attack designed for a "surrogate" model will also work on the target.

There are two main ways to generate these attacks:

  1. Iterative Attacks: Highly effective but slow, as they require multiple optimization steps for every single image.
  2. Generative Attacks: Fast and scalable, using a neural network (a generator) to produce the noise in a single forward pass.

The Challenge: Current generative attacks focus almost entirely on the final output loss. The authors discovered a "semantic drift" within the generator itself: as the noise is synthesized block-by-block, it often loses the "contour" of the object and scatters into the background. This messy, object-irrelevant noise is easy for a surrogate model to see but fails to fool different models that might focus on different features.

Visual and quantitative evidence of semantic drift across generator blocks. Notice how early object-aligned features scatter into the background in later stages, and how the proposed method reduces variability.

Methods

To address this drift, the authors propose SCGA (Semantically Consistent Generative Attack), which focuses on stabilizing the generator's internal dynamics.

Overview of the SCGA framework, illustrating the Student-Teacher EMA setup and the application of consistency loss to early generator blocks.
  • Mean Teacher Framework: During training, they maintain two versions of the generator: a Student (which is actively learning) and a Teacher (whose weights are an Exponential Moving Average (EMA) of the student's). The teacher provides a "temporally smoothed" reference that is less prone to noisy, instance-specific artifacts.
  • Self-Feature Consistency Loss: They enforce a hinge-based loss that aligns the student’s early-block activations with the teacher’s. This "anchors" the perturbation to the object's edges and coarse shape.
  • Selective Guidance: They specifically target the early blocks of the generator. Their analysis showed that these blocks are the most influential for preserving object-aligned structure, while later blocks tend to add high-frequency "jitter."
  • Accidental Correction Rate (ACR): To better evaluate attacks, they introduced a new metric. Traditional metrics like Attack Success Rate (ASR) only track if you flip a correct prediction to an incorrect one. ACR tracks how often an attack "accidentally" fixes an already-wrong prediction—a sign of an unreliable or "noisy" attack.

Datasets and Evaluation

  • Source/Training: ImageNet-1K.
  • Cross-Domain Evaluation: CUB-200-2011 (Birds), Stanford Cars, and FGVC Aircraft.
  • Tasks: The method was tested across Image Classification (CLS), Semantic Segmentation (SS), and Object Detection (OD) to prove its generalizability.

Key Insights and Ideas

  • The "Where" Matters: Perturbation synthesis is a progressive process. If the generator loses the semantic "blueprint" of the object in the first few layers, the resulting attack won't generalize.
  • Smoothing as a Regularizer: The EMA teacher acts as a stabilizer. By forcing the student to match the teacher's smoothed features, the generator learns to ignore high-frequency noise that is specific to the surrogate model but useless for transfer.
  • Spectral Energy Shift: Using frequency analysis, the authors showed that SCGA increases "low-frequency" energy in early blocks. This means the attack is focusing on coarse shapes and layouts—features that almost all vision models (CNNs, Transformers, etc.) rely on.
  • Metric Blind Spots: The introduction of ACR highlights that a "successful" attack (high ASR) isn't always a "reliable" one if it's also accidentally correcting the model's existing mistakes.

Key Results

The authors integrated SCGA into several state-of-the-art generative attacks (like BIA, GAMA, and FACL) and saw consistent improvements:

  • Higher Transferability: On average, they saw an ASR boost of ~8.5% across various CNN and Transformer architectures.
  • Cross-Task Success: Attacks trained on classification transferred surprisingly well to dense tasks. For example, when augmenting the CDA baseline, they improved the "fooling" performance on Semantic Segmentation (mIoU reduction) significantly.
  • Defense Defiance: SCGA-enhanced attacks were more effective against models protected by common defenses like Adversarial Training, JPEG compression, and Bit-Depth Reduction.
  • Efficiency: Because the "Teacher" and the consistency loss are only used during training, the final attack is just as fast as any other generative attack at test time.

Limitations and Future Work

  • CLIP-based Attacks: The gains were more marginal when combined with attacks that already use CLIP (like PDCL). The authors suspect that CLIP’s high-dimensional semantic space might already provide some of this "global" consistency, potentially diluting the impact of local structural anchoring.
  • Hyperparameter Tuning: There is a slight trade-off between optimizing for pure classification accuracy versus cross-task performance (like segmentation) when choosing the consistency weight.
  • Future Direction: Exploring how this semantic anchoring could be applied to even more diverse modalities, such as video or multi-modal (Vision-Language) models.

Summary updated

BibTeX
@inproceedings{jeong2026improving,
  author = {Jongoh Jeong and Hunmin Yang and Jaeseok Jeong and Kuk-Jin Yoon},
  title = {{Improving Black-Box Generative Attacks via Generator Semantic Consistency}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=ibXhUapwcz},
}
Figure