Computed teaching sequence · one representative attention layer
Autoregressive sequence
5 positionsWithout cache
recompute historyWith KV cache
reuse + append
Work this decode step
5without cache
→
1with cache
K/V projections
4 historical positions reused
Query is temporary. It reads cached K/V for attention; only the new pair is retained.
Reuse. History stays put while one K/V pair joins the cache.
Token K/V projections are counted, not wall-clock speed.