A targeted bit flip in CPU DRAM can slow GPU-based LLM inference without initially changing output correctness, according to an arXiv study. The researchers present LLVMHammer, an attack that alters an optimization pass in Triton’s compilation process, causing it to produce a functionally equivalent but less efficient GPU kernel.
The approach targets Triton’s just-in-time compilation, which generates GPU kernels through an MLIR/LLVM-based pipeline. Because Triton caches compiled kernels on disk, the authors say one successful bit flip can carry the slowdown into later inference runs. The affected target-independent compilation stages are shared across GPU vendors.
In tests with four LLMs and NVIDIA and AMD GPUs, LLVMHammer increased the latency of an inference server running on a single GPU by 4% to 16%. The authors also report that the attack can corrupt outputs; in their experiments, BERTScore fell as low as 25%. They introduce another tool, Karnage, to locate useful bit-flip points in Triton’s pipeline. At the scale of multi-GPU deployments, the added latency could also raise operating costs, the paper says, but the source text provides no specific cost estimates.
The original source details the tested models and GPUs, along with the reported effects on runtime and outputs: arXiv: Amplifying Latency and Cost of LLM Inference via Rowhammer Attack