Skip to content
Preprint

A Tight Linear Deterministic Competitive Ratio for Fully Online KV-Cache Scheduling

Aug 2026 · 0 citations · 7 references
Computer Science

TL;DR

A fully online model for batching nonpreemptive LLM requests under a growing KV-cache memory constraint and it is proved that every deterministic algorithm has competitive ratio Omega(sqrt(n), while the elementary sequential upper bound is n.

Abstract

Jaillet et al. introduced a fully online model for batching nonpreemptive LLM requests under a growing KV-cache memory constraint. For total end-to-end latency they proved that every deterministic algorithm has competitive ratio Omega(sqrt(n)), while the elementary sequential upper bound is n. We close this gap. Let R_det(n,M) be the optimal deterministic ratio for exactly n requests at memory M, and let R_det(n)=sup_M R_det(n,M). For every n>= 2 we prove (n-1)/12<= R_det(n)<= n, so R_det(n)=Theta(n). The lower bound releases one memory-filling long request, observes its deterministic start time, and then releases n-1 wide one-token requests halfway through the long run. No short request can overlap the long one, whereas a hindsight schedule runs the two groups in the opposite order when useful. The hard instance uses the explicit fixed memory M=2(n-1)n. The upper bound is achieved by a uniform causal serial policy. The exact model, causality argument, both comparator branches, and quantifier order are machine-checked in Lean 4. Exact finite controls and replay commands accompany the proof.

View source

Similar papers

Preprint Aug 2026

CacheRoute: Planned Prefix-Affinity Routing for Large-Scale LLM Serving

When affinity recovers too little KV work, its residual load skew reduces or erases the improvement, so gating any deployment with a shadow replay rather than enabling affinity from workload statistics alone is recommended.

Huang Cheng · 1 citation
Preprint Aug 2026

Tight Bounds for Memory Allocation With and Without Request Fragmentation

This paper considers the following basic question: Does request fragmentation fundamentally change the problem of memory allocation, and if so, how, and finds that even using $k = 1 + o(1)$ request fragmentation, the optimal competitive ratiocollapses to $\Theta(\log M)$.

Michael A. Bender, A. Conway, Martín Farach-Colton et al. · 1 citation
Preprint Aug 2026

Efficiency and Cost Alignment in Batched LLM Serving via Resource-Fair Scheduling

A mathematical scheduling model that connects within-batch resource fairness to system throughput and provides a bi-criterion scheduling policy, ISJL, which maintains high throughput while aligning max-driven batch cost with token-metered revenue.

Da-Yi Yao, Zijie Zhou · 0 citations
Preprint Jul 2026

The Price of Order in the Logarithmic Method

This paper pinpoints the access-model obstruction behind the extra logarithm for exact order and range queries, and the quadratic barrier for select, and bound the product between the total amount of data written during the $n$ insertions and the worst-case amount of data read by a single query, known as the write-read...

Si-Chen Wang, Zhi-Peng Lu, Jing-Bang Chen · 0 citations
Preprint Aug 2026

On Randomized Online Span Minimization

This work presents a randomized online algorithm with an exact competitive ratio of exactly (1 + e)<3.72, where e is Euler's number, against an oblivious adversary, and shows that no randomized algorithm can have a competitive ratio better than e against an oblivious adversary.

A. Calinescu, G. Călinescu, Peng-Jun Wan · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.