TAPS: Connecting Certified and Adversarial Training

Yuhao Mao, Mark Niklas Müller, Marc Fischer, Martin T. VechevarXiv 2023 · DOI

Introduction

Deep neural networks are highly susceptible to adversarial examples—small, targeted perturbations that lead to incorrect classifications. Current defenses generally fall into two categories: empirical adversarial training (e.g., PGD), which is effective but lacks formal guarantees, and certified training (e.g., IBP), which provides provable bounds but often suffers from excessive over-regularization and low standard accuracy. TAPS (Training via Adversarial Propagation through Subnetworks) addresses this "Goldilocks" challenge by bridging the gap between these two paradigms.

Methodology: Hybrid Propagation and the Gradient Connector

The core innovation of TAPS is the decomposition of a neural network into a feature extractor ($f_E$) and a classifier ($f_C$). This allows for a hybrid approach to propagation:

  1. Hybrid Propagation: TAPS applies Interval Bound Propagation (IBP) to the feature extractor to define a bounding box in the latent embedding space. Within this box, a Projected Gradient Descent (PGD) attack is performed on the classifier to find a precise adversarial point.
  2. The Gradient Connector: A major technical hurdle in hybrid training is the inability to backpropagate gradients from a specific adversarial point back through the interval bounds. TAPS introduces a "rectified linear connector" that establishes a functional link between latent adversarial examples and box boundaries, enabling joint end-to-end optimization.
TAPS Architecture: The network is split into a feature extractor $f_E$ (using IBP) and a classifier $f_C$ (using PGD), linked by a Gradient Connector.
  1. Multi-estimator PGD: To further tighten the loss approximation, TAPS employs separate attacks for every class logit, rather than a single attack for the overall loss. This results in a much more accurate estimation of the true worst-case scenario.

Experimental Evaluation

TAPS was evaluated on MNIST, CIFAR-10, and TinyImageNet under $\ell_\infty$ perturbations. The results demonstrate that TAPS consistently outperforms previous state-of-the-art (SOTA) methods in certified accuracy while maintaining competitive standard accuracy.

  • TinyImageNet: Achieved 22.16% certified accuracy, surpassing the previous SOTA of ~20.5%.
  • CIFAR-10: At $\epsilon = 2/255$, TAPS reached 62.98% certified accuracy with nearly 80% standard accuracy.
  • MNIST: Reached 93.62% certified accuracy at $\epsilon = 0.3$.
Performance Comparison: TAPS achieves a more precise loss approximation (left) and a superior trade-off between standard and certified accuracy (right) compared to IBP and SABR.

Key Insights and Discussion

The success of TAPS stems from error cancellation. By combining the conservative over-approximation of IBP with the optimistic under-approximation of PGD, TAPS produces a loss estimate that is significantly closer to the true worst-case loss than either method alone. Furthermore, the ability to perform joint optimization via the gradient connector is essential; previous "stagewise" hybrid methods could not achieve the same level of performance.

While TAPS is technically "unsound" during training (it does not strictly guarantee an upper bound on loss), the resulting models are remarkably easy to certify post-training. This suggests that precision in loss approximation is a more critical factor for training robust models than strict mathematical soundness during the optimization process.

Limitations and Future Work

Despite its performance, TAPS is currently limited to $\ell_p$ ball perturbations and does not yet address complex real-world variations like lighting or rotation. Additionally, the method introduces a "split position" hyperparameter that requires tuning for different architectures. Future work will focus on automating this selection and extending the framework to a broader range of adversarial threats.

Summary updated

BibTeX
@misc{mao2023taps,
  author = {Yuhao Mao and Mark Niklas Müller and Marc Fischer and Martin T. Vechev},
  title = {{TAPS: Connecting Certified and Adversarial Training}},
  year = {2023},
  eprint = {2305.04574},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.04574},
}
Figure