[论文解读] Triple Wins: Boosting Accuracy, Robustness and Efficiency Together by Enabling Input-Adaptive Inference
提出具有多出口早期分支输出的鲁棒动态推理网络(RDI-Nets),能够自适应路由每个输入,在显著减少推理次数的同时获得更高的准确性和鲁棒性。
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.
研究动机与目标
- 在深度网络中实现高准确性、对对抗攻击的鲁棒性以及计算效率三者的挑战的动机。
- 通过多出口网络引入输入自适应的动态推理,以实现早期退出并节省计算资源。
- 系统性研究多输出架构上的攻击与防御,以理解安全影响。
- 证明在基准骨干网络上,RDI-Nets 在准确性、鲁棒性和效率方面实现同时提升。
提出的方法
- 对任意骨干网络(如 ResNet、MobileNet)进行扩展,添加 K 个共享权重的侧出口分支,彼此嵌套共享。
- 使用基于置信度的提前退出策略,设定阈值 t_k,在具备足够低的 softmax 熵时在最近的出口终止计算。
- 定义一个多出口训练目标 L_RDI,将所有出口的损失以权重 w_i 进行组合,包含干净样本和对抗样本。
- 在多输出网络上形式化并评估三种攻击类型:每个分支的单输出攻击、所有分支的平均攻击以及结合单分支攻击的最大-平均攻击。
- 通过对抗训练进行防御,使用三种攻击形式生成的对抗样本来增强训练;更新跨出口的共享参数。
- 在经验上将 RDI-Nets 与带防御的基线模型以及带防御的稀疏/压缩模型进行比较,评估 TA、ATA 和 MFlops。
实验结果
研究问题
- RQ1输入自适应多出口网络是否能够在准确性、鲁棒性和效率方面实现“三赢”?
- RQ2不同的对抗攻击形式如何与多输出架构相互作用,在这些形式下防御措施有多有效?
- RQ3与静态鲁棒模型相比,RDI-Nets 是否在不牺牲性能的前提下提供实际的计算节省?
- RQ4在标准基准上,RDI-Nets 与带防御的稀疏/压缩基线相比的性能如何?
- RQ5在干净输入与对抗性输入下,RDI-Nets 的出口模式行为是怎样的?
主要发现
- RDI-Nets 在基准骨干网络上实现更高的准确性和鲁棒性,同时在推理计算上节省约30%。
- 在 MNIST 与 SmallCNN 上,采用 Max-Average 防御的带防御 RDI-Nets 在 TA 和 ATA 方面优于基线,同时将计算量降低约34%。
- 在 CIFAR-10 的 ResNet-38 和 MobileNet-V2 上,Max-Average 防御在最坏情形攻击下带来更大的 ATA 增益,并保持比基线更高的 TA,同时实现显著的 MFLOP 节省。
- 与带防御的稀疏剪枝基线相比,RDI-Nets 在相似或更好的 TA 下提供更高或可比的 ATA,且 MFLOPs 具竞争力。
- 在随机和常见攻击(FGSM、WRM)中,RDI-Nets 展示出普遍的鲁棒性提升,同时保持效率优势。
- 可视化显示在 Average/Max-Average 防御下,多出口的使用更趋平衡,有助于提高对抗性路由的鲁棒性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。