When we talk about AI, we obsess over parameter counts. But for anyone actually running these models, the real battle isn't fought in the weights; it is fought in the KV cache.
The Parameter Obsession
In the world of Large Language Models (LLMs), the standard metric for greatness
is the parameter count. We hear about 70B, 400B, or trillion-parameter models, and we instinctively assume that more parameters equals more intelligence and more cost. While parameter count certainly dictates the 'brain power' and the baseline memory required to hold the model, it is a static cost. Once you load those weights into High Bandwidth Memory (HBM), they sit there. They are read once per step, shared across the entire batch of users, and then they stay put. If you only looked at parameters, you might think scaling an AI service is a simple matter of buying bigger GPUs to fit the weights. But there is a silent, growing monster in the machine that scales much faster than the model itself.
Meet the KV Cache
To understand why the parameter count is a distraction, you have to understand the Key-Value (KV) cache. As an LLM generates text, it doesn't just look at the current word; it needs to remember everything that came before it to maintain context. To avoid re-calculating the math for every single previous token every time a new one is generated, the model stores these intermediate mathematical representations in the KV cache. This cache is the model's short-term working memory. Unlike the model weights, which are a fixed size, the KV cache grows linearly with every single token generated and every single user added to the system. If you double your batch size, you double your cache. If you double your context window from 32K to 64K tokens, you double it again. For long-context workloads, the KV cache can quickly become much larger than the model weights themselves.
The Memory Bandwidth Tax
This is where the economic and technical reality of AI serving hits a wall. There are two phases to running an LLM: prefill and decode. Prefill is the initial phase where the model processes your prompt; it is compute-heavy and keeps the GPU's math engines busy. But the 'decode' phase—the part where the model actually types out the answer—is a different beast entirely. During decoding, the arithmetic intensity collapses. The GPU isn't struggling to do math; it is struggling to move data. Because the KV cache must be streamed from memory for every single token generated for every single user, the system becomes 'memory bandwidth bound.' The GPU spends most of its time sitting idle, waiting for the KV cache data to arrive from memory. In this stage, the limiting factor isn't how many billions of parameters you have; it is how fast you can move those cache tensors through the memory bus.
New Frontiers in Compression
Because the KV cache is such a massive bottleneck, the most significant recent breakthroughs in AI efficiency haven't been about making models smarter, but about making the cache smaller. We are seeing a shift toward architectural and mathematical tricks to shrink this memory footprint. One major approach is Grouped-Query Attention (GQA), which reduces the number of KV heads, effectively shrinking the cache size before it even hits the memory. More recently, researchers have turned to extreme quantization. New techniques like SealKV are pushing the boundaries, allowing for highly compressed KV caches—sometimes reducing the size by over six times—with almost no loss in intelligence. These methods allow for much higher throughput and lower costs, proving that the real way to scale AI isn't just by adding more parameters, but by optimizing how we manage the memory of what has already been said.













