Abstract
PROSAC (Provably Safe Certification) is a novel framework designed to provide rigorous statistical guarantees for the robustness of machine learning models against adversarial attacks. By combining hypothesis testing with Bayesian optimization, PROSAC allows for the certification of a model’s "worst-case" adversarial risk relative to a specific threshold. This black-box approach ensures population-level risk guarantees that are distribution-free, making it a vital tool for ensuring compliance with emerging AI safety regulations.
Introduction
Deep learning models are highly susceptible to adversarial attacks—small, often imperceptible perturbations to inputs that lead to incorrect predictions. While numerous defense mechanisms have been proposed, providing a formal certification of safety remains a significant challenge. Existing methods typically require internal model access (white-box) or provide only empirical guarantees limited to specific test sets. PROSAC addresses these limitations by providing a black-box certification framework that accounts for the worst-case attacker configurations across a population.
Methodology
The core of PROSAC is the concept of $(\alpha, \zeta)$-safety. A model is certified as safe if the probability of its adversarial risk exceeding a threshold $\alpha$ is less than a significance level $\zeta$. The workflow consists of:
- Hypothesis Testing: Establishing a null hypothesis that the model's maximum adversarial risk exceeds $\alpha$. Certification occurs if the calculated $p$-value is below $\zeta$.
- Calibration: Using an independent calibration dataset (e.g., 1,000 ImageNet images) to ensure distribution-free guarantees.
- Bayesian Optimization (GP-UCB): To account for attackers who optimize their own hyperparameters (e.g., step size), PROSAC employs the Gaussian Process Upper Confidence Bound algorithm. This efficiently identifies the "worst-case" attacker configuration, ensuring the certification is robust against highly optimized threats.
Key Insights: Architecture and the Safety Trade-off
Experimental evaluation on ImageNet-1k revealed several critical insights into model robustness:
- Architectural Robustness: Vision Transformers (ViTs) consistently outperformed ResNets in safety certification. This is attributed to ViT’s global self-attention, which may better filter local adversarial noise compared to convolutional layers.
- Scale and Safety: Larger models generally exhibited higher safety levels, suggesting that model capacity can contribute to robustness.
- The Accuracy-Safety Tax: Adversarially trained models showed significantly higher safety levels but at the cost of reduced standard classification accuracy.
Results and Benchmarking
PROSAC was tested against various attack vectors, including PGD, MomentumAttack, GenAttack, and BanditAttack. The framework provides a clear hierarchy of safety across popular pre-trained models.
Key findings include:
- ViT Dominance: ViT models maintained safety (low $p$-values) at much higher perturbation budgets ($\epsilon$) than comparable ResNets.
- Optimization Efficiency: The GP-UCB algorithm identified worst-case configurations with significantly fewer queries than brute-force methods, making the certification of large models feasible.
- Model Hierarchy: ViT-Base-Adv emerged as a top performer, offering a superior balance of safety and performance across multiple attack types.
Limitations and Future Outlook
While PROSAC effectively prevents "false safes" (Type-I error), it can be conservative, potentially labeling robust models as "unsafe" due to insufficient statistical evidence (Type-II error). Additionally, certifying massive models remains computationally demanding. Future work aims to extend PROSAC to multimodal models like CLIP and investigate the impact of environmental noise on safety guarantees.
Summary updated