LLMEffiChecker: Understanding and Testing Efficiency Degradation of Large Language Models
Not on the map. Why?
Abstract (arXiv)
In this paper, we make the first attempt to understand and test potential computation efficiency robustness in state-of-the-art LLMs. By analyzing the working mechanism and implementation of 20,543 public-accessible LLMs, we observe a fundamental property in LLMs that could be manipulated in an adversarial manner to reduce computation efficiency significantly. Our key motivation is to generate test inputs that could sufficiently delay the generation of EOS such that LLMs would have to go through enough iterations to satisfy the pre-configured threshold. We present tool, which can work under both white-box setting and black-box setting. In the white-box scenario, tool develops a gradient-guided technique that searches for a minimal and unnoticeable perturbation at character-level, token-level, and structure-level. In the black-box scenario, tool employs a causal inference-based approach to find critical tokens and similarly applies three levels of imperceptible perturbation to them. Both the white-box and black-box settings effectively delay the appearance of EOS, compelling these inputs to reach the naturally-unreachable threshold. To demonstrate the effectiveness of tool, we conduct a systematic evaluation on nine public-available LLMs: Google T5, AllenAI WMT14, Helsinki-NLP translator, Facebook FairSeq, UNICAMP-DL translator, MarianMT, Google FLAN-T5, MBZUAI LaMini-GPT and Salesforce CodeGen. Experimental results show that tool can increase on average LLMs' response latency and energy consumption by 325% to 3244% and 344% to 3616%, respectively, by perturbing just one character or token in the input sentence.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 47 of its 95 references that are in the map. First posted on arXiv 7 Oct 2022.
Builds on
47 of 95 references.
References · 47
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,845
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
35 more
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,200
- 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,055
- 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,035
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2017Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networkscited by 486
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 332
- 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 311
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 306
- 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 251
- 2017Detecting Adversarial Samples from Artifactscited by 245
- 2020A Survey on Causal Inferencecited by 202
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2018Guiding Deep Learning System Testing using Surprise Adequacycited by 124
- 2016Spatially Adaptive Computation Time for Residual Networkscited by 118
- 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 111
- 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 94
- 2018On Adversarial Examples for Character-Level Neural Machine Translationcited by 85
- 2020A Panda? No, It's a Sloth: Slowdown Attacks on Adaptive Multi-Exit Neural Network Inferencecited by 61
- 2021CPM-2: Large-scale Cost-effective Pre-trained Language Modelscited by 52
- 2022NICGSlowDown: Evaluating the Efficiency Robustness of Neural Image Caption Generation Modelscited by 50
- 2018Adversarial Sample Detection for Deep Neural Network through Model Mutation Testingcited by 48
- 2019Accurate, reliable and fast robustness evaluationcited by 43
- 2019Automatic Testing and Improvement of Machine Translationcited by 36
- 2019Structure-Invariant Testing for Machine Translationcited by 28
- 2020Testing Machine Translation via Referential Transparencycited by 20
- 2020Lite Training Strategies for Portuguese-English and English-Portuguese Translationcited by 4
- 2018Comparing Fixed and Adaptive Computation Time for Recurrent Neural Networkscited by 1
Built on by
Citing papers per year: 2023: 6; 2024: 4; 2025: 4; 2026: 2.
16 papers.
Sort:
By area:
- 2024Inducing High Energy-Latency of Large Vision-Language Models with Verbose Imagescited by 69
- 2025ThinkTrap: Denial-of-Service Attacks against Black-box LLM Services via Infinite Thinkingcited by 23
- 2024Special Characters Attack: Toward Scalable Training Data Extraction From Large Language Modelscited by 17
- 2023White-Box Multi-Objective Adversarial Attack on Dialogue Generationcited by 14
- 2023Dynamic Transformers Provide a False Sense of Efficiencycited by 14
- 2024Energy-Latency Manipulation of Multi-modal Large Language Models via Verbose Samplescited by 14
- 2023RT-LM: Uncertainty-Aware Resource Management for Real-Time Inference of Language Modelscited by 11
- 2023SlothSpeech: Denial-of-service Attack Against Speech Recognition Modelscited by 10
- 2023DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph Optimizationcited by 9
- 2024The Impact of Uniform Inputs on Activation Sparsity and Energy-Latency Attacks in Computer Visioncited by 7
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
- 2025BitHydra: Towards Bit-flip Inference Cost Attack against Large Language Modelscited by 2
4 more
- 2026Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Modelcited by 2
- 2023Dynamic Neural Network is All You Need: Understanding the Robustness of Dynamic Mechanisms in Neural Networkscited by 1
- 2025Efficiency Robustness of Dynamic Deep Learning Systemscited by 1
- 2025Exploiting Efficiency Vulnerabilities in Dynamic Deep Learning Systemscited by 1
- 2026Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Model8 Feb 2026
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2025ThinkTrap: Denial-of-Service Attacks against Black-box LLM Services via Infinite Thinking8 Dec 2025
- 2025Exploiting Efficiency Vulnerabilities in Dynamic Deep Learning Systems21 Jun 2025
- 2025Efficiency Robustness of Dynamic Deep Learning Systems12 Jun 2025
- 2025BitHydra: Towards Bit-flip Inference Cost Attack against Large Language Models22 May 2025
- 2024Special Characters Attack: Toward Scalable Training Data Extraction From Large Language Models9 May 2024
- 2024Energy-Latency Manipulation of Multi-modal Large Language Models via Verbose Samples25 Apr 2024
- 2024The Impact of Uniform Inputs on Activation Sparsity and Energy-Latency Attacks in Computer Vision27 Mar 2024
- 2024Inducing High Energy-Latency of Large Vision-Language Models with Verbose Images20 Jan 2024
- 2023RT-LM: Uncertainty-Aware Resource Management for Real-Time Inference of Language Models12 Sep 2023
- 2023Dynamic Neural Network is All You Need: Understanding the Robustness of Dynamic Mechanisms in Neural Networks17 Aug 2023
4 more
- 2023DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph Optimization11 Jul 2023
- 2023SlothSpeech: Denial-of-service Attack Against Speech Recognition Models1 Jun 2023
- 2023Dynamic Transformers Provide a False Sense of Efficiency20 May 2023
- 2023White-Box Multi-Objective Adversarial Attack on Dialogue Generation5 May 2023
- 2024Special Characters Attack: Toward Scalable Training Data Extraction From Large Language Modelscited by 17
- 2023White-Box Multi-Objective Adversarial Attack on Dialogue Generationcited by 14
- 2023RT-LM: Uncertainty-Aware Resource Management for Real-Time Inference of Language Modelscited by 11
- 2023SlothSpeech: Denial-of-service Attack Against Speech Recognition Modelscited by 10
- 2023DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph Optimizationcited by 9
- 2024The Impact of Uniform Inputs on Activation Sparsity and Energy-Latency Attacks in Computer Visioncited by 7
- 2025BitHydra: Towards Bit-flip Inference Cost Attack against Large Language Modelscited by 2
- 2023Dynamic Neural Network is All You Need: Understanding the Robustness of Dynamic Mechanisms in Neural Networkscited by 1
- 2025Efficiency Robustness of Dynamic Deep Learning Systemscited by 1
- 2025Exploiting Efficiency Vulnerabilities in Dynamic Deep Learning Systemscited by 1
- 2025Exploiting Efficiency Vulnerabilities in Dynamic Deep Learning Systems21 Jun 2025
- 2025Efficiency Robustness of Dynamic Deep Learning Systems12 Jun 2025
- 2025BitHydra: Towards Bit-flip Inference Cost Attack against Large Language Models22 May 2025
- 2024Special Characters Attack: Toward Scalable Training Data Extraction From Large Language Models9 May 2024
- 2024The Impact of Uniform Inputs on Activation Sparsity and Energy-Latency Attacks in Computer Vision27 Mar 2024
- 2023RT-LM: Uncertainty-Aware Resource Management for Real-Time Inference of Language Models12 Sep 2023
- 2023Dynamic Neural Network is All You Need: Understanding the Robustness of Dynamic Mechanisms in Neural Networks17 Aug 2023
- 2023DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph Optimization11 Jul 2023
- 2023SlothSpeech: Denial-of-service Attack Against Speech Recognition Models1 Jun 2023
- 2023White-Box Multi-Objective Adversarial Attack on Dialogue Generation5 May 2023