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

Effective Targeted Attacks for Adversarial Self-Supervised Learning

Minseon Kim, Hyeonjeong Ha, Sooel Son, Sung Ju Hwang

TL;DR

Adversarial training without labels often fails because simple "untargeted" attacks produce weak examples that fail to challenge the model's decision boundaries. This paper introduces TARO (Targeted Attack for RObust SSL), a method that identifies "confusing yet similar" target images to guide adversarial perturbations. This approach significantly boosts the robustness of self-supervised models, especially those that do not rely on negative pairs.

What Problem Does This Paper Address?

Deep neural networks are notoriously fragile, often fooled by imperceptible "adversarial" noise. While we can train models to be robust using labeled data (Supervised Adversarial Training), doing so in a Self-Supervised Learning (SSL) setting—where no labels are available—is much harder.

Current unsupervised adversarial training methods typically use "untargeted" attacks. They simply try to make the representation of an image as different as possible from its augmented twin. The authors point out a major flaw with this approach: in "positive-pair only" SSL frameworks (like SimSiam or BYOL), maximizing this distance often pushes the image into random, empty areas of the latent space. This results in "ineffective adversaries" that do not actually help the model learn better decision boundaries, leading to poor robustness.

Comparison of untargeted vs. targeted adversarial attacks in positive-only SSL.

Methods: Targeted Attack for Robust SSL (TARO)

To address the generation of ineffective adversaries, the authors propose TARO. Instead of just moving away from the original image, TARO moves the image toward a specific, difficult target.

The key innovation is the Target Selection Algorithm, which picks a target image ($x'$) from the current batch based on two criteria:

  1. Similarity: The target should be visually or semantically similar to the original image (measured by high cosine similarity).
  2. Entropy (Confusion): The target should be an image the model is currently "confused" about (indicated by high entropy in its predicted distribution).

By perturbing an image to look more like a "confusing neighbor," the attack forces the model to learn the subtle features that distinguish similar but distinct concepts. The authors provide theoretical backing to show that this targeted approach creates a much wider and more effective range of perturbations than standard untargeted SSL attacks.

Key Insights and Ideas

  • The "Lazy" Attack Problem: In non-contrastive SSL, untargeted attacks are "lazy." Because there are no negative samples to provide a "floor" or boundary, the attack can satisfy the loss-maximization objective by just adding random noise. This fails to help the model grow stronger.
  • Targeted Attacks as Positive Mining: By selecting a target that is similar but confusing, TARO essentially performs "hard positive mining" without needing labels. It automatically finds the "decision boundaries" of the latent space.
  • Semantic Alignment: Analysis showed that TARO naturally selects targets from semantically related classes. For example, when the base image is an "airplane," the algorithm frequently selects "ships" or "birds" as targets—the exact classes a supervised model (or a human) might find confusing.

Key Results

The researchers evaluated their method on standard computer vision benchmarks (CIFAR-10, CIFAR-100, and STL-10) across various SSL architectures. TARO demonstrated impressive gains in adversarial robustness, measured by PGD and AutoAttack accuracy.

Robustness evaluation showing massive gains for BYOL and SimSiam using the proposed method.
  • Massive Gains for Non-Contrastive SSL: On CIFAR-10, applying TARO to BYOL increased its robust accuracy from a dismal 27.24% to 40.84% under PGD attacks, and from 4.49% to 29.91% under AutoAttack.
  • Improvements for SimSiam: Robustness improved from 37.84% to 45.57% (PGD).
  • Consistency Across Frameworks: Even in contrastive frameworks (which are already more robust due to the presence of negative pairs), TARO provided consistent improvements. For RoCL, PGD robustness increased from 42.89% to 45.37% without sacrificing clean (non-attacked) accuracy.
  • Transferability: Models trained with TARO on one dataset (CIFAR-100) showed better "robust transfer" when evaluated on another (CIFAR-10) compared to previous methods.

Limitations and Future Work

  • Computational Overhead: Selecting the optimal target for every image in a batch requires extra calculations. However, the authors note this adds less than 5% to the total training time.
  • Heuristic Selection: The score function (combining entropy and similarity) is based on empirical observations. Future work could explore more theoretically grounded ways to identify "optimal" targets in high-dimensional space.
  • Scaling to ImageNet: While the results on CIFAR and STL-10 are strong, the effectiveness of this specific target-mining strategy on massive, million-image datasets like ImageNet remains a direction for future validation.

Summary updated

BibTeX
@inproceedings{kim2023effective,
  author = {Minseon Kim and Hyeonjeong Ha and Sooel Son and Sung Ju Hwang},
  title = {{Effective Targeted Attacks for Adversarial Self-Supervised Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=2f0dlMZlNb},
}
Figure