Why Only K & V (Never Q)?
Past queries already produced their outputs. Only the newest token's Q_t asks questions of all cached past Keys and Values.
Why does generating token #500 stay fast with a KV-Cache—and why does the GPU suddenly starve on memory bandwidth instead of compute?
Drag context length and batch size to see KV-Cache overtake model weights—and why batching rescues GPU utilization during Decode.
Past queries already produced their outputs. Only the newest token's Q_t asks questions of all cached past Keys and Values.
Prefill sets Time-to-First-Token (compute-bound GEMM). Decode sets Time-Per-Output-Token (HBM3 memory-bandwidth-bound).
Grouped-Query Attention shares 1 KV head across 8 Query heads—shrinking the KV-Cache 8× with negligible quality loss.