paper-with-me

Papers

HyperRouter: Towards Efficient Training and Inference of Sparse Mixture of Experts

2023-12-12 · Giang Do, Khiem Le, Quang Pham, TrungTin Nguyen, Thanh-Nam Doan, Bint T. Nguyen, Chenghao Liu, Savitha Ramasamy, XiaoLi Li, Steven Hoi

By routing input tokens to only a few split experts, Sparse Mixture-of-Experts has enabled efficient training of large language models. Recent findings suggest that fixing the routers can achieve competitive performance by alleviating the collapsing problem, where all experts eventually learn similar representations. However, this strategy has two key limitations: (i) the policy derived from random routers might be sub-optimal, and (ii) it requires extensive resources during training and evaluation, leading to limited efficiency gains. This work introduces \HyperRout, which dynamically generates the router's parameters through a fixed hypernetwork and trainable embeddings to achieve a balance between training the routers and freezing them to learn an improved routing policy. Extensive experiments across a wide range of tasks demonstrate the superior performance and efficiency gains of \HyperRouter compared to existing routing methods. Our implementation is publicly available at {\url{{https://github.com/giangdip2410/HyperRouter}}}.

📄 PDF Abstract BibTeX arXiv:2312.07035

Code (1)

giangdip2410/hyperrouter 공식 구현 pytorch

Tasks

Mixture-of-Experts

Methods 이 논문이 사용한 방법론

HyperNetwork A HyperNetwork is a network that generates weights for a main network. The behavior of the main network is the same with any usual neural network: it learns to map some raw…

Similar Papers 제목 키워드 기반

S2MoE: Robust Sparse Mixture of Experts via Stochastic Learning

2025-03-29 · Giang Do, Hung Le, Truyen Tran

Sparse Mixture of Experts (SMoE) enables efficient training of large language models by routing input tokens to a select number of experts. However, training SMoE remains challenging due to the issue of representation co…

Mixture-of-Experts

From Sparse to Soft Mixtures of Experts

2023-08-02 · Joan Puigcerver, Carlos Riquelme, Basil Mustafa, Neil Houlsby

Sparse mixture of expert architectures (MoEs) scale model capacity without significant increases in training or inference costs. Despite their success, MoEs suffer from a number of issues: training instability, token dro…

CoSMoEs: Compact Sparse Mixture of Experts

2025-02-28 · Patrick Huber, Akshat Shrivastava, Ernie Chang, Chinnadhurai Sankar 외

Sparse Mixture of Expert (MoE) models are popular foundational architectures at large scale, however, under-explored at smaller sizes. Here, we show how to enable Compact Sparse Mixture of Experts (CoSMoEs) for on-device…

Mixture-of-Experts

Doubly Sparse: Sparse Mixture of Sparse Experts for Efficient Softmax Inference

2019-01-30 · ICLR 2019 5 · Shun Liao, Ting Chen, Tian Lin, Denny Zhou 외

Computations for the softmax function are significantly expensive when the number of output classes is large. In this paper, we present a novel softmax inference speedup method, Doubly Sparse Softmax (DS-Softmax), that l…

image-classificationImage ClassificationLanguage ModelingLanguage Modelling+2

Task-Specific Expert Pruning for Sparse Mixture-of-Experts

2022-06-01 · Tianyu Chen, Shaohan Huang, Yuan Xie, Binxing Jiao 외

The sparse Mixture-of-Experts (MoE) model is powerful for large-scale pre-training and has achieved promising results due to its model capacity. However, with trillions of parameters, MoE is hard to be deployed on cloud …

Mixture-of-Experts