Why Large Model Training Is Hard: From Operators to Chip Bottlenecks
Large-model training performance is often framed as a problem of compute, data, or tuning. This article instead traces the bottlenecks that emerge when massive logical workloads are mapped onto limited hardware resources. Using the GPU thread hierarchy, a vector-add kernel, and MoE grouped matrix multiplication, it explains why high peak compute or high occupancy does not guarantee speed, and it outlines a systematic method for diagnosing operator performance across memory access, resource residency, scheduling, and synchronization.
1. Where Large-Model Training Gets Hard: An Underestimated Problem
When people discuss the difficulty of training large models, intuition often points to “not enough compute,” “not enough data,” or “difficult tuning.” From an engineering perspective, however, the real challenge is how massive logical workloads are efficiently mapped onto very limited physical resources while avoiding bottlenecks in memory access, scheduling, synchronization, and other dimensions at the same time.
A mainstream GPU may have only around a hundred streaming multiprocessors (SMs). Each SM in turn consists of compute pipelines, a register file, on-chip shared memory, and scheduling units. A typical operator in a deep learning framework may process millions or even hundreds of millions of elements. If a vector-add operator assigns one logical thread to each element, it must place millions of tasks on a very small chip area. This order-of-magnitude mismatch means that “dispatching the tasks” is only the first step. What really determines performance is how those tasks flow, wait, and fetch data inside the chip.
In other words, training performance is not a single-point problem. It is a multidimensional coupled system determined by logical thread organization, hardware resource residency, memory access behavior, and task scheduling.
2. Mapping Logical Tasks to Physical Hardware
The first step in understanding performance bottlenecks is to distinguish three layers of concepts:
- Logical execution unit: A thread from the program’s perspective is a software-defined execution path. Its count can far exceed the hardware’s concurrent execution capacity.
- Physical execution resource: The general-purpose compute cores, matrix compute units, vector units, and other hardware structures in the chip that actually execute operations.
- Scheduling and organizational structure: Intermediate structures that package logical threads and assign them to physical resources, such as thread blocks and warps.
Using the typical GPU thread model as an example, the hierarchy is roughly as follows:
- Grid: The entire set of threads for one kernel launch, corresponding to a complete parallel task.
- Block: A group of threads that can share on-chip memory and synchronize within the block.
- Warp: An execution unit made up of 32 threads within the same block. It is the smallest granularity of hardware scheduling.
- Thread: The smallest logical execution unit described by the program.
- Lane: The position index of a thread within a warp.
A simple vector-add kernel looks like this (the pseudocode uses common industry syntax):
__global__ void vector_add(const float* a, const float* b, float* c, int n) {int i = blockIdx.x * blockDim.x + threadIdx.x;if (i < n) {c[i] = a[i] + b[i];}}// Launch configuration: 4 blocks, 256 threads per block, 1,024 logical threads in totalvector_add<<<4, 256>>>(a, b, c, 1024);
In this example, 4 blocks with 256 threads each create a total of 1,024 logical threads. It is important to note, however, that logical threads do not correspond one-to-one with physical cores. Through warp schedulers, the chip sends large numbers of logical threads to a limited number of execution pipelines in batches. When a batch of threads stalls while waiting for data, the scheduler switches to other ready warps to hide memory latency.
Other types of AI accelerators—such as some accelerator cards that use a kernel-level programming model—also face the question of how to map software tasks onto scalar, vector, and matrix compute units. Their task granularity, synchronization mechanisms, and memory hierarchy are not fully equivalent to those of a GPU, however. Therefore, when optimizing operators across platforms, the same mental model cannot simply be applied everywhere.
3. Why Operators Remain Slow Despite High Compute and High Occupancy
This is one of the most confusing questions for beginners: hardware utilization metrics look good, yet performance is far below expectations. The reasons usually lie in the following types of bottlenecks.
3.1 Memory Bound
Many operators—such as LayerNorm, Softmax, embedding lookup, and MoE token dispatch—are inherently memory-intensive operations. The amount of computation they perform per byte read is small. Even if compute-unit utilization is high, the performance ceiling is set by memory bandwidth. In this case, “high compute” is only a paper number; what is actually being consumed is bandwidth.
One way to diagnose this is to calculate the operator’s arithmetic intensity (FLOPs/byte) and compare it with the hardware’s compute-to-bandwidth ratio. If the former is far lower than the latter, the operator is memory-bound. Optimization should then focus on reducing memory traffic, improving memory access coalescing, and making better use of on-chip caches, rather than simply increasing parallelism.
3.2 Resource Contention
Each thread occupies registers, and each block occupies shared memory and scheduling slots. When an operator uses many registers or a large amount of shared memory, fewer warps can reside on an SM at the same time. Even if the occupancy metric looks high, instruction dependencies among active warps may cause pipeline waits, and actual throughput can still drop.
A more subtle case is that high occupancy does not necessarily mean high performance. High occupancy only provides a pool of switchable warps for latency hiding. If the bottleneck is memory bandwidth or serial instruction dependencies, adding more warps will only intensify contention.
3.3 Scheduling and Synchronization Overhead
Global synchronization across blocks, atomic operations, and irregular data distribution—such as grouping tokens by expert in MoE—all create scheduling pressure. When task granularity does not match hardware scheduling granularity—for example, when there are many extremely small task blocks—scheduling overhead itself can consume performance.
4. A Counterintuitive Example: Grouped Matrix Multiplication in MoE
Training Mixture-of-Experts (MoE) models introduces a unique performance problem: tokens must first be routed to different experts and then grouped by expert for matrix multiplication. One typical and counterintuitive phenomenon is that “after increasing expert parallelism, the actual TFLOPS of grouped matrix multiplication (GroupedMatmul) decreases.” This can be explained from three angles.
4.1 Fragmented Task Granularity
As expert parallelism increases, each expert on each compute node receives fewer tokens. The shape of each grouped matrix multiplication becomes smaller and more fragmented. Matrix multiplication efficiency depends heavily on the arithmetic intensity and sufficient parallelism provided by large matrices. When the number of rows in each group (the number of tokens) decreases, thread blocks cannot fully occupy the SMs, the number of waves decreases, and the tail effect becomes more severe (the final wave cannot fill the hardware). As a result, actual throughput drops significantly.
4.2 A Worsening Memory-to-Compute Ratio
Grouped matrix multiplication must load an independent weight matrix for each expert group. With more experts, each weight matrix is reused fewer times, the effective utilization of weights declines, and memory traffic increases relative to computation. As the problem shifts from compute-bound to memory-bound, even a higher peak compute rate cannot be converted into actual TFLOPS.
4.3 Data Distribution and Scheduling Overhead
Token dispatch itself involves irregular operations such as sorting, counting the number of tokens per expert, and rearranging data. As expert parallelism increases, communication and dispatch overhead rise, and load imbalance after grouping can leave some SMs waiting while others sit idle, reducing overall utilization.
This suggests that more parallelism is not always better. It must be co-designed with the operator’s shape, on-chip resource residency capacity, and memory access patterns.
5. A Systematic Performance Analysis Method
For the issues above, training engineers and operator developers can follow this analysis framework:
- Build a resource-mapping model: First determine how the operator’s output elements map to logical threads, then trace how blocks and warps reside on SMs, and check whether register and shared-memory usage limits the number of resident warps.
- Identify the operator type: Use arithmetic intensity to determine whether the operator is compute-bound or memory-bound, and avoid optimizing the wrong dimension.
- Check memory access patterns: Observe whether global memory accesses are coalesced, whether there are noncontiguous or strided accesses, and what the on-chip cache hit rate is.
- Analyze scheduling and synchronization: Count warp stall reasons (waiting for memory, waiting for synchronization, instruction dependencies, and so on), and determine whether there are scheduling bubbles or tail effects.
- Take an end-to-end view: Evaluate single-operator optimizations within the entire training step. In MoE, for example, even if grouped matrix multiplication is optimized, extra copies and communication introduced by token dispatch may still cause overall performance to decline rather than improve.
6. Conclusion
Large-model training is hard because it compresses massive software-level logical parallelism, limited chip-level physical resources, the bandwidth wall of the memory system, and the complexity of distributed scheduling into one system. Operators are often slow not because “there is not enough compute,” but because tasks do not flow in a way that matches hardware characteristics. Understanding the intrinsic relationships among thread organization, resource residency, memory efficiency, and scheduling mechanisms is the key to moving from “getting training to run” to “making training run fast.” For emerging structures such as MoE, joint optimization across the full chain—from token dispatch to grouped computation—is needed to turn paper peak compute into real training throughput.
