Ungeneralizable Examples

Jingwen Ye, Xinchao Wang

Abstract

As deep learning models increasingly rely on massive, often non-consensual web-scraped datasets, the need for effective data protection has become paramount. Existing "unlearnable" methods offer a binary solution, rendering data useless for all potential users. This paper presents Ungeneralizable Examples (UGEs), a framework that enables conditional learnability. By adding subtle, optimized noise to datasets, UGEs allow authorized models to maintain high performance while significantly degrading the accuracy of unauthorized "hacker" models. Our approach utilizes gradient matching and feature distance losses to create a robust "lock" on data usability, providing a flexible alternative to traditional data protection strategies.

Introduction: Beyond "Scorched Earth" Privacy

The current paradigm of training deep neural networks on "free" internet data poses significant privacy and copyright risks. To counter this, researchers previously introduced Unlearnable Examples (ULEs)—images modified with imperceptible noise that prevents neural networks from learning generalizable features. However, ULEs represent a "scorched earth" policy: if the data is protected from a hacker, it is equally unusable for the legitimate data owner.

Conceptual overview of Ungeneralizable Examples (UGEs) protecting data from unauthorized hackers while remaining learnable for authorized networks.

The authors propose Ungeneralizable Examples (UGEs) to address this inflexibility. UGEs treat data usability as an access control problem, ensuring that only users with an "authorized" network architecture and initialization can extract value from the dataset.

Methodology: The UGE Framework

The core of the UGE framework is a Generator trained to produce noise that satisfies three primary objectives, represented by distinct loss functions:

  1. Gradient Matching Loss ($L_{gm}$): This ensures the authorized network remains functional. It aligns the training trajectory of the UGEs with that of the original clean data, forcing the authorized model to "see" the same underlying information.
  2. Feature Distance Loss ($L_{fd}$): To thwart unauthorized training, the system leverages a pre-trained CLIP model to shift the UGEs' features away from their original positions in the feature space. This makes the data un-generalizable to architectures that differ from the authorized one.
  3. Undistill Loss ($L_{ud}$): This defensive layer prevents "distillation attacks," where a hacker attempts to learn from the authorized model's outputs rather than the raw data.
The UGE generation pipeline, illustrating the Generator, the three loss functions (Feature Distance, Undistill, and Gradient Matching), and the divergent outcomes for Authorized vs. Hacker networks.

Experimental Evaluation

The framework was evaluated on standard computer vision benchmarks including CIFAR-10, CIFAR-100, and TinyImageNet.

Key Results

The experiments demonstrate a significant performance gap between authorized and unauthorized users:

  • Authorized Performance: On CIFAR-10, the authorized network achieved 93.89% accuracy, nearly matching the baseline of 95.05% on clean data.
  • Hacker Suppression: Unauthorized networks (e.g., standard ResNet-18 with different initializations) saw their accuracy drop to as low as 26.12% when training on the same UGEs.
  • Robustness to Distillation: The inclusion of the "Undistill Loss" proved critical. Without it, hackers could partially recover performance via distillation; with it, their accuracy remained heavily suppressed.
  • Federated Learning Utility: The framework is compatible with decentralized settings, allowing local participants to protect their data before contributing to a global model.

Discussion and Future Work

UGEs represent a shift from binary data protection to conditional access. By matching learning trajectories rather than just final outputs, the method ensures that the authorized model's optimization process remains stable.

However, challenges remain. The effectiveness of UGEs slightly decreases as the number of authorized networks grows, as it becomes harder to find a single noise pattern that satisfies multiple "locks." Future research will focus on scaling this approach to more complex tasks like object detection and exploring ensemble methods to support a wider range of authorized users.

Summary updated

BibTeX
@inproceedings{ye2024ungeneralizable,
  author = {Jingwen Ye and Xinchao Wang},
  title = {{Ungeneralizable Examples}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure