Skip to content

BitHydra: a bit-flip inference cost attack against large language modelsBitHydra: Towards Bit-flip Inference Cost Attack against Large Language Models

arXiv· arXiv:2505.16670· Xiaobei Yan, Yiming Li, Hao Wang, Han Qiu, Tianwei Zhang·Indexed by this site · 24 days ago· Originally publishedAttacks
AI summary

Researchers propose the BitHydra framework, which maximizes the inference cost of large language models by tampering with model weights rather than inputs; on 10 tested models (1.5B-16B), flipping only 1-4 bits is enough to trigger unbounded generation. The method formulates the attack as a constrained binary integer programming problem, extends output length by suppressing the probability of the end-of-sequence token, and uses ADMM to relax the discrete search into a continuous optimization. Because the attack acts on parameters rather than specific input queries, it is decoupled from particular inputs; the paper states that the ADMM-based optimization method is effective on standard models and potential defenses.

Read originalarxiv.org