Papers › Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling...

Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling Input-Adaptive Inference

24 Feb 2020ICLR 2020 1arXiv:2002.10025archive 2025-07-28

Ting-Kuei Hu, Tianlong Chen, Haotao Wang, Zhangyang Wang

Deep networks were recently suggested to face the odds between accuracy (on clean natural images) and robustness (on adversarially perturbed images) (Tsipras et al., 2019). Such a dilemma is shown to be rooted in the inherently higher sample complexity (Schmidt et al., 2018) and/or model capacity (Nakkiran, 2019), for learning a high-accuracy and robust classifier. In view of that, give a classification task, growing the model capacity appears to help draw a win-win between accuracy and robustness, yet at the expense of model size and latency, therefore posing challenges for resource-constrained applications. Is it possible to co-design model accuracy, robustness and efficiency to achieve their triple wins? This paper studies multi-exit networks associated with input-adaptive efficient inference, showing their strong promise in achieving a "sweet point" in cooptimizing model accuracy, robustness and efficiency. Our proposed solution, dubbed Robust Dynamic Inference Networks (RDI-Nets), allows for each input (either clean or adversarial) to adaptively choose one of the multiple output layers (early branches or the final one) to output its prediction. That multi-loss adaptivity adds new variations and flexibility to adversarial attacks and defenses, on which we present a systematical investigation. We show experimentally that by equipping existing backbones with such robust adaptive inference, the resulting RDI-Nets can achieve better accuracy and robustness, yet with over 30% computational savings, compared to the defended original models.

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.10025")

Code

Syntology Ran 12 of 18 code samples harvested from 2 repositories linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · honoured contract; 10 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 3 ran; community (archive-listed): 15 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

TAMU-VITA/triple-wins officialmentioned in paperpytorch report
gorakraj/earlyexit_onnx 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

18 samples harvested; 12 ran; 2 honoured the contract we drafted; 6 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.

2ran · honoured contract
10ran
6unverified

Licence: 18 of the 18 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.

Block_V3 TAMU-VITA/triple-wins/cifar/models_baseline.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · f4f526cd0c092320 · report
ChannelScalerLayer TAMU-VITA/triple-wins/cifar/models_baseline.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · b6b875971ee15fe6 · report
MobileNetV2_CP TAMU-VITA/triple-wins/cifar/models_baseline.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · ec6ecae0e14e3a1c · report
InternalClassifier gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran · metamorphic tier: invariant no licence file found · pointer only · 4b34fc3c728d64ca · report
feature_reduction_formula gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran · honoured contract fingerprinted no licence file found · pointer only · f79d8861a3c36477 · report
get_loader gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran no licence file found · pointer only · f5036fe874e2e4de · report
get_loss_criterion gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran no licence file found · pointer only · ff3039ef77961436 · report
get_lr gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 1aca7be4e59a01a0 · report
sdn_ic_only_step gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran no licence file found · pointer only · 84f507ee66e79376 · report
sdn_ic_only_step_DS gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran no licence file found · pointer only · 6f65a35f5e8d93bc · report
sdn_training_step gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran no licence file found · pointer only · 0f6294604cc0a722 · report
sdn_training_step_DS gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) ran no licence file found · pointer only · d0092b78fbcce2b3 · report
BasicBlockWOutput gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) unverified no licence file found · pointer only · bc9d472adc5e3a89 · report
ResNet_SDN gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) unverified no licence file found · pointer only · e62a922e2ca01bbe · report
accuracy gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) unverified no licence file found · pointer only · 0ae2381aa39b7e94 · report
sdn_get_detailed_results gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) unverified no licence file found · pointer only · 2cca158ee7052b0e · report
sdn_test gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) unverified no licence file found · pointer only · 2e45239eb5fb93a7 · report
sdn_train gorakraj/earlyexit_onnx/Networks/8. L2Stop/l2stop-master/sdn_stop/architectures/SDNs/ResNet_SDN.py community (archive-listed) unverified no licence file found · pointer only · e7ce5602ca2a2ea8 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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