First, a look back at the LLM compute revolution. A unified paradigm: the Transformer as the base. NLP once had RNNs, CNNs, and assorted attention structures — fragmented and hard to scale. The Transformer turned the core computation into large-scale matrix multiplication, a near-perfect fit for how GPUs compute. Scaling laws revealed a clear, predictable scaling curve among parameters, data, and compute: with enough compute, performance improves steadily. That directly produced a series of LLMs for which "just make it bigger" works. Engineering and hardware came together — mixed precision (FP16, BF16), optimal width-to-depth ratios, memory optimization (ZeRO, distributed training), high-throughput kernels (Flash Attention) — to keep GPUs almost fully busy. Hardware generations (A100 → H100 → B200) and models' arithmetic intensity advanced together, pushing LLMs' compute efficiency close to the physical limit.
That is the so-called compute revolution: one paradigm (the Transformer) + one scaling path (scaling laws) + a full set of engineering optimizations (GPU-native design), closing the loop between algorithmic quality and hardware compute and starting a virtuous cycle of fast iteration.
Most industrial recommender baselines have no unified GPU-native base like the Transformer. The prevailing paradigm is still embedding lookup + sequence processing + MLP (or another interaction structure), a legacy of small GPUs, and moving it onto big GPUs does not naturally saturate the compute. When teams pile on compute, memory often fills up first, quality doesn't rise linearly with compute, and they conclude they need more GPUs — while actual GPU utilization is below 5%. In engineering terms, memory-access bottlenecks outweigh compute bottlenecks: embeddings and sparse features keep the GPU waiting on memory most of the time. Memorizing features outweigh generalizing structure: gradient budget is consumed by memorizing features, weakening the training of deep models. On top of that, inefficient sample formats create IO bottlenecks. Industrial recommender systems have mostly not yet entered an LLM-like scaling path.
Everyone is defining and exploring the next generation of recommender systems — generative, end-to-end, or ultra-long sequences — and the answer is still open. But one thing is certain: system architecture and models must be redesigned around the GPU as the compute engine to raise arithmetic intensity (AI). Whatever the direction, it rests on the scaling-law assumption. If you have big GPUs but low utilization, the scaling path is capped, and there is no next generation to speak of. Recommendation algorithms are tactics; high-performance GPUs are firearms. However strong your sword tactics, they can't withstand a single shot.
Before discussing model architectures and training methods and opening up a scaling path, we need a better understanding of GPUs and compute. It's foundational knowledge that isn't yet widespread but will be essential. Otherwise you may know that scaling laws call for more compute without knowing how to add it or what theory supports it — piling on compute becomes piling on GPUs, which only burns money. This article goes from understanding the GPU, to raising arithmetic intensity, to clearing memory and IO bottlenecks, to reshaping the paradigm of samples and features, in five chapters.
1. GPU Utilization and the Tensor Core
Chapter summary: To truly unlock GPU compute, the first step isn't model complexity but a clear understanding of the hardware. The GPU's underlying structure — SMs, warps, the memory hierarchy — determines its parallel efficiency, and utilization metrics (MFU, SMU, TCA, TCU) are the most direct health check, telling us whether the machine's compute is actually saturated. Many recommender engineers feel they don't have enough GPUs, but the GPUs spend most of their time waiting on memory and running on slow paths; real utilization may be under 5%. The GPU's core firepower is the Tensor Core, but only if the computation compiles into large matrix multiplications (GEMMs) that meet basic rules: matrix dimensions must be aligned and tiles must split cleanly across warps. Otherwise execution falls back to the slow CUDA Core path. In other words, the compute revolution starts not with algorithmic tricks but with understanding the GPU's hardware rules and aligning model computation to them. Only when utilization goes up does a scaling path really exist.
Moving a recommendation model from small GPUs to big ones doesn't raise training throughput in proportion to compute (FLOPs). If you were already memory-bound on small GPUs, the throughput gain on big ones is often negligible. The root problem is low GPU utilization: the compute is there, but most of the time it isn't actually used.
Unfortunately, GPU utilization isn't a single metric. The definitions you commonly hear include:
- GPU Utilization: whether the GPU as a whole is busy
- MFU (Model FLOP/s Utilization): the model's actual FLOPs as a share of theoretical peak
- SM Activity (SMA, streaming multiprocessor activity): whether SMs are issuing instructions
- Tensor Core Utilization / Active: how active the Tensor Core units are
These metrics look similar but measure different things, and they're easy to confuse. To truly understand and improve GPU utilization, you have to look at the compute units and the memory architecture together.
1.1 Compute and Memory Hardware

To make sense of these metrics, start with the GPU's core components. The compute engine breaks work down and distributes it across multiple SMs (streaming multiprocessors). An SM is a cluster of execution units, each containing compute and memory units (CUDA Cores, Tensor Cores, SFUs, load/store units, and so on). SMs are independent and can run different work at the same time; the H100 SXM5, for instance, has 132 SMs. Within each SM, CUDA Cores run general arithmetic and logic (FP32, INT32, some FP64) and mainly handle scalar and vector operations, while Tensor Cores are dedicated matrix multiply-accumulate (MMA) units that execute the matrix operations common in deep learning (BF16, FP16, TF32, INT8, and so on) at high throughput.
Whether the compute units run at full speed depends on whether the memory system can supply data in time. Registers are private to each thread, the fastest storage with very low latency, but limited in capacity — each thread gets only a few. Once registers run out, data spills to slower levels, directly hurting compute. Shared memory and L1 cache sit inside each SM and are used cooperatively by the threads in a block; their latency is far lower than device memory, and they are commonly used for tiling and data reuse in matrix multiplication, letting many threads share the same data and greatly reducing pressure on device memory. The L2 cache is shared by all SMs as a global buffer, so not every request hits device memory. HBM is the GPU's main memory, large in capacity and bandwidth but high in latency. If compute units hit device memory frequently, Tensor Cores and CUDA Cores stall waiting for data, and GPU utilization drops.
In other words, the compute units (CUDA Cores, Tensor Cores) set the theoretical ceiling, and the memory hierarchy determines whether that ceiling can actually be reached. In practice, recommender systems are often memory-bound because large-scale embedding lookups can hardly reuse data in registers, shared memory, or L2, so they must hit device memory again and again, leaving the compute units starved.
1.2 Tiling a GEMM, Level by Level
Now for the details: how SMs, blocks, warps and threads, Tensor Cores, and memory relate, and how a GEMM (matrix multiplication) is broken down step by step.
GPU hardware hierarchy
- SM (Streaming Multiprocessor): the GPU's "cores"; a GPU has tens to hundreds of SMs. Each SM contains a register file, shared memory, schedulers, and Tensor Cores / FP32 CUDA Cores. A GEMM is split up and distributed across many SMs to run in parallel.
- Warp & Thread: a thread is the smallest unit of execution. A warp is a group of 32 threads and the GPU's smallest scheduling unit. All threads in a warp execute the same instruction; in a GEMM, a warp computes part of the multiply-accumulate results for one tile (a small sub-matrix).
- Block: a block is split into multiple warps and runs on one SM (though one SM can run several blocks at once). Warps in a block share shared memory, which caches tiles for the GEMM. In most contexts, a block tile is the same as a library's kernel tile.
- Tensor Core: the matrix unit inside an SM, dedicated to small matrix multiplications — 16×16×16 at half precision. Warps invoke it when they need to compute.

A large GEMM, C[M, N] = A[M, K] × B[K, N] , is decomposed by the GPU at runtime into multiple levels of tiles:
- Grid / Block tile: the whole output matrix C[M,N] is divided into many sub-matrices, each a block tile, mapped one-to-one to thread blocks. The grid is the set of all block tiles. A block tile is typically 128 × 128 or similar (set by the kernel) and is computed independently by one block.
- Warp tile: a block contains several warps, each responsible for part of the block tile. For example, a 128 × 128 block tile might be split by 4–8 warps into 64 × 64 or 32 × 64 warp tiles.
- Tensor Core tile: inside a warp, Tensor Core instructions compute even smaller matrix products — commonly 16 × 16 × 16 (FP16/FP32 mixed precision); Hopper supports larger tiles.
- Thread tile: each thread in a warp holds a fragment in registers and accumulates only a few elements, such as 2 × 2 or a few scalars. These results are then combined into the warp tile's full output.
A GEMM's bottleneck is usually not FLOPs but data movement. The mapping:
- Global Memory -> Shared Memory -> Register
- Block-level tile: read from global memory into shared memory
- Warp-level tile: read from shared memory into registers
- Thread-level tile: takes part in Tensor Core computation from registers
- Tensor Core computation: register fragments → MMA (matrix multiply-accumulate) instructions
1.3 A Tangle of Utilization Metrics
Back to the utilization metrics. The most common and most misleading is GPU Utilization: the share of the sampling period during which at least one SM is executing instructions. Even at 100%, the compute engines aren't necessarily saturated. A GPU has several engines, and this metric counts any engine being used in a period, so GPU utilization can read 80%+ while the compute engines sit idle. It is the first metric to ignore when optimizing compute. It's also the one most visible on performance dashboards — people who say their GPU utilization is 60%+ are mostly looking at this.
A GPU's compute engine contains many SMs, each with a set of compute cores, including CUDA Cores and Tensor Cores. SM Active (SMA) is the share of cycles in which at least one thread issues an instruction. It's closer to a compute ratio but still deceptive: SMs are multi-threaded, and any single thread issuing an instruction — even a load or store — counts. SM utilization can reach 100% while delivering under 10% of its compute, for example when only CUDA Cores are used and Tensor Cores sit idle.
Tensor Cores are dedicated to matrix multiply-accumulate and are the core compute of a high-end GPU. Take the H100 (PCIe Gen 5, 80 GB): it has 114 SMs, each with 128 CUDA Cores and 4 Tensor Cores. Don't underestimate those 4 Tensor Cores — they are purpose-built for matrix multiply-accumulate. The H100's theoretical CUDA Core throughput is 51.22 TFLOPS, while its Tensor Cores deliver 378 TFLOPS in TF32 and 756 TFLOPS at half precision (BF16, FP16) (dense; doubled with 2:4 structured sparsity). Tensor Cores account for the vast majority of compute.
Tensor Core Utilization (TCU) is the share of the sampling period during which Tensor Cores are working. Its limitation: Tensor Cores may be running small, low-throughput matrices — active in time but far from full performance. Tensor Core Active (TCA) is the share of Tensor Core units actually active while executing instructions, reflecting whether their throughput potential is used. Think of them as utilization in time and in space. One can be high while the other is low. High TCU / low TCA: operators run long, but batches are small or tiling is poor, so each execution wastes resources. Low TCU / high TCA: the operators themselves are fully loaded but run infrequently (time is taken by other, non-Tensor-Core operators). In practice TCA is an instantaneous value, but it can be sampled and accumulated over time into a time-weighted TCA. The TCA in system dashboards usually means this, which is effectively TCU × TCA — call it overall TCA.
Overall TCA (time-accumulated TCA) has limits too. TCA is the number of active Tensor Core units divided by the total. A Tensor Core counts as active as soon as a warp is assigned to it to execute MMA instructions. It doesn't care how many FLOPs each Tensor Core computes in that cycle, whether some cycles idle for lack of data, or whether the pipeline is completely full.
MFU (Model FLOP/s Utilization) is the theoretically perfect metric: actual floating-point throughput divided by the hardware's theoretical peak. Different systems on the same GPU can compare overall utilization through MFU. Its only problem is that it doesn't directly locate bottlenecks or guide hardware-aware model design; you need SMA, instantaneous TCA, and TCU alongside it. It also usually comes from framework and tool calculations; showing MFU directly in system dashboards requires system changes.
Although Tensor Cores provide over 90% of the compute, overall TCA can be high while MFU is low. MFU ≈ TCU × TCA × η = overall TCA × η, where η is between 0 and 1 and is affected by insufficient arithmetic intensity or pipeline bubbles. Picture a factory: TCA counts how many machines have a worker on duty; η measures how much of that time each machine is actually producing versus idling. If raw materials run short (low AI) or the line stalls (pipeline bubbles), the machines are staffed (high TCA) but output is low (low η).
To sum up: MFU is the single measure of GPU utilization. Since Tensor Cores are the core compute units, meet the conditions for running on Tensor Cores, raise overall TCA, and MFU goes up.
1.4 Tensor Core Precision Requirements
A prerequisite for Tensor Core computation is using the data types it requires. Notably, many recommender systems run on TensorFlow 1.x, which doesn't support TF32. Without a mixed-precision rewrite, matrix operations run in FP32, all computation happens on CUDA Cores, and TCA is 0.
Quick reference (by input type):

Compute capacity can be defined as floating-point operations per second; TFLOPS (tera-FLOPS) is the unit, trillions of floating-point operations per second. Take the H100: FP32 throughput is 67 TFLOPS, TF32 is 495 TFLOPS, and BF16/FP16 is 989 TFLOPS (dense; doubled with 2:4 structured sparsity). Tensor Cores are designed for half precision; only when the model's data types meet their requirements is the GPU's core compute unlocked. Here is how long an 8192-size matrix multiplication takes on the H100 at different precisions. So recommender systems on TensorFlow 1.x should either upgrade to 2.x and use TF32, or do a mixed-precision rewrite and use FP16 or BF16.
Performance by numeric type:

The key is running both forward and backward passes in half precision to unlock the hardware's core compute. Mixed precision must account for numerical stability and involves more details; since it also reduces memory, it's covered in detail in the memory chapter.
1.5 Kernel Requirements on Matrix Dimensions
GEMM (general matrix multiply) is the most common form of matrix multiplication: C = α·A × B + β·C , A has shape [M, K] , B has shape [N, K]. The M, N, K below refer to these.
Start with a timing experiment: we pick
K=4096 and K=4095, warm up, run many rounds of matrix multiplication, and time them. The results:
By CPU intuition, fewer FLOPs shouldn't change runtime much. Here the runtime roughly triples. Let's look at why.
Tensor Cores have a minimum unit of computation (the MMA tile size), and matrices are always cut into tiles on the hardware. At half precision this size is 16 × 16 × 16. So every matrix dimension should be divisible by 16; otherwise padding happens inside the warp, wasting compute at the Tensor Core instruction level.
The kernel above schedules the whole matrix in thread block tiles, typically 128 × 128 or 256 × 128 (varies by version) in the M × N dimensions. When dimensions don't fit, padding is needed. The extra computation is small, but it triggers inefficient execution at the level of whole thread blocks. Libraries tile this way because memory access may be in 256-byte units, exactly 128 FP16/BF16 values; without alignment, memory transactions need extra checks and masks.
The figure below uses M × N = 256 × 128 tiles. As N grows, runtime doubles each time it crosses a multiple of 128, because the number of tiles doubles.

A large matrix operation is split into thread block tiles that are sent to all SMs in parallel. The A100 has 108 SMs. If exactly one tile needs an extra round of SM computation, the work grows only slightly, but it occupies 1 of 108 SMs while the other 107 sit idle for that whole round.
In the example below, M = 2304, K = 4096, with tiles of 256 × 128 ( M × N ), M is split into 2304/256 = 9 tiles, and 108 tiles make one full round across the SMs. In the N direction there are 12 tiles (
108/9), corresponding to an N dimension of 12 × 128 = 1536. So in the figure below, each time N crosses a multiple of 1536, the tile count grows only slightly but runtime doubles.
Putting these three properties together: every matrix dimension should be a multiple of 16; a GEMM's M and N should be multiples of 128 or 256 (256 to be safe); and the number of tiles from M×N should be a multiple of the SM count.
A real example: suppose we use a Transformer to process user behavior sequences, with batch size 128, sequence length 100, dim 64, and 4 heads; and a Transformer on top for feature fusion with 27 feature fields, dim 64, and 4 heads.
- For the sequence's QKᵀ, let dim = 64, head = 4, M × N = 100 × 100, K = dim/head = 64/4 = 16
- Because the size is under 128, each tile has a lot of "dead edge"; the tile quantization waste is 1-(100 × 100)/(128 × 128) ≈ 39.0%, and it has nothing to do with B or H — it is a 100 × 100 matrix operation executed B × H times. So the sequence length must be a multiple of 128 (256 to be safe).
- When K is a multiple of 16, there's no padding waste inside the warp. A common misconception is that K must also be a multiple of 128. But even when it meets the minimum hardware requirement, it can leave Tensor Cores underused — a too-shallow K dimension means loading, epilogue, and memory-access overhead outweigh the computation, so the GPU often waits on data. head_dim is usually set to 64 or 128, which meets hardware requirements, keeps the Tensor Cores busy, and gives each head enough expressiveness.
- In the sequence's QKV projection, M = batch size × sequence length = 12800 , K = dim = 64, N = 3 × dim = 192, with 128 × 128 tiles, the number of tiles per pass is 12800/128 × 192/128 = 150, which is not a multiple of 108 (the SM count), so there is tail-wave waste.
If that's too detailed, here is the simplified checklist:
- For a GEMM [M,K] × [K,N] → [M,N], with
108, 128 × 128 tiles: M, N, and K must all be multiples of 16; K is usually 64 or more; M and N should simply be multiples of 128; and the smaller M and N are, the more important it is that the tile count is a multiple of the SM count (((M/128)\times(N/128)) \bmod 108 = 0).
- Specifically for Transformers:
- The sequence length L should be a multiple of 128; if the (feature) L can't be made large enough, it should be a multiple of 16.
- head_dim should be 64 or 128, and model_dim a multiple of 128.
- Batch size only affects wave waste: ignore it for large matrices; for small ones, do the math and set it to a multiple of the SM count.
This article is for paid subscribers
Subscribe to RecsysFrontier to read the full article
- Read essays, dailies and weeklies the day they come out (free readers wait 2–8 days)
- Full archive anytime, including the paid-only Premium section
- Join the paid-subscriber chat on Substack to discuss technical questions
- Ask career questions by direct message