Virtual Token Counter (VTC) bounds the service gap between competing overloaded LLM clients within 2x of the theoretical lower bound for any non-preemptive, work-conserving scheduler, while cutting maximum client service disparity on real Chatbot Arena traces from 759.97 (FCFS) to 368.40 at identical throughput (779 tokens/s vs. 777 tokens/s). Proposed by Ying Sheng, Shiyi Cao, Dacheng Li, Banghua Zhu, Zhuohan Li, Danyang Zhuo, Joseph E. Gonzalez, and Ion Stoica (UC Berkeley, Stanford, and Duke), VTC replaces blind First-Come-First-Serve queues and wasteful rate limits with token-level fair queueing inside continuous batching.
Production engines like vLLM and Hugging Face TGI default to FCFS, which lets one abusive tenant starve everyone else, or static Requests-Per-Minute (RPM) caps, which idle GPUs when fewer clients are active and ignore whether a prompt holds 200 or 2,000 tokens. VTC fixes both in roughly 100 lines of scheduler code.
- Matches FCFS throughput with strict isolation: On a 10-minute 27-client Chatbot Arena trace (Llama-2-7B on A10G, 210 req/min), VTC sustains 779 tok/s while isolating well-behaved clients; a strict
RPM(5)cap drops cluster throughput by 56% to 340 tok/s. - Halves service variance: VTC cuts average service difference from 433.53 (FCFS) to 251.66, and variance from 32,112 to 6,549; adding a simple 5-request output-length predictor drops max difference further to 365.47 (and 33.98 vs. 192.88 under synthetic overload with +/-50% error).
- 2x tight theoretical bound: For continuously backlogged clients under weighted token pricing (
w_pinput,w_qoutput), VTC guarantees|W_f - W_g| <= 2 * max(w_p * L_input, w_q * M), within 2x of thew_q * Mlower bound for non-preemptive work-conserving schedulers. - Prevents idle-client bursts from starving peers: Unlike naive Least Counter First (LCF), which lets an idle client accumulate infinite credit (
750.49max diff), VTC lifts joining counters to the active minimum.
How It Works
Classic network fair queueing algorithms (Start-time Fair Queueing, Deficit Round Robin) fail on LLM engines for three reasons: output token length is unknown until EOS, parallel prefill tokens cost less GPU time than sequential decode tokens, and effective token throughput shifts constantly with sequence length and KV-cache pressure.
VTC solves all three by tracking a virtual counter c_i per client on top of Orca-style continuous batching with two asynchronous streams:
Immediate prefill charging prevents a scheduler from picking the same low-counter client repeatedly within one minibatch, while per-iteration decode updates account for unknown generation lengths on the fly. The counter lift step is essential: if a quiet client returns with c_u = 0 after others have racked up thousands of tokens, lifting c_u to the active minimum prevents that client from monopolizing the GPU while “catching up.”
Key Findings
Across synthetic and real workloads implemented on S-LoRA and LightLLM, VTC separates rate abuse from well-behaved tenants without sacrificing cluster utilization.
Under ON/OFF and overloaded synthetic streams, VTC keeps non-backlogged clients’ first-token latency flat even while an ill-behaved tenant ramps past half the server’s capacity. When an idle client switches to overload in a three-phase distribution shift test (Figure 10), LCF lets the returning client starve the steady client for tens of seconds, whereas VTC immediately splits GPU service 50/50.
Ablations on Llama-2-13B (A100 80 GB, KV pools of 35,000 and 65,000 tokens) confirm the theoretical bound: larger KV-cache batch capacity M and longer request sequences widen transient service gaps because VTC does not preempt running requests once admitted. Adding length prediction (VTC (+/-50%)) or an exact oracle cuts this gap sharply (Max Diff drops from 192.88 to 33.98 and 5.87 under 2-client overload) by charging estimated output work upfront and reconciling at completion.
The paper also verifies generality: Weighted VTC enforces exact 1:2:3:4 service ratios across tiered clients, and replacing w_p * n_p + w_q * n_q with a profiled quadratic latency model (h(n_p, n_q) = 2.1*n_p + n_q + 0.04*n_p*n_q + 0.032*n_q^2 + 11.46) preserves low response times for light users.
Caveats and Builder Takeaway
- Non-preemptive batches create transient gaps: Because VTC never swaps out an active request, one tenant sending unexpectedly long outputs can fill the batch (
Mtokens) and delay others up to2 * w_q * M; preemption or chunked prefill would tighten this gap. - Direct conflict with prefix-cache scheduling: Cache-aware schedulers like SGLang RadixAttention prioritize requests that hit cached KV prefixes, which intentionally favors a repeat client whose virtual counter is high.
- Linear weights simplify hardware reality: On an A10G, decode latency grows quadratically with sequence length due to attention bandwidth, so a 2:1 output-to-input weight is only a rough proxy for GPU cost.
- Single-node scope: Multi-replica clusters would need a centralized dispatcher or cross-replica counter synchronization.
Builder takeaway: If you run shared multi-tenant inference or multi-LoRA serving, replacing FCFS request selection with VTC’s virtual counter and counter lift takes about 100 lines of code and gives hard tenant isolation without throttling idle GPU capacity.


