Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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 hyper-parameter 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. Our code is available at https://github.com/LINs-lab/DynMoE.

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

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-103 (test)
Perplexity34.29
703
Question AnsweringBoolQ
Accuracy60.89
201
Commonsense ReasoningCSQA
CSQA Accuracy61.51
195
Object DetectionDAIR-V2X
AP@0.568.4
63
Language UnderstandingCMMLU
Accuracy39.35
62
Domain GeneralizationDomainBed (out-of-domain)
VLCS Accuracy79.4
55
Language UnderstandingCEval
Accuracy37.6
43
Collaborative Object DetectionOPV2V-H
AP@0.5 (m7)79.6
9
Code GenerationH_Eval
Accuracy39.02
9
Collaborative PerceptionOPV2V-H (test)
GFLOPs245.5
3
Showing 10 of 10 rows

Other info

Follow for update