# Compute-Bound

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

## What is Compute-Bound?

**In one sentence:** A task is compute-bound when its speed is limited by how fast the chip can do math.

The processor is the bottleneck; memory can keep up. In LLMs, prefill and large batches are usually compute-bound because there is lots of math per byte of data.

![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 Compute-Bound?

Processing a long prompt in one go keeps a GPU's math units fully busy, so it is compute-bound.

## Why does Compute-Bound matter?

Knowing what limits a task tells you which hardware upgrade will help.

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

## Related Concepts

- [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.
- [Memory-Bound](https://getaimath.com/dictionary/memory-bound/): A task is memory-bound when its speed is limited by how fast data can be read from memory, not by math speed.
- [Latency](https://getaimath.com/dictionary/latency/): Latency is the delay between asking for something and getting a response.
- [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.
- [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/compute-bound/)
