Prefix caching
Keeping the KV cache for a prompt segment that many requests share, instead of recomputing the same system prompt ten thousand times a day.
Almost all production traffic to a language model shares an opening: a system prompt, a few examples, a document that several questions are asked against. Because attention is causal, the keys and values for those tokens do not depend on anything that comes later, which means they can be computed once and reused. The implementation splits the sequence into blocks, hashes each block's token contents and looks matches up in a shared table — vLLM calls it automatic prefix caching, while SGLang built the RadixAttention variant around a radix tree. The gain shows up mainly in time to first token, which can drop by an order of magnitude for long shared prefixes.