paper-with-me

홈 › Papers

Layerwise Recurrent Router for Mixture-of-Experts

2024-08-13 · Zihan Qiu, Zeyu Huang, Shuang Cheng, Yizhi Zhou, Zili Wang, Ivan Titov, Jie Fu

The scaling of large language models (LLMs) has revolutionized their capabilities in various tasks, yet this growth must be matched with efficient computational strategies. The Mixture-of-Experts (MoE) architecture stands out for its ability to scale model size without significantly increasing training costs. Despite their advantages, current MoE models often display parameter inefficiency. For instance, a pre-trained MoE-based LLM with 52 billion parameters might perform comparably to a standard model with 6.7 billion parameters. Being a crucial part of MoE, current routers in different layers independently assign tokens without leveraging historical routing information, potentially leading to suboptimal token-expert combinations and the parameter inefficiency problem. To alleviate this issue, we introduce the Layerwise Recurrent Router for Mixture-of-Experts (RMoE). RMoE leverages a Gated Recurrent Unit (GRU) to establish dependencies between routing decisions across consecutive layers. Such layerwise recurrence can be efficiently parallelly computed for input tokens and introduces negotiable costs. Our extensive empirical evaluations demonstrate that RMoE-based language models consistently outperform a spectrum of baseline models. Furthermore, RMoE integrates a novel computation stage orthogonal to existing methods, allowing seamless compatibility with other MoE architectures. Our analyses attribute RMoE's gains to its effective cross-layer information sharing, which also improves expert selection and diversity. Our code is at https://github.com/qiuzh20/RMoE

📄 PDF Abstract BibTeX arXiv:2408.06793

Code (1)

qiuzh20/rmoe 공식 구현 pytorch

Tasks

AttributeMixture-of-Experts

Methods 이 논문이 사용한 방법론

MoE 설명 없음

Similar Papers 제목 키워드 기반

Router Upcycling: Leveraging Mixture-of-Routers in Mixture-of-Experts Upcycling

2025-08-31 · Junfeng Ran, Guangxiang Zhao, Yuhan Wu, Dawei Zhu 외 arxiv

The Mixture-of-Experts (MoE) models have gained significant attention in deep learning due to their dynamic resource allocation and superior performance across diverse tasks. However, efficiently training these models re…

Implicit Mixture of Interpretable Experts for Global and Local Interpretability

2022-12-01 · Nathan Elazar, Kerry Taylor

We investigate the feasibility of using mixtures of interpretable experts (MoIE) to build interpretable image classifiers on MNIST10. MoIE uses a black-box router to assign each input to one of many inherently interpreta…

Classification

DA-MoE: Towards Dynamic Expert Allocation for Mixture-of-Experts Models

2024-09-10 · Maryam Akhavan Aghdam, Hongpeng Jin, Yanzhao Wu

Transformer-based Mixture-of-Experts (MoE) models have been driving several recent technological advancements in Natural Language Processing (NLP). These MoE models adopt a router mechanism to determine which experts to …

Mixture-of-Experts

Routers in Vision Mixture of Experts: An Empirical Study

2024-01-29 · Tianlin Liu, Mathieu Blondel, Carlos Riquelme, Joan Puigcerver

Mixture-of-Experts (MoE) models are a promising way to scale up model capacity without significantly increasing computational cost. A key component of MoEs is the router, which decides which subset of parameters (experts…

Language ModelingLanguage ModellingMixture-of-Experts

Understanding Multilingualism in Mixture-of-Experts LLMs: Routing Mechanism, Expert Specialization, and Layerwise Steering

2026-01-20 · Yuxin Chen, Zhengzhou Cai, Xiangtian Ji, Weixiang Zhao 외 arxiv

Mixture-of-Experts (MoE) architectures have shown strong multilingual capabilities, yet the internal mechanisms underlying performance gains and cross-language differences remain insufficiently understood. In this work, …