liveBook · Manning

Expert collapse

As explained in Transformers in Action

Expert collapse is a failure mode in which routing concentrates usage on only a small subset of experts.

Expert collapse occurs when sparse MoE routing concentrates tokens on a small subset of experts, leaving others idle. This undermines specialization and can destabilize training. section 3.5.1

Common countermeasures include:

  • Auxiliary load-balancing losses encourage a more uniform token distribution. section 3.5.1
  • Entropy penalties discourage overly confident gating decisions. section 3.5.1
  • Noisy gating adds stochasticity to improve training dynamics. section 3.5.1
  • Expert-choice routing lets experts select tokens, improving balance by construction while risking coverage gaps. section 3.5.1

GShard-style top-2 routing

A sparse gate can select two experts per token, normalize their scores, and add load balancing, capacity constraints, and optional random routing to reduce degenerate usage patterns. section 3.5.1

Figure 3.4 Simplified MoE architecture. Only a few experts are active per input, making inference more efficient.
figure

The architecture diagram shows sparse activation: only a few experts process each input, motivating routing while exposing the need to manage expert usage. section 3.5.1

How Transformers in Action covers it

How deep it goes
Defines the failure mode and outlines regularization strategies, while deferring detailed capacity and balancing implementation to gating listings.
Examples
Uses NativeGate and GShard-style top-2 gating to illustrate selection, normalization, capacity constraints, balancing, and random routing.
What it assumes
Assumes familiarity with tokens, experts, gating, and sparse mixture-of-experts routing.
What you can do after
Diagnoses concentrated expert usage and applies balancing, entropy, noise, or expert-choice routing to reduce it.
How it connects
Connects expert collapse to sparse top-k gating, load-balancing loss, entropy regularization, noisy gating, and expert-choice routing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Transformers in Action. The section links point to the parts of the book it draws on.