Adversarially Robust Generalization Just Requires More Unlabeled Data

Runtian Zhai, Tianle Cai, Di He, Chen Dan, Kun He, John E. Hopcroft, Liwei WangarXiv 2019

Abstract

Achieving adversarial robustness in deep learning typically demands a much larger volume of labeled data than standard training, posing a significant barrier to practical deployment. This paper demonstrates that this "robustness gap" can be effectively bridged using unlabeled data. By decomposing robust risk into accuracy and stability, we show that unlabeled data can be leveraged to learn stability, even when labels are scarce. Our proposed semi-supervised adversarial training algorithm achieves significant gains on MNIST and CIFAR-10, proving that robust generalization is accessible through the abundance of unlabeled data.

Introduction

Deep neural networks are notoriously fragile, often failing when presented with adversarial examples—small, human-imperceptible perturbations designed to cause misclassification. While adversarial training (AT) is a primary defense, it is significantly more data-hungry than standard training. Previous research suggested that robust generalization is fundamentally harder, requiring a sample complexity that scales with input dimensionality. This paper challenges that notion by exploring whether the abundance of unlabeled data can substitute for expensive labels in building robust models.

Methodology

The core insight of this work is a risk decomposition framework. Robust risk—the probability of a model failing under attack—is split into two distinct components:

  1. Accuracy: The ability to predict the correct label on clean data, which fundamentally requires labeled data.
  2. Stability: The consistency of the model's predictions under small input perturbations, which can be learned entirely from unlabeled data.

The Algorithm: Generalized VAT

Building on this, the authors propose a semi-supervised adversarial training algorithm that minimizes a weighted sum of a supervised loss (standard AT on labeled data) and an unlabeled consistency loss. Crucially, unlike original Virtual Adversarial Training (VAT) which uses a single-step attack, this method employs a multi-step Projected Gradient Descent (PGD) attack in the inner loop to ensure the stability learned is robust against strong adversaries.

Theoretical Foundations

Using a high-dimensional Gaussian mixture model, the authors prove that while robust generalization normally requires $O(\sqrt{d})$ labeled samples (where $d$ is the dimension), it can be achieved with just a single labeled sample if $O(d)$ unlabeled samples are available. This suggests that unlabeled data can theoretically make robust learning as label-efficient as standard learning.

Empirical Results

The approach was evaluated on MNIST and CIFAR-10, simulating semi-supervised environments with limited labeled subsets (5k or 10k samples).

MNIST Performance

On MNIST, the proposed method consistently improved robust test accuracy ($RA_{test}$) and the Defense Success Rate (DSR) compared to standard adversarial training on the same labeled subset. Even with limited labels, the model achieved over 97% robust accuracy.

Performance on MNIST dataset across different labeled data sizes and hyperparameters.

CIFAR-10 and the Importance of Attack Strength

The impact was even more pronounced on CIFAR-10. With 10k labels, the method increased robust test accuracy from 37.48% to 42.48%. A key finding was the necessity of strong attacks on unlabeled data; using a single-step attack ($k=1$) led to a total collapse in robustness ($RA_{test} \approx 0.12\%$), whereas $k=7$ steps provided significant gains.

Performance on CIFAR-10 dataset, including an ablation study on the number of attack steps (k).

Conclusion

This work provides a path forward for building secure AI in label-scarce regimes. By showing that stability is label-agnostic, we can leverage massive unlabeled datasets to bridge the robustness gap. While challenges remain in optimizing these models for complex real-world distributions, the results confirm that unlabeled data is a powerful tool for achieving adversarially robust generalization.

Summary updated

BibTeX
@misc{zhai2019adversarially,
  author = {Runtian Zhai and Tianle Cai and Di He and Chen Dan and Kun He and John E. Hopcroft and Liwei Wang},
  title = {{Adversarially Robust Generalization Just Requires More Unlabeled Data}},
  year = {2019},
  eprint = {1906.00555},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.00555},
}
Figure