Robust Randomized Smoothing via Two Cost-Effective Approaches

Linbo Liu, Trong Nghia Hoang, Lam M. Nguyen, Tsui-Wei WengPAIR2Struct @ ICLR 2022

TL;DR

This paper introduces two novel methods, AdvMacer and EsbRs, to significantly improve the provable robustness of neural networks against adversarial attacks using randomized smoothing. AdvMacer is a new training technique that optimizes for certified robustness on adversarial examples, while EsbRs is a flexible ensemble method that further boosts robustness, particularly when combining diverse model types.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are vulnerable to adversarial examples – subtly perturbed inputs that can cause misclassifications. While randomized smoothing offers a way to achieve provable robustness guarantees, vanilla implementations often yield weak guarantees and require extensive retraining. Existing methods like SmoothAdv and MACER have limitations: SmoothAdv can be computationally expensive and require careful hyperparameter tuning, while MACER, though more scalable, can demand significantly more training epochs and sometimes results in weaker certificates despite higher clean accuracy. This paper aims to bridge this gap by proposing cost-effective approaches that enhance both the robustness certificate and maintain good standard accuracy.

Methods

The paper proposes two main contributions:

  • AdvMacer (Approach 1): This is a new robust training method that builds upon adversarial training. Unlike previous methods that might focus solely on correct classification of adversarial examples or maximizing the certified radius on clean data, AdvMacer directly optimizes for a larger certified radius on adversarial examples. It achieves this by formulating a loss function that encourages correct classification of adversarial examples while simultaneously maximizing their certified radius. This approach aims to combine the benefits of existing methods (computational efficiency of SmoothAdv and robustness focus of MACER) while mitigating their drawbacks.
  • EsbRs (Approach 2): This is a post-processing ensemble method designed to further enhance the robustness of smoothed classifiers. EsbRs is notable for its flexibility, allowing for the ensembling of models trained with different methods (e.g., AdvMacer and SmoothAdv), creating "mixed-model ensembles." This contrasts with prior work that often focused on ensembling models trained with the same process. The authors explore various ensemble strategies and propose a mixed design that leverages model diversity to achieve better robustness.

Datasets

The experiments are conducted on the Cifar-10 dataset. No new benchmarks are introduced.

Key Insights and Ideas

  • Optimizing for Robustness on Adversarial Examples: The core idea behind AdvMacer is that directly optimizing the certified radius on adversarial examples, rather than just clean data, leads to stronger overall robustness. This is intuitively appealing because it forces the model to be robust in the very scenarios where it's most likely to fail.
  • The Power of Mixed Ensembles: The paper highlights that ensembling diverse models (mixed-model ensembles) can be more effective than ensembling similar models (intra-model ensembles). This is because diversity can lead to lower variance in the ensemble's predictions, which, according to their theoretical analysis, can translate to better certified radii.
  • Cost-Effectiveness: Both AdvMacer and EsbRs are presented as cost-effective solutions. AdvMacer aims for computational efficiency comparable to SmoothAdv, and EsbRs is a post-processing technique that doesn't require additional training of the base classifiers.

Key Results

  • AdvMacer Performance: AdvMacer demonstrates improved robustness performance (higher Average Certified Radius - ACR) compared to state-of-the-art baselines like SmoothAdv and MACER on Cifar-10, while maintaining competitive clean accuracy. For instance, AdvMacer achieves higher ACR than MACER and SmoothAdv across different noise levels (σ = 0.25, 0.5, 1.0).
  • EsbRs Enhancement: The EsbRs ensemble method further boosts the ACR. For example, EsbRs-AdvMacer ×3 achieves a higher ACR than AdvMacer alone.
  • Mixed Ensemble Superiority: The paper shows that mixed ensembles (e.g., combining AdvMacer and SmoothAdv models) often yield better ACR than intra-model ensembles (e.g., using only AdvMacer models), especially when the component models exhibit sufficient diversity.
  • Efficiency: AdvMacer achieves its performance gains with comparable training time to SmoothAdv, and significantly fewer epochs than MACER.

Limitations and Future Work

  • Hyperparameter Tuning: While AdvMacer is presented as more efficient, the paper mentions that SmoothAdv requires tuning a number of hyperparameters for different noise levels, which can be challenging. AdvMacer aims for a more universal configuration across different σ.
  • Theoretical Assumptions: The theoretical analysis of EsbRs relies on assumptions about the variance of logits from different model types. The paper notes that if these assumptions are violated (e.g., if logits from one model have larger variance than those from others), ensemble performance might be negatively impacted.
  • Future Work: The paper suggests that mixed-model ensembles can be further improved by enriching model diversity, which AdvMacer contributes to by offering a new robust training method. The exploration of mixed ensembles is presented as a new direction not fully studied by prior works.

Summary updated

BibTeX
@inproceedings{liu2022robust,
  author = {Linbo Liu and Trong Nghia Hoang and Lam M. Nguyen and Tsui-Wei Weng},
  title = {{Robust Randomized Smoothing via Two Cost-Effective Approaches}},
  booktitle = {PAIR2Struct @ ICLR},
  year = {2022},
  url = {https://openreview.net/forum?id=HTfetBttHlq},
}
Figure