Why Large Model Training Is So Hard: From Logical Workloads to Physical GPU Resources

    This article explains why training large models is difficult, not simply because of a shortage of GPUs, but because of the gap between massive logical workloads and limited physical execution resources. It covers how logical threads map to GPU execution units, why high compute and high occupancy do not always produce fast operators, how parallelism strategies amplify system-level complexity, and why sparse expert models can show counterintuitive scheduling behavior. It closes with a practical engineering framework for analyzing and optimizing training performance.

    1. The Starting Point: Compute Growth vs. Training Difficulty

    Over the past decade, model size has grown much faster than single-GPU compute. Early models with hundreds of millions of parameters could still be trained with limited resources. Later, dense models with hundreds of billions of parameters turned training from “writing a model” into “building a system.”

    Many people initially assumed that more parameters would always lead to better results. In practice, the real constraint is not mathematical derivation. It is the engineering problem of fitting an enormous logical workload into limited physical execution resources.

    So the difficulty of training cannot be reduced to “not enough GPUs.” The deeper question is this: how do you split, place, and schedule a task that involves millions or even trillions of operations onto a physical chip with only about a hundred streaming multiprocessors (SMs), while keeping every execution unit highly utilized?

    2. Logical Threads Do Not Map One-to-One to Physical Execution Resources

    In a programming model, a Thread is a logical execution unit defined in software. In a chip, arithmetic execution units such as CUDA Cores and Tensor Cores are physical resources.

    Inside one SM, there are compute pipelines, a register file, on-chip memory, and an instruction scheduler. The SM does not bind one fixed compute unit to each thread. Instead, the scheduler switches quickly among multiple candidate tasks, using concurrency to hide latency.

    A traditional core-level programming model on a domestic accelerator also maps software tasks to physical units such as AI Core and AI Vector. However, its abstraction is “kernel function instance + data tiling,” which is not equivalent to a thread-level model.

    This creates a common misconception: treating thread count as a measure of compute. Threads are only a way to describe tasks. Whether they turn into throughput depends on residency capacity and memory access efficiency.

    Layer Mainstream GPU Programming Model Core-Level Programming Model
    Physical compute resource SM AI Core / AI Vector
    Execution unit Scalar / Tensor Core Cube / Vector unit
    Logical task Thread within a Block Kernel function instance and data tiling
    Scheduling organization Grid / Block / Warp Inter-core tiling and block scheduling

    3. Mapping Task Scale: The Minimal Case of Vector Addition

    The simplest way to understand this mapping is an element-wise operation:

    1. __global__ void vec_add(const float* a, const float* b, float* c, int n) {
    2. int i = blockIdx.x * blockDim.x + threadIdx.x;
    3. if (i < n) c[i] = a[i] + b[i];
    4. }
    5. // 4 Blocks, 256 threads per Block, 1024 logical threads in total
    6. vec_add<<<4, 256>>>(a, b, c, 1024);

    Here, the Grid is the full set of Blocks launched in this run. A Block is a group of threads that can share on-chip memory and support intra-block synchronization. A Warp is an execution group of 32 threads within a Block, and a Lane is the thread’s index within a Warp.

    The 1024 logical threads are split into 32 Warps and then scheduled by hardware onto SMs. This example shows that logical scale can be arbitrarily large, while physical resources are constant. Mapping efficiency is what separates good performance from poor performance.

    4. Why Operators Stay Slow Even with High Compute and High Occupancy

    This is one of the most counterintuitive phenomena in training and operator development. There are usually four causes:

    1. Memory-bound behavior. Element-wise and normalization operators have very low arithmetic intensity. Their performance ceiling is determined by bandwidth rather than peak compute. In this case, raising occupancy only increases bandwidth contention.
    2. Insufficient resource residency. Register and on-chip memory capacity are limited. When thread count rises, the resources available per thread are squeezed, causing spills and repeated memory access.
    3. Branching and alignment issues. Branch divergence within a Warp and uncoalesced memory access can sharply reduce effective bandwidth.
    4. Synchronization and dependencies. When intra-block synchronization and serial reduction sections take up too much time, bubbles appear between waves.

    The diagnostic method is straightforward: first look at arithmetic intensity and measured bandwidth utilization, then examine residency and bubbles, instead of staring only at peak TFLOPS and occupancy.

    5. Parallel Strategies Amplify System-Level Difficulty

    The real complexity of large model training comes from combining parallelism strategies.

    Data parallelism requires gradient synchronization. Tensor parallelism splits a single layer across multiple GPUs, with frequent communication on the critical path. Pipeline parallelism introduces bubbles and a tradeoff with recomputation. Context parallelism splits along the sequence dimension, and attention needs to exchange key and value information across segments, with communication volume growing as sequence length increases.

    If any one dimension is configured poorly, the gains from single-operator optimization can be swallowed by communication waits.

    6. Counterintuitive Scheduling in Sparse Expert Structures

    Sparse expert models split one dense computation into “routing - dispatch - grouped computation - reduction.”

    As expert parallelism increases, each GPU holds fewer experts, but cross-GPU communication and load imbalance from token dispatch become worse. Grouped matrix multiplication then runs with smaller batches and more fragmented shapes, so measured throughput can actually drop.

    This shows that the performance of GroupedMatmul does not depend on the upper limit of scale. It depends on whether each shard after grouping is regular enough and whether it saturates the execution units.

    7. Engineering Recommendations

    • Build a four-layer analysis framework first: logical task - residency - memory access - throughput. Only then start optimizing.
    • Use general monitoring, alerting, and logging services to collect metrics such as throughput, GPU memory, and communication wait time, and form comparable baselines.
    • Use a container platform for environment consistency, and use object storage for checkpoints and datasets to reduce engineering noise.
    • Recommended optimization order: operator memory access and alignment → parallel partitioning and communication overlap → fault tolerance and checkpoint strategy.

    In short, large model training is hard because of the huge gap between logical scale and physical resources, because of the second-order effects of memory access and scheduling, and because of the coupling among multiple parallelism dimensions. Only when these three layers are separated and quantified does the difficulty change from “it feels hard” into “it can be optimized.”