AIToday
Large Language ModelsOpen-Source AIDaily Dose of Data SciencePublished: Nov 25, 2026, 10:01 JST

SGLang v0.4 KV-aware router lifts cache hits from 20% to 75%

Send on LINE
SGLang v0.4 KV-aware router lifts cache hits from 20% to 75%

3 Key Points

  1. What happened

    A KV cache-aware router estimates how much of each prompt a worker can reuse plus its existing load. SGLang v0.4's shared-prefix benchmark showed cache hits rising from 20% to 75% and throughput from 82,665 to 158,596 tokens per second.

  2. Why it matters

    That benchmark's balanced groups of long shared prefixes offered unusually high reuse, so similar gains shouldn't be expected for unrelated prompts. More cache hits also aren't an improvement if requests spend longer waiting.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

A hardware constraint is the starting point: token generation is limited by memory bandwidth, not compute, because each new token requires reading model weights and the relevant KV cache from memory. At low batch sizes there is little arithmetic for all that data movement, so adding compute alone does not speed up decode. In an analysis of SWE-bench Pro and Terminal-Bench runs, model inference accounted for 71% to 98% of agent runtime, and even with extensive prefix caching, generating the answer one token at a time remained a large part of that cost.

Prefix caching is what makes routing matter. Later requests can reuse attention keys and values computed for an identical prefix, but only if the cached state is available to the worker serving the request. Block hashes identify matching prefixes and incorporate the preceding context, so changing an earlier token breaks the match even if later text is identical. This gives prompt layout a practical role: keeping stable instructions and tool definitions before changing request content creates more opportunities for reuse, provided the model and other cache settings are compatible.

A router that always chooses the largest cache match can overload a popular replica, so the decision has to weigh prefill work saved against extra waiting. Implementations maintain that cache view differently: the original SGLang v0.4 router kept an approximate cache view rather than requiring workers to synchronize their cache state. The benchmark workload contained balanced groups of long shared prefixes, so the same improvement shouldn't be assumed for other traffic; compare routing policies on the same traffic and hardware while measuring time to first token alongside throughput and prefill work avoided.

FAQ
Why isn't the least busy replica always the fastest for an LLM request?
A quieter replica may have no cached KV state and must recompute the whole prompt, while a busier replica can reuse most of the prefix.
Can a KV-aware router move cached tensors between workers?
No. Routing doesn't move cached tensors by itself; transferring KV state between workers requires a separate mechanism.
What did SambaNova report about its RDU on MiniMax M2.7?
SambaNova has shown up to 4x faster time to first token than GPUs on MiniMax M2.7.
Daily Dose of Data ScienceRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleSimon Willison: Claude Opus 4.5 was first reliably useful coding model