TensorX
返回文献探索

Paper · arXiv 2402.07871

Scaling Laws for Fine-Grained Mixture of Experts

Jakub Krajewski, Jan Ludziejewski, Kamil Adamczewski, Maciej Pióro, Michał Krutul, Szymon Antoniak, Kamil Ciebiera, Krystian Król, Tomasz Odrzygóźdź, Piotr Sankowski, Marek Cygan, Sebastian Jaszczur

13 upvotesFebruary 12, 2024arXiv 预印本
AI 摘要

MoE models reduce computational cost through fine-grained scaling controlled by a hyperparameter called granularity, outperforming dense Transformers across varying scales and budgets.

Mixture of Experts (MoE)scaling propertieshyperparametergranularityscaling lawsfine-grained MoEtraining tokensmodel sizeoptimal training configurationcomputational budgetdense Transformersfeed-forward layer

Abstract

Mixture of Experts (MoE) models have emerged as a primary solution for reducing the computational cost of Large Language Models. In this work, we analyze their scaling properties, incorporating an expanded range of variables. Specifically, we introduce a new hyperparameter, granularity, whose adjustment enables precise control over the size of the experts. Building on this, we establish scaling laws for fine-grained MoE, taking into account the number of training tokens, model size, and granularity. Leveraging these laws, we derive the optimal training configuration for a given computational budget. Our findings not only show that MoE models consistently outperform dense Transformers but also highlight that the efficiency gap between dense and MoE models widens as we scale up the model size and training budget. Furthermore, we demonstrate that the common practice of setting the size of experts in MoE to mirror the feed-forward layer is not optimal at almost any computational budget.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Scaling Laws for Fine-Grained Mixture of Experts | TensorX