Research Articles
Routing Sparse Experts under Workload Shift: Tight Resource Limits
Beatriz Kestrelby (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing), Kian Wrenford (Machine Learning Laboratory, Pinewick School of Engineering), Kenji Asherwick (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing)
Vol. 8 No. 1 (2024) · pp. 79–93 · Published 14 July 2024
Abstract
The comparison uses a reduced operating budget with the same input mix to evaluate two choices: adjusting expert capacity against held-out token traffic and using a uniform expert capacity factor. All outcomes are synthetic. Each configuration is evaluated on the same 300 cases. In the 75 stress cases, token traffic must concentrate on a few experts after adaptation; both configurations receive the same smaller allowance and cannot borrow capacity from later trials. A case counts as a pass only if it meets this criterion: the model must meet a quality floor and a token-drop budget. The comparison holds the training and selection splits fixed across alternatives; evaluation cases are not reused for tuning. Compute or memory assigned to an alternative counts toward its budget even if training does not finish. Across the full set, 253 cases meet the criterion with the first configuration and 229 with the second. The stress cases account for 64 and 46 passes, respectively. The stress results should be read alongside the full-set results rather than treated as a general performance guarantee. The practical trade-off is that extra expert capacity raises memory and communication costs. The paired design makes the comparison interpretable within the fixture. It does not establish the size of the effect in an independent deployment.
Keywords: mixture of experts, foundation models, routing, tight resource limits, synthetic evaluation
References
- Chen, Z., et al. (2023). Exploring the potential of large language models (LLMs) in learning on graphs. arXiv:2307.03393.
- Cunningham, H., Ewart, A., Riggs, L., Huben, R., & Sharkey, L. (2023). Sparse autoencoders find highly interpretable features in language models. arXiv:2309.08600.
- Du, N., et al. (2022). GLaM: Efficient scaling of language models with mixture-of-experts. Proceedings of the 39th International Conference on Machine Learning, PMLR 162, 5547–5569. Source
- Gale, T., Narayanan, D., Young, C., & Zaharia, M. (2023). MegaBlocks: Efficient sparse training with mixture-of-experts. Proceedings of Machine Learning and Systems, 5.
- Jain, N., et al. (2023). Baseline defenses for adversarial attacks against aligned language models. arXiv:2309.00614.
- Koo, R., Lee, M., Raheja, V., Park, J. I., Kim, Z. M., & Kang, D. (2023). Benchmarking cognitive biases in large language models as evaluators. arXiv:2309.17012.
- Lewis, M., Bhosale, S., Dettmers, T., Goyal, N., & Zettlemoyer, L. (2021). BASE layers: Simplifying training of large, sparse models. Proceedings of the 38th International Conference on Machine Learning, 6265–6274.
- Rajbhandari, S., et al. (2022). DeepSpeed-MoE: Advancing mixture-of-experts inference and training to power next-generation AI scale. International Conference on Machine Learning.
- Robey, A., Wong, E., Hassani, H., & Pappas, G. J. (2023). SmoothLLM: Defending large language models against jailbreaking attacks. arXiv:2310.03684.
- Roy, A., Saffar, M., Vaswani, A., & Grangier, D. (2020). Efficient content-based sparse attention with routing transformers. arXiv:2003.05997.
- Shazeer, N., et al. (2017). Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. International Conference on Learning Representations.
- Singhal, K., et al. (2023). Towards expert-level medical question answering with large language models. arXiv:2305.09617.
- Touvron, H., et al. (2023). LLaMA: Open and efficient foundation language models. arXiv:2302.13971.
- Van Veen, D., et al. (2023). Clinical text summarization: Adapting large language models can outperform human experts. arXiv:2309.07430.
- Wornow, M., et al. (2023). The shaky foundations of large language models and foundation models for electronic health records. npj Digital Medicine, 6, Article 135.
- Yi, J., et al. (2023). Benchmarking and defending against indirect prompt injection attacks on large language models. arXiv:2312.14197.
