[KongchangAI]
Concept前缀缓存

Prefix Caching

An LLM inference optimization technique that persistently caches the KV computation results of shared prefix content (such as system prompts) across multiple requests, enabling cross-request reuse to reduce redundant computation, lower latency, and improve throughput.

Timeline (last 90 days)

Nov 1

Core decision rule: the cache determines how many cold-start reads you have to pay for, and the chip determines the cost of each cold-start read; if the configuration causes the cache to be broken every round, a chip upgrade cannot make up for the performance gap.

Unverified50%
Oct 30

SGLang is optimized for repeated context (multi-turn dialogue, Agents, structured output), and may outperform vLLM in repeated-prompt scenarios.

Unverified50%
Oct 19

Some inference frameworks support multi-level prefix tree matching, which can hit common ancestor nodes shared across different requests, thereby increasing the prefix sharing rate.

Unverified50%
Oct 19

A common engineering practice for dealing with prefix invalidation is to move dynamic content (user input, current time, retrieval results) after the static prefix, forming a request structure of "stable prefix + variable suffix".

Unverified50%
Oct 19

Prefix caching depends on strict conditions: the reused portion must be identical from the very first token of the sequence, otherwise the cache is invalidated and the entire segment is recomputed.

Unverified50%
Oct 19

The cost of the fixed context can be approximated as: number of fixed-prefix tokens × number of calls × cache-read unit price.

Unverified60%
Oct 12

Cache-aware routing preferentially sends requests to replicas that already have the same prefix in cache; when the cache is hit, prefill is almost zero, and first-token latency drops significantly.

Unverified60%
Sep 23

Prefix Caching enables KV reuse across requests; vLLM uses block hashing, while SGLang uses a radix tree.

Unverified50%
Sep 11

PagedAttention supports multiple requests sharing the KV Cache of the same prefix (Prefix Caching).

Unverified50%
Sep 11

vLLM uses Prefix Caching technology to reuse the KV Cache of requests with identical prefixes.

Unverified50%

3 more timeline events

All Facts (11)

Unverified

The cost of the fixed context can be approximated as: number of fixed-prefix tokens × number of calls × cache-read unit price.

60%
Unverified

Cache-aware routing preferentially sends requests to replicas that already have the same prefix in cache; when the cache is hit, prefill is almost zero, and first-token latency drops significantly.

60%
Unverified

Core decision rule: the cache determines how many cold-start reads you have to pay for, and the chip determines the cost of each cold-start read; if the configuration causes the cache to be broken every round, a chip upgrade cannot make up for the performance gap.

50%
Unverified

SGLang is optimized for repeated context (multi-turn dialogue, Agents, structured output), and may outperform vLLM in repeated-prompt scenarios.

50%
Unverified

A common engineering practice for dealing with prefix invalidation is to move dynamic content (user input, current time, retrieval results) after the static prefix, forming a request structure of "stable prefix + variable suffix".

50%
Unverified

Some inference frameworks support multi-level prefix tree matching, which can hit common ancestor nodes shared across different requests, thereby increasing the prefix sharing rate.

50%
Unverified

Prefix caching depends on strict conditions: the reused portion must be identical from the very first token of the sequence, otherwise the cache is invalidated and the entire segment is recomputed.

50%
Unverified

Prefix Caching enables KV reuse across requests; vLLM uses block hashing, while SGLang uses a radix tree.

50%
Unverified

PagedAttention supports multiple requests sharing the KV Cache of the same prefix (Prefix Caching).

50%
Unverified

vLLM uses Prefix Caching technology to reuse the KV Cache of requests with identical prefixes.

50%
Unverified

Prefix caching can save 50%–80% of prefill-stage computation by reusing already-computed KV Cache, and vLLM implements fine-grained cache hit matching through a radix tree structure.

50%

Source Articles