Lune

ACL Findings2023

SlowBERT: Slow-down Attacks on Input-adaptive Multi-exit BERT

Shengyao Zhang, Xudong Pan, Mi Zhang, Min Yang

摘要

For pretrained language models such as Google's BERT, recent research designs several input-adaptive inference mechanisms to improve the efficiency on cloud and edge devices.In this paper, we reveal a new attack surface on input-adaptive multi-exit BERT, where the adversary imperceptibly modifies the input texts to drastically increase the average inference cost.Our proposed slow-down attack called SlowBERT integrates a new rank-andsubstitute adversarial text generation algorithm to efficiently search for the perturbation which maximally delays the exiting time.With no direct access to the model internals, we further devise a time-based approximation algorithm to infer the exit position as the loss oracle.Our extensive evaluation on two popular instances of multi-exit BERT for GLUE classification tasks validates the effectiveness of SlowBERT.In the worst case, SlowBERT increases the inference cost by 4.57×, which would strongly hurt the service quality of multi-exit BERT in practice, e.g., increasing the real-time cloud services' response time for online users.Embeddings Layer-1 Layer-2 Layer-3 Layer-K … IC-K IC-3 IC-2 IC-1 "a fast, funny, highly enjoyable movie."(b) Patience-based (C=2) Embeddings Layer-1 Layer-2 Layer-3 Layer-K … IC-K IC-3 IC-2 IC-1 "a fast, funny, highly enjoyable movie."(a) Confidence-based (T=0.8)patience count=2 POS: 0.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • NaturalSloth: Revisiting Denial-of-Service Attacks on Large Language Models 引用了 VLMInferSlow: Evaluating the Efficiency Robustness of Large Vision-Language Models as a Service
  • BERT Loses Patience: Fast and Robust Inference with Early Exit 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • BERT Loses Patience: Fast and Robust Inference with Early Exit 引用了 FastBERT: a Self-distilling BERT with Adaptive Inference Time
  • VLMInferSlow: Evaluating the Efficiency Robustness of Large Vision-Language Models as a Service 引用了 BERT Loses Patience: Fast and Robust Inference with Early Exit
  • FastBERT: a Self-distilling BERT with Adaptive Inference Time 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment 引用了 TextBugger: Generating Adversarial Text Against Real-world Applications
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. VLMInferSlow: Evaluating the Efficiency Robustness of Large Vision-Language Models as a ServiceXiasi Wang, Tianliang Yao, Simin Chen, Runqi Wang 等ACL 2025 · 3 次引用
  2. NaturalSloth: Revisiting Denial-of-Service Attacks on Large Language ModelsYiming Chen, Zexin Li, Xianghu Yue, Robby T. Tan 等ACL 2026

它引用的 Paper11

  1. ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel 等ICLR 2020 · 7,418 次引用
  2. Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentDi Jin, Zhijing Jin, Joey Tianyi Zhou, Peter SzolovitsAAAI 2020 · 1,333 次引用
  3. TextBugger: Generating Adversarial Text Against Real-world ApplicationsJinfeng Li, Shouling Ji, Tianyu Du, Bo Li 等NDSS 2019 · 876 次引用
  4. BERT Loses Patience: Fast and Robust Inference with Early ExitWangchunshu Zhou, Canwen Xu, Tao Ge, Julian J. McAuley 等NeurIPS 2020 · 473 次引用
  5. FastBERT: a Self-distilling BERT with Adaptive Inference TimeWeijie Liu, Peng Zhou, Zhiruo Wang, Zhe Zhao 等ACL 2020 · 257 次引用

相关 Paper

  1. Dynamic Transformers Provide a False Sense of EfficiencyYiming Chen, Simin Chen, Zexin Li, Wei Yang 等ACL 2023 · 5 次引用
  2. BERT Lost Patience Won't Be Robust to Adversarial SlowdownZachary Coalson, Gabriel Ritter, Rakesh Bobba, Sanghyun HongNeurIPS 2023 · 7 次引用
  3. A Panda? No, It's a Sloth: Slowdown Attacks on Adaptive Multi-Exit Neural Network InferenceSanghyun Hong, Yigitcan Kaya, Ionut-Vlad Modoranu, Tudor DumitrasICLR 2021 · 85 次引用
  4. LeeBERT: Learned Early Exit for BERT with cross-level optimizationWei ZhuACL 2021
  5. BERT-ATTACK: Adversarial Attack Against BERT Using BERTLinyang Li, Ruotian Ma, Qipeng Guo, Xiangyang Xue 等EMNLP 2020 · 529 次引用
黄昏的海面,两侧是细线勾勒的悬崖