Skip to content
IJK

MoE Training Bottlenecks: Skewed Loads and Ragged GEMMs

By IJK ·

What an NVIDIA post says production-scale MoE training adds over dense training, how expert loads skew and why there is no clean rectangular GEMM.

Bottlenecks that dense models lack

Production-scale MoE training introduces bottlenecks that don’t exist with dense models: token routing, expert dispatch and gather, all-to-all communication, and ragged expert GEMMs. [1]

Uneven expert loads

No two batches produce the same expert loads, and within a single batch, one expert might receive many more tokens than another. [2]

results inBottlenecks absent from dense modelsrouting, dispatch and gather, all-to-all, ragged ...Skewed expert loadsthe router develops preferences for certain expertsNo clean rectangular GEMMeach expert receives a different number of tokens
Why do MoE loads create ragged GEMMs?

No clean GEMM and expert parallelism

Each expert receives a different number of tokens, so there is no clean rectangular GEMM to batch and dispatch. [3]

With expert parallelism (EP), tokens must be dispatched and outputs must be combined and restored to original token order. [4]

Sources

  1. The NVIDIA source says: Production-scale MoE training introduces bottlenecks that don’t exist with dense models: token routing, expert dispatch and gather, all-to-all communication, and ragged expert GEMMs. Accelerating Dropless MoE Training in JAX
  2. The NVIDIA source says: No two batches produce the same expert loads, and within a single batch, one expert might receive many more tokens than another. Accelerating Dropless MoE Training in JAX
  3. The NVIDIA source says: Each expert receives a different number of tokens, so there is no clean rectangular GEMM to batch and dispatch. Accelerating Dropless MoE Training in JAX
  4. The NVIDIA source says: With expert parallelism (EP), tokens must be dispatched and outputs must be combined and restored to original token order. Accelerating Dropless MoE Training in JAX

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • mixture of experts
  • training
  • jax
  • nvidia