MixTrain: Scalable Training of Formally Robust Neural Networks

Shiqi Wang, Yizheng Chen, Ahmed Abdou, Suman JanaarXiv 2018

Neural networks are notoriously brittle. A tiny, imperceptible change to an image—an "adversarial perturbation"—can cause a state-of-the-art model to misclassify a stop sign as a speed limit sign. While adversarial training has been the standard defense, it often results in a cat-and-mouse game where new attacks quickly circumvent existing defenses.

In "MixTrain: Scalable Training of Verifiably Robust Neural Networks," researchers from Columbia University and Penn State University propose a framework that moves beyond this arms race. MixTrain provides formal guarantees of robustness while drastically reducing the computational and memory costs that previously made such guarantees impractical for large-scale models.

The Challenge of Verifiable Robustness

Building robust models typically follows one of two paths:

  1. Adversarially Robust Training: Models are trained against specific attacks (e.g., Projected Gradient Descent or PGD). This is relatively fast but only protects against known attack classes.
  2. Verifiably Robust Training: Mathematical "sound over-approximations" ensure that no perturbation within a defined limit can alter the model's output.

Historically, verifiable training has been prohibitively expensive, requiring hundreds of times more computation and thousands of times more memory than standard training. Consequently, formal robustness was largely confined to small, "toy" networks. Furthermore, a significant trade-off exists: increasing verifiable robustness often leads to a sharp decline in standard test accuracy.

The MixTrain Framework

MixTrain addresses these bottlenecks through two primary technical innovations:

1. Stochastic Robust Approximation

Traditional methods calculate expensive "sound" bounds for every data point in a training set. The authors observed that the training process only requires a representative sample to be effectively guided. By randomly subsampling the data used for the robust loss component, MixTrain reduces computational overhead by an order of magnitude without compromising the final model's certifiable safety.

2. Dynamic Mixed Training

To balance the conflict between accuracy and robustness, MixTrain employs a weighted loss function: $$L_{mixed} = (1-\alpha)L_{regular} + \alpha L_{robust}$$ Unlike static approaches, MixTrain updates $\alpha$ dynamically every epoch. If standard accuracy is high, the system increases $\alpha$ to prioritize robustness; if accuracy falls below a target threshold, it lowers $\alpha$ to recover standard performance.

Uncovering Hidden Vulnerabilities: The Interval Attack

A key contribution of the paper is the introduction of the Interval Attack. Standard gradient-based attacks like PGD often fail to find the global maximum of the loss function because they get trapped in local optima where the gradient is zero.

Comparison between PGD attack and the proposed Interval attack. PGD can get stuck at local maxima ($g=0$), whereas the Interval attack uses interval gradients ($g_I$) to find higher loss violations ($l_2$).

The Interval Attack utilizes interval gradients to explore the space more effectively, identifying "hidden" vulnerabilities that standard attacks miss. In empirical tests, this new attack increased success rates by up to 40% against models previously deemed "adversarially robust."

Experimental Results and Scaling

The researchers evaluated MixTrain on MNIST, CIFAR-10, and ImageNet-200. The results demonstrate a significant leap in efficiency and performance:

  • Speed and Memory: MixTrain is 15x faster than previous state-of-the-art verifiable training methods and 3x faster than standard adversarial training. It also requires 10x less GPU memory, allowing it to run on standard hardware where previous methods would require massive server-grade RAM.
  • Performance: On MNIST, it achieved 95.2% verified robust accuracy.
  • Scaling to ImageNet: MixTrain is the first framework to effectively scale to ImageNet-200, outperforming existing verifiable methods by 14.4% in verified accuracy within a 12-hour training window.

The effectiveness of the Interval loss is further highlighted by its distribution compared to standard adversarial losses.

Loss value distributions for PGD, CW, and Interval loss. The Interval loss covers a significantly wider range of values, identifying vulnerabilities that standard adversarial losses miss.

As shown in the distribution plot, the Interval loss identifies much higher loss values than PGD or CW (Carlini-Wagner) losses. By training on this more comprehensive loss landscape, MixTrain produces models with superior formal guarantees.

Conclusion

MixTrain represents a major step toward making formal security guarantees a standard part of deep learning. By proving that verification does not need to be exhaustive during the training phase and introducing more effective attack strategies, the authors have paved the way for robust AI in security-critical applications. Future work will focus on further optimizing the dynamic training policy and scaling these techniques to the full 1000-class ImageNet dataset.

Summary updated

BibTeX
@misc{wang2018mixtrain,
  author = {Shiqi Wang and Yizheng Chen and Ahmed Abdou and Suman Jana},
  title = {{MixTrain: Scalable Training of Formally Robust Neural Networks}},
  year = {2018},
  eprint = {1811.02625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.02625},
}
Figure