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

FACL-Attack: Frequency-Aware Contrastive Learning for Transferable Adversarial Attacks

Hunmin Yang, Jongoh Jeong, Kuk-Jin Yoon

Abstract

Deep neural networks are known to be vulnerable to security risks due to the inherent transferable nature of adversarial examples. Despite the success of recent generative model-based attacks demonstrating strong transferability, it still remains a challenge to design an efficient attack strategy in a real-world strict black-box setting, where both the target domain and model architectures are unknown. In this paper, we seek to explore a feature contrastive approach in the frequency domain to generate adversarial examples that are robust in both cross-domain and cross-model settings. With that goal in mind, we propose two modules that are only employed during the training phase: a Frequency-Aware Domain Randomization (FADR) module to randomize domain-variant low- and high-range frequency components and a Frequency-Augmented Contrastive Learning (FACL) module to effectively separate domain-invariant mid-frequency features of clean and perturbed image. We demonstrate strong transferability of our generated adversarial perturbations through extensive cross-domain and cross-model experiments, while keeping the inference time complexity.

Introduction

Deep neural networks (DNNs) are notoriously vulnerable to adversarial attacks—subtle, often invisible perturbations added to an image that cause a model to misclassify it. However, most attacks suffer from a "transferability" problem: an attack that fools one model might fail against another, or an attack trained on one data distribution might fail when applied to another.

This research addresses the strict black-box setting, where the attacker has zero knowledge of the target model’s architecture and no access to the specific data distribution the target was trained on. Most existing methods overfit to the "surrogate" model used during training, making them brittle in real-world applications. FACL-Attack aims to identify "universal" features that all models rely on, making the attack robust across both different models and different domains.

Methodology

The core innovation of FACL-Attack lies in the frequency domain. Using the Discrete Cosine Transform (DCT), images are decomposed into low, mid, and high-frequency components. The authors argue that mid-frequencies contain structural information (like shape) that is "domain-invariant," while low and high frequencies contain "domain-variant" details (like lighting or fine textures).

Overview of the FACL-Attack training and inference framework.

The framework introduces two key modules used during the training of an adversarial generator:

  1. Frequency-Aware Domain Randomization (FADR): This module randomizes the low and high-frequency components of input images during training. This prevents the generator from relying on "fickle" features like specific color schemes or textures, forcing it to focus on more stable mid-frequency structures.
  2. Frequency-Augmented Contrastive Learning (FACL): This specialized loss function uses a "push-pull" mechanism. It pulls the mid-frequency features of the adversarial image closer to the clean image to ensure the attack targets core structural features, while pushing the low and high-frequency features away.

This approach is "plug-and-play," improving existing generative attack frameworks without increasing inference time.

Frequency-Aware Design Intuition

The most critical insight of this work is identifying the mid-frequency "sweet spot" for transferability. Low frequencies are often too tied to specific lighting or color conditions, and high frequencies are too tied to specific camera noise or textures. In contrast, shapes and structures—captured in the mid-frequencies—are what almost all vision models use to identify objects.

Band-specific characteristics in the frequency domain.

By intentionally "breaking" the color and texture of training images via FADR, the generator learns to ignore domain-variant noise and focus on the invariant signals that matter for a successful cross-model attack.

Experimental Results

The researchers conducted extensive experiments using ImageNet-1K for training and evaluated cross-domain transferability on CUB-200-2011 (birds), Stanford Cars, and FGVC Aircraft. Using VGG-16 as the surrogate model, they tested against victim models including ResNet-50, ResNet-152, DenseNet, SENet, and Inception-v3.

FACL-Attack achieved state-of-the-art results:

  • Cross-Domain Success: On the CUB-200 dataset, FACL-Attack reduced ResNet-50 accuracy to 24.74%, significantly lower than the previous best method, BIA (32.74%).
  • Cross-Model Robustness: Against an Inception-v3 model, FACL-Attack achieved a victim accuracy of 29.97%, outperforming BIA's 41.20%.
  • Visual Quality: Adversarial images remained high-quality. Quantitative tests (SSIM and PSNR) showed that FACL-Attack produced images visually similar to the originals while maintaining high attack effectiveness.

Conclusion

FACL-Attack demonstrates that frequency-aware contrastive learning can significantly enhance the transferability of adversarial examples in strict black-box settings. By focusing on domain-invariant mid-frequency features, the method provides a robust and efficient attack strategy. Future work could extend this approach to more complex tasks like object detection or image segmentation, where structural information is even more critical.

Summary updated

BibTeX
@inproceedings{yang2024facl,
  author = {Hunmin Yang and Jongoh Jeong and Kuk-Jin Yoon},
  title = {{FACL-Attack: Frequency-Aware Contrastive Learning for Transferable Adversarial Attacks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=zUb5DfrKsA},
}
Figure