Improving the Accuracy-Robustness Trade-Off of Classifiers via Adaptive Smoothing
Yatong Bai, Brendon G. Anderson, Aerin Kim, Somayeh Sojoudi
TL;DR
This work tackles the persistent accuracy-robustness trade-off in neural classifiers by introducing adaptive smoothing, a framework that blends outputs from a high-accuracy standard model $g$ and a robust model $h$ via a mixing mechanism. It first replaces the smoothing oracle with a robust neural network, enabling a scalable multi-class smoothing and providing theoretical certificates for the mixed classifier’s robustness under both Lipschitz and randomized smoothing assumptions. It then augments the framework with a mixing network that adapts the strength of smoothing per input, trained with a composite loss to balance clean accuracy and adversarial robustness, and evaluated against strong attacks including AutoAttack. Empirically, adaptive smoothing yields substantial clean accuracy gains while maintaining near-SOTA robustness, achieving state-of-the-art trade-offs on CIFAR-100 and competitive results on CIFAR-10, with flexible compatibility to future robustness improvements and adversary detection techniques. The combination of theoretical guarantees and practical performance demonstrates that the accuracy-robustness gap can be closed without retraining robust models for every desired balance, enabling scalable deployment of robust systems.
Abstract
While prior research has proposed a plethora of methods that build neural classifiers robust against adversarial robustness, practitioners are still reluctant to adopt them due to their unacceptably severe clean accuracy penalties. This paper significantly alleviates this accuracy-robustness trade-off by mixing the output probabilities of a standard classifier and a robust classifier, where the standard network is optimized for clean accuracy and is not robust in general. We show that the robust base classifier's confidence difference for correct and incorrect examples is the key to this improvement. In addition to providing intuitions and empirical evidence, we theoretically certify the robustness of the mixed classifier under realistic assumptions. Furthermore, we adapt an adversarial input detector into a mixing network that adaptively adjusts the mixture of the two base models, further reducing the accuracy penalty of achieving robustness. The proposed flexible method, termed "adaptive smoothing", can work in conjunction with existing or even future methods that improve clean accuracy, robustness, or adversary detection. Our empirical evaluation considers strong attack methods, including AutoAttack and adaptive attack. On the CIFAR-100 dataset, our method achieves an 85.21% clean accuracy while maintaining a 38.72% $\ell_\infty$-AutoAttacked ($ε= 8/255$) accuracy, becoming the second most robust method on the RobustBench CIFAR-100 benchmark as of submission, while improving the clean accuracy by ten percentage points compared with all listed models. The code that implements our method is available at https://github.com/Bai-YT/AdaptiveSmoothing.
