Papers › HYDRA: Pruning Adversarially Robust Neural Networks

HYDRA: Pruning Adversarially Robust Neural Networks

24 Feb 2020NeurIPS 2020 12arXiv:2002.10509archive 2025-07-28

Vikash Sehwag, Shiqi Wang, Prateek Mittal, Suman Jana

In safety-critical but computationally resource-constrained applications, deep learning faces two key challenges: lack of robustness against adversarial attacks and large neural network size (often millions of parameters). While the research community has extensively explored the use of robust training and network pruning independently to address one of these challenges, only a few recent works have studied them jointly. However, these works inherit a heuristic pruning strategy that was developed for benign training, which performs poorly when integrated with robust training techniques, including adversarial training and verifiable robust training. To overcome this challenge, we propose to make pruning techniques aware of the robust training objective and let the training objective guide the search for which connections to prune. We realize this insight by formulating the pruning objective as an empirical risk minimization problem which is solved efficiently using SGD. We demonstrate that our approach, titled HYDRA, achieves compressed networks with state-of-the-art benign and robust accuracy, simultaneously. We demonstrate the success of our approach across CIFAR-10, SVHN, and ImageNet dataset with four robust training techniques: iterative adversarial training, randomized smoothing, MixTrain, and CROWN-IBP. We also demonstrate the existence of highly robust sub-networks within non-robust networks. Our code and compressed networks are publicly available at \url{https://github.com/inspire-group/compactness-robustness}.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2002.10509")

Code

Syntology Ran 4 of 19 code samples harvested from 2 repositories linked to this paper; 15 have no recorded run. Of those that ran: 4 ran with no contract checked.

By repository: community (archive-listed): 19 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

inspire-group/compactness-robustness officialmentioned in papermentioned on GitHubpytorch report
inspire-group/hydra mentioned on GitHubpytorch report
optml-group/bip mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 4 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran
15unverified

Licence: 17 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

GetSubnet unites-lab/vpns/unstructured_network_with_score.py community (archive-listed) ran MIT (permissive) · 3c96583f581f4d37 · report
GetSubnet inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) ran no licence file found · pointer only · 9c06e50d9e8c334e · report
Interval_BN inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) ran no licence file found · pointer only · 7440b4e5bc3f91bc · report
SubnetConv unites-lab/vpns/unstructured_network_with_score.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 9fa88431a218cf84 · report
Center_symbolic_interval inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · 95be6efd42f19c4d · report
Interval_Bound inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · 727eb7c9df20157d · report
Interval_Conv2d inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · c24d64ff812f33fb · report
Interval_Dense inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · e3fcced1e96eb0f2 · report
Interval_Flatten inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · 001e355f33be54d7 · report
Interval_ReLU inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · f6c5efd14db6201c · report
Interval_SubConv inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · 7b61dbf5d4a8dbd0 · report
Interval_SubLinear inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · a65a8d15783b7474 · report
Interval_network inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · f108d8edefeb2b08 · report
Inverse_interval inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · f62e45a681df257c · report
Symbolic_interval inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · 0ba759110f8efeb7 · report
Symbolic_interval_proj1 inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · 01f2161a52449ec4 · report
Symbolic_interval_proj2 inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · cfe05853a4302ca5 · report
gen_sym inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · c2a80e1b6f39c437 · report
mix_interval inspire-group/hydra/symbolic_interval/symbolic_network.py community (archive-listed) unverified no licence file found · pointer only · 9e06a651cf81f00f · report

Tasks

Network Pruning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

PruningSGD

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections