Fast Training of Provably Robust Neural Networks by SingleProp

Akhilan Boopathy, Tsui-Wei Weng, Sijia Liu, Pin-Yu Chen, Gaoyuan Zhang, Luca Daniel

TL;DR

Training neural networks with certified robustness guarantees is notoriously slow, often requiring multiple extra forward passes through the network. This paper introduces SingleProp, a novel framework that slashes this overhead by requiring just one additional forward propagation during training. SingleProp achieves a 1.5x–2x training speedup and a 1.5x memory reduction compared to the current fastest state-of-the-art method (Interval Bound Propagation) while maintaining highly competitive certified accuracy.

What Problem Does This Paper Address?

Deep neural networks are highly susceptible to adversarial attacks—tiny, human-imperceptible perturbations designed to cause misclassification. While heuristic defenses like adversarial training help, they can often be bypassed by stronger, unseen attacks. To solve this, researchers developed certified robust training, which provides mathematical guarantees that a network's prediction will remain constant within a specific perturbation window (an $\ell_p$ ball).

The catch? Certified training is computationally brutal. Standard verification-based training methods can be over 100 times slower than standard training. Even the fastest state-of-the-art method, Interval Bound Propagation (IBP), requires two additional forward passes, tripling the total training time. More precise methods like CROWN-IBP can take up to 26 times longer than standard training.

The authors of this paper ask a fundamental question: What is the minimum computational overhead required to achieve certified robustness? They target the absolute minimum: just one additional forward pass.

Methods

The authors introduce SingleProp, a robust training algorithm based on a new regularizer that approximates linear bounding verifiers (such as Fast-Lin and CROWN).

Instead of propagating two separate bounding matrices (upper and lower bounds) through the network layer-by-layer as IBP does, SingleProp tracks a single, trainable "half bound gap" variable ($v$) recursively alongside the standard clean forward pass. By doing this, the network only needs one additional forward pass and one additional backward pass to calculate the robust loss gradients.

The paper introduces two main variants of the algorithm:

  1. SingleProp-FastLin: Approximates the linear bounds used in the Fast-Lin verifier.
  2. SingleProp-Zero: A stronger variant that sets the lower bound slope of unstable neurons to zero, effectively approximating IBP bounds but with half the computational overhead.

Additionally, they introduce Adaptive Hyperparameter Selection (AHS), a method that dynamically adjusts the regularization weight ($\lambda$) based on validation set performance, eliminating the need for expensive grid searches.

Datasets

The method was evaluated on standard robust machine learning benchmarks using small, medium, large, and wide CNN architectures:

  • MNIST: Evaluated against a target perturbation size of $\epsilon = 0.3$.
  • CIFAR-10: Evaluated against a target perturbation size of $\epsilon = 8/255$.

Key Insights and Ideas

  • Good Enough is Great: You don't need perfectly sound, mathematically rigorous upper bounds during the training phase to learn a robust model. SingleProp demonstrates that an extremely accurate approximation (with an error margin around $10^{-7}$) is more than enough to guide the optimization landscape toward robustness.
  • Bound Complementarity: A fascinating finding is that SingleProp and IBP models learn fundamentally different robust features. When the authors combined the certifications of both models (checking if a point was certifiable by either IBP or SingleProp), the overall certified accuracy jumped by 6–9% on CIFAR-10. This suggests that SingleProp models could be highly valuable components in robust model ensembles.

Key Results

SingleProp consistently outperforms IBP in training efficiency while delivering comparable certified robustness. As detailed in the paper's main results table, the algorithm achieves a 1.54x to 2.24x speedup per training epoch alongside a 1.5x reduction in memory usage.

Table 1: Full test set IBP-certified acc. for IBP and SingleProp-trained networks on MNIST and CIFAR-10. Per epoch runtimes are reported, with improvementscomputed as (IBP runtime/our runtime). For ease of presentation, we use row index to represent the method at that row.
  • On MNIST (Medium CNN): SingleProp-Zero achieved a clean accuracy of 97.45% and a certified accuracy of 86.05% ($\epsilon=0.3$), performing comparably to IBP (97.17% clean, 88.63% certified) while training 2.12x faster.
  • On CIFAR-10 (Small CNN): SingleProp-FastLin achieved a certified accuracy of 24.51% compared to IBP's 25.99%, while running 2.07x faster.

Limitations and Future Work

The primary trade-off for SingleProp's speed is a slight drop in certified accuracy (typically between 1% and 3%) compared to full IBP training, which is expected due to the mathematical approximations used.

Additionally, like most certified defense literature, the evaluation is restricted to smaller datasets (MNIST and CIFAR-10). Scaling certified robustness to massive datasets like ImageNet remains an open, industry-wide challenge that SingleProp lays the groundwork to solve by minimizing per-iteration training costs.

Summary updated

BibTeX
@inproceedings{boopathy2021fast,
  author = {Akhilan Boopathy and Tsui-Wei Weng and Sijia Liu and Pin-Yu Chen and Gaoyuan Zhang and Luca Daniel},
  title = {{Fast Training of Provably Robust Neural Networks by SingleProp}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i8.16840},
}
Figure