← Lab /AI/ML

Rowhammer can slow LLM inference by 4-16% and drop BERTScore to 25%

LLVMhammer causes persistent latency slowdown and output corruption in GPU-based LLM inference via a single DRAM bit-flip

AI/ML arXiv 22 Oct 2026 Attack Prototype evidence

Published as “Amplifying Latency and Cost of LLM Inference via Rowhammer Attack”

Why it matters

Even a modest 4-16% persistent latency increase can translate to millions of dollars of lost compute time in large-scale LLM serving deployments.

Summary

LLVMhammer, a Rowhammer attack on Triton's JIT compilation pipeline, can persistently slow LLM inference by 4-16% and even corrupt outputs (BERTScore as low as 25%). The authors demonstrate the effect on four models across NVIDIA and AMD GPUs, with statistically significant slowdowns (p<0.05) at high request volumes (1000 requests) but inconsistent effects at low loads.

What they found 2

  1. LLVMhammer increased inference latency by 4-16%.

    “LLVMhammer increased inference latency by 4-16%.”

  2. The flipped kernel raises total inference time by 6.3-16% on NVIDIA, with DeepSeek showing the largest slowdown at 16%.

    “the flipped kernel increases total inference time by 6.3-16% on NVIDIA, with DeepSeek showing the largest slowdown at 16% and Qwen the smallest at 6.3%.”

Caveats 3

  • At n=10, some models show no significant slowdown on any metric, while at n=100 significance is partial.
  • the slowdown signal is inconsistent and unreliable across models and vendors.
  • At lower request counts, the inference workload completes almost instantly. Thus, we cannot reliably distinguish the effect of the suboptimal kernel from vLLM’s batched inference noise.

What’s new here 4

  • Targets inference efficiency rather than output correctness by corrupting the Triton compiler.
  • Introduces Karnage, an automated tool to locate exploitable bit-flip sites in millions of functions.
  • Shows cross-vendor impact: the same bit-flip degrades kernels on both NVIDIA and AMD GPUs.
  • Demonstrates persistent slowdown via Triton's on-disk kernel cache and also output corruption.