Skip to main content
QUICK REVIEW

[Paper Review] Sparsity Winning Twice: Better Robust Generalization from More Efficient Training

Tianlong Chen, Zhenyu Zhang|arXiv (Cornell University)|Feb 20, 2022
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

This paper proposes sparse adversarial training using two methods—static sparsity via Early Bird (Robust Bird) tickets and dynamic sparsity via Flying Bird (FB) and FB+—to simultaneously reduce robust generalization gaps and training costs. It achieves up to 34.44% smaller robust generalization gap and 87.83% training FLOP reduction on CIFAR-100 with ResNet-18, while maintaining or improving robust and standard accuracy.

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. 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.

Motivation & Objective

  • Address the large robust generalization gap and high computational cost in standard and adversarial training (AT).
  • Investigate whether introducing structured sparsity during AT can improve robust generalization and training efficiency.
  • Explore the existence and utility of sparse subnetworks (winning tickets) in adversarial training, inspired by the Lottery Ticket Hypothesis.
  • Develop dynamic sparsity training methods that adapt connectivity patterns during training while maintaining fixed sparsity levels.
  • Demonstrate that sparsity can serve as a regularizer that mitigates robust overfitting and enhances generalization without sacrificing accuracy.

Proposed method

  • Identify critical sparse subnetworks (Robust Bird tickets) via one-shot pruning after a few epochs of standard training, bypassing iterative magnitude pruning.
  • Apply these pre-identified sparse subnetworks to adversarial training, enabling efficient and robust model training.
  • Introduce Flying Bird (FB), a dynamic sparsity method that jointly optimizes weights and connectivity patterns while preserving a fixed sparsity ratio.
  • Propose Flying Bird+ (FB+), which adaptively adjusts network capacity (sparsity level) during training to optimize robust generalization.
  • Use magnitude-based pruning and gradient-based connectivity growth to maintain low loss and fast convergence during dynamic sparsity training.
  • Integrate the proposed methods with existing regularizers and adversarial training frameworks (e.g., PGD-AT, TRADES) for enhanced performance.

Experimental results

Research questions

  • RQ1Can structured sparsity during adversarial training reduce the robust generalization gap without degrading robust or standard accuracy?
  • RQ2Do sparse subnetworks identified via the Lottery Ticket Hypothesis (Early Bird tickets) retain robustness when used in adversarial training?
  • RQ3Can dynamic sparsity training (Flying Bird) further reduce the robust generalization gap compared to static sparsity?
  • RQ4Does adaptive sparsity adjustment (Flying Bird+) lead to better robust generalization than fixed sparsity or dense models?
  • RQ5Can the proposed sparse training methods be effectively combined with existing regularizers or efficient training techniques (e.g., Free AT) for further efficiency gains?

Key findings

  • On CIFAR-100 with ResNet-18, the proposed methods reduce the robust generalization gap by 34.44% and robust overfitting by 4.02%.
  • With 80% sparsity, Flying Bird+ achieves 87.83% and 87.82% FLOP savings in training and inference, respectively, while reducing the robust generalization gap by 13.14% on WideResNet-34-10.
  • The Flying Bird+ method achieves a 4.49% narrower robust generalization gap and 1.54% higher robust accuracy than OMP-based pruning, with 87.58% fewer training FLOPs.
  • Robust Bird tickets, derived from just a few epochs of standard training, enable adversarial training with significantly reduced computational cost and improved robust generalization.
  • The proposed methods maintain or improve robust and standard accuracy compared to dense PGD-AT baselines, even with substantial FLOP reductions.
  • The methods are orthogonal to Free Adversarial Training and can be combined with it to further improve training efficiency without external data or auxiliary inputs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.