← Back to blog
TechnicalOctober 3, 2026·12 min read

The Memory Wall in AI: Why Faster Compute Isn't Enough

Why operational intensity, data reuse, and memory bandwidth matter as much as peak compute in AI hardware.

The Memory Wall in AI: Why Faster Compute Isn't Enough

FLOPS and TOPS: How Fast Is an Accelerator Really?

AI hardware is often described using numbers such as TFLOPS or TOPS.

FLOP/s means floating-point operations per second. One TFLOP/s represents 1012 floating-point operations per second. The advertised peak is the rate the hardware could theoretically sustain under the specified arithmetic conditions; an application can achieve a lower measured rate.

TOPS, or Tera Operations Per Second, is a broader measure of 10¹² operations per second. It is particularly common when describing AI accelerators performing integer or low-precision operations.

These metrics are useful, but they describe compute capacity, not necessarily application performance. TOPS and FLOPS are also not always directly comparable because the meaning of an "operation" depends on the numerical precision and the hardware vendor's counting convention.

More importantly, neither number tells us whether the processor can actually keep its compute units busy.

Imagine an accelerator capable of 100 TFLOP/s. If its workload cannot supply data quickly enough, the accelerator might achieve only a fraction of that theoretical performance.

The problem is therefore not simply:

How much computation can the chip perform?

It is:

How quickly can the system provide the data needed for that computation?

That distinction is the foundation of the memory wall.

Computation vs. Data Movement

Consider a simple operation:

C = A + B

For every element of C, we need to read two values from memory and produce one result.

There is very little computation involved, but potentially significant data movement.

Now compare that with matrix multiplication:

C = AB

A single value loaded from A can participate in many multiplications with different values from B. If the hardware keeps that value close to the compute units, the same data can be reused many times before it needs to be fetched again.

This leads to an important concept:

Operational intensity

Operational intensity measures the amount of computation performed per byte transferred from memory:

I = F / Q

where:

  • F = number of operations performed
  • Q = number of bytes transferred

The unit is typically FLOPs/byte.

A workload with low operational intensity performs relatively little computation for every byte it moves. It is therefore more likely to become memory-bound.

A workload with high operational intensity performs substantial computation on each byte. It is more likely to become compute-bound.

This distinction is more useful than simply asking how many FLOPS a processor has.

The Roofline Model

One of the most useful ways to visualize this relationship is the Roofline model, introduced by Williams et al.

The basic model gives an optimistic performance ceiling:

Pachieved ≤ min(Ppeak, IB)

where:

  • Ppeak is the processor's peak computational performance
  • I is operational intensity
  • B is memory bandwidth

This creates two regions.

At low operational intensity:

Pbound = IB

The bandwidth roof limits this region. Actual performance can sit below the roof because of latency, access patterns, occupancy, instruction mix, and other effects.

At sufficiently high operational intensity:

Pbound = Ppeak

The compute roof limits this region, although reaching that ceiling still depends on implementation and hardware utilization.

The point where these regions meet is called the ridge point:

Iridge = Ppeak / B

For example, suppose an accelerator provides:

Ppeak = 100 TFLOP/s

and:

B = 2 TB/s

Then:

Iridge = 100 TFLOP/s / 2 TB/s = 50 FLOPs/byte

A workload with an operational intensity below 50 FLOPs/byte is potentially memory-bound.

A workload above 50 FLOPs/byte can potentially exploit the accelerator's full compute capability.

This immediately gives us a powerful insight:

Increasing compute performance without increasing memory bandwidth moves the ridge point to the right.

In other words, the accelerator becomes harder to fully utilize.

Why Faster Compute Can Make the Memory Wall Worse

Suppose we double the compute capability:

Ppeak: 100 → 200 TFLOP/s

while keeping bandwidth constant:

B = 2 TB/s

The new ridge point becomes:

Iridge = 200 / 2 = 100 FLOPs/byte

The hardware now has twice as much computational capacity, but workloads need twice as much computation per byte to reach the compute-bound region.

This creates a counterintuitive situation.

A faster processor can become harder to keep busy.

If the memory system does not improve alongside the compute units, additional ALUs and tensor cores may spend increasing amounts of time waiting for data.

This is why modern accelerator design cannot be reduced to simply adding more arithmetic units.

The Memory Hierarchy

The memory system is not a single component. Modern processors use a hierarchy designed to balance capacity, latency, bandwidth, and energy.

On a typical GPU, a simplified view of where data can live is:

Registers → shared memory / L1 cache
→ L2 cache → HBM / DRAM
→ host memory and storage

The closer memory is to the compute units, the faster and more expensive it generally is per bit.

Registers provide extremely fast access but have tiny capacity.

Shared memory and caches are on-chip storage, commonly implemented with SRAM. SRAM is a memory technology, not a separate level that comes after L2. The exact organization differs across architectures.

HBM is a form of stacked DRAM. Off-chip memory offers much more capacity, but reaching it generally requires more data movement than reusing data already on the chip.

The goal of the programmer and hardware is therefore not simply to "use memory."

It is to keep frequently reused data as close to the computation as possible.

This is where data locality becomes critical.

Matrix Multiplication: The Importance of Data Reuse

Matrix multiplication is an excellent example of how memory traffic can dominate performance.

A naive implementation might repeatedly load values from large matrices:

Cij = ∑k AikBkj

The arithmetic itself is straightforward. The challenge is ensuring that the values needed by the computation are available without repeatedly fetching them from slower memory.

Instead of processing one element at a time, accelerators divide matrices into smaller tiles.

For example, a matrix can be divided into blocks, with each tile loaded into faster on-chip memory.

Rather than repeatedly transferring the same values from HBM or DRAM, the hardware can perform many computations on data that has already been brought close to the compute units.

This increases operational intensity.

Performance is often improved not by doing fewer computations, but by moving the same data fewer times.

This is one reason matrix multiplication maps so effectively onto GPUs and tensor accelerators.

Not All AI Workloads Behave the Same Way

The memory wall does not affect every AI workload equally.

Consider a large matrix multiplication. It performs a huge number of arithmetic operations on reused data, giving it relatively high operational intensity.

An elementwise operation such as:

Y = ReLU(X)

performs only a small amount of computation per element. The processor may spend more time moving X and Y than performing the actual arithmetic.

Other workloads have different bottlenecks.

  • GEMM: often compute-intensive because of extensive data reuse.
  • Convolution: can achieve high reuse depending on implementation.
  • Elementwise operations: frequently limited by memory bandwidth.
  • Embedding lookups: can be dominated by irregular memory accesses and latency.
  • Attention: involves both substantial computation and significant movement of intermediate data.

Therefore, there is no single "AI workload."

Two models running on the same accelerator can use the hardware very differently.

This is important when evaluating accelerators: theoretical peak FLOPS alone tells us surprisingly little about how efficiently a particular workload will execute.

Attention and the Cost of Moving Intermediate Data

Transformer attention provides a particularly interesting example.

At a high level, attention involves operations such as:

S = QKT / √dk

followed by:

P = softmax(S)

and finally:

O = PV

The challenge is not simply calculating these operations.

Large intermediate matrices may need to be written to and read from memory between stages.

Even when the total number of arithmetic operations is manageable, repeatedly moving intermediate data through the memory hierarchy can become expensive.

This is one of the motivations behind FlashAttention.

Rather than treating attention as several independent operations that repeatedly materialize large intermediate results in slower memory, FlashAttention reorganizes the computation into blocks and keeps relevant data in faster memory for as long as possible.

The important principle is not that FlashAttention magically reduces the mathematics.

It reduces unnecessary I/O and data movement.

Algorithmic efficiency is not only about reducing arithmetic operations. It can also mean reducing the amount of data that must move.

Bandwidth, Latency, and Capacity Are Different

The phrase "memory bottleneck" can hide several different problems.

Bandwidth

Bandwidth measures how much data can be transferred per unit time.

Latency

Latency is the time required before requested data becomes available.

Capacity

Capacity determines how much data can be stored.

2 TB/s means the system can theoretically transfer two terabytes per second.

A workload that continuously consumes large amounts of data can become bandwidth-bound.

An application performing irregular memory accesses may suffer from latency even when the theoretical bandwidth is enormous.

A model that does not fit into a fast memory level may have to repeatedly access slower memory.

These three properties are related but not interchangeable.

A memory system can have enormous bandwidth but still have insufficient capacity or unfavorable access latency for a particular workload.

HBM Helps, but It Does Not Remove the Memory Wall

High Bandwidth Memory (HBM) is one of the major hardware responses to the memory wall.

Instead of relying solely on conventional external memory, HBM places multiple memory dies close to the processor using advanced packaging and very wide interfaces.

This provides extremely high bandwidth.

But HBM does not eliminate the fundamental problem.

It changes the position of the wall.

If compute performance increases faster than memory bandwidth, the ridge point continues moving toward higher operational intensity.

Similarly, even extremely high bandwidth does not eliminate latency, capacity limitations, or the cost of moving data.

The fundamental question remains:

How much useful computation do we obtain per byte moved?

The Real Hardware Tradeoff

This creates a much deeper architectural problem.

Suppose a hardware designer has a fixed amount of silicon area and power.

That budget could be spent on:

  • more compute units,
  • larger on-chip SRAM,
  • higher memory bandwidth,
  • larger caches,
  • better interconnects,
  • more sophisticated scheduling,
  • or mechanisms that reduce data movement.

Adding more compute units increases theoretical FLOPS.

Adding SRAM can increase data reuse.

Increasing HBM bandwidth can supply more data.

Improving the interconnect can reduce the cost of moving data between components.

There is no universally optimal balance.

The best architecture depends on the workload.

A workload dominated by large matrix multiplications may benefit enormously from additional compute throughput.

A workload dominated by irregular memory accesses may benefit much more from improved memory behavior.

This is why accelerator architecture is fundamentally a data-movement problem as much as a computation problem.

Putting the idea into practice

A practical way to investigate the memory wall is to build a model that predicts what limits a workload.

Rather than predicting execution time alone, the model can help identify whether compute, data movement, or a combination of factors limits performance.

For each workload, we could collect features such as:

  • arithmetic operation count,
  • memory traffic,
  • operational intensity,
  • tensor dimensions,
  • batch size,
  • sequence length,
  • data precision,
  • cache behavior,
  • memory bandwidth,
  • peak compute throughput.

The model could classify workloads into categories such as:

Compute-bound

Memory-bound

Intermediate / mixed

The prediction could then be compared with actual measurements from hardware or simulation.

The objective would not simply be to predict execution time.

It would be to understand why a workload performs the way it does.

For example, if two models have similar FLOP counts but radically different execution times, the model could investigate whether their difference comes from operational intensity, memory traffic, access patterns, or data reuse.

This turns the memory wall into a measurable question. Predictions should be checked against hardware measurements or clearly identified simulations.

A related implementation is the AI-Based Hardware Performance Predictor, which explores Roofline analysis and workload bottlenecks.

Conclusion

The performance of modern AI systems is increasingly determined by more than how many operations their processors can execute.

FLOPS and TOPS tell us how much computational work hardware can theoretically perform. But computation is only useful when the required data can reach the compute units quickly enough.

The Roofline model captures this relationship:

Pachieved ≤ min(Ppeak, IB)

Increasing Ppeak without increasing B can make the memory bottleneck more significant. Increasing memory bandwidth helps, but bandwidth alone cannot solve latency, capacity, or data-movement overheads.

The deeper solution is data reuse.

Tiling matrix multiplication, exploiting memory locality, keeping intermediate values in fast memory, and algorithms such as FlashAttention all demonstrate the same principle: sometimes the biggest performance improvement comes not from making computation faster, but from making data travel less.

As AI accelerators continue to scale, this problem becomes increasingly important.

The next generation of AI hardware will not simply be a race toward more FLOPS.

It will be a race toward answering a harder question:

How much useful computation can we perform for every byte of data we move?

That is where the memory wall becomes an architectural problem: and where some of the most interesting opportunities in AI hardware begin.

References

  1. S. Williams, A. Waterman, and D. Patterson, "Roofline: An Insightful Visual Performance Model for Multicore Architectures," Communications of the ACM, vol. 52, no. 4, 2009. Read source
  2. T. Dao et al., "FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness," Advances in Neural Information Processing Systems, 2022. Read source
  3. T. Dao, "FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning," arXiv preprint, 2023. Read source

Want to share your own experience? Every member can write here: reach out and we'll help you publish your first post.