Efficient Availability Attacks against Supervised and Contrastive Learning Simultaneously

Yihan Wang, Yifan Zhu, Xiao-Shan Gao

Introduction

As the proliferation of web-scraped data fuels the rapid advancement of artificial intelligence, concerns regarding data privacy and unauthorized model training have reached a critical point. "Availability attacks"—also known as the creation of "unlearnable examples"—have emerged as a promising technical solution. By adding imperceptible, structured noise to images before they are shared online, data owners can render their datasets useless for training, effectively "poisoning" the data for unauthorized AI models while maintaining visual fidelity for human viewers.

However, existing availability attacks suffer from two primary weaknesses: they are often easily bypassed by switching training paradigms, or they are too computationally expensive to be practical. This paper introduces two novel frameworks—Augmented Unlearnable Examples (AUE) and Augmented Adversarial Poisoning (AAP)—that address these gaps, providing efficient and robust protection against both supervised and contrastive learning algorithms.

The Problem: The SL and Efficiency Gaps

Traditional availability attacks primarily target Supervised Learning (SL). These methods exploit the way models map features to labels. However, a sophisticated data collector can bypass this protection by employing Contrastive Learning (CL). CL is a self-supervised paradigm that learns meaningful representations by comparing different views of the same image without requiring labels. Because CL focuses on intrinsic feature relationships rather than label-mapping, it can often ignore the noise patterns designed to fool SL models.

While some recent attacks have been developed to target CL specifically, they face an Efficiency Gap. These methods typically involve optimizing complex contrastive loss functions (like InfoNCE) over massive data batches, making them up to 17 times slower than standard supervised attacks. This lack of efficiency prevents these protections from being applied to large-scale, real-world datasets.

Methodology: Leveraging Strong Augmentations

The core insight of this research is that the robustness of Contrastive Learning stems largely from its use of "strong" data augmentations—such as heavy color jittering, grayscaling, and random resized cropping. The authors observed that supervised training, when equipped with these same strong augmentations, can effectively mimic the behavior and feature-extraction tendencies of contrastive learning.

By leveraging this observation, the researchers developed two frameworks that utilize standard, computationally efficient supervised losses (like Cross-Entropy) while incorporating the augmentation pipelines typical of CL:

  1. Augmented Unlearnable Examples (AUE): This method follows an error-minimization framework. It generates noise by alternately updating a reference model and the perturbations to minimize loss. The inclusion of strong augmentations during this process forces the noise to interfere with the high-frequency features that CL algorithms rely on.
  2. Augmented Adversarial Poisoning (AAP): This method utilizes an error-maximization framework. It crafts adversarial perturbations against a reference model that has been pre-trained using strong augmentations, ensuring the resulting noise is robust against various learning strategies.

By avoiding the complex optimization of contrastive loss functions, AUE and AAP drastically reduce computational overhead while maintaining high levels of protection.

Experimental Results

The authors evaluated AUE and AAP across several benchmarks, including CIFAR-10, CIFAR-100, Tiny-ImageNet, and the high-resolution ImageNet-100.

Superior Protection and Scalability

On the ImageNet-100 dataset (224x224 pixels), AUE demonstrated remarkable efficacy. It reduced the "worst-case" accuracy—the highest accuracy an attacker could achieve using either SL or CL—to just 7.5%. This significantly outperforms prior supervised-based baselines which often fail when the attacker switches to a contrastive approach.

Massive Speedups

Efficiency is a primary contribution of this work. On CIFAR-10/100, AUE and AAP were found to be 3x, 6x, and 17x faster than existing contrastive-based attacks such as TUE, TP, and CP-SimCLR, respectively. This speedup makes it feasible to protect large-scale datasets that were previously too costly to process.

Transferability and Robustness

The attacks proved highly transferable across different AI architectures. Noise generated using a ResNet-18 model successfully poisoned models based on VGG-19 and MobileNet v2. Furthermore, the protection remained effective against a variety of contrastive learning frameworks, including SimCLR, MoCo, BYOL, and SimSiam, as well as semi-supervised methods like FixMatch.

Key Insights: Why It Works

The success of AUE and AAP lies in the "frequency-aware" nature of the noise generated. Contrastive learning algorithms often exploit low-frequency shortcuts to identify images. The "strong" augmentations used in these new frameworks (particularly grayscaling and jittering) squeeze these shortcuts, forcing the generated noise to occupy higher-frequency bands. Because the noise is optimized to be effective even under heavy transformation, it becomes an inseparable part of the image's representation, which the learning algorithm cannot easily ignore.

Limitations and Future Work

While AUE and AAP represent a significant step forward, the "cat-and-mouse" game of data privacy continues. Advanced defensive techniques, such as AVATAR (which uses diffusion models to "purify" images by removing noise), can still recover some model accuracy, though they do not fully negate the protection. Additionally, the effectiveness of these attacks depends on the "poisoning ratio"; if an attacker only includes a small percentage of unlearnable examples in a larger clean dataset, the overall impact is reduced.

Future research may explore extending these augmented frameworks to other data modalities, such as natural language processing or audio, where unauthorized training is an equally pressing concern.

Conclusion

AUE and AAP provide a powerful and efficient means of protecting private data from unauthorized AI training. by bridging the gap between supervised and contrastive learning through the strategic use of data augmentations, this research offers a scalable solution for "worst-case" unlearnability, ensuring that data remains private regardless of the training algorithm employed by a third party.

Summary updated

BibTeX
@inproceedings{wang2024efficient,
  author = {Yihan Wang and Yifan Zhu and Xiao-Shan Gao},
  title = {{Efficient Availability Attacks against Supervised and Contrastive Learning Simultaneously}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=FbUSCraXEB},
}
Figure