Large language models with a mixture-of-experts architecture use specialized sub-networks (experts) to save computation, but require load balancing to prevent a few experts from dominating the work. Current balancing methods fail when the training data shifts mid-course.
The researchers reframed this as a feedback control problem, introducing the PID-Balancer. By analyzing proportional, integral, and derivative terms, they found that an integral-only controller best removes persistent imbalance without amplifying batch-to-batch fluctuations in load.
The resulting method, PID (I), was tested on models with up to 64 experts. It restores balance tightly after a data shift and holds it better than existing methods, while maintaining the same model quality.
