Skip to main content
QUICK REVIEW

[论文解读] A Panda? No, It's a Sloth: Slowdown Attacks on Adaptive Multi-Exit Neural Network Inference

Sanghyun Hong, Yiğitcan Kaya|arXiv (Cornell University)|Oct 6, 2020
Adversarial Robustness in Machine LearningComputer Science参考文献 48被引用 18
一句话总结

本文提出了DeepSloth,一种新型的对抗性减速攻击,通过构造难以察觉的扰动,迫使自适应多出口神经网络执行完整网络推理,从而破坏其效率。该攻击在物联网环境中即使处于黑盒条件,也能使计算节省减少90–100%,并将延迟增加1.5–5倍。此外,研究发现标准对抗性训练提供的防御作用有限,暴露了高效深度神经网络推理设计中的关键漏洞。

ABSTRACT

Recent increases in the computational demands of deep neural networks (DNNs), combined with the observation that most input samples require only simple models, have sparked interest in $input$-$adaptive$ multi-exit architectures, such as MSDNets or Shallow-Deep Networks. These architectures enable faster inferences and could bring DNNs to low-power devices, e.g., in the Internet of Things (IoT). However, it is unknown if the computational savings provided by this approach are robust against adversarial pressure. In particular, an adversary may aim to slowdown adaptive DNNs by increasing their average inference time$-$a threat analogous to the $denial$-$of$-$service$ attacks from the Internet. In this paper, we conduct a systematic evaluation of this threat by experimenting with three generic multi-exit DNNs (based on VGG16, MobileNet, and ResNet56) and a custom multi-exit architecture, on two popular image classification benchmarks (CIFAR-10 and Tiny ImageNet). To this end, we show that adversarial example-crafting techniques can be modified to cause slowdown, and we propose a metric for comparing their impact on different architectures. We show that a slowdown attack reduces the efficacy of multi-exit DNNs by 90-100%, and it amplifies the latency by 1.5-5$ imes$ in a typical IoT deployment. We also show that it is possible to craft universal, reusable perturbations and that the attack can be effective in realistic black-box scenarios, where the attacker has limited knowledge about the victim. Finally, we show that adversarial training provides limited protection against slowdowns. These results suggest that further research is needed for defending multi-exit architectures against this emerging threat. Our code is available at https://github.com/sanghyun-hong/deepsloth.

研究动机与目标

  • 探究旨在实现高效推理的输入自适应多出口神经网络是否易受对抗性减速攻击的影响。
  • 评估这些架构在增加推理延迟的对抗性压力下的鲁棒性。
  • 确定是否可以构造出通用且可迁移的扰动,以在不同模型和数据集上降低性能。
  • 评估对抗性训练作为此类减速攻击防御手段的有效性。
  • 探讨其在资源受限环境(如物联网)实际部署中的影响。

提出的方法

  • 将基于PGD的对抗性攻击技术适配至目标为延迟而非误分类的推理延迟,优化延迟退出决策。
  • 提出一种新指标——有效性得分,用于定量比较不同多出口架构下减速攻击的影响。
  • 生成样本特定和通用扰动,以评估在黑盒环境下的可重用性和可迁移性。
  • 使用VGG16、MobileNet、ResNet56和自定义架构,在CIFAR-10和Tiny ImageNet上训练并评估多出口模型。
  • 应用包含DeepSloth样本的对抗性训练以测试其鲁棒性,并与标准PGD攻击结果进行对比。
  • 通过将DeepSloth生成的扰动应用于非多出口自适应模型(SkipNet)来评估可迁移性,证明其存在共同的脆弱性。

实验结果

研究问题

  • RQ1是否可以构造对抗性扰动,迫使多出口DNN执行完整网络推理,从而完全抵消其计算节省?
  • RQ2通用且可重用的扰动在多大程度上能跨不同模型和数据集引发减速?
  • RQ3当攻击者对目标模型架构或训练数据了解有限时,该攻击是否仍能在黑盒场景中有效?
  • RQ4标准对抗性训练是否能为多出口网络的减速攻击提供有意义的防护?
  • RQ5不同的输入自适应机制(如多出口与跳跃连接)在基于延迟的对抗性操纵下是否具有同等脆弱性?

主要发现

  • DeepSloth攻击使多出口DNN的有效性降低了90–100%,几乎完全消除了其计算节省优势。
  • 在典型物联网部署中,受到DeepSloth扰动影响时,延迟增加了1.5–5倍。
  • 可构造出通用且可重用的扰动,并成功在不同多出口架构和数据集之间实现迁移。
  • 该攻击在黑盒场景中依然有效,即使攻击者对目标模型的架构或训练数据知之甚少。
  • 对抗性训练仅提供有限的防护作用,将有效性损失从0.01(未受保护)降低至0.32,但代价是干净输入下效率下降。
  • 可迁移性实验表明,即使非多出口自适应模型(如SkipNet)也遭受类似减速,表明存在共享的根本性脆弱性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。