Fast Training of Provably Robust Neural Networks by SingleProp

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

Introduction

Deep neural networks are notoriously fragile; small, human-imperceptible "adversarial perturbations" to an input can cause them to fail spectacularly. While many defenses exist, most are heuristic and can be bypassed by stronger attacks. Certified robustness aims to solve this by providing a mathematical guarantee: within a certain "safety bubble" (an $\ell_p$ ball) around an input, the model's prediction is guaranteed not to change.

However, training these models is computationally expensive. To ensure robustness during training, one must propagate the entire "uncertainty set" through the network. The current fastest method, Interval Bound Propagation (IBP), requires two extra forward passes (one for the upper bound, one for the lower), making it at least 3x slower than standard training. Other more precise methods can be 100x slower. SingleProp aims to hit the "sweet spot" of efficiency and robustness.

Methodology

The core innovation is the SingleProp regularizer, which reduces the computational overhead of certification.

  1. The Half-Bound Gap ($v$): Instead of tracking separate upper ($u$) and lower ($l$) bounds for every neuron (as IBP does), SingleProp defines a quantity $v = \frac{1}{2}(u - l)$, representing the "half-width" of the uncertainty.
  2. Recursive Propagation: A recursive formula allows this uncertainty quantifier $v$ to be propagated through the network layers alongside the standard input. Crucially, this requires only one additional forward pass.
  3. Variants:
    • SingleProp-FastLin: Approximates the "Fast-Lin" verifier, which uses linear bounding for more precision.
  4. SingleProp-Zero: A simpler version that approximates IBP-style bounds by assuming a lower bound of zero for "unstable" neurons.
  5. Adaptive Hyperparameter Selection (AHS): To avoid tedious manual tuning of the regularization weight ($\lambda$), the authors introduce an automated scheme that adjusts $\lambda$ based on the ratio of standard loss to robust loss on a validation set.

Experimental Results

The authors evaluated SingleProp on MNIST and CIFAR-10 across various architectures (Small, Medium, Wide, and Large CNNs).

Table 1: Performance comparison of SingleProp against IBP and other baselines on MNIST and CIFAR-10. SingleProp achieves significant speedups with competitive certified accuracy.

Speed and Efficiency

SingleProp consistently trained 1.5x to 2.12x faster per epoch than IBP across various architectures. Furthermore, it achieved a 1.5x reduction in memory usage, which is critical for training larger models on limited GPU hardware.

Certified Accuracy

On MNIST, SingleProp-Zero achieved approximately 83-87% certified accuracy (at $\epsilon=0.3$), trailing IBP by only about 1.5-2% while being significantly faster. On CIFAR-10, SingleProp-FastLin actually outperformed IBP in clean accuracy (37.79% vs 36.46%) while maintaining comparable certified accuracy.

Key Insights

  • High Approximation Accuracy: The difference between the approximated bounds and true linear bounds was found to be on the order of $10^{-7}$, suggesting the single-pass approximation is extremely reliable.
  • Complementarity: Models trained with IBP and SingleProp often "certify" different sets of images. Combining the two can jump total certified accuracy by 2-9%, indicating that different mathematical approximations lead to different "pockets" of robustness.

Conclusion and Future Work

SingleProp provides a significant step toward making certified robustness practical by bridging the gap between the speed of interval bounds and the precision of linear bounding frameworks. While it slightly lags behind more expensive multi-pass methods like CROWN-IBP in pure accuracy, its efficiency gains are substantial. Future work includes scaling these guarantees to high-resolution datasets like ImageNet and extending the logic to non-ReLU architectures such as Transformers.

Summary updated

BibTeX
@inproceedings{boopathy2021fast,
  author = {Akhilan Boopathy and Lily 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