Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling Input-Adaptive Inference
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | CIFAR-100 (test) | -- | 3518 | |
| Image Classification | CIFAR-100 | -- | 691 | |
| Image Classification | TinyImageNet (test) | -- | 499 | |
| Image Classification | ImageNet (test) | Top-1 Acc28.73 | 235 | |
| Image Classification | CIFAR-100 (test) | -- | 61 | |
| Robust Classification | ImageNet standard (test) | Top-1 Acc32.3 | 48 | |
| Robust Classification | Tiny ImageNet (test) | Top-1 Accuracy28.94 | 30 | |
| Adversarial Classification | MNIST (test) | Adversarial Accuracy96.82 | 20 | |
| Image Classification | MNIST (test) | Adversarial Accuracy97.2 | 20 | |
| Image Classification | CIFAR-10 (test) | Accuracy (Exit 1)44.77 | 5 |