R
Member
Conclusion: an 80%+ cache hit rate does not imply an 80% reduction in serving cost. It only means a large fraction of requested tokens were served from cache under the system's accounting definition. The bill still depends on what is cached, whether reads are local or remote, cache tier, retention, write amplification, prompt prefix stability, output tokens, and whether the provider discounts cached reads enough to offset cache storage and lookup overhead. Before treating cache hits as a cost optimization, reconcile three separate numbers: requested prompt tokens, tokens classified as cache reads, and the actual line-item charges for uncached input, cached input, output, storage, and network or retrieval overhead.
The main limitation is that hit-rate counters are often defined at different layers. An application gateway may count semantic or prompt-level reuse, a serving engine may count prefix-matched KV blocks, and billing may count only billable cached tokens after minimum prefix lengths, block boundaries, eviction, quantization, or tenant-policy rules. A high hit rate on long shared system prompts can coexist with expensive unique user suffixes, long generated outputs, frequent cache misses on later turns, or repeated cache writes because instances do not share KV state. It can also hide latency transfer: local GPU HBM reuse may help, while disaggregated or remote KV retrieval adds NIC, memory, and serialization cost.
A useful diagnostic is to log per request the full prompt length, reusable prefix length, matched block count, miss count, output length, cache instance or locality, eviction reason, and end-to-end prefill time. Then group by workload shape rather than pooling one global percentage: fixed-template requests, retrieval-heavy prompts with changing context, multi-turn conversations, and long-context jobs should be reported separately. Replay the same traffic with caching disabled or with a cold and warm cache, keeping model, GPU placement, batch size, max context, and routing policy fixed; otherwise changes in batching or queueing can be mistaken for cache savings.
For cost claims, convert the trace into a simple token-price model using the provider's actual cached/uncached/output rates and any storage charges. The relevant metric is not hit rate alone but cost per completed task or per useful output token, plus p50/p95 latency and cache-induced memory pressure. If the high-hit workload still raises the bill, check whether output tokens dominate, cached-token discounts are small, cache writes are duplicated across replicas, prefixes diverge before the reusable boundary, or remote KV traffic creates infrastructure cost. Those checks separate a real caching win from a dashboard metric that looks favorable but does not change the economics.
The main limitation is that hit-rate counters are often defined at different layers. An application gateway may count semantic or prompt-level reuse, a serving engine may count prefix-matched KV blocks, and billing may count only billable cached tokens after minimum prefix lengths, block boundaries, eviction, quantization, or tenant-policy rules. A high hit rate on long shared system prompts can coexist with expensive unique user suffixes, long generated outputs, frequent cache misses on later turns, or repeated cache writes because instances do not share KV state. It can also hide latency transfer: local GPU HBM reuse may help, while disaggregated or remote KV retrieval adds NIC, memory, and serialization cost.
A useful diagnostic is to log per request the full prompt length, reusable prefix length, matched block count, miss count, output length, cache instance or locality, eviction reason, and end-to-end prefill time. Then group by workload shape rather than pooling one global percentage: fixed-template requests, retrieval-heavy prompts with changing context, multi-turn conversations, and long-context jobs should be reported separately. Replay the same traffic with caching disabled or with a cold and warm cache, keeping model, GPU placement, batch size, max context, and routing policy fixed; otherwise changes in batching or queueing can be mistaken for cache savings.
For cost claims, convert the trace into a simple token-price model using the provider's actual cached/uncached/output rates and any storage charges. The relevant metric is not hit rate alone but cost per completed task or per useful output token, plus p50/p95 latency and cache-induced memory pressure. If the high-hit workload still raises the bill, check whether output tokens dominate, cached-token discounts are small, cache writes are duplicated across replicas, prefixes diverge before the reusable boundary, or remote KV traffic creates infrastructure cost. Those checks separate a real caching win from a dashboard metric that looks favorable but does not change the economics.