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

Towards Transferable Targeted Attack

Maosen Li, Cheng Deng, Tengjiao Li, Junchi Yan, Xinbo Gao, Heng Huang

Abstract: Targeted adversarial attacks often fail to transfer to black-box models due to gradient stagnation and insufficient separation from the source class. This paper introduces a novel approach using hyperbolic geometry and triplet loss to enhance transferability. By employing the Poincaré distance metric, the method prevents gradient vanishing near the target class. Simultaneously, a triplet loss regularization ensures the adversarial example is pushed away from the original class while being pulled toward the target. Experimental results on ImageNet demonstrate an 8% improvement in success rates over state-of-the-art methods, particularly against adversarially trained models.

Introduction

Adversarial attacks expose vulnerabilities in Deep Neural Networks (DNNs) by introducing imperceptible perturbations that lead to misclassification. While non-targeted attacks transfer well across different architectures, targeted attacks—where the goal is to force a specific incorrect label—remain a significant challenge in black-box settings. This research identifies and addresses two fundamental flaws in current targeted attack methodologies: "noise curing" and the lack of class separation.

The Challenges of Targeted Transferability

The authors identify two primary obstacles to successful targeted transfer:

  1. Noise Curing (Gradient Stagnation): Traditional attacks using cross-entropy loss suffer from vanishing gradients as the model's confidence in the target class increases. This leads to stagnant perturbations that overfit the source model's specific geometry.
  2. Lack of Separation: Most methods focus only on approaching the target class, often leaving the adversarial example too close to the original class's decision boundary. This proximity allows target models to easily "correct" the classification back to the true label.

Methodology

To address these issues, the researchers propose two key innovations integrated into the Momentum Iterative Fast Gradient Sign Method (MI-FGSM) framework.

Poincaré Distance Metric

Instead of standard Euclidean distance or cross-entropy, the authors utilize the Poincaré ball model of hyperbolic space. In this geometry, distances grow exponentially as one approaches the boundary of the ball. This property ensures that the gradient magnitude actually increases as the adversarial example nears the target class, effectively preventing "noise curing" and maintaining perturbation diversity throughout the optimization process.

Figure 1: Geometry and distance growth in the Poincaré ball model. Subfigure (c) illustrates how the distance metric prevents gradient vanishing near the boundary.

Triplet Loss Regularization

To ensure the adversarial image effectively "leaves" its original identity, the authors incorporate Triplet Loss from metric learning. By treating the adversarial example as the anchor, the target class as the positive, and the original true class as the negative, the loss function simultaneously minimizes the distance to the target while maximizing the distance from the source. This "push-pull" dynamic forces the adversarial example deeper into the target's feature space territory.

Figure 2: t-SNE visualizations of feature embeddings. With Triplet Loss, adversarial examples (green) are pushed further from the true class (magenta) and closer to the target class (blue), enhancing transferability.

Experimental Results

The method was evaluated on an ImageNet-compatible dataset against nine state-of-the-art models, including three adversarially trained defenses. The proposed "Po+Trip" approach outperformed previous leaders (such as DI$^2$-FGSM and TI-FGSM) by an average of 8% in black-box targeted success rates. Notably, the success rate against robust models like IncRes-v2ens nearly doubled compared to standard methods, demonstrating the method's effectiveness even against specifically hardened defenses.

Conclusion

By leveraging hyperbolic geometry and metric learning, this work demonstrates that the mathematical structure of the loss function is as critical as the optimization algorithm itself. Explicitly moving away from the ground truth while approaching the target is essential for generating robust, transferable targeted adversarial examples. Future work may explore other hyperbolic models, such as the Lorentz model, to further refine these dynamics.

Summary updated

BibTeX
@inproceedings{li2020towards,
  author = {Maosen Li and Cheng Deng and Tengjiao Li and Junchi Yan and Xinbo Gao and Heng Huang},
  title = {{Towards Transferable Targeted Attack}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00072},
}
Figure