AI inference glossary
Serving

Prefix caching

Also known as prompt caching, automatic prefix caching

In plain English

Prefix caching remembers the work for a repeated beginning, such as the same system prompt, so the model can skip that work next time.

Technical definition

Prefix caching reuses KV-cache state when multiple requests begin with the same token sequence.

Engineering details

A repeated system prompt, shared document, or common conversation prefix can reuse cached states. A cache hit can reduce prompt computation and time to first token.

Why it matters

Production workloads with repeated prefixes may outperform synthetic random-token benchmarks. The benefit depends on hit rate, cache capacity, eviction policy, and whether requests route to workers that hold the needed state.

How to read it in InferenceX

InferenceX disables prefix caching on random fixed-sequence datasets to isolate full prompt processing from cache policy, so treat those numbers as a no-hit baseline. AgentX inverts this: hit rate is a reported quantity there, shown per point alongside the offload tier it was served from, because reuse is the defining property of the workload.