[Paper Review] Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling Input-Adaptive Inference
Proposes Robust Dynamic Inference Networks (RDI-Nets) with multi-exit early-branch outputs to adaptively route each input, achieving better accuracy and robustness with substantial inference savings.
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.
Motivation & Objective
- Motivate the triple challenge of achieving high accuracy, robustness to adversarial attacks, and computational efficiency in deep networks.
- Introduce input-adaptive dynamic inference via multi-exit networks to enable early exits and save compute.
- Systematically study attacks and defenses on multi-output architectures to understand security implications.
- Demonstrate that RDI-Nets yield simultaneous gains in accuracy, robustness, and efficiency on benchmark backbones.
Proposed method
- Augment any backbone (e.g., ResNet, MobileNet) with K side exit branches sharing weights in a nested fashion.
- Use a confidence-based early-exit strategy with thresholds t_k to terminate computation at the earliest exit with sufficiently low softmax entropy.
- Define a multi-exit training objective L_RDI that combines losses from all exits with weights w_i, incorporating both clean and adversarial examples.
- Formulate and evaluate three attack types on multi-output networks: single-output attacks per branch, average-attack over all branches, and max-average attack combining single-branch attacks.
- Defend via adversarial training by augmenting training with adversarial examples generated from the three attack forms; update shared parameters across exits.
- Empirically compare RDI-Nets to defended baselines and to defended sparse/compressed models, assessing TA, ATA, and MFlops.
Experimental results
Research questions
- RQ1Can input-adaptive multi-exit networks provide a triple win of accuracy, robustness, and efficiency?
- RQ2How do different adversarial attack formulations interact with multi-output architectures, and how effective are defenses under these forms?
- RQ3Do RDI-Nets offer practical computational savings without sacrificing performance compared to static robust models?
- RQ4How does RDI-Nets’ performance compare to defended sparse/compressed baselines on standard benchmarks?
- RQ5What is the exit-pattern behavior under clean versus adversarial inputs in RDI-Nets?
Key findings
- RDI-Nets achieve better accuracy and robustness while saving around 30% in inference computation on benchmark backbones.
- On MNIST with SmallCNN, defended RDI-Nets with Max-Average defense outperform the baseline in TA and ATA while reducing computations by ~34%.
- On CIFAR-10 with ResNet-38 and MobileNet-V2, Max-Average defense yields larger ATA gains under worst-case attacks and maintains higher TA than baselines, with substantial MFLOP savings.
- Compared to defended sparse pruning baselines, RDI-Nets offer higher or comparable ATA at similar or better TA and with competitive MFlops.
- Across random and common attacks (FGSM, WRM), RDI-Nets show generalized robustness improvements, preserving efficiency benefits.
- Visualization indicates more balanced utilization of multiple exits under Average/Max-Average defenses, contributing to resilience against adversarial routing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.