AI memory is becoming a defining limit for infrastructure in 2026
Afonso MacossoFounder and CEO of Desking Verified authorI've spent more than two decades working at the intersection of technology, business, and digital transformation. I'm Afonso Macosso, Founder and CEO of Desking, where I…Author Profile Ad disclaimer For links on this page, DESKING APP may earn a commission from the provider. This supports our work and has no influence on our editorial rating.
Table of contents
- 1. Compute needs data continuously
- 2. HBM changed accelerator design
- 3. Training and inference use memory differently
- 4. KV cache changes inference economics
- 5. A hierarchy replaces HBM only
- 6. Software can reclaim memory
- 7. Agent memory adds another layer
- 8. Govern persistent memory deliberately
- 9. Supply chains feel HBM demand
- 10. Measure memory at workload level
- Frequently Asked Questions
AI infrastructure is increasingly constrained by how quickly systems can supply and retain data, not simply by how many calculations their processors can perform.
During model training, accelerators need a continuous stream of parameters and training data.
During inference, they must also preserve the context of active requests, retrieve model weights and manage intermediate results.
Memory capacity, bandwidth and placement therefore influence how many users a system can serve, how quickly it responds and how much hardware an operator must purchase.
This shift has consequences across the data center.
High bandwidth memory is taking a larger share of semiconductor manufacturing capacity, while inference operators are exploring ways to move data between GPU memory, conventional server memory, storage and emerging memory fabrics.
The architectural question is no longer just how to install more accelerators.
It is how to build a memory system that keeps expensive compute resources productive without making every byte reside in the fastest and most expensive tier.
The distinction is important for anyone evaluating AI infrastructure investments.
A GPU specification can describe enormous computational throughput and still conceal a memory limit that prevents a workload from reaching it.
Understanding that gap explains why memory has become a strategic component of AI systems, and why technologies such as HBM, DDR5, CXL and more efficient cache management are receiving so much attention.
1. Compute needs data continuously

An AI accelerator can execute operations only as fast as its architecture can supply the required data.
Model parameters, input tokens, intermediate activations and attention states must move between memory and processing units throughout a workload.
If data arrives too slowly, processing units wait, even when their theoretical compute capacity remains available.
This condition is commonly described as a memory bottleneck, and it can limit performance in both training and inference.
The relationship is especially visible in large language models.
A transformer model repeatedly reads parameter data while processing tokens, and its attention mechanism uses information from earlier tokens to calculate the next output.
The accelerator must access those values at high speed, often across many layers and concurrent requests.
Increasing the number of arithmetic units does not solve a shortage of memory bandwidth or capacity if the data path cannot keep those units supplied.
Two memory characteristics need to be separated.
Capacity determines how much information can remain available at a given level of the system, while bandwidth determines how quickly that information can be transferred.
Latency measures the delay before a requested item becomes available.
These properties affect different parts of the workload, which is why a system with large memory capacity can still perform poorly if access is slow, and a very fast memory system can still run out of room.
The traditional computer memory hierarchy already reflects these tradeoffs.
Small on chip SRAM is extremely fast and expensive per bit, DRAM provides larger capacity at lower cost, and storage devices provide much greater capacity with slower access.
AI accelerators add high bandwidth memory close to the processor because conventional server memory cannot supply enough data at the required rate for many workloads.
The resulting design challenge is to place each category of data at the right level.
2. HBM changed accelerator design

High bandwidth memory, or HBM, places vertically stacked DRAM dies close to the processor package and connects them through a wide interface.
This arrangement allows an accelerator to move large volumes of data at high speed, which is particularly useful for matrix operations and the repeated access patterns found in neural networks.
The physical proximity and wide interface distinguish HBM from conventional DIMMs installed in a server motherboard.
Its purpose is to feed the processor with data without forcing every transfer through a slower system memory path.
TrendForce's September 2026 technical analysis describes HBM as a separate tier between on chip SRAM and conventional DRAM.
A single HBM stack can deliver more than 2 terabytes per second of bandwidth, while HBM4 specifications increase the number of connections between the memory stack and processor.
The benefit is substantial, but HBM has limited capacity compared with ordinary server memory.
It is also a specialized component that requires advanced packaging, stacking and manufacturing capacity.
The difference between generations illustrates how quickly accelerator memory is changing.
The 2026 survey in Artificial Intelligence Review reports approximately 2 terabytes per second for the A100 80GB SXM configuration, 3.35 terabytes per second for the H100 and 8 terabytes per second for the B200 using HBM3e.
It lists 80GB of HBM for H100 and 180GB for B200.
Those specifications are not interchangeable measures of overall system performance, but they show that manufacturers are increasing both memory capacity and bandwidth as models and serving workloads grow.
The same survey identifies a persistent imbalance between compute and memory progress.
Its analysis places the arithmetic intensity threshold for the H100 at roughly 295 floating point operations per byte, compared with about 139 for the V100.
This threshold describes the amount of computation required per byte transferred before a workload becomes compute bound under the model's assumptions.
As processors gain more arithmetic capacity, workloads that do relatively little computation for every byte read can remain limited by memory bandwidth.
That is why a new accelerator cannot be evaluated by its peak floating point number alone.
The memory capacity determines which models, context lengths and batch sizes fit close to the processor.
Bandwidth affects how quickly the accelerator can access those resources during execution.
A buyer comparing systems should examine both values alongside interconnect bandwidth, software support, power consumption and the intended model architecture.
3. Training and inference use memory differently

Training and inference place different demands on the memory system because they perform different operations.
Training repeatedly processes datasets, calculates gradients and updates model parameters.
It must retain or recompute intermediate activations and maintain optimizer states, which can require substantial memory capacity even before the model is distributed across several accelerators.
High bandwidth helps keep the training pipeline supplied while data moves through forward and backward passes.
Inference uses a trained model to produce outputs for incoming requests.
The system reads model weights, processes prompt tokens, stores attention information and generates new tokens.
During this process, memory demand changes with the length of the prompt, the number of generated tokens and the number of requests being served concurrently.
A deployment optimized for training may therefore be poorly suited to a service handling thousands of simultaneous conversations.
TrendForce's analysis separates inference into prefill and decode.
Prefill processes the input prompt and creates the key and value tensors that the model will need during subsequent generation.
Decode produces output tokens one at a time, repeatedly reading earlier attention states and writing new ones into the cache.
This repeated access pattern makes memory bandwidth and capacity especially important as conversations become longer.
The distinction also affects infrastructure purchasing.
Training clusters often prioritize accelerator compute, high bandwidth memory, fast interconnects and the ability to distribute large model states across devices.
Inference systems need to balance those resources against concurrency, response latency, memory capacity per active request and the cost of retaining context.
A system that performs well on a short benchmark prompt may not maintain the same throughput when serving long conversations or agent workflows.
| Workload | Important memory contents | Main pressure | Infrastructure priority |
|---|---|---|---|
| Model training | Weights, gradients, activations and optimizer states | Capacity and repeated data movement | HBM bandwidth, accelerator interconnect and distributed training support |
| Prompt prefill | Weights, input tokens and attention intermediates | Large prompt processing and activation traffic | HBM bandwidth and efficient attention kernels |
| Token decode | Weights and growing KV cache | Repeated cache reads and memory bandwidth | HBM bandwidth, cache management and concurrency |
| Long running agents | Current context, prior task state and retrieved memories | Persistence, retrieval and context growth | Tiered storage, indexing, access control and memory lifecycle |
| Retrieval augmented generation | Documents, embeddings, indexes and active context | Retrieval latency and data movement | DRAM, storage, vector indexes and fast transfer into accelerator memory |
The table highlights an important architectural point: AI memory is not a single component with one universal requirement.
Some information must be accessed at extremely high speed, some must remain available for the duration of a request, and some can be stored outside the accelerator until it is needed.
The best design places each category where its access pattern and retention requirements justify the cost.
Treating every byte as if it needs HBM would be prohibitively expensive for many large deployments.
4. KV cache changes inference economics
The key value cache, usually called KV cache, stores attention information generated from tokens already processed by a transformer model.
The model uses that information when generating subsequent tokens, avoiding the need to repeat the entire attention calculation for every new output token.
This improves inference efficiency, but the cache consumes memory for as long as the request remains active.
Its size increases with context length and can become substantial when many requests run simultaneously.
The 2023 PagedAttention paper by researchers from UC Berkeley, Stanford and other institutions established how significant this problem can be in serving systems.
Its example of a 13 billion parameter LLaMA model on an A100 with 40GB of memory showed that model parameters occupied about 65% of GPU memory, while the KV cache consumed close to 30%.
The researchers also identified memory fragmentation and redundant reservation as reasons conventional serving systems could waste available capacity.
This was a systems problem, not a request to make the model itself larger.
Long context changes the arithmetic of serving capacity.
A request with a large prompt and a long response holds more attention state than a short exchange.
A server handling many of these requests must keep more cache data available at the same time, reducing the number of requests that fit in the available HBM.
If the system reaches its memory limit, it may have to reduce concurrency, move data to another memory tier, evict cache entries or recompute previously processed context.
TrendForce describes this as a second capacity constraint alongside bandwidth.
Decode repeatedly reads and updates KV cache, so the system needs enough memory to retain active contexts and enough bandwidth to access them efficiently.
Agentic workloads can intensify the pressure because agents may call tools, receive results, reason over those results and continue for multiple steps.
The total number of tokens processed over a task can therefore be much larger than the initial user prompt suggests.
The cost is not limited to slower responses.
If an operator must reserve more GPUs to provide sufficient memory for the active KV cache, the cost per served request can rise even when arithmetic utilization is modest.
Conversely, better cache management can allow the same hardware to serve more concurrent work.
This is one reason memory efficiency has become a direct operating metric for inference providers rather than an implementation detail hidden inside the GPU runtime.
5. A hierarchy replaces HBM only
HBM remains the fastest large memory tier in many accelerator systems, but it is not the only place where AI data can reside.
CPU DRAM offers more capacity at a lower cost per byte, while SSDs provide much larger storage capacity with substantially slower access.
Compute Express Link, or CXL, is designed to connect processors and memory devices through a coherent interconnect, creating opportunities to expand or pool memory beyond a single server's directly attached DRAM.
The 2026 Artificial Intelligence Review survey places CXL between HBM and CPU DRAM for certain inference workloads.
It describes CXL 1.1 memory expanders with roughly 32 to 64 gigabytes per second of bandwidth, around 50 to 100 times below HBM but two to four times above NVMe storage in the representative comparison.
The survey gives CXL memory latency of approximately 200 to 400 nanoseconds, compared with about 100 nanoseconds for HBM.
These figures depend on the implementation and should be read as indicative characteristics, not a guarantee for every CXL system.
CXL's value is capacity flexibility, not replacing HBM's speed.
A server may use it for model components that are not accessed on every token, overflow KV cache, or memory shared across multiple hosts.
CXL 2.0 introduced dynamic memory pooling, while CXL 3.0 adds shared memory and fabric switching.
Those capabilities can reduce the amount of memory stranded in individual machines, provided software can allocate and retrieve the data without creating a larger latency problem.
The following comparison shows why different tiers can coexist.
The figures are representative values discussed in the 2026 survey and TrendForce analysis, rather than universal specifications for every device.
| Memory tier | Typical role in AI systems | Relative capacity | Relative access speed |
|---|---|---|---|
| On chip SRAM | Immediate working data for accelerator compute | Very limited | Fastest |
| HBM | Model weights and active KV cache | Limited compared with server DRAM | Very high bandwidth |
| CPU DRAM | Expanded model data and offloaded cache | Larger than HBM | Lower bandwidth than HBM |
| CXL attached memory | Pooled capacity and less frequently accessed data | Expandable across devices | Slower than HBM and dependent on topology |
| NVMe SSD | Persistent cache, datasets and large storage pools | Very large | Much slower than accelerator memory |
The table should not be interpreted as a simple ladder in which every workload benefits from moving data down one tier.
A latency sensitive decode operation can be harmed by transferring KV cache across a slower interconnect.
A model component that is read in large sequential blocks may tolerate that transfer if it is prefetched before use.
Data placement must follow the access pattern, and the software stack must know when to keep information close to the accelerator.
High Bandwidth Flash, or HBF, is another proposed tier intended to address capacity constraints.
TrendForce reported that SanDisk and SK hynix announced a development partnership in August 2025 to explore vertically stacked NAND connected through through silicon vias.
Its analysis describes a projected HBF stack with 512GB capacity and 1.6 terabytes per second of bandwidth, substantially more capacity than a single HBM stack.
The technology had not reached mass production in the September 2026 analysis, so those figures describe a target architecture rather than a widely deployable product.
Storage based approaches are also being explored for data that does not need to remain in HBM.
TrendForce describes SSD POD as an additional tier between local SSD and shared storage, while the Springer survey discusses KV cache offloading to CPU DRAM and SSD.
The engineering challenge is deciding what to retain in fast memory, what to move elsewhere and how to fetch it before the processor needs it.
A large capacity number is useful only if the system can retrieve the relevant data within the application's latency budget.
6. Software can reclaim memory
Hardware capacity is only part of the solution because poorly managed memory can waste resources that are already installed.
The vLLM project demonstrated this problem through PagedAttention, a memory management approach inspired by virtual memory paging in operating systems.
Rather than reserving one large contiguous block for every request, PagedAttention divides KV cache into blocks and allocates them as tokens are generated.
That reduces fragmentation and allows requests to share cache blocks when their prompt content is identical.
The published vLLM implementation reported that older systems could waste 60% to 80% of memory through fragmentation and over reservation in the studied setup.
With PagedAttention, the project reported memory waste below 4% in its evaluation.
The original tests reported throughput improvements of up to 24 times over Hugging Face Transformers on selected configurations, and up to 3.5 times over Text Generation Inference.
Those are results from specific workloads and hardware, not a general promise that every deployment will become 24 times faster.
The peer reviewed PagedAttention paper, published at the 2023 Symposium on Operating Systems Principles, reported two to four times higher throughput than FasterTransformer and Orca at the same latency in its evaluation.
The improvement was more pronounced with longer sequences, larger models and more complex decoding algorithms.
That result illustrates how an infrastructure improvement can increase the useful capacity of existing accelerators without adding physical HBM.
It also shows why serving software should be part of hardware procurement decisions.
Several other methods target different parts of the memory problem.
They are not interchangeable, and their benefits depend on the model, workload and quality requirements.
- Quantization: Stores model weights or KV cache in lower precision formats, reducing the bytes required for each value. The tradeoff is potential accuracy loss or additional implementation complexity, so the chosen precision must be tested against the task.
- FlashAttention: Uses an IO aware attention algorithm that reduces unnecessary movement between HBM and on chip memory. The 2026 Springer survey describes how tiled computation avoids materializing the full attention matrix in HBM.
- Prefix caching: Retains previously computed KV states for shared prompt prefixes, allowing later requests with the same prefix to avoid repeating prefill work. This is particularly relevant when applications reuse system prompts or common document context.
- Continuous batching: Adds and removes requests dynamically as they become ready, helping a serving engine use available memory and compute capacity more consistently.
- KV cache offloading: Moves less frequently used cache entries to CPU DRAM or storage when HBM is insufficient, accepting a transfer penalty in exchange for greater effective capacity.
These methods can interact in unexpected ways.
The Springer survey's composability analysis shows that reducing model weight memory can make KV cache the next dominant bottleneck, while compressing KV cache can shift the limit back toward model weight movement.
Optimizing one data path changes the relative importance of the others.
Operators should therefore measure the complete inference pipeline after each change instead of assuming that a local improvement produces the same percentage gain in end to end throughput.
A practical example comes from the publicly documented vLLM work.
The researchers identified that the serving engine's memory allocation policy was limiting batch size, implemented block based cache allocation and tested it on A10G and A100 GPUs with real request length distributions from ShareGPT.
The result was a measurable improvement in throughput under those experimental conditions.
It is a stronger operational reference than a vendor claim without a described workload, although it remains a published benchmark rather than an independent Desking lab test.
7. Agent memory adds another layer
The term memory has a second meaning in AI infrastructure.
Hardware memory refers to the physical resources that hold data while a processor operates.
Agent memory refers to the information an AI application preserves between interactions, such as user preferences, task history, decisions, retrieved documents and previously learned procedures.
These are related because persistent agent information must eventually be stored and retrieved through hardware, but they solve different problems and should not be treated as synonyms.
A conventional language model inference request is generally stateless.
The model receives a prompt, generates a response and does not automatically retain that interaction as a durable memory for the next request.
Applications can create continuity by storing conversation history, summaries or structured facts outside the model and retrieving relevant information when a new request arrives.
This approach allows an agent to continue a task across sessions without putting its entire history into every prompt.
A November 2026 survey in Springer Nature's Vicinagearth journal organizes LLM memory mechanisms into nonparametric memory, parametric memory and memory for agent evolution.
Nonparametric memory stores information outside the model parameters, for example in text, graphs, databases or multimodal stores.
Parametric memory involves internal model states, learned modules, activations or model weights.
Agent evolution memory stores interaction traces, workflows, rewards and previous experiences that can inform later behavior.
These categories have different operational properties.
External records can be inspected, corrected and deleted more directly, but retrieval quality depends on indexing and selection.
Internal model states can be tightly connected to inference, but they are often harder to inspect or edit precisely.
Experience based memory can help an agent reuse successful procedures, although it needs evaluation to ensure that a previous action remains appropriate in a changed environment.
Red Hat's Emerging Technologies team published an architecture discussion in June 2026 that included an initial deployment example using OpenClaw agents with agent memory.
The article describes the problem of stateless inference and the need for persistent, queryable information across long running tasks.
It also distinguishes client side memory, managed by an individual agent, from server side memory, which can support shared access, enterprise governance and auditing.
The article explicitly describes the work as emerging technology rather than a supported Red Hat product, an important qualification for infrastructure teams considering deployment.
Agent memory introduces a lifecycle that resembles data management more than a simple chat transcript.
Information must be created, updated, retrieved, consolidated and eventually forgotten.
A system that stores every interaction indefinitely will accumulate duplicates, outdated claims and irrelevant details.
The result can be poorer retrieval, higher storage and indexing costs, and a greater risk that an agent will use an old instruction or inaccurate personal detail.
8. Govern persistent memory deliberately
Persistent memory creates a new category of operational risk because an AI application can retain information long after the interaction that produced it.
A stored preference may become outdated, a summary may omit an important qualification, or an inferred fact may be mistaken for something the user explicitly stated.
These problems affect the quality of later decisions, especially when agents can access business systems or take actions without asking for approval at every step.
The November 2026 Springer survey identifies construction, maintenance, retrieval, consolidation, forgetting, governance and evaluation as parts of the memory lifecycle.
That is a useful operational model because a database that can save information is not necessarily a reliable memory system.
The application must decide what deserves retention, how conflicting facts are resolved, which information can be retrieved for a given user and when stored information should expire or be removed.
An IETF Internet Draft published in July 2026 proposes a provider independent architecture for persistent agent memory.
It separates temporary compute context from an authoritative persistent state plane and distinguishes original memory records from derived indexes, embeddings and retrieval caches.
The document is explicitly a work in progress, not an approved Internet standard, but its design illustrates the governance problems infrastructure teams need to address.
The proposed architecture also treats version history and provenance as first class properties.
Provenance records where a memory came from, which actor created it, what evidence supports it and when it was observed or recorded.
This distinction matters when an agent retrieves a claim that was generated from an inference rather than directly supplied by a person or verified from a business record.
Without that information, administrators may struggle to identify why an agent used a particular fact or how to correct it.
A production memory service should therefore account for several controls from the beginning:
- Tenant isolation: Information belonging to one customer, department or user must not become available to another through shared indexes or retrieval operations.
- Source provenance: The system should retain the origin of a stored claim and distinguish observed facts from generated summaries or inferred information.
- Version control: Updates should preserve enough history to identify what changed, who changed it and which version an agent used.
- Retention and deletion: Administrators need policies for expiration, correction, legal retention and deletion of both authoritative records and derived indexes.
- Validation and access: Unverified or disputed information should not be treated as trusted memory, and permissions should be checked when data is retrieved.
Embeddings deserve particular attention because they are often treated as harmless numerical representations of text.
The IETF draft notes that embeddings may reveal information about their source content or permit membership inference.
It recommends that derived indexes and embedding spaces be scoped, access controlled, rebuildable and independently deletable where required.
A deletion workflow that removes the original document but leaves searchable derived data behind is incomplete.
The business consequence is direct.
An agent with access to internal customer records, contracts or employee information needs a defensible policy for what it remembers and what it can retrieve.
Memory controls belong in security reviews, privacy assessments and system architecture decisions, not as optional features added after deployment.
The more autonomous an agent becomes, the more important it is to know which information shaped its actions.
9. Supply chains feel HBM demand
Memory has become a supply chain issue because AI accelerators require specialized components that share manufacturing resources with other memory products.
Reuters reported on September 29, 2026, that Samsung expected HBM to account for nearly 30% of global DRAM manufacturers' wafer capacity in 2027, compared with about 20% at the time of the report.
Samsung executive vice president Kim Taewoo said HBM and conventional DRAM compete for the same wafer capacity, meaning increased HBM production could constrain standard DRAM supply.
That projection matters beyond the companies building AI clusters.
Conventional DRAM is used in servers, PCs and other electronics, so a larger allocation to HBM can affect the availability and pricing environment for other memory products.
The report does not establish exactly how much conventional DRAM prices will change, and wafer allocation is only one factor in supply.
It does show that AI infrastructure demand can influence memory markets outside the accelerator itself.
The market is also concentrated among a small group of major suppliers.
Reuters identified SK hynix, Samsung Electronics and Micron Technology as the dominant HBM producers.
That concentration makes manufacturing capacity, yield, packaging and qualification schedules important considerations for accelerator availability.
A data center operator may have budget and power capacity ready for a new cluster but still face delivery constraints around the memory components required for the system.
The architectural response is to use memory more efficiently and avoid paying for the fastest tier when a workload does not need it.
Better cache allocation, quantization, prefix reuse and tiered storage can reduce the amount of HBM required for a given serving workload.
CXL pooling may help reduce stranded capacity across hosts, while offloading can preserve more active contexts outside GPU memory.
None of these techniques removes the need for HBM, but they can change how much must be installed per unit of useful output.
10. Measure memory at workload level
Infrastructure teams should assess memory through the behavior of the application they intend to run.
A peak bandwidth figure or maximum capacity specification is useful, but it does not reveal how much of that resource a production workload actually uses.
The relevant measurements include memory bandwidth utilization, peak and average HBM occupancy, KV cache size, cache hit rate, request concurrency, token throughput and response latency.
These metrics help identify whether the system is limited by compute, memory capacity, memory bandwidth or data transfer.
A procurement test should use representative prompts and real request distributions.
Short prompts alone will understate the pressure created by long documents, extended conversations and concurrent users.
The test should include different context lengths, output lengths and batch sizes, then record the point at which throughput stops increasing or latency becomes unacceptable.
It should also measure the impact of cache eviction and offloading, since a system that appears fast with a warm cache may behave differently after memory pressure rises.
A useful evaluation sequence for an AI infrastructure team is:
- Profile the workload: Record model size, precision, prompt length, output length, concurrency and the frequency of repeated prefixes or retrieved documents.
- Measure the memory ceiling: Track HBM occupancy, bandwidth use, KV cache growth and the number of active requests supported before latency deteriorates.
- Identify the constrained data flow: Determine whether model weights, KV cache, activations or external retrieval are consuming the available bandwidth and capacity.
- Test software optimizations: Compare quantization, cache sharing, batching, attention kernels and offloading with the same request distribution.
- Evaluate the full system cost: Include accelerator count, memory configuration, network transfer, storage, power and operational complexity rather than comparing hardware prices alone.
The result should be a cost per useful workload measure, such as the cost of serving a million tokens at a defined latency and quality level.
This makes comparisons more meaningful than quoting the number of GPUs in a cluster.
Two systems with similar accelerator counts can have different economics if one supports more concurrent requests, avoids repeated prefill computation or makes better use of its available memory.
The same discipline applies to persistent agent memory.
Teams should measure retrieval accuracy, stale memory rates, update delays, storage growth, deletion completion and the number of times an agent retrieves information that should not have been used.
These are quality and governance metrics rather than hardware benchmarks, but they determine whether memory makes an agent more useful in production.
Memory performance must be judged by the correctness and cost of the whole application, not by storage capacity alone.
Frequently Asked Questions
Why does AI need so much memory?
Is HBM better than DDR5?
Does more GPU memory always improve AI performance?
What is the difference between KV cache and agent memory?
Can CXL replace HBM in AI servers?
Why is memory important for AI agents?
Sources4
- Reuters on HBM wafer capacity
- Artificial Intelligence Review on LLM memory bottlenecks
- IETF on persistent agent memory architecture
- Red Hat on persistent agent memory
External pages are independent third-party sources. Desking App does not control or endorse their content and accepts no responsibility for it. Visiting them is at your own responsibility and risk.

