Rethinking Latency Denial-of-Service: Attack the LLM Serving Framework, Not the Model

Tianyi Wang, Huawei Fan, Yuanchao Shu, Peng Cheng, Cong WangNeurIPS 2026

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.

Figure 1: Impact of latency attacks on nor- mal users.

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).

Figure 3: Overview of F&S attack steps and scheduling states, in which a key is the transition between the FCFS-based Waiting Queue and the continuously-batched Running Queue.

F&S operates as a closed-loop control system across four components:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
Figure 5: Visualization of TTFT, ITL, Global KV-Cache usage and queue size of F&S attack over time. The Waiting Queue Size (bottom) accumulates as opposed to the Running Queue, which directly correlates with the massive outliers observed in the TTFT Scatter Plot (top right), where user requests are blocked for tens of seconds before processing begins, confirming that the TTFT surge stems from HOL blocking.

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

Abstract

LLM inference is inherently expensive, even a modest slowdown can translate into substantial operating costs and severe availability risks. Recently, a growing body of research known as latency attacks focuses on crafting inputs to trigger worst-case output lengths. However, we report a contrary finding that these algorithmic-level latency attacks are largely ineffective against modern LLM serving systems. We reveal that system-level optimization such as continuous batching provides a logical isolation to mitigate contagious latency impact on co-located users. Thus, in this paper, we shift our focus from the algorithm to the system layer, and introduce a new Fill and Squeeze attack strategy targeting the state transition of the scheduler. ``Fill'' first exhausts the global KV cache to induce Head-of-Line blocking, while ``Squeeze'' forces the system into repetitive preemption. By manipulating output lengths using different attack prompts, and leveraging side-channel probing of memory status, we demonstrate that the attack can succeed in a practical black-box setting with much less cost. Extensive evaluations on vLLM indicate up to $75-742\times$ TTFT degradation relative to benign baselines and $1.5-4\times$ average slowdown on Time Per Output Token compared to existing attacks with 30-40\% lower attack cost. https://github.com/Phil-Fan/FS-attack
BibTeX
@inproceedings{wang2026rethinking,
  author = {Tianyi Wang and Huawei Fan and Yuanchao Shu and Peng Cheng and Cong Wang},
  title = {{Rethinking Latency Denial-of-Service: Attack the LLM Serving Framework, Not the Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Mt7nS68ZZM},
}
Figure