# Memory-Bound

- **Canonical URL:** https://getaimath.com/dictionary/memory-bound/
- **Topics:** [LLM Inference: Prefill & Decode](https://getaimath.com/dictionary/category/llm-inference-prefill-and-decode/)
- **Last updated:** 2026-11-25

## What is Memory-Bound?

**In one sentence:** A task is memory-bound when its speed is limited by how fast data can be read from memory, not by math speed.

The processor sits waiting for data. Generating tokens for one user is memory-bound, because the model must read all its weights for each token but does little math with them.

![How an AI Replies: 1. Read Your Question → 2. Type the Answer — Simple two-step cartoon: Step 1 (Prefill) shows the AI scanning your entire question in one flash (causing the brief pause before it starts talking); Step 2 (Decode) shows it typing out the reply one word at a time.](https://getaimath.com/diagrams/llm-inference-prefill-and-decode.png)
*Napkin Diagram (LLM Inference: Prefill & Decode): Every AI reply has two halves: gulping down your whole prompt at once, then speaking the answer one word at a time.*

## What is an example of Memory-Bound?

A chatbot answering one person on a GPU is usually memory-bound.

## Why does Memory-Bound matter?

It explains why memory bandwidth matters so much for LLM speed.

## Memory-Bound vs. Compute-Bound

A workload is compute-bound when math units are running flat-out, and memory-bound when math units sit idle waiting for weights and KV cache data to arrive from VRAM.

| Dimension | Memory-Bound | [Compute-Bound](https://getaimath.com/dictionary/compute-bound/) |
| --- | --- | --- |
| Speed limiter | Memory bandwidth (GB/s or TB/s) | Chip TFLOPS / Tensor Cores |
| Typical LLM stage | Single-user autoregressive token decode | Prefill & large-batch training |
| How to speed it up | Weight quantization (INT4), faster HBM, speculative decoding | Faster matrix cores, FP8/INT8 math, smaller active params |

## Related Concepts

- [Compute-Bound](https://getaimath.com/dictionary/compute-bound/): A task is compute-bound when its speed is limited by how fast the chip can do math.
- [Prefill-Decode Disaggregation](https://getaimath.com/dictionary/prefill-decode-disaggregation/): Prefill-decode disaggregation runs the prefill and decode phases on separate machines, each tuned for its job.
- [Memory Bandwidth](https://getaimath.com/dictionary/memory-bandwidth/): Memory bandwidth is how fast data can move between a chip's memory and its processors, usually measured in gigabytes per second.
- [Latency](https://getaimath.com/dictionary/latency/): Latency is the delay between asking for something and getting a response.
- [Throughput](https://getaimath.com/dictionary/throughput/): Throughput is the total amount of work a system completes over time, like the number of tokens or requests per second across all users.
- [Sampling](https://getaimath.com/dictionary/sampling/): Sampling is how a model picks the next token from its list of possible options, using their probabilities.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/memory-bound/)
