DTA: distribution transform-based attack for query-limited scenario

Renyang Liu, Wei Zhou, Xin Jin, Song Gao, Yuanyu Wang, Ruxin Wang

Abstract

Adversarial attacks on Deep Neural Networks (DNNs) typically require extensive querying of target models, which is impractical in real-world black-box settings. We present Distribution Transform-based Attack (DTA), a generative approach using conditional normalizing flows to map benign images to an adversarial distribution. DTA enables the generation of successful adversarial examples in as few as one query, demonstrating high transferability and efficiency across diverse datasets and architectures.

Introduction: The Challenge of Black-Box Attacks

Deep Neural Networks (DNNs) are vulnerable to adversarial examples—inputs with human-imperceptible perturbations that trigger misclassifications. Most existing black-box attacks rely on iterative optimization, requiring thousands of queries to estimate gradients. This is often unfeasible in real-world Machine Learning as a Service (MLaaS) environments, where platforms may only provide hard labels and security systems monitor for high-frequency query patterns. There is a critical need for query-limited attacks that are both efficient and stealthy.

Methods: Adversarial Attack as Distribution Transformation

DTA redefines the adversarial attack problem. Instead of treating it as an optimization task, DTA views it as a distribution transformation problem.

The DTA Framework

The core of DTA is a generative model based on the GLOW architecture, utilizing Conditional Normalizing Flows (CNF). Normalizing flows are fully reversible, allowing for the mapping of complex adversarial image distributions to a simple Gaussian latent space and vice versa.

Overview of the DTA framework showing the transformation from original space to generated adversarial space via a conditional flow model.

Architecture and Training

The model is conditioned on high-level features of the benign image, extracted via a pre-trained VGG-19 network, to ensure the generated adversarial image retains the visual characteristics of the original.

Detailed architecture of the conditional flow steps, including affine coupling, convolutional layers, and squeezing/splitting operations.

The training pipeline involves collecting an offline dataset of adversarial examples generated via white-box attacks (e.g., PGD). The CNF is then trained to map these examples to a latent space by maximizing the likelihood of the adversarial distribution. A key technical contribution is the use of a "shifted" latent space; by calculating the empirical mean and standard deviation of the training data in the latent space, DTA samples more effective noise during inference.

Key Results and Insights

DTA was evaluated on CIFAR-10, SVHN, and ImageNet, as well as several "unseen" datasets like VOC and Caltech101.

  • Query Efficiency: DTA achieved a median query count of 1 on CIFAR-10. In contrast, optimization-based methods like Sign-OPT often require hundreds of queries.
  • Attack Success Rate (ASR): With a budget of 100 queries, DTA maintained an ASR of 75-86% on CIFAR-10, significantly outperforming competitors that stayed below 40%.
  • Semantic and Architectural Independence: A model trained on ImageNet successfully attacked models trained on VOC, suggesting the learning of a general "vulnerability mapping." Furthermore, DTA successfully fooled Vision Transformers (ViTs) despite being trained on CNN-generated data.
  • Robustness to Defense: DTA maintained a success rate of 11-15% against adversarially trained models, where baseline black-box attacks typically failed (0.7-5%).

Conclusion

DTA demonstrates that adversarial examples follow a learnable statistical distribution. By leveraging conditional normalizing flows, DTA achieves unprecedented query efficiency and cross-model transferability. While it currently depends on white-box "teachers" for initial training, it represents a significant step toward practical, query-limited adversarial testing in black-box environments.

Summary updated

BibTeX
@article{liu2024dta,
  author = {Renyang Liu and Wei Zhou and Xin Jin and Song Gao and Yuanyu Wang and Ruxin Wang},
  title = {{DTA: distribution transform-based attack for query-limited scenario}},
  journal = {cybersecur.},
  year = {2024},
  doi = {10.1186/s42400-023-00197-2},
}
Figure