Exploring Transferability for Randomized Smoothing

Kai Qiu, Huishuai Zhang, Zhirong Wu, Stephen LinarXiv 2023 · DOI

Abstract

This paper introduces a highly efficient method for transferring certified robustness from large-scale pre-trained models to diverse downstream tasks. By employing mixed-noise pre-training on ImageNet and replacing standard Batch Normalization with Layer Normalization, the proposed approach achieves state-of-the-art certified accuracy while maintaining exceptionally high clean accuracy. Notably, this is achieved with minimal fine-tuning on clean images, significantly reducing the computational overhead typically associated with randomized smoothing.

Introduction

Randomized Smoothing is a robust technique for certifying that a model's prediction remains invariant within a specific radius of adversarial perturbation. Despite its theoretical guarantees, it faces two primary challenges: high computational costs—requiring separate models for every noise level and task—and a significant trade-off where robustness often comes at the expense of clean accuracy.

While transferring semantic knowledge via pre-training is a standard practice in computer vision, transferring robustness has proven difficult. This research investigates whether a model can be pre-trained to be inherently robust and retain that robustness during downstream adaptation.

Methodology

The authors propose a two-step pipeline designed to bridge the gap between upstream pre-training and downstream task adaptation.

1. Mixed-Noise Pre-training

Instead of training on a single noise level, the model is pre-trained on ImageNet using a distribution that mixes clean images with those corrupted by various levels of Gaussian noise. This approach broadens the learned data distribution, enabling the model to handle multiple noise levels simultaneously and reducing the shift encountered during transfer.

Conceptual visualization of distribution shifts between upstream and downstream tasks under different training regimes.

2. Clean Fine-tuning and Normalization

A key finding is that models pre-trained with mixed noise only require fine-tuning on clean images of the downstream task to maintain robustness. However, the choice of normalization layer is critical. Standard Batch Normalization (BN) relies on batch-wise statistics that shift significantly between noisy pre-training and clean fine-tuning, destroying robustness transfer. The authors address this by using Layer Normalization (LN), which calculates statistics per-instance and remains consistent across distribution shifts.

Key Results

The proposed method demonstrates that robustness is a transferable property, much like semantic features. On the CIFAR-10 dataset, the model achieved a state-of-the-art certified accuracy of 80.1% at a perturbation radius of $\epsilon = 0.25$, representing a 5.2% improvement over previous benchmarks.

Performance comparison of different pre-training and fine-tuning strategies on CIFAR-10, highlighting the high clean and certified accuracy of the mixed-noise approach.

Crucially, this robustness does not compromise standard performance; the model reached a clean accuracy of 98.0% on CIFAR-10. The method is also remarkably efficient, achieving strong certified robustness (65.9% at $\epsilon = 0.25$) with just a single epoch of fine-tuning. The versatility of the pre-trained ImageNet model was further validated across five additional downstream datasets, including Food101 and Oxford-IIIT Pets, consistently outperforming training-from-scratch alternatives.

Discussion and Conclusion

This work proves that robustness can be "baked into" foundation models. By exposing the model to a broad distribution of noise during pre-training, the "distribution gap" is minimized, allowing the model to adapt its semantic understanding without losing its defensive properties. While the study primarily utilizes ResNet-152, the insights regarding normalization layers suggest broader applicability to modern architectures like Vision Transformers (ViTs). Future research may explore the transferability of robustness against non-Gaussian perturbations and further theoretical grounding for these empirical successes.

Summary updated

BibTeX
@misc{qiu2023exploring,
  author = {Kai Qiu and Huishuai Zhang and Zhirong Wu and Stephen Lin},
  title = {{Exploring Transferability for Randomized Smoothing}},
  year = {2023},
  eprint = {2312.09020},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.09020},
}
Figure