R01: {"post_id":"post-20261202-zhao-kv-cache-memory-bandwidth-inference-economics","version_id":"post-20261202-zhao-kv-cache-memory-bandwidth-inference-economics-v1","version":1} R02: Why Memory Bandwidth, Not Raw FLOPs, Governs Large Language Model Inference Economics R03: {"author_handle":"julia-zhao","verification_state_at_publish":"verified"} R04: {"published_at":"2026-12-02T14:04:42.000Z","corrected_at":null,"standing":"governing"} R05: null R06: [{"claim_id":"c-1","text":"When comparing AI accelerator generations on a specification sheet, learners are often tempted to rank hardware purely by peak floating-point operations per second. While raw compute throughput dominates the economics of pre-training massive foundation models across thousands of accelerators, serving those models to live readers and analysts in production follows a completely different physical bottleneck. Once a model finishes digesting a prompt and begins generating its response token by token, the governing constraint shifts from arithmetic logic units to high-bandwidth memory transfer."},{"claim_id":"c-2","text":"That shift stems from the two distinct phases of transformer inference: prefill and autoregressive decode. During the prefill phase, the accelerator processes every token of the user's input prompt in parallel, multiplying large matrices simultaneously and keeping the compute cores heavily utilized. During the decode phase, however, each new token depends on the exact token generated immediately before it, forcing the chip to stream the entire set of active model weights and cached attention states from memory into the compute registers just to emit a single step."},{"claim_id":"c-3","text":"Because moving a parameter across high-bandwidth memory interconnects consumes far more energy and wall-clock time than multiplying two numbers inside a register, autoregressive decoding is overwhelmingly memory-bandwidth bound. When a large parameter model streams tens of gigabytes of weights for every generated token step, an accelerator hits its physical memory transfer ceiling long before its arithmetic units approach peak utilization, leaving a substantial fraction of nominal compute capacity waiting on data movement."},{"claim_id":"c-4","text":"As context windows expand from short queries to entire codebases and multi-year financial filings, the Key-Value cache—which stores the intermediate attention vectors of every prior token so the model does not have to recompute them—grows linearly with sequence length and active batch size. On long-context workloads, the Key-Value cache footprint quickly rivals the static model weights themselves. When high-bandwidth memory capacity fills up, the serving engine must shrink the number of concurrent user requests it batches together, causing per-token serving costs to rise sharply."},{"claim_id":"c-5","text":"Architectural breakthroughs over recent model generations have targeted this exact memory wall rather than merely adding arithmetic units. Techniques such as Multi-Query Attention, Grouped-Query Attention, and Multi-Head Latent Attention compress the Key-Value cache footprint by sharing or projecting attention keys and values across heads, while low-bit quantization packs weights and cache entries into compact representations. By slashing the bytes transferred per token, these innovations multiply effective batch sizes and cut inference latency without sacrificing analytical fidelity."},{"claim_id":"c-6","text":"For engineering leaders and technical investors modeling AI application margins, unit economics always trace back to bytes transferred per useful output token. By auditing how a system structures its context cache, reuses shared prefix states across queries, and routes tasks between compact domain models and deep reasoners, you can predict whether an AI product's gross margin will compound gracefully or collide with the memory bandwidth wall."}] R07: [{"claim_id":"c-1","claim_class":"author_assertion"},{"claim_id":"c-2","claim_class":"author_assertion"},{"claim_id":"c-3","claim_class":"author_assertion"},{"claim_id":"c-4","claim_class":"author_assertion"},{"claim_id":"c-5","claim_class":"author_assertion"},{"claim_id":"c-6","claim_class":"author_assertion"}] R08: [{"claim_id":"c-1","citations":[]},{"claim_id":"c-2","citations":[]},{"claim_id":"c-3","citations":[]},{"claim_id":"c-4","citations":[]},{"claim_id":"c-5","citations":[]},{"claim_id":"c-6","citations":[]}] R09: When your words reach the end of their retention period they are destroyed, on the schedule above. What the platform keeps after that — indefinitely, with no expiry — is a skeleton of acts: that an act occurred, its class and time, the bundle and section it touched, its change class, a hash that identifies the record without containing it, and the keys that link a correction to what it corrects. The skeleton is not your words and cannot reproduce them. Your elections to shorten a period, to ask ephemerally, or to skeletonise now govern your words; they do not shorten, and cannot remove, the skeleton — it is the record that lets the platform prove what it did with your work after the words are gone. The platform will never produce your skeleton by choice against you; like any record it can be reached by a court order the platform cannot refuse, and if that happens you will be told wherever the law allows and the production will state, on its face, that it is a skeleton and that the words expired on this schedule. R10: When your words reach the end of their retention period they are destroyed, on the schedule above. What the platform keeps after that — indefinitely, with no expiry — is a skeleton of acts: that an act occurred, its class and time, the bundle and section it touched, its change class, a hash that identifies the record without containing it, and the keys that link a correction to what it corrects. The skeleton is not your words and cannot reproduce them. Your elections to shorten a period, to ask ephemerally, or to skeletonise now govern your words; they do not shorten, and cannot remove, the skeleton — it is the record that lets the platform prove what it did with your work after the words are gone. The platform will never produce your skeleton by choice against you; like any record it can be reached by a court order the platform cannot refuse, and if that happens you will be told wherever the law allows and the production will state, on its face, that it is a skeleton and that the words expired on this schedule. R12: 32352400072fde646a22eaa05d9b54bac48b220dc4e75e3344492ee415d30f22 R16: {"canonical_url":"/blog/posts/post-20261202-zhao-kv-cache-memory-bandwidth-inference-economics","version_url":"/blog/posts/post-20261202-zhao-kv-cache-memory-bandwidth-inference-economics/versions/post-20261202-zhao-kv-cache-memory-bandwidth-inference-economics-v1"} R18: opted_in