• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Blogs
  2. Artificial Intelligence (AI)
  3. Memory for Agentic AI and the KV-Cache Bottleneck
Vinod Khera
Vinod Khera

Community Member

Blog Activity
Options
  • Subscribe by email
  • More
  • Cancel
CDNS - RequestDemo

Have a question? Need more information?

Contact Us
agentic ai
Agentic Inference
memory IP
AI
KV Cache

Memory for Agentic AI and the KV-Cache Bottleneck

24 Nov 2026 • 9 minute read

KV CacheAgentic AI changes the inference problem from answering a single prompt to sustaining a working session. Agentic systems maintain persistent state: memory of prior steps, generated artifacts, and intermediate results across long-running workflows. Every step, tool call, and observation extends the context that the model must retain, and in transformer-based models that context is held in the key-value (KV) cache.

Because agentic sessions hold a large KV cache and reread it constantly, the consequence for silicon is direct: an inference part is now specified as much by how much state it can hold and how fast it can stream it as by its peak throughput.

This blog post explains why the KV cache grows, why agentic inference is capacity- and bandwidth-bound, how prefill/decode disaggregation responds to that split, and how the memory hierarchy, from HBM4 and HBM4E through GDDR7, LPDDR6, and CXL-attached tiers, is being restructured around it.

What Is KV Cache and Why It Grows

Transformer models generate output autoregressively; each new token depends on every token before it. To avoid recomputing that past context at every step, the model maintains a working memory cache, the key-value (KV) cache, which must be created, stored, and repeatedly accessed during inference.

Why KV Cache gorws

Cadence describes the mechanism with a sticky-note analogy. The model keeps a compact note of everything it has already read and written; to produce the next output token, it consults only those notes and the last token it generated. The computational payoff is substantial: for a 1,000-token sequence, KV cache optimization reduces computation by approximately 500X. The same source states the cost precisely: the longer the sequence, the greater the savings, but the greater the pressure on memory bandwidth.

Two Growth Drivers: Context and Concurrency

Because a cache entry is retained for every token the model has read and written, the cache expands as the context lengthens. And each concurrent request carries its own context; the total footprint multiplies with the number of sessions served. As a result, KV-cache residency can scale into hundreds of gigabytes for multi-request serving, and concurrency and longer-running contexts quickly increase memory demand.

Why Do Agentic Sessions Intensify Both?

Agentic workloads push on memory capacity and bandwidth both at once. A single agent accumulates context across many steps, tool results, and intermediate artifacts, which lengthens the sequence. A deployment runs many agents and users in parallel, which multiplies the requirement of resident cache. The cache is also reread for every generated token, so the data that must be held is the same as the data that must be streamed.

Capacity-Bound and Bandwidth-Bound: Prefill, Decode, and Disaggregation

Agentic inference is constrained twice: capacity determines how many sessions and how much context fits in fast memory, while bandwidth determines how quickly each session generates tokens. The two phases of inference stress these limits differently.

  • Prefill, "the big gulp": When a user supplies a long prompt, a document, or a video stream, the model processes all input tokens simultaneously to compute the initial context, creating the KV cache and pushing it to memory. This is why a lag can appear before the first output token.

Cache prefill

  • Decode, "the slow drip": Subsequent tokens are then generated one at a time, and each step rereads the accumulated cache. For decode-dominated LLM workloads, the ratio of memory bandwidth to compute capacity is an important indicator of potential throughput.

 

Capacity binds because the cache must remain resident to be useful. A cache that does not fit in the fastest tier must be staged to a slower tier or recomputed, and either option incurs latency or energy overhead. Bandwidth binds because every decode step streams the cache again. Adding compute without adding memory capacity and bandwidth therefore leaves agentic throughput largely unchanged.

Prefill/Decode Disaggregation

Because prefill and decode load memory differently, next-generation architectures separate them. KV-cache offload and disaggregated prefill/decode pipelines are techniques in next-generation LLM inference and training architectures. HBM4 replaces the traditional DRAM-process-based die with advanced logic-node-based dies (5nm/3nm), allowing memory controllers and specialized acceleration logic to migrate into the stack and enabling "custom HBM" designs that behave more like mixed compute-and-memory devices.

The Memory Hierarchy for Agentic Inference

No single memory technology resolves the KV-cache bottleneck.  AI systems expose different memory bottlenecks at different points: server CPUs need capacity and low-latency access, AI accelerators need bandwidth, and power-sensitive systems need to move data more efficiently. The practical response is tiering: hot tensors and KV cache in fast memory, warm assets in lower-power DRAM or LPDDR, and cold corpora in flash.

The Tiering Response

Long-context AI workloads in cloud-scale environments place heavy pressure on KV caches in traditional memory systems. Serving systems answer the capacity problem in three ways: prefixing (reuse cache they have already built), tiered offloading (move cache they do not currently need), and splitting the work so each phase runs on hardware sized for it. KV data is therefore placed across a memory hierarchy according to how soon it will be reused. The G1 through G4 tier labels, including the G3.5 context tier, follow the memory hierarchy for AI clusters.

Tier

KV status

Primary hardware component

G1

Active and hot

GPU or AI accelerator

G2

Staged or spilled

Host AI CPU system

G3 (local storage)

Local and warm

Pod-local NVMe SSDs

G3.5 (CMX)

Shared and hot

DPUs, SmartNICs, memory aggregator SoCs, CMX SSDs

G4 (network storage)

Shared, durable, cold, or archived

SSDs

Memory Tiers and What Each Is For

Each memory technology fits a different part of this hierarchy, and the right mix depends on which limit a design hits first.

Technology

Key figures

Role in the KV-cache hierarchy

Cadence IP

HBM4

Doubles data lines from 1,024 to 2,048 versus HBM3; 2TB/s and up to 64GB (32Gb, 16-high); 2× the bandwidth of HBM3

G1: hot KV cache beside accelerator compute

HBM4 PHY and controller at 12.8Gbps, 20% better power efficiency per bit, 50% better area efficiency

HBM4E

Up to 12.8Gbps per data pin, 32 independent channels, 2,048-bit total width; 2.5D system with silicon interposer to route signals between the 3D DRAM stack and PHY. 

G1: highest-bandwidth, low-latency tier

HBM4E solution spanning PHY, controller, interposer, and package

GDDR7

Up to 192GB/s per device, 32Gb density, PAM3 signaling; inference engines typically need 300–700GB/s versus 1–3TB/s for training

Bandwidth tier for cost-optimized inference accelerators

GDDR7 PHY up to 36Gbps

LPDDR6

14.4Gbps per bit; 48-bit interface (from 32 bits); 691Gb/s per device, twice LPDDR5X; two 24-bit channels of two 12-bit sub-channels

G2: staged or spilled KV cache; CPU-side inference, SOCAMM modules

LPDDR6/5X PHY and controller up to 14.4Gbps, up to 50% faster than the previous generation

CXL

Coherent memory expansion and sharing; CXL 4.0 doubles per-lane data rate to 128GT/s

Expands the working set and pools memory across hosts

Controller for CXL for accelerators and memory expanders

Cadence positions HBM as the primary choice for AI training above 1TB/s, while LPDDR6/5X and GDDR6/7 offer high performance at a good price point for inference using standard PCB and package. LPDDR trades raw peak bandwidth for energy efficiency per gigabyte, which suits inference nodes and power-constrained deployments. HBM, by contrast, delivers terabyte-per-second-class aggregate bandwidth at reasonable energy per bit because it sits on-package.

Design Implications for Silicon

The KV-cache bottleneck turns memory from a supporting subsystem into the primary architectural decision. Implications follow for teams designing agentic inference silicon:

  • Size capacity to resident state, not to weight alone: Because KV-cache residency can scale into hundreds of gigabytes for multi-request serving, the target context length and concurrency define the capacity requirement as much as model size does.
  • Evaluate bandwidth per unit of compute: For decode-dominated workloads, the ratio of memory bandwidth to compute is an important indicator of throughput; peak TOPS alone does not predict agentic performance.
  • Design the tiering explicitly: Each tier from G1 to G4 needs a defined role, a staging policy, and a matched memory interface, whether HBM4 for hot cache, LPDDR6 for staged cache, or CXL for pooled expansion.
  • Treat the HBM4 base die as design space: Logic-node base dies open the path to custom HBM, with controllers and KV-cache offload logic moving closer to the data.

Tradeoffs to Weigh

HBM delivers the highest bandwidth but requires a 2.5D system with a silicon interposer between the DRAM stack and PHY. HBM4 stacking also raises the importance of power delivery and thermal management at the package level, a challenge Cadence addresses through the AuraStack AI Super Agent for PCB and advanced packaging. GDDR7 and LPDDR6 reduce cost through standard PCB and packaging but offer lower bandwidth per device. CXL adds capacity and sharing at the cost of an additional hop compared with directly attached DRAM.

Cadence Memory IP for Agentic AI

Cadence offers silicon-proven high-performance HBM3E and HBM4 PHYs and controllers across advanced nodes, from 7/6nm through 5/4nm and 3nm to 2nm+. Cadence’s memory IP solutions are designed for high-performance AI training and inference applications. The Cadence LPDDR6 memory IP system solution operates at 14.4 Gbps, providing customers with a strong roadmap for future performance upgrades. Cadence offers a comprehensive portfolio of silicon-proven, PPA-optimized memory and interface IP for HPC and AI applications, including the latest versions of key industry standards such as LPDDR, HBM, DDR5, PCI Express (PCIe), Universal Chiplet Interconnect Express (UCIe), UALink, Ultra Ethernet, and high-speed Ethernet, with broad solutions that include verification IP and support for chiplets, including 3D-ICs.

Frequently Asked Questions

Why is agentic inference capacity-bound as well as bandwidth-bound?

Agentic sessions maintain long-running contexts and run many sessions concurrently, so the KV cache must remain resident in large volumes, reaching hundreds of gigabytes during multi-request serving. Every decode step also rereads the cache, so bandwidth limits the token rate, while capacity limits how much context and concurrency fit.

Is HBM4 required for AI inference?

Not always. Cadence positions HBM as the primary choice for training above 1TB/s, while LPDDR6/5X and GDDR6/7 offer high performance at a good price point for inference using standard PCB and packaging. HBM4 remains the choice where the hottest KV cache needs the highest bandwidth.

What is prefill/decode disaggregation?

Prefill processes the full prompt at once to build the KV cache; decode generates tokens one at a time by rereading it. Disaggregation runs the two phases on separately optimized resources. Cadence identifies it, together with KV-cache offload, as a technique in next-generation LLM inference architectures, alongside HBM4 logic base dies that move memory-side logic closer to the data.

How does HBM4E relate to HBM4?

The Cadence HBM4E PHY and controller support data rates up to 12.8 Gbps per data pin across 32 independent channels and a 2,048-bit interface, delivered as a complete solution that includes the PHY, controller, interposer, and package for 2.5D systems.


CDNS - RequestDemo

Try Cadence Software for your next design!

Free Trials

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information