NMTSloth: understanding and testing efficiency degradation of neural machine translation systems
Simin Chen, Cong Liu, Mirazul Haque, Zihe Song, Wei Yang
摘要
Neural Machine Translation (NMT) systems have received much recent attention due to their human-level accuracy. While existing works mostly focus on either improving accuracy or testing accuracy robustness, the computation efficiency of NMT systems, which is of paramount importance due to often vast translation demands and real-time requirements, has surprisingly received little attention. In this paper, we make the first attempt to understand and test potential computation efficiency robustness in state-of-the-art NMT systems. By analyzing the working mechanism and implementation of 1455 public-accessible NMT systems, we observe a fundamental property in NMT systems that could be manipulated in an adversarial manner to reduce computation efficiency significantly. Our interesting observation is that the output length determines the computation efficiency of NMT systems instead of the input, where the output length depends on two factors: an often sufficiently large yet pessimistic pre-configured threshold controlling the max number of iterations and a runtime generated end of sentence (EOS) token. Our key motivation is to generate test inputs that could sufficiently delay the generation of EOS such that NMT systems would have to go through enough iterations to satisfy the pre-configured threshold. We present NMTSloth, which develops a gradient-guided technique that searches for a minimal and unnoticeable perturbation at character-level, token-level, and structure-level, which sufficiently delays the appearance of EOS and forces these inputs to reach the naturally-unreachable threshold. To demonstrate the effectiveness of NMTSloth, we conduct a systematic evaluation on three public-available NMT systems: Google T5, AllenAI WMT14, and Helsinki-NLP translators. Experimental results show that NMTSloth can increase NMT systems' response latency and energy consumption by 85% to 3153% and 86% to 3052%, respectively, by perturbing just one character or token in the input sentence. Our case study shows that inputs generated by NMTSloth significantly affect the battery power in real-world mobile devices (i.e., drain more than 30 times battery power than normal inputs).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LingoLoop Attack: Trapping MLLMs via Linguistic Context and State Entrapment into Endless Loops 引用了 Inducing High Energy-Latency of Large Vision-Language Models with Verbose Images
- TextBugger: Generating Adversarial Text Against Real-world Applications 引用了 Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
- White-Box Multi-Objective Adversarial Attack on Dialogue Generation 引用了 TextBugger: Generating Adversarial Text Against Real-world Applications
- White-Box Multi-Objective Adversarial Attack on Dialogue Generation 引用了 BERT-ATTACK: Adversarial Attack Against BERT Using BERT
- White-Box Multi-Objective Adversarial Attack on Dialogue Generation 引用了 Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
- BERT-ATTACK: Adversarial Attack Against BERT Using BERT 引用了 TextBugger: Generating Adversarial Text Against Real-world Applications
- BERT-ATTACK: Adversarial Attack Against BERT Using BERT 引用了 Word-level Textual Adversarial Attacking as Combinatorial Optimization
- Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment 引用了 TextBugger: Generating Adversarial Text Against Real-world Applications
引用它的顶会 Paper19
- Inducing High Energy-Latency of Large Vision-Language Models with Verbose ImagesKuofeng Gao, Yang Bai, Jindong Gu, Shu-Tao Xia 等ICLR 2024 · 79 次引用
- ThinkTrap: Denial-of-Service Attacks against Black-box LLM Services via Infinite ThinkingYunzhe Li, Jianan Wang, Hongzi Zhu, James Lin 等NDSS 2026 · 26 次引用
- LingoLoop Attack: Trapping MLLMs via Linguistic Context and State Entrapment into Endless LoopsJiyuan Fu, Kaixun Jiang, Lingyi Hong, Jinglun Li 等ICLR 2026 · 12 次引用
- White-Box Multi-Objective Adversarial Attack on Dialogue GenerationYufei Li, Zexin Li, Yingfan Gao, Cong LiuACL 2023 · 12 次引用
- DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph OptimizationSimin Chen, Shiyi Wei, Cong Liu, Wei YangISSTA 2023 · 11 次引用
它引用的 Paper15
- 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 次引用
- TextBugger: Generating Adversarial Text Against Real-world ApplicationsJinfeng Li, Shouling Ji, Tianyu Du, Bo Li 等NDSS 2019 · 876 次引用
- BERT-ATTACK: Adversarial Attack Against BERT Using BERTLinyang Li, Ruotian Ma, Qipeng Guo, Xiangyang Xue 等EMNLP 2020 · 529 次引用
- Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial ExamplesMinhao Cheng, Jinfeng Yi, Pin-Yu Chen, Huan Zhang 等AAAI 2020 · 268 次引用
- Word-level Textual Adversarial Attacking as Combinatorial OptimizationYuan Zang, Fanchao Qi, Chenghao Yang, Zhiyuan Liu 等ACL 2020 · 188 次引用
相关 Paper
- NICGSlowDown: Evaluating the Efficiency Robustness of Neural Image Caption Generation ModelsSimin Chen, Zihe Song, Mirazul Haque, Cong Liu 等CVPR 2022 · 34 次引用
- Crafting Adversarial Examples for Neural Machine TranslationXinze Zhang, Junzhe Zhang, Zhenhua Chen, Kun HeACL 2021
- Sometimes We Want Ungrammatical TranslationsPrasanna Parthasarathi, Koustuv Sinha, Joelle Pineau, Adina WilliamsEMNLP Findings 2021 · 9 次引用
- NaturalSloth: Revisiting Denial-of-Service Attacks on Large Language ModelsYiming Chen, Zexin Li, Xianghu Yue, Robby T. Tan 等ACL 2026
- SlowBERT: Slow-down Attacks on Input-adaptive Multi-exit BERTShengyao Zhang, Xudong Pan, Mi Zhang, Min YangACL Findings 2023 · 1 次引用
