Generalization and Scaling Laws for Mixture-of-ExpertsTransformers
Abstract
Lay Summary
Large language models are powerful but expensive because they usually activate billions of parameters each time they process text. Mixture-of-Experts models reduce this cost by storing many specialized components, called experts, while using only a few of them for each word. This raises a basic question: when these models improve, is it because they have more total parameters, or because they use more computation on each word? We study this question mathematically for Mixture-of-Experts Transformers. Our analysis shows that, in a conservative worst-case sense, performance is mainly controlled by the amount of active computation used per word, not by the total number of stored parameters. We also identify an extra cost from the routing mechanism, which decides which experts are used. Experiments on language modeling tasks support this picture but also reveal an important practical effect: when the expert pool is large, experts can specialize and improve performance beyond what the worst-case theory predicts. This helps explain when sparse expert models behave like ordinary dense models and when expert specialization becomes important for efficient AI systems.