Home > Chip + Interface IP Glossary > KV Cache Offload
KV cache offload is an AI inference technique that moves some or all of a large language model’s (LLM’s) key-value (KV) cache from limited accelerator memory, typically HBM, to another memory tier such as host DRAM. By freeing accelerator-local memory, KV cache offload can help inference systems accommodate longer contexts or more concurrent requests from users. The trade-off is data-movement overhead: offloaded KV data must be transferred back when the accelerator needs it, making memory bandwidth, interconnect bandwidth, latency, and cache-management policy important to performance.
During ransformer inference, attention layers retain keys and values for previously processed tokens. The KV cache grows as more tokens are processed and can consume substantial accelerator-memory capacity.
A typical offload architecture works as follows:
This makes KV cache offload a form of AI memory tiering. It trades the speed of accelerator-local memory for access to a larger effective memory pool.
KV cache offload can provide several advantages:
For this reason, KV cache offload differs from simply increasing KV-cache capacity. The performance benefit depends on whether the cost of transferring offloaded data is lower than the benefit gained from freeing scarce accelerator memory.
KV cache offload depends on the broader AI memory hierarchy, including HBM, DDR DRAM, memory controllers, GPUs and AI accelerators, PCI Express, CXL, DMA/data-movement mechanisms, and inference-serving software.
HBM provides high bandwidth close to an AI accelerator, while DDR can provide a larger-capacity host-memory tier. PCI Express provides connectivity between CPUs and accelerator devices. Compute Express Link (CXL) is an industry-standard interconnect built on the PCIe physical layer that supports processor, accelerator, and memory-device connectivity, making CXL relevant to broader AI memory expansion and tiering architectures. See the https://computeexpresslink.org/ for specifications and architectural information.
Software techniques such as paged KV-cache management, KV-cache reuse, quantization, prefix caching, and disaggregated inference can complement offloading by reducing the amount of cache capacity required or improving how KV data is allocated and moved.
KV cache offload highlights a fundamental challenge in generative AI: memory capacity, bandwidth, and data movement must be optimized together. Accelerator-attached HBM offers high bandwidth but finite capacity, while host DRAM offers another, typically larger memory tier but requires KV data to cross an interconnect.
The resulting architecture seeks to keep hot KV-cache data close to the accelerator while placing less immediately needed data in higher-capacity memory tiers. As context lengths and inference concurrency grow, this type of memory management can become increasingly important to system efficiency.
Rambus does not provide the KV-cache offload algorithm itself, but its technologies address parts of the underlying AI memory and connectivity infrastructure.