TL;DR
Classic "latency attacks" try to DoS large language models by tricking them into babbling endlessly, assuming this will clog up the server for everyone else. Surprisingly, modern serving engines like vLLM shrug these attacks off—so the authors of this paper stop attacking the model and start attacking the scheduler. By exploiting a subtle memory-timing leak and orchestrating GPU memory exhaustion, they bring shared LLM infrastructure to a crawl while paying 30–40% less in API token fees than older methods.
What Problem Does This Paper Address?
Running LLMs is fiercely expensive, which birthed a cat-and-mouse game around "sponge" or latency attacks: crafting prompts that suppress the end-of-sequence token so the model generates text forever. On paper, this sounds like a devastating Denial-of-Service (DoS) vector.
In reality, the authors show these attacks are mostly self-inflicted wounds. Why? Because modern serving frameworks (like vLLM, Orca, and SGLang) use Continuous Batching (CB). Instead of waiting for the longest request in a batch to finish before letting new ones in, CB schedules work token-by-token. If an attacker’s prompt babbles for ten minutes, it hogs one slot, while normal users smoothly enter and exit the remaining slots. Their Time-to-First-Token (TTFT)—how long you stare at a blank screen before a reply starts—barely budges.
The question the authors ask is: If continuous batching logically isolates users at the software level, how can an unprivileged, black-box API user weaponize the underlying hardware limits to cause a true, contagious DoS?
Methods
Instead of just maximizing output length, the authors introduce Fill and Squeeze (F&S), an attack targeting the deterministic state machine of the serving scheduler and its shared GPU memory pool—specifically the KV cache (the working memory storing conversation context).
F&S operates as a closed-loop control system across four components:
- Black-Box Memory Probing: As a regular API tenant, the attacker can't see how full the server's VRAM is. However, because every token generation must stream the global KV cache from GPU memory, heavy memory usage slightly slows down everyone's token stream. By measuring Inter-Token Latency (ITL)—the tiny pause between streamed words—and feeding it into a lightweight LightGBM regressor, the attacker accurately infers global GPU memory usage in real time.
- Tiered Payloads: Rather than spamming maximum-length prompts (which gets expensive fast when paying per token), the attacker prepares High, Medium, and Low output-length prompts, compatible with plain-text instructions or existing attacks like ExtendAttack.
- Fill (Exhaustion): When the server has plenty of free memory, the attacker fires High-intensity prompts to rapidly gobble up VRAM. Once full, the First-Come-First-Served waiting queue freezes in Head-of-Line (HOL) blocking—nobody gets admitted until memory clears.
- Squeeze & Adaptive Back-off (Thrashing): Hovering right at the memory limit, the attacker switches to cheap, Low-intensity prompts. Each tiny push over the edge forces the scheduler to preempt (evict) an active request, burning massive GPU cycles swapping memory to CPU RAM or recomputing states from scratch. Crucially, because vLLM evicts the newest request first (LIFO), the attacker briefly backs off right after crossing the threshold so benign users take the preemption hit instead of the attacker.
Datasets
No new benchmarks were introduced; instead, the authors emulated multi-tenant production traffic using established datasets:
- Alpaca: Short-context instruction-following prompts, used as the primary baseline for benign user traffic.
- ShareGPT: Long-context multi-turn dialogues, used to test workload sensitivity.
- BurstGPT: 10.31 million real-world LLM API traffic traces, used to simulate realistic daily off-peak and peak load fluctuations.
Key Insights and Ideas
- Logical isolation $\neq$ physical isolation: Continuous batching neatly separates requests in scheduling logic, but they still fight over High Bandwidth Memory (HBM) pipes. That tiny physical contention (~5ms slowdown) isn't a DoS on its own, but it acts as a crystal-clear side channel revealing the server's global memory state.
- Asymmetric preemption economics: Near memory saturation, an attacker only pays for a handful of tokens ($\delta$) to tip the server over the edge, forcing the provider to pay a quadratic $\Theta(L^2)$ recomputation or slow PCIe swap penalty on a victim's entire sequence ($L$).
- Ambient traffic is a force multiplier: During peak hours on BurstGPT traces, normal users naturally fill up most of the KV cache. The attacker just rides the wave, bridging the tiny remaining gap to trigger thrashing at a 40% discount.
- Short-context traffic suffers worse TTFT stalls: Counter-intuitively, short-prompt workloads (Alpaca) suffered sharper TTFT spikes than long dialogues (ShareGPT), because rapid-fire requests pile up dramatically behind the admission bottleneck created during the "Fill" phase.
Key Results
Evaluated on vLLM (v0.11.2) across Qwen3-8B, Gemma3-12B-it, and DeepSeek-R1-Distill-Llama-8B:
- Massive Latency Spikes: F&S degraded benign users' TTFT by 75$\times$ to 742$\times$ over normal baselines (e.g., pushing Gemma3-12B-it wait times from 0.13s to 97.83s, and up to 104.50s when paired with ExtendAttack).
- Sluggish Streaming: Time Per Output Token (TPOT) slowed down by 1.5$\times$ to 4$\times$ compared to existing scheduler-oblivious attacks like Engorgio and LoopLLM.
- Cheaper Attacks: F&S achieved these slowdowns while cutting the attacker's API token bill by 30–40% (e.g., $0.42 vs. $0.80–$1.18 on Qwen3-8B).
Limitations and Future Work
The authors emphasize that F&S targets default serving setups (shared global KV pool, FCFS admission, LIFO preemption, unbuffered token streaming) and is not an unstoppable silver bullet:
- Surrogate calibration: While "black-box" means no insider access to the victim server, the ITL memory prober still needs to be trained on a matching hardware surrogate beforehand.
- Hardware scaling: Over-provisioning via Tensor Parallelism (scaling from 2 to 8 GPUs) expands KV capacity enough to trap a fixed-budget attacker in the expensive "Fill" phase without ever reaching "Squeeze."
- Straightforward mitigations: Providers can blunt F&S by enforcing strict per-entity KV memory quotas, capping maximum output lengths, using skip-ahead or fair-queuing schedulers to prevent HOL blocking, or buffering streamed tokens slightly to blind the ITL side channel. Evaluating large-scale resource consumption attacks and defenses across broader production safeguards remains future work.
Summary updated