MoSE: Mixture of Slimmable Experts for Efficient and Adaptive Language Models
Nurbek Tastan, Stefanos Laskaridis, Karthik Nandakumar, Samuel Horvath
TL;DR
MoSE tackles the abrupt accuracy-cost trade-offs of sparse MoE models by introducing slimmable experts, enabling width-based adaptation inside each activated expert. It presents a simple yet stable pre-training scheme and supports three inference modes, including a lightweight test-time training (TTT) to learn a width-sharpness mapping under budget, all without retraining. Across GPT2-small to GPT2-medium models trained on OpenWebText, MoSE consistently matches or exceeds standard MoE performance and improves the Pareto frontier when considering compute, especially under TT-width identification. This approach offers a practical path to flexible, compute-aware deployment of large language models with reduced FLOPs while preserving accuracy.
Abstract
Mixture-of-Experts (MoE) models scale large language models efficiently by sparsely activating experts, but once an expert is selected, it is executed fully. Hence, the trade-off between accuracy and computation in an MoE model typically exhibits large discontinuities. We propose Mixture of Slimmable Experts (MoSE), an MoE architecture in which each expert has a nested, slimmable structure that can be executed at variable widths. This enables conditional computation not only over which experts are activated, but also over how much of each expert is utilized. Consequently, a single pretrained MoSE model can support a more continuous spectrum of accuracy-compute trade-offs at inference time. We present a simple and stable training recipe for slimmable experts under sparse routing, combining multi-width training with standard MoE objectives. During inference, we explore strategies for runtime width determination, including a lightweight test-time training mechanism that learns how to map router confidence/probabilities to expert widths under a fixed budget. Experiments on GPT models trained on OpenWebText demonstrate that MoSE matches or improves upon standard MoE at full width and consistently shifts the Pareto frontier for accuracy vs. cost, achieving comparable performance with significantly fewer FLOPs.
