Finding GPU Memory Bandwidth Bottlenecks in Large-Model Training
GPU memory bandwidth limits a training step when the data moved is large relative to the computation and the transfer cannot be hidden by overlapping it with compute. Large matrix multiplications may be compute-bound, normalization and activations may be memory-bound, and multi-GPU synchronization may wait on a GPU link or network. Do not assume a large model is bandwidth-bound; profile the actual training step.
Here, a training step means one cycle of forward pass, backward pass, and parameter update. This article covers large-model training on GPUs and uses profiling features documented for PyTorch 2.15 and NVIDIA Nsight as examples. It reports no benchmark for a particular GPU or comparison between products. Recheck feature and metric availability for your current driver and software versions.
Bandwidth sets an upper bound on data movement time
GPU device memory is the chip memory that holds data while the GPU computes, such as HBM (high-bandwidth memory) or GDDR. Memory bandwidth is the rate at which data can be read from and written to this memory. Arithmetic intensity is the number of operations performed per byte moved from memory (FLOP/byte); FLOP is a unit for counting floating-point operations. The Roofline model compares arithmetic intensity with the GPU's memory and compute ceilings to estimate which resource is more likely to limit a kernel.
Attainable throughput ceiling = min(compute peak, memory bandwidth × arithmetic intensity)
Hypothetical example: Assume a GPU has a compute peak of 2 PFLOP/s and memory bandwidth of 3 TB/s. If an operation has an arithmetic intensity of 100 FLOP/byte, the bandwidth-based ceiling is 300 TFLOP/s. At 1,000 FLOP/byte, the bandwidth ceiling is 3 PFLOP/s, so in this simplified model the 2 PFLOP/s compute peak is the lower limit. These values illustrate the calculation; they are not measurements or specifications for a real product. The equation omits latency, insufficient parallelism, cache levels, implementation details, and concurrent work, so it does not guarantee kernel performance. NVIDIA's GPU Performance Background guide and Nsight Compute Roofline guide explain why arithmetic intensity and memory traffic should be considered together.
The bytes used for a bandwidth ceiling depend on which memory level you are analyzing. Reusing data already in cache can reduce how much must be fetched from GPU device memory (HBM or GDDR). In Nsight Compute's Device Memory table, Bytes means transfers between L2 cache and device memory, while Throughput is the observed rate across that boundary. Do not treat these as the number of global-memory instructions or total traffic through L1 and L2.
Different parts of a training step have different bottleneck candidates
| Training region | Why bandwidth can limit it | Other limit to check |
|---|---|---|
| Large linear layers and matrix multiplications | With sufficiently large dimensions and data reuse, computation can be large enough for compute throughput to become the first limit. | With small or narrow matrices or a small batch, there may be less reuse, and the same kind of operation can become memory-bound. |
| Normalization, activations, elementwise operations, and reductions | They perform relatively little computation per value and read or write substantial input and output data. Memory movement can matter in both forward and backward passes. | A tensor that is too small may not saturate memory bandwidth; kernel latency or insufficient parallelism can be the limit instead. |
| Multi-GPU gradient synchronization | PyTorch DistributedDataParallel (DDP) divides gradients into buckets for all-reduce, a collective operation that gathers values across GPUs. Communication can overlap with backward computation. If communication remains after compute finishes, a GPU link or network can extend the step. | Link throughput is a different specification from each GPU's HBM bandwidth. |
| Capacity pressure or OOM | Weights, gradients, optimizer state, and activations can exceed GPU memory capacity, forcing failure or changes to batch size, sharding, or host-memory offload. | Memory capacity and data-transfer speed are separate constraints. More bandwidth alone does not increase the number of bytes that fit. |
NVIDIA's performance guide explains that large dot-product matrix operations can be compute-bound when they are large enough, while smaller shapes may be memory-bound. Layers with little computation, such as activations, normalization, and reductions, are more likely to be limited by data movement. These are tendencies for particular operations, not a guaranteed bottleneck order for every Transformer training run. See NVIDIA's Memory-Limited Layers guide for forward and backward activation and normalization examples.
What fits in GPU memory is a capacity question. For example, NVIDIA Megatron-LM's theoretical memory estimator separately estimates model parameters, gradients, Adam state, and activations for a stated BF16 and parallelization configuration. It is an example from one implementation, not a universal formula for every framework. See the Megatron-LM estimator.
Check for a bandwidth bottleneck in a real training step
**Hold comparison conditions constant.** Record GPU count, model checkpoint, precision, sequence length, per-GPU micro-batch, global batch, optimizer, gradient accumulation, and parallelism. Separate compilation, initialization, and data-loading effects; compare the median of several steady-state steps.
**Use PyTorch Profiler to find expensive operations.** Select CPU and CUDA activities, record input shapes and tensor-memory allocations, and inspect a trace of selected steps. The PyTorch 2.15 profiler can collect operator time, shapes, tensor memory, and traces. Its profile_memory option tracks tensor allocations and releases; it is not an HBM bandwidth meter. See the [PyTorch Profiler recipe](https://docs.pytorch.org/tutorials/recipes/recipes/profiler_recipe.html).
**Inspect a suspected kernel with Nsight Compute.** Use the Roofline chart to see whether the kernel is closer to the memory or compute boundary. Read device-memory Bytes/Throughput, % Peak, and Memory Workload Analysis together, and confirm that the metric is available on your GPU. Peak utilization alone does not prove efficient access or an end-to-end step bottleneck.
**For multi-GPU training, separate communication waits.** Check whether backward computation overlaps with all-reduce and whether communication remains after compute. The [PyTorch 2.15 DDP documentation](https://docs.pytorch.org/docs/2.15/generated/torch.nn.parallel.DistributedDataParallel.html) describes gradient buckets that can overlap communication with backward computation. Use the [Nsight Systems analysis guide](https://docs.nvidia.com/nsight-systems/AnalysisGuide/) to inspect NVLink and MPI traffic. If link communication remains exposed, raising HBM bandwidth alone will not fix it.
Use PyTorch Profiler's timing and memory-allocation data to narrow down the cause, then use the relevant Nsight Compute kernel metrics to check device-memory throughput. A memory-bound kernel may have little effect on training time if it takes only a small part of the overall step.
Choose the next change based on the measured limiter
**The kernel is near the bandwidth boundary and takes a significant part of the step:** reduce redundant reads and writes, increase data reuse, or check for a more efficient fused implementation. A configuration with higher HBM bandwidth may help under the same conditions, but confirm the change with step time.
**The kernel is near the compute peak:** the compute path, data type, matrix shape, or kernel implementation may matter more than higher memory bandwidth.
**Waits remain after all-reduce or network operations:** check GPU links, the network, parallelism, and communication-compute overlap.
**OOM or a reduced batch is the issue:** review memory capacity, state sharding, and activation storage separately. That is a different diagnosis from a bandwidth bottleneck.
Do not predict training speed from a vendor's peak bandwidth alone. Measure step time with the same model, precision, batch, sequence length, and parallelism, then prioritize the configuration or optimization that matches the visible constraint: HBM, compute, capacity, or GPU-to-GPU communication.