A Direct Approach to Robust Deep Learning Using Adversarial Networks

Huaxia Wang, Chun-Nam YuICLR 2019

This paper presents a novel approach to hardening deep neural networks against adversarial attacks by turning the training process into a high-stakes sparring match between two neural networks. By framing adversarial defense as a minimax game, the authors create models that are significantly more robust to black-box attacks while maintaining higher accuracy on clean data compared to traditional adversarial training methods.

The Problem with Deep Neural Networks

Deep Neural Networks (DNNs) are notoriously brittle. A tiny, human-imperceptible change to an image—known as an adversarial perturbation—can trick a world-class classifier into misidentifying a "panda" as a "gibbon" with high confidence.

Existing defenses typically fall into two camps:

  1. Adversarial Training: Augmenting the training set with adversarial examples generated on the fly (e.g., using Projected Gradient Descent or PGD). While effective, this often significantly degrades the model's performance on normal, "clean" images.
  2. Denoising/GAN-based Defense: Using a Generative Adversarial Network (GAN) to "clean" an image before it reaches the classifier. These pipelines can be complex and often fail if the attacker understands how the "cleaner" works.

The authors identify a critical gap: can we use the power of GANs not to clean the data, but to directly train a more resilient classifier by modeling the adversary itself as a neural network?

Proposed Methodology

The researchers treat the defense mechanism as a GAN problem. In a standard GAN, a generator tries to create realistic images to fool a discriminator. Here, the roles are adapted for adversarial robustness:

  • The Generative Network ($G$): Its job is to take an original image and produce an additive "noise" layer (adversarial perturbation). Its goal is to maximize the classifier's error.
  • The Discriminative Network ($D$): This is the actual classifier we want to protect. Its goal is to correctly classify both the original "clean" image and the "perturbed" image created by the generator.
Architecture of the proposed adversarial network training framework.

They solve a minimax objective: the classifier tries to minimize classification loss, while the generator tries to maximize it.

The "Secret Sauce" for Stability: Training GANs is notoriously unstable, often suffering from a "zigzagging" problem where the two networks fail to converge. To fix this, the authors implemented two key techniques:

  1. Gradient Regularization: They added a penalty term to the loss function that prevents the gradients from exploding, ensuring the "sparring match" remains stable.
  2. Update Imbalance: For every one update to the classifier, they perform five updates to the generator. This ensures the "attacker" is always strong enough to adequately challenge the "defender."

Key Insights

  • The "Direct" Advantage: Unlike defenses that try to project images back onto a "safe" manifold, this method forces the classifier to learn features that are inherently resistant to the types of noise a neural network can generate.
  • Black-Box Superiority: The method excels against "black-box" attacks (where the attacker doesn't know the model's internal parameters). Because the generator learns a general distribution of effective noise rather than just a specific mathematical direction, the resulting classifier is harder to fool with transferred attacks.
  • The Capacity Trade-off: The authors found that a "wider" generator (more filters) makes for a much more powerful attacker, which in turn forces the classifier to become even more robust.
  • Clean Accuracy Preservation: One of the most significant achievements of this method is that it does not degrade performance on normal images as severely as PGD-based adversarial training does.

Key Results

The authors evaluated their approach on standard computer vision benchmarks, including MNIST, SVHN, CIFAR-10, and CIFAR-100.

Accuracy results on the CIFAR-10 dataset under various attack scenarios.
  • CIFAR-10 Performance: As shown in the results, the "Adversarial Network" approach maintained a 91.08% accuracy on clean images (No Noise). In stark contrast, standard PGD adversarial training dropped clean accuracy to 75.30%.
  • Robustness: Against black-box attacks on MNIST, the proposed method achieved over 95% accuracy, performing on par with or better than state-of-the-art ensemble adversarial training.
  • Transferability: Adversarial examples generated by their trained GAN were highly effective at fooling other undefended models, proving the generator successfully learned a "universal" language of adversarial noise.

Limitations and Future Work

While promising, the approach has a few limitations:

  • White-Box Gap: While excellent against black-box attacks, the method still lags slightly behind PGD-based training when facing a "white-box" attacker who has full access to the model's gradients.
  • Scaling: The experiments were limited to relatively small images (up to 32x32). Scaling this minimax training to high-resolution datasets like ImageNet remains a significant challenge for future research.
  • Architecture Sensitivity: The quality of the defense is highly dependent on the architecture of the generator. Finding the "optimal" attacker for a given classifier remains an open question.

Summary updated

BibTeX
@inproceedings{wang2019direct,
  author = {Huaxia Wang and Chun-Nam Yu},
  title = {{A Direct Approach to Robust Deep Learning Using Adversarial Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
}
Figure