Do Wider Neural Networks Really Help Adversarial Robustness?

Boxi Wu, Jinghui Chen, Deng Cai, Xiaofei He, Quanquan Gu
10/3/2020
cs.LGcs.AIstat.ML

Official code: fra31/auto-attack (754 stars, Python, MIT, last commit 2024-05-16).

Abstract

Adversarial training is a powerful type of defense against adversarial examples. Previous empirical results suggest that adversarial training requires wider networks for better performances.

Show full abstract

However, it remains elusive how neural network width affects model robustness. In this paper, we carefully examine the relationship between network width and model robustness. Specifically, we show that the model robustness is closely related to the tradeoff between natural accuracy and perturbation stability, which is controlled by the robust regularization parameter $λ$. With the same $λ$, wider networks can achieve better natural accuracy but worse perturbation stability, leading to a potentially worse overall model robustness. To understand the origin of this phenomenon, we further relate the perturbation stability with the network's local Lipschitzness. By leveraging recent results on neural tangent kernels, we theoretically show that wider networks tend to have worse perturbation stability. Our analyses suggest that: 1) the common strategy of first fine-tuning $λ$ on small networks and then directly use it for wide model training could lead to deteriorated model robustness; 2) one needs to properly enlarge $λ$ to unleash the robustness potential of wider models fully. Finally, we propose a new Width Adjusted Regularization (WAR) method that adaptively enlarges $λ$ on wide models and significantly saves the tuning time.

View on arXivView PDF

Code Implementations(1)

fra31/auto-attackOfficial100%
MIT

Code relative to "Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks"

754115PythonFeb 17, 20202 years agoMIT
adversarial-attacksadversarial-defensesadversarial-robustness

Similar Papers

Cite this paper

@article{wu2020wider,
  title  = {Do Wider Neural Networks Really Help Adversarial Robustness?},
  author = {Boxi Wu and Jinghui Chen and Deng Cai and Xiaofei He and Quanquan Gu},
  year   = {2020},
  eprint = {2010.01279},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.01279}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.01279.svg)](https://codeofpaper.com/paper/2010.01279)

Discussion