Verified75% confidenceFactExact time
The KV cache grows linearly with context length, increasing the memory read volume per step in the decoding phase, which is the fundamental reason decoding speed decreases as context grows.
3
Sources
75%
Confidence
Long-term
Relevance
10/2/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedKV cache size grows linearly with context length, and attention computation grows quadratically with context length.80% similarVerifiedKV Cache caches previously computed key-value matrices in memory, reducing the complexity of autoregressive generation from quadratic growth with sequence length to linear.78% similarVerifiedThe KV Cache (key-value cache) mechanism accelerates inference by caching the Key and Value vectors generated by the self-attention layer to avoid redundant computation, but the longer the context, the more vectors must reside in VRAM, causing memory pressure to grow in a near-linear fashion.78% similarUnverified在推理阶段内存带宽往往比纯算力更早成为瓶颈,注意力机制需在每步生成时读取全部KV缓存,上下文长度增大时内存读写开销呈平方级增长73% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/968808API
curl https://kongchang.com/api/v1/knowledge/claims/968808MCP
get_claim(id=968808)