Dual-Flow: Transferable Multi-Target, Instance-Agnostic Attacks via $\textit{In-the-wild}$ Cascading Flow Optimization

Yixiao Chen, Shikun Sun, Jianshu Li, Ruoyu Li, Zhe Li, Junliang Xing

Abstract

Targeted black-box adversarial attacks represent a significant challenge for neural network robustness, particularly when attempting to transfer attacks across different architectures. Current generative methods often struggle with multi-target scenarios due to model capacity limits. We present Dual-Flow, a novel framework that treats adversarial perturbation as a controlled flow between distributions. By utilizing a pretrained diffusion model and a LoRA-based velocity function, Dual-Flow achieves state-of-the-art transferability. Our Cascading Distribution Shift Training (CDST) strategy ensures that perturbations are semantically aligned with target classes, resulting in a 34.58% success rate increase when transferring from Inception-v3 to ResNet-152.

1. Introduction

Adversarial attacks—carefully crafted inputs designed to deceive machine learning models—are vital tools for evaluating and improving model robustness. Among these, targeted black-box attacks are the most formidable: the attacker seeks to force a model they cannot access to misclassify an input into a specific, pre-defined category.

A persistent hurdle in this domain is the "transferability gap." Attacks optimized for a specific source model frequently fail when applied to a different target architecture. While "instance-agnostic" generative models (which produce perturbations for any input image) offer a potential solution, they often falter in multi-target environments. Training a single generator to accommodate hundreds of potential target classes typically exceeds the model's capacity, leading to weak adversarial features that fail to generalize to unseen victim models.

2. The Dual-Flow Framework

Dual-Flow addresses these limitations by reframing adversarial perturbation as a deterministic flow between an original image distribution and a target adversarial distribution.

2.1 Pipeline Architecture

The framework consists of two primary stages:

  1. Forward Flow: A pretrained diffusion model maps the original image into an intermediate perturbed distribution ($X_\tau$).
  2. Reverse Flow: A lightweight, fine-tuned velocity function—implemented via Low-Rank Adaptation (LoRA)—maps this intermediate state into the final adversarial image ($X_\epsilon$). This process is governed by a strict $\ell_\infty$ constraint to ensure the perturbations remain nearly invisible to human observers.

2.2 Cascading Distribution Shift Training (CDST)

Unlike standard diffusion models that rely on score-function training, Dual-Flow utilizes Cascading Distribution Shift Training. This strategy trains an adversarial velocity function to guide the Ordinary Differential Equation (ODE) trajectory. By incrementally pushing the image toward the target class at each step, the cascading mechanism allows later timesteps to refine the adversarial features established earlier, resulting in a coarse-to-fine optimization process.

2.3 Deterministic Flow vs. Stochasticity

The authors demonstrate that deterministic ODEs are superior to Stochastic Differential Equations (SDEs) for adversarial generation. While stochasticity can introduce noise that leads to distribution mismatches, the ODE provides a stable and consistent path, ensuring that the generated adversarial features are both potent and transferable.

3. Experimental Evaluation

The researchers evaluated Dual-Flow using the ImageNet training set for generator training and the ImageNet-NeurIPS (1k) and ImageNet Validation (50k) sets for testing.

3.1 Transferability and Performance

Dual-Flow establishes a new state-of-the-art for multi-target instance-agnostic attacks. In a cross-architecture test transferring from Inception-v3 to ResNet-152, Dual-Flow achieved a success rate of 77.06%, significantly outperforming the previous state-of-the-art (CGNC) at 42.48%. Similar dominance was observed across other architectures, including DenseNet, VGG, and GoogleNet.

3.2 Robustness to Defenses

A key strength of Dual-Flow is the semantic nature of its perturbations. Rather than adding high-frequency noise, the framework generates features that resemble the target class (e.g., adding textures resembling sea lion skin for a "sea lion" target). These semantically grounded perturbations are highly resistant to common defenses like JPEG compression or Gaussian smoothing. Against six robustly trained networks, Dual-Flow maintained an average success rate of 62.28%, while the baseline CGNC dropped to 28.60%.

4. Conclusion and Future Work

Dual-Flow demonstrates that flow-based optimization, combined with cascading training, can bridge the transferability gap in multi-target adversarial attacks. While the computational cost of training remains a factor (approximately 48 GPU hours), the gains in black-box success rates are substantial. Future research may explore extending this framework to other modalities such as object detection, and investigating the potential of Schrödinger bridges to better utilize stochasticity.

Summary updated

BibTeX
@inproceedings{chen2025dual,
  author = {Yixiao Chen and Shikun Sun and Jianshu Li and Ruoyu Li and Zhe Li and Junliang Xing},
  title = {{Dual-Flow: Transferable Multi-Target, Instance-Agnostic Attacks via $\textbackslash\{\}textit\{In-the-wild\}$ Cascading Flow Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=zhCv5uZ8bh},
}
Figure