BitHydra: Towards Bit-flip Inference Cost Attack against Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are widely deployed, but their substantial compute demands make them vulnerable to inference cost attacks that aim to deliberately maximize the output length. In this work, we investigate a distinct attack surface: maximizing inference cost by tampering with the model parameters instead of inputs. This approach leverages the established capability of Bit-Flip Attacks (BFAs) to persistently alter model behavior via minute weight perturbations, effectively decoupling the attack from specific input queries. To realize this, we propose BitHydra, a framework that addresses the unique optimization challenge of identifying the exact weight bits that maximize generation cost. We formulate the attack as a constrained Binary Integer Programming (BIP) problem designed to systematically suppress the end-of-sequence (i.e., <eos>) probability. To overcome the intractability of the discrete search space, we relax the problem into a continuous optimization task and solve it via the Alternating Direction Method of Multipliers (ADMM). We evaluate BitHydra across 10 LLMs (1.5B-16B). Our results demonstrate that the proposed optimization method efficiently achieves endless generation with as few as 1-4 bit flips on all testing models, verifying the effectiveness of the ADMM-based formulation against both standard models and potential defenses.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 39 of its 79 references that are in the map. First posted on arXiv 22 May 2025.
Builds on
39 of 79 references.
References · 39
- 2017Attention Is All You Needcited by 59,932
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2023Qwen Technical Reportcited by 3,273
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2016An overview of gradient descent optimization algorithmscited by 1,021
- 2023BloombergGPT: A Large Language Model for Financecited by 923
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2019TBT: Targeted Neural Network Attack with Bit Trojancited by 112
- 2020Sponge Examples: Energy-Latency Attacks on Neural Networkscited by 108
27 more
- 2019Bit-Flip Attack: Crushing Neural Network with Progressive Bit Searchcited by 106
- 2025OverThink: Slowdown Attacks on Reasoning LLMscited by 94
- 2024Coercing LLMs to do and reveal (almost) anythingcited by 88
- 2024Inducing High Energy-Latency of Large Vision-Language Models with Verbose Imagescited by 69
- 2020A Panda? No, It's a Sloth: Slowdown Attacks on Adaptive Multi-Exit Neural Network Inferencecited by 61
- 2020DeepHammer: Depleting the Intelligence of Deep Neural Networks through Targeted Chain of Bit Flipscited by 53
- 2021Targeted Attack against Deep Neural Networks via Flipping Limited Weight Bitscited by 49
- 2022NICGSlowDown: Evaluating the Efficiency Robustness of Neural Image Caption Generation Modelscited by 47
- 2021DeepSteal: Advanced Model Extractions Leveraging Efficient Weight Stealing in Memoriescited by 42
- 2023In ChatGPT We Trust? Measuring and Characterizing the Reliability of ChatGPTcited by 35
- 2024An Engorgio Prompt Makes Large Language Model Babble oncited by 30
- 2022Phantom Sponges: Exploiting Non-Maximum Suppression to Attack Deep Object Detectorscited by 28
- 2019RowHammer: A Retrospectivecited by 19
- 2021RADAR: Run-time Adversarial Weight Attack Detection and Accuracy Recoverycited by 18
- 2023Aegis: Mitigating Targeted Bit-flip Attacks against Deep Neural Networkscited by 17
- 2022LLMEffiChecker: Understanding and Testing Efficiency Degradation of Large Language Modelscited by 16
- 2023SlowTrack: Increasing the Latency of Camera-based Perception in Autonomous Driving Using Adversarial Examplescited by 15
- 2023One-bit Flip is All You Need: When Bit-flip Attack Meets Model Trainingcited by 14
- 2017Another Flip in the Wall of Rowhammer Defensescited by 11
- 2020TRRespass: Exploiting the Many Sides of Target Row Refreshcited by 11
- 2015DRAMA: Exploiting DRAM Addressing for Cross-CPU Attackscited by 10
- 2020Deep-Dup: An Adversarial Weight Duplication Attack Framework to Crush Deep Neural Network in Multi-Tenant FPGAcited by 10
- 2021HASHTAG: Hash Signatures for Online Detection of Fault-Injection Attacks on Deep Neural Networkscited by 9
- 2021Uncovering In-DRAM RowHammer Protection Mechanisms: A New Methodology, Custom RowHammer Patterns, and Implicationscited by 7
- 2024The Impact of Uniform Inputs on Activation Sparsity and Energy-Latency Attacks in Computer Visioncited by 7
- 2021Don't Knock! Rowhammer at the Backdoor of DNN Modelscited by 6
- 2023Read Disturbance in High Bandwidth Memory: A Detailed Experimental Study on HBM2 DRAM Chipscited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.