Abstract
While the transferability property of adversarial examples allows the adversary to perform black-box attacks (i.e., the attacker has no knowledge about the target model), the transfer-based adversarial attacks have gained great attention. Previous works mostly study gradient variation or image transformations to amplify the distortion on critical parts of inputs. These methods can work on transferring across models with limited differences, i.e., from CNNs to CNNs, but always fail in transferring across models with wide differences, such as from CNNs to ViTs. Alternatively, model ensemble adversarial attacks are proposed to fuse outputs from surrogate models with diverse architectures to get an ensemble loss, making the generated adversarial example more likely to transfer to other models as it can fool multiple models concurrently. However, existing ensemble attacks simply fuse the outputs of the surrogate models evenly, thus are not efficacious to capture and amplify the intrinsic transfer information of adversarial examples. In this paper, we propose an adaptive ensemble attack, dubbed AdaEA, to adaptively control the fusion of the outputs from each model, via monitoring the discrepancy ratio of their contributions towards the adversarial objective. Furthermore, an extra disparity-reduced filter is introduced to further synchronize the update direction. As a result, we achieve considerable improvement over the existing ensemble attacks on various datasets, and the proposed AdaEA can also boost existing transfer-based attacks, which further demonstrates its efficacy and versatility.
1. Introduction
Adversarial transferability is a critical vulnerability in deep learning, enabling black-box attacks where an adversary crafts perturbations on a known surrogate model to fool an unknown target. However, a significant "transferability gap" exists between different neural architectures. While attacks transfer relatively well between similar Convolutional Neural Networks (CNNs), they often fail when targeting Vision Transformers (ViTs). This failure is largely due to the different internal representations and gradient directions inherent to these distinct architectures.
Existing ensemble-based attacks attempt to mitigate this by combining multiple surrogate models. However, standard approaches typically use a simple uniform average of model outputs. This "lowest common denominator" strategy often washes out the most effective adversarial information and fails to account for the varying contributions of different models to the overall attack success.
2. The AdaEA Framework
To address these limitations, we propose AdaEA (Adaptive Model Ensemble Adversarial Attack). AdaEA moves beyond static averaging by dynamically adjusting the influence of each surrogate model during the iterative attack process.
2.1 Adaptive Gradient Modulation (AGM)
AGM introduces a dynamic weighting mechanism. In each iteration, the algorithm calculates an "adversarial ratio" for each surrogate model. This ratio measures how effectively a specific model's gradient contributes to the collective adversarial objective. Models that demonstrate higher transferability within the ensemble are assigned greater weights, thereby amplifying the intrinsic transfer information that is most likely to fool a diverse set of target models.
2.2 Disparity-Reduced Filter (DRF)
Surrogate models with diverse architectures often produce conflicting gradient directions, leading to "noisy" updates that overfit to specific surrogate quirks. The DRF uses cosine similarity to analyze the gradient landscape across the ensemble. It identifies regions of high disparity—where models disagree on the direction of the attack—and filters these out. This ensures that the final perturbation follows a synchronized, more "universal" direction that is robust across different model families.
3. Experimental Results
We evaluated AdaEA on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet, testing against a variety of target architectures such as ResNet, BiT, ViT, DeiT, and Swin Transformers.
As shown in the results table, AdaEA consistently outperforms existing ensemble methods like Ens and SVRE. Notably, when integrated with standard iterative attacks like I-FGSM or MI-FGSM, AdaEA provides a substantial performance boost. For instance, on the FGSM base, AdaEA improved the average Attack Success Rate (ASR) by +24.12% compared to the baseline ensemble.
Our findings also highlight that ViTs often serve as stronger surrogate models than CNNs. Attacks generated from ViT-heavy ensembles tend to transfer more effectively to CNN targets than vice versa, likely due to the global modeling capabilities of Transformers which capture more generic adversarial features.
4. Conclusion
AdaEA effectively bridges the architectural divide in adversarial transferability. By adaptively modulating gradients and filtering out directional disparities, it generates perturbations that are significantly more potent against black-box targets. Future work will focus on reducing the computational overhead of the AGM process and extending this adaptive ensemble strategy to non-vision domains such as natural language processing.
Summary updated