Sparsity Winning Twice: Better Robust Generalization from More Efficient Training

Tianlong Chen, Zhenyu Zhang, Pengjun Wang, Santosh Balachandra, Haoyu Ma +2 more
2/20/2022
cs.CVcs.LG

Official code: VITA-Group/Sparsity-Win-Robust-Generalization (40 stars, Python, MIT, last commit 2022-03-20).

Abstract

Recent studies demonstrate that deep networks, even robustified by the state-of-the-art adversarial training (AT), still suffer from large robust generalization gaps, in addition to the much more expensive training costs than standard training. In this paper, we investigate this intriguing problem from a new perspective, i.e., injecting appropriate forms of sparsity during adversarial training.

Show full abstract

We introduce two alternatives for sparse adversarial training: (i) static sparsity, by leveraging recent results from the lottery ticket hypothesis to identify critical sparse subnetworks arising from the early training; (ii) dynamic sparsity, by allowing the sparse subnetwork to adaptively adjust its connectivity pattern (while sticking to the same sparsity ratio) throughout training. We find both static and dynamic sparse methods to yield win-win: substantially shrinking the robust generalization gap and alleviating the robust overfitting, meanwhile significantly saving training and inference FLOPs. Extensive experiments validate our proposals with multiple network architectures on diverse datasets, including CIFAR-10/100 and Tiny-ImageNet. For example, our methods reduce robust generalization gap and overfitting by 34.44% and 4.02%, with comparable robust/standard accuracy boosts and 87.83%/87.82% training/inference FLOPs savings on CIFAR-100 with ResNet-18. Besides, our approaches can be organically combined with existing regularizers, establishing new state-of-the-art results in AT. Codes are available in https://github.com/VITA-Group/Sparsity-Win-Robust-Generalization.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2022] "Sparsity Winning Twice: Better Robust Generalization from More Efficient Training" by Tianlong Chen*, Zhenyu Zhang*, Pengjun Wang*, Santosh Balachandra*, Haoyu Ma*, Zehao Wang, Zhangyang Wang

403Python, ShellDec 6, 20214 years agoMIT
dynamic-sparse-traininggeneralizationlottery-ticket-hypothesispruningrobust-generalization+2 more

Similar Papers

Cite this paper

@article{chen2022sparsity,
  title  = {Sparsity Winning Twice: Better Robust Generalization from More Efficient Training},
  author = {Tianlong Chen and Zhenyu Zhang and Pengjun Wang and Santosh Balachandra and Haoyu Ma and Zehao Wang and Zhangyang Wang},
  year   = {2022},
  eprint = {2202.09844},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.09844}
}

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/2202.09844.svg)](https://codeofpaper.com/paper/2202.09844)

Discussion