[KongchangAI]
ConceptLoad Balancing Loss / load-balancing loss

Load Balancing Loss

A regularization technique commonly used in MoE training. By adding a penalty term to the training objective, it encourages tokens to be distributed evenly across experts in order to curb routing collapse.

Timeline (last 90 days)

Oct 16

The traditional MoE load balancing loss mainly starts from training stability, making expert usage more uniform.

Unverified50%
Oct 15

The most common form of load balancing loss is the auxiliary loss, represented by Switch Transformer, with the formula L_balance = α · N · Σ(f_i · p_i), where N is the number of experts and α is the loss coefficient.

Unverified50%
Oct 15

The coefficient α of the load balancing loss is usually taken to be around 0.01, but the specific value is highly dependent on model scale and data distribution.

Unverified50%
Oct 15

The load balancing loss introduces a constraint unrelated to language modeling, and there is tension between this constraint and the main task objective, so tuning the loss coefficient requires experience.

Unverified50%
Sep 9

The load balancing loss uses the sum of squares of all expert selection frequencies L=ΣFi², and by the Cauchy–Schwarz inequality the loss is minimized when all Fi=1/N.

Unverified50%

All Facts (5)

Source Articles