If you’ve spent any time poking around large language model (LLM) infrastructure, you’ve probably heard the mantra: “LLMs are memory bandwidth bound.”
This means that the reason your AI feels sluggish isn’t because the GPU lacks computing power, but because the memory speed simply can’t keep up. While true, this doesn’t paint the full picture of how LLM computations actually work.
Today, we’re going to dig into why LLMs are trapped in this “Memory Bandwidth Bound” box rather than a “Compute Bound” one, and explore the ingenious ways engineers around the world are trying to break through this bottleneck.
1. Where It All Began: The Von Neumann Dilemma
Before we talk modern systems, we need to revisit the granddaddy of computer architecture: the Von Neumann Architecture. Its core philosophy — physically separating the compute unit from the memory — is the root of our current bottleneck.
Imagine a massive Amazon fulfillment center:
- Compute Unit (GPU): An ultra-fast robotic arm that scans thousands of boxes per second.
- Memory: A colossal warehouse packed with goods.
- Memory Bandwidth: The conveyor belt connecting the warehouse to the robot.
When an order comes in, the warehouse manager finds the box and puts it on the belt. The robot scans it in a microsecond. Then… it stops and waits. “Next box, please? I’m already done.”
No matter how fast the robot is, the total output of our fulfillment center is entirely bottlenecked by the speed of the conveyor belt.
2. Enter the GPU, and a Difficult Guest Named “LLM”
To fix this, GPUs hired thousands of cheap, specialized robots instead of one versatile one, processing massive piles of boxes simultaneously. During AI Training, this works perfectly. Bulk orders come in (Batch Processing), forklifts dump mountains of boxes at once, and the robots work at 100% capacity in a true Compute Bound state.
The Auto-regressive Nightmare
But LLM Inference — the real-time chatting you do with ChatGPT or Claude — is a different beast. From a hardware perspective, LLMs have a terrible habit: they are Auto-regressive. They don’t write sentences all at once; they generate answers one token (word) at a time, feeding each new word back into the system to predict the next.
This loop creates a hardware nightmare. Take a 175-billion parameter model. Stored in 16-bit precision (FP16), it takes up about 350GB. To calculate just one single word, the GPU must stream that entire 350GB of data down the conveyor belt layer by layer.
Back to our warehouse: An order comes in for one box. The robot waits for all 350GB worth of boxes to roll down the belt, inspects all of them just to scan one barcode, and then does it all over again for the next word. The actual math takes milliseconds; fetching the warehouse takes an eternity.
This is why LLM inference is currently drowning in the Memory Bandwidth Bound swamp, despite having access to the fastest compute engines on earth.
3. The Two Faces of LLM Inference: Prefill vs. Decoding
The process of generating an LLM response is actually split into two distinct phases, and they utilize hardware in completely different ways.
Phase 1: Prefill — “Reading the giant order form” (Compute Bound)
Imagine you hand an LLM a 50-page PDF or a massive block of code and say, “Summarize this.”
During this phase, the GPU can process all the input text (tokens) simultaneously in parallel. Because the text is already there, the model doesn’t need to predict the future; it can calculate how all these words relate to each other (Attention) all at once.
In our warehouse, this is like a mail truck dumping tens of thousands of order forms onto the floor at once. The conveyor belt is never empty, and the robots are working so fast their motors are catching fire. This phase is perfectly Compute Bound. Your multi-thousand-dollar GPU is doing exactly what you paid for — multiplying giant matrices at warp speed.
Phase 2: Decoding — “Writing the response word-by-word” (Memory Bound)
Once the input is read, the LLM starts generating the summary. Here is where the auto-regressive trap springs. It must spit out one word at a time.
For every single word, it has to pull the entire 350GB warehouse of weights off the shelves. This phase is the definition of extreme Memory Bandwidth Bound.
How Does This Feel to the User (UX)?
How does this hardware reality translate to your screen?
When you hit ‘Enter’ and the chatbot pauses for a moment — that’s the Prefill phase. When it finally starts typing like a slow typewriter and you get frustrated — that’s the Decoding phase choking on memory bandwidth.
Engineers track this user experience using two core metrics:
TTFT (Time To First Token) — “Why isn’t it answering?”
- Meaning: The time between hitting enter and the first word appearing on screen.
- UX: This relies entirely on the Prefill speed. It’s the time it takes the GPU to chew through your massive PDF. If TTFT is too long, users think the app is broken.
TPOT (Time Per Output Token) — “Why is it typing so slowly?”
- Meaning: The speed at which words are generated after the first one appears (often called Generation Rate).
- UX: This is dictated entirely by Decoding (your memory conveyor belt speed). The average human reads about 4 to 5 words per second. If the TPOT is slower than human reading speed, the user is left twiddling their thumbs. If it pushes 20–30 tokens a second, the AI feels incredibly snappy and “smart.”
4. The Roofline Model
A highly regarded research paper titled “LLM Inference Unveiled: Survey and Roofline Model Insights” tackles this systematically. The researchers built a simulation tool called ‘LLM-Viewer’ to map out the exact bottlenecks layer by layer.
4.1. The Axes and the Roofs
The Roofline model is a 2D graph that maps system limitations, literally looking like a roof.

- X-axis: Arithmetic Intensity (OPs/Byte): How many calculations (operations) the GPU performs for every 1 byte of data it pulls from memory. If you reuse the data a lot, intensity is high.
- Y-axis: Attainable Performance (FLOPs/s): The actual compute speed the system can achieve.
The graph has two physical “roofs” (limits):
- The Slanted Roof (Left): Performance here is completely capped by
Arithmetic Intensity × Peak Memory Bandwidth. If your calculation intensity is low, you are trapped under this slope. This is the Memory-Bound zone. - The Flat Roof (Right): The hard ceiling of the hardware’s maximum compute capability. If you hit this line, your GPU is working at 100% capacity. This is the Compute-Bound zone.
(Note: For an NVIDIA RTX A6000 running in FP16, the graph shows you need an arithmetic intensity of about 200 OPs/Byte before you can start utilizing 100% of the GPU’s compute power.)
4.2. The Ridge Point (The Cut-off)
The exact spot where the slanted roof meets the flat roof is the Ridge Point. This is the minimum arithmetic intensity required to fully saturate the GPU.
Ridge Point = Peak Compute Performance / Peak Memory Bandwidth
Let’s plug in the specs for an NVIDIA H100 GPU:
- Peak Compute: ~1,979 TFLOPS (using BF16 Tensor Cores with sparsity)
- Peak Memory Bandwidth: ~3.35 TB/s (HBM3)
- H100 Ridge Point: 1,979 / 3.35 ≈ 591 FLOPs/Byte
This means for the H100 to actually work at 100% capacity, it must perform at least 591 math operations for every single byte of data it fetches. If it doesn’t, it slides down the slanted roof into Memory-Bound territory.
4.3. What the Data Actually Shows
Using LLM-Viewer, researchers proved how drastically different the two phases of LLM inference are:

- Prefill Phase: Because it processes thousands of tokens in parallel, it pulls data once and multiplies it against many different tokens. The arithmetic intensity easily blasts past 591, comfortably parking on the right-side flat roof (Compute-Bound).
- Decoding Phase: Generating a single word requires reading the entire model, plus fetching the ever-expanding context of the conversation (KV-Cache). It moves massive amounts of data onto the conveyor belt just to do a tiny bit of math. The arithmetic intensity plummets to roughly 1 to 10 FLOPs/Byte. It crashes to the bottom-left of the slanted roof (Memory-Bound), meaning over 90% of the H100’s legendary computing power simply evaporates into thin air.
5. The Software Counterattack: “Let’s use the conveyor belt less!”
Software engineers aren’t just sitting around accepting defeat. If the conveyor belt is narrow, the goal is to figure out how to put lighter boxes on it, or how to cram more boxes into a single trip.
1) Compress the Boxes: Quantization
The most widely used tactic. Instead of storing data as standard 16-bit numbers (FP16), engineers crush them down to 8-bit (FP8), 4-bit (INT4), or even extreme 1-bit/1.58-bit levels (like the recent breakthroughs with BitNet). This allows you to shove 4x to 10x more data down the same conveyor belt at once. While early quantization made models noticeably dumber, modern techniques preserve the AI’s intelligence while effectively nuking the bandwidth bottleneck.
2) Put the Idle Robots to Work: Speculative Decoding
Engineers realized: “The main robot is just sitting there waiting for memory. Let’s make it guess the future!” You put a tiny, fast “Draft Model” next to the massive “Target Model.” The tiny model uses barely any memory and rapidly guesses the next few words (e.g., “The”, “apple”, “tree”). When the massive 350GB memory finally arrives, the main robot checks all three guessed words in parallel. If the guess is correct, you just generated three words for the memory-cost of one. It’s basically magic.
3) Stop Taking Things Out of the Warehouse: FlashAttention
Historically, when calculating the relationships between words (Attention), GPUs would write intermediate math steps back to the main memory (HBM) and read them back again. FlashAttention rewrote the algorithm to say: “Stop going outside! Do all the intermediate math inside the ultra-fast, tiny on-chip cache (SRAM), and only send the final answer out.” This slashed unnecessary trips on the conveyor belt.
4) Optimize the Past: KV Cache Optimizations (GQA & Prompt Caching)
To avoid re-reading the entire conversation history for every new word, LLMs save the context in memory (the KV Cache). As models now support millions of tokens of context, this cache can actually grow larger than the model itself!
To fix this, modern architectures use Grouped Query Attention (GQA) to share and compress this memory. Furthermore, API providers now use Prompt Caching to “freeze” the math for frequently used prompts, massively lightening the load for both Prefill and Decoding.
6. The Hardware Revolution
Hardware engineers have another plan: if memory bandwidth is the problem, build a massive memory bandwidth.
1) HBM (High Bandwidth Memory): Building Superhighways
If old-school DRAM was a warehouse miles away, HBM is a skyscraper warehouse built directly on top of the GPU factory. By drilling microscopic holes through the silicon, they hardwire thousands of data lanes straight into the chip. The reason NVIDIA’s new Blackwell (B200) chip boasts double the bandwidth of the H100 (over 8 TB/s) is entirely thanks to next-gen HBM3e and HBM4 technologies.
2) NVLink & CXL: The Giant Mega-GPU
Because putting memory on a single chip has physical limits, the industry is moving to Rack-scale optimization. Systems like NVIDIA’s GB200 NVL72 stitch dozens of GPUs together with ultra-high-speed copper cables (NVLink). To the software, it looks like one singular, monstrous GPU with terabytes of memory and infinite bandwidth. Additionally, standards like CXL (Compute Express Link) are emerging to allow chips to dynamically borrow memory from data center pools.
3) LPU (Groq): “What if we just demolish the warehouse?”
Companies like Groq are taking radical approaches with LPUs (Language Processing Units). Their philosophy? “Even with an HBM superhighway, going off-chip is still a bottleneck. Let’s delete the external warehouse entirely.”
They rely entirely on SRAM — the blazing-fast memory located directly inside the processor. They achieve internal bandwidths dozens of times faster than an H100, resulting in response speeds that flow like a waterfall.
The catch? Because chips have very little internal memory, running a massive model requires networking hundreds of chips together, which is incredibly complex and expensive. Still, they are dominating the “Ultra-Low Latency” niche.
4) PIM (Processing-in-Memory): “Just put a calculator in the warehouse!”
Even with an 8-lane superhighway, moving giant datasets out of memory is inefficient. So, engineers are flipping the paradigm with PIM: embedding compute units (ALUs) directly inside the memory chips themselves.
Instead of moving heavy data to the GPU to do simple matrix multiplication, the memory does the math internally. The heavy data never gets on the conveyor belt, magically erasing the bandwidth bottleneck and drastically reducing power consumption.
7. Conclusion: The Future is a Great Logistics Network
As we’ve seen, LLM inference isn’t just about how fast a chip can crunch numbers. The true battleground is deciding “who can build the widest conveyor belt” and “who can pack the boxes most efficiently.”
This is why global memory manufacturers are betting their lives on HBM yields, why NVIDIA is just as obsessed with networking cables (NVLink) as they are with teraflops, and why AI researchers pull all-nighters trying to shrink models down to 1-bit sizes. They are all trying to shatter the “Memory Bandwidth Bound” ceiling.
Because at the end of the day, even if your genius robotic arm can scan trillions of barcodes a second, if the boxes don’t arrive on time, it’s just the most expensive unemployed worker in the world.