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

Enhancing self-supervised visual representation learning through adversarially generated examples

Mintae Kang, Junmo KimNeural Computing and Applications 2025

Abstract

Self-supervised learning (SSL) has significantly advanced computer vision by enabling feature learning from unlabeled data, primarily through contrastive learning with random augmentations. However, fixed augmentations often fail to adapt to the model's evolving complexity. This paper introduces a novel framework that employs a Generative Adversarial Network (GAN) to create "hard" training examples. By forcing SSL models to reconcile standard images with these adversarially perturbed versions, the authors achieve significant gains in classification accuracy and robustness across popular architectures like SimCLR, BYOL, and SimSiam.

Introduction

Self-supervised learning (SSL) allows models to learn rich features from unlabeled data by ensuring that different "views" or augmentations of the same image have similar representations in latent space. Traditionally, these views are generated using fixed, random transformations such as cropping, color jittering, or blurring. While effective, these "blind" augmentations do not adapt to the model's learning progress. As training proceeds, these random tweaks become too easy for the model, leading to a plateau in feature quality. This paper addresses the challenge of generating augmentations specifically designed to challenge the model's current understanding of an image.

The Proposed Framework

The authors propose a two-part framework consisting of a Generative Network and a Self-Supervised Network. This architecture transforms the augmentation process into a competitive dynamic where the generator learns to produce views that are difficult for the SSL learner to process.

Overview of the proposed framework, illustrating the interaction between the Generative Network (G, D) and the Self-Supervised Network (S).

The framework is designed to be "plug-and-play," integrating seamlessly with major SSL architectures:

  • SimCLR: Adversarial views are added to the contrastive cross-entropy loss.
  • BYOL: Adversarial views are incorporated into the mean squared error regression between online and target networks.
  • SimSiam: Adversarial views are used within the stop-gradient siamese architecture.

Adversarial Generation Mechanism

The core of the approach is the Adversarial Generator. Instead of simple filters, a GAN is trained to produce a third view of an image ($\tilde{v}_i$). This generator is guided by three distinct loss functions to ensure the generated examples are both challenging and semantically meaningful.

Detailed view of the adversarial generation process, highlighting the use of Sobel filters and the various loss functions ($L_{Edge}, L_{GAN}, L_{Dissim}$).
  1. $L_{Dissim}$ (Dissimilarity Loss): This is the "adversarial" component. It encourages the generator to produce images whose features in the SSL model's latent space are as different as possible from the original.
  2. $L_{Edge}$ (Edge Loss): To prevent the generator from creating unrecognizable noise, it utilizes Sobel filters and Structural Similarity Index (SSIM) loss. This ensures the basic shapes and edges of the original object remain intact.
  3. $L_{GAN}$ (GAN Loss): A standard discriminator ensures the generated images remain within the distribution of plausible data.

Experimental Results

The framework was evaluated on three standard benchmarks: CIFAR-10, CIFAR-100, and Tiny ImageNet. Success was measured using linear probing, where learned features are frozen and a simple classifier is trained on top.

The proposed method consistently outperformed baselines across all test cases. Notably, in SimSiam on CIFAR-100, accuracy increased by 3.79% (from 54.95% to 58.74%) at 500 epochs. On CIFAR-10, the BYOL-based setup reached a peak accuracy of 91.25%. These results suggest that forcing the model to find deeper, more invariant features that the generator cannot easily disrupt leads to more robust representation learning.

Conclusion and Future Work

By treating augmentation as a competitive game, this research demonstrates that adversarial examples can significantly boost the performance of existing SSL algorithms. The method's universal compatibility across SimCLR, BYOL, and SimSiam highlights its potential as a general-purpose tool.

However, challenges remain. The computational overhead of training a GAN alongside the SSL model is non-trivial. Future work should focus on scaling these experiments to larger datasets like ImageNet-1K and exploring whether these adversarially-learned features improve performance in downstream tasks like object detection or semantic segmentation. Additionally, expanding the generator to include geometric attacks, such as rotations or warping, could provide even more rigorous training signals.

Summary updated

BibTeX
@article{kang2025enhancing,
  author = {Mintae Kang and Junmo Kim},
  title = {{Enhancing self-supervised visual representation learning through adversarially generated examples}},
  journal = {Neural Computing and Applications},
  year = {2025},
  doi = {10.1007/s00521-025-11236-z},
}
Figure