SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.14297 · ICLR · 2025

Dynamic Mixture of Experts: An Auto-Tuning Approach for Efficient Transformer Models

Tao Lin, Zhaopeng Tu, Yongxin Guo, Xiaoying Tang, Zhenglin Cheng

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 2 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
LINs-lab/DynMoE canonical 1 of 1
lins-lab/dynmoe canonical 1 of 1
FunctionStatusWhere it lives
pair Ran LINs-lab/DynMoE/Examples/DeepSpeed-MoE/dynmoe_vit.py
code served (permissive licence) · get_code("6ba8cee9f5daea41")
split_tensor_along_last_dim Ran lins-lab/dynmoe/DeepSpeed-0.9.5/deepspeed/compression/basic_layer.py
code served (permissive licence) · get_code("09c070245728e6e2")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The Sparse Mixture of Experts (SMoE) has been widely employed to enhance the efficiency of training and inference for Transformer-based foundational models, yielding promising results. However, the performance of SMoE heavily depends on the choice of hyper-parameters, such as the number of experts and the number of experts to be activated (referred to as top-k), resulting in significant computational overhead due to the extensive model training by searching over various hyperparameter configurations. As a remedy, we introduce the Dynamic Mixture of Experts (DYNMOE) technique. DYNMOE incorporates (1) a novel gating method that enables each token to automatically determine the number of experts to activate. (2) An adaptive process automatically adjusts the number of experts during training. Extensive numerical results across Vision, Language, and Vision-Language tasks demonstrate the effectiveness of our approach to achieve competitive performance compared to GMoE for vision and language tasks, and MoE-LLaVA for vision-language tasks, while maintaining efficiency by activating fewer parameters.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.14297")
get_code_for_paper("2405.14297")
have("2405.14297")

Connect an agent — have() is free.