Skip to main content
QUICK REVIEW

[Paper 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 Science48 references18 citations
TL;DR

This paper introduces DeepSloth, a novel adversarial slowdown attack that undermines the efficiency of adaptive multi-exit neural networks by crafting imperceptible perturbations to force full-network inference. The attack reduces computational savings by 90–100% and increases latency by 1.5–5× in IoT settings, even under black-box conditions, and shows that standard adversarial training offers limited defense, exposing a critical vulnerability in efficient DNN inference designs.

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.

Motivation & Objective

  • To investigate whether input-adaptive multi-exit neural networks, designed for efficient inference, are vulnerable to adversarial slowdowns.
  • To evaluate the robustness of these architectures under adversarial pressure that increases inference latency.
  • To determine if universal, transferable perturbations can be crafted to degrade performance across different models and datasets.
  • To assess the effectiveness of adversarial training as a defense against such slowdown attacks.
  • To explore the implications for real-world deployment in resource-constrained environments like IoT.

Proposed method

  • Adapted PGD-based adversarial attack techniques to target inference latency instead of misclassification, optimizing for delayed exit decisions.
  • Proposed a new metric, efficacy score, to quantitatively compare the impact of slowdown attacks across different multi-exit architectures.
  • Generated both sample-specific and universal perturbations to evaluate reusability and transferability in black-box settings.
  • Trained and evaluated multi-exit models on CIFAR-10 and Tiny ImageNet using VGG16, MobileNet, ResNet56, and a custom architecture.
  • Applied adversarial training with DeepSloth samples to test its resilience, comparing results against standard PGD attacks.
  • Evaluated transferability by applying DeepSloth-generated perturbations to a non-multi-exit adaptive model (SkipNet), demonstrating shared vulnerability.

Experimental results

Research questions

  • RQ1Can adversarial perturbations be crafted to force full-network inference in multi-exit DNNs, thereby nullifying their computational savings?
  • RQ2To what extent can universal, reusable perturbations induce slowdowns across different models and datasets?
  • RQ3Can the attack be effective in black-box scenarios where the attacker has limited knowledge of the victim model?
  • RQ4Does standard adversarial training provide meaningful protection against slowdown attacks on multi-exit networks?
  • RQ5Are different input-adaptive mechanisms (e.g., multi-exit vs. skip connections) equally vulnerable to latency-based adversarial manipulation?

Key findings

  • The DeepSloth attack reduces the efficacy of multi-exit DNNs by 90–100%, effectively eliminating their computational savings.
  • Latency increases by 1.5–5× in typical IoT deployments when subjected to DeepSloth perturbations.
  • Universal, reusable perturbations can be crafted and successfully transfer across different multi-exit architectures and datasets.
  • The attack remains effective in black-box settings, even with limited knowledge of the victim model’s architecture or training data.
  • Adversarial training provides only limited protection, reducing efficacy loss from 0.01 (undefended) to 0.32, but at the cost of reduced efficiency on clean inputs.
  • Transferability experiments show that even non-multi-exit adaptive models like SkipNet suffer from similar slowdowns, suggesting shared underlying vulnerabilities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.