Linearity Grafting: Relaxed Neuron Pruning Helps Certifiable Robustness

Tianlong Chen, Huan Zhang, Zhenyu Zhang, Shiyu Chang, Sijia Liu +2 more
6/15/2022
cs.LGcs.AI
quantization-pruning

Official code: VITA-Group/Linearity-Grafting (16 stars, Python, MIT, last commit 2022-06-22).

Abstract

Certifiable robustness is a highly desirable property for adopting deep neural networks (DNNs) in safety-critical scenarios, but often demands tedious computations to establish. The main hurdle lies in the massive amount of non-linearity in large DNNs.

Show full abstract

To trade off the DNN expressiveness (which calls for more non-linearity) and robustness certification scalability (which prefers more linearity), we propose a novel solution to strategically manipulate neurons, by "grafting" appropriate levels of linearity. The core of our proposal is to first linearize insignificant ReLU neurons, to eliminate the non-linear components that are both redundant for DNN performance and harmful to its certification. We then optimize the associated slopes and intercepts of the replaced linear activations for restoring model performance while maintaining certifiability. Hence, typical neuron pruning could be viewed as a special case of grafting a linear function of the fixed zero slopes and intercept, that might overly restrict the network flexibility and sacrifice its performance. Extensive experiments on multiple datasets and network backbones show that our linearity grafting can (1) effectively tighten certified bounds; (2) achieve competitive certifiable robustness without certified robust training (i.e., over 30% improvements on CIFAR-10 models); and (3) scale up complete verification to large adversarially trained models with 17M parameters. Codes are available at https://github.com/VITA-Group/Linearity-Grafting.

View on arXivView PDF

Code Implementations(1)

MIT

[ICML 2022] "Linearity Grafting: Relaxed Neuron Pruning Helps Certifiable Robustness" by Tianlong Chen*, Huan Zhang*, Zhenyu Zhang, Shiyu Chang, Sijia Liu, Pin-Yu Chen, Zhangyang Wang

163Python, ShellMay 22, 20224 years agoMIT
certifiable-robustnesscertificationlinearitylinearity-graftingneuron-pruning+1 more

Similar Papers

Cite this paper

@article{chen2022linearity,
  title  = {Linearity Grafting: Relaxed Neuron Pruning Helps Certifiable Robustness},
  author = {Tianlong Chen and Huan Zhang and Zhenyu Zhang and Shiyu Chang and Sijia Liu and Pin-Yu Chen and Zhangyang Wang},
  year   = {2022},
  eprint = {2206.07839},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.07839}
}

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

Discussion