How Long Prompts Block Other Requests - Optimizing LLM Performance
Related stories
Prefill and Decode for Concurrent Requests - Optimizing LLM Performance
Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Model
The paper "Rethinking Latency Denial-of-Service: Attacking the LLM Serving Framework, Not the Model" argues that traditional algorithmic latency attacks are largely ineffective against modern LLM serving systems due to system-level optimizations like continuous batching. It introduces a new Fill and Squeeze attack that targets the scheduler’s state transition, exhausting the global KV cache to cause Head-of-Line blocking and forcing repetitive preemption. Experiments on vLLM show the attack can cause up to 75–742× TTFT degradation and 1.5–4× slowdown on Time Per Output Token, achieving these effects with 30–40% lower attack cost.
Optimizing your LLM in production
VelServe: Taming Decode Jitters in LLM Inference with Tail-Calibrated Scheduling
VelServe is a scheduler designed to reduce decode jitters in large language model (LLM) inference, ensuring that latency service-level objectives (SLOs) for time to first token (TTFT) and time between tokens (TBT) are met. It calibrates the amount of prefill work each decode step performs based on the measured tail latency of that step, leaving headroom to prevent overruns and prioritizing shorter waiting prompts. Experiments on multiple attention families and workloads show that VelServe improves SLO goodput by 2.4–2.9× over the best baseline on Qwen3‑8B and DeepSeek‑V4‑Flash, and by at least 4.4× on DeepSeek‑V2‑Lite, while meeting SLOs for more than twice as many requests when prefill and decode are disaggregated across eight GPUs.
Multi-Bin Batching for Increasing LLM Inference Throughput
arXiv:2412. 04504v2 Announce Type: replace-cross Abstract: As large language models (LLMs) grow in popularity for their diverse capabilities, improving the efficiency of their inference systems has become increasingly critical.
Jumping the Line: Exploiting Length Predictions in LLM Scheduling
The paper introduces JIL, an attack that manipulates length predictions used by large language model (LLM) schedulers to gain higher priority and reduce completion time. By optimizing an adversarial suffix, JIL causes lightweight output-length probes to underestimate request lengths, leading to up to an 83.4 % reduction in predicted length and an average 1.53× faster completion in end‑to‑end serving experiments. The study also evaluates defenses, showing that grouping predictions into coarse intervals can mitigate JIL’s advantage and protect benign requests.
TokenRouter: Efficient Serving System for Token-Level LLM Routing
TokenRouter is a new serving system designed for token‑level routing of large language models (LLMs). It adopts a request‑centric programming model and launches a dedicated subserver for each LLM, using delayed‑batching schedulers whose hyperparameters are derived from a throughput model. Across various routing algorithms, workloads, and model pairs, TokenRouter delivers 2.01‑64.15× higher decoding throughput than existing systems, markedly improving the efficiency of token‑level LLM inference.
LLMVisor: A Real-Time Latency Attribution Model for Multi-Tenant LLM Serving
arXiv:2608. 08382v1 Announce Type: new Abstract: As LLM inference shifts to multi-tenant GPU clusters, co-batching improves throughput but obscures per-tenant usage and limits control.
Scorpio: Serving Right Requests at the Right Time for Heterogeneous SLOs in LLM Inference
Scorpio is an LLM serving system that optimizes for heterogeneous Service Level Objectives (SLOs) such as Time to First Token (TTFT) and Time Per Output Token (TPOT). It uses adaptive scheduling across admission control, queue management, and batch selection, featuring a TTFT Guard that reorders requests by least-deadline-first and rejects unattainable ones, and a TPOT Guard that employs VBS-based admission control and a credit-based batching mechanism. Predictive modules support both guards, and evaluations show Scorpio can increase system goodput by up to 14.4× and improve SLO adherence by up to 46.5% under high load compared to state-of-the-art baselines.
RAW: Refusal Aversion in the Wild, A Causal Measurement Method for Deployed LLMs
arXiv:2611. 21641v1 Announce Type: cross Abstract: Deployed LLMs field hundreds of millions of conversations a day and refuse a non-trivial fraction of user requests, yet the user-side cost of refusal, whether users disengage and by how much, is unmeasured on any production model: a blind spot for the consumer-facing platforms built on them.
Read Once, Answer Many: Parallel Prompting for Shared-Context LLM Inference
The paper introduces Parallel Prompting, a technique that decodes multiple independent questions about a single long document in parallel, reducing redundant memory reads. By reading the shared document once per decoding step and using a stream‑id attention mask, the method improves throughput without extra dense tensors. Implemented in SGLang, it achieves up to 6× speedups over the baseline on both A100 and RTX A6000 GPUs for CodeLlama‑7B with large documents and many questions.