Adversarial Unlearning: Reducing Confidence Along Adversarial Directions

Amrith Setlur, Benjamin Eysenbach, Virginia Smith, Sergey Levine

Abstract

Deep neural networks often overfit to spurious features—patterns in training data that correlate with labels but do not generalize to real-world distributions. We propose Reducing Confidence along Adversarial Directions (RCAD), a simple regularization technique designed to mitigate this overfitting. RCAD identifies directions of maximum loss and, unlike standard adversarial training, applies a large step size to move images far out-of-distribution. The model is then trained to maximize predictive entropy on these noisy samples, effectively "unlearning" the spurious features that define these adversarial directions. Our results across 24 scenarios, including image classification and regression, show consistent performance improvements of 1–3%, with particularly strong gains in low-data regimes.

Introduction

Deep learning models are notorious for memorizing "spurious features," such as specific background textures that happen to correlate with a class label in the training set. While standard regularization techniques like data augmentation or label smoothing attempt to improve generalization, they do not explicitly target the specific directions in which a model is most prone to error. Adversarial training addresses this by enforcing robustness to small perturbations, but often at the expense of "clean" test accuracy. This work introduces RCAD to leverage adversarial directions for improved general performance without the typical accuracy trade-off.

Methodology

RCAD combines adversarial perturbation with entropy maximization through a two-step process:

  1. Large-Step Adversarial Generation: For a given training image, the method calculates the gradient of the loss to find the direction that most increases uncertainty. While standard adversarial training uses minimal perturbations to maintain the image's visual identity, RCAD employs a step size approximately 10x larger. This pushes the image far out-of-distribution (OOD), creating a noisy version that no longer resembles the original class.
  2. Predictive Entropy Maximization: Rather than forcing the model to maintain the original label prediction (as in adversarial training), RCAD encourages the model to be uncertain. A term is added to the loss function that maximizes predictive entropy on these self-generated noisy images.

By forcing uncertainty on these amplified noise directions, the model learns to ignore the underlying spurious features, effectively "unlearning" the noise that leads to overfitting.

Visualizing the conceptual difference between standard adversarial training and RCAD regularization, along with primary test accuracy results on CIFAR-100 and Tiny ImageNet.

Experimental Evaluation

RCAD was evaluated across a diverse set of benchmarks, including CIFAR-10/100, SVHN, Tiny ImageNet, and various regression tasks from the UCI repository.

Key Results

  • Generalization Performance: RCAD improved test accuracy in 22 out of 24 tested scenarios, typically providing a 1–3% absolute increase. It consistently outperformed other adversarial-based methods like ME-ADA and FGSM.
  • Low-Data Regimes: The benefits are most pronounced when data is scarce. For instance, on a sub-sampled CIFAR-100 dataset (2,000 images), adding RCAD to label smoothing resulted in a ~3% performance boost.
  • Complementary Gains: RCAD is not intended to replace existing regularizers like MixUp or Label Smoothing. Instead, it targets adversarial directions specifically, providing additive performance gains when combined with these methods.
RCAD consistently improves performance when added to various base regularization methods on Tiny ImageNet.

Discussion and Limitations

While RCAD offers significant accuracy improvements, it introduces a computational overhead of approximately 30% due to the extra gradient calculation per batch. Additionally, the method requires tuning two hyperparameters: the step size ($\alpha$) and the regularization weight ($\lambda$).

Theoretical analysis currently demonstrates that RCAD monotonically decreases the weights of noisy dimensions in linear models. Future work will focus on extending these proofs to deep, non-linear neural networks to further ground the empirical success of adversarial unlearning.

Summary updated

BibTeX
@inproceedings{setlur2022adversarial,
  author = {Amrith Setlur and Benjamin Eysenbach and Virginia Smith and Sergey Levine},
  title = {{Adversarial Unlearning: Reducing Confidence Along Adversarial Directions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=O35JUqQpnpG},
}
Figure