paper-with-me

홈 › Papers

DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models

2024-01-11 · Damai Dai, Chengqi Deng, Chenggang Zhao, R. X. Xu, Huazuo Gao, Deli Chen, Jiashi Li, Wangding Zeng, Xingkai Yu, Y. Wu, Zhenda Xie, Y. K. Li, Panpan Huang, Fuli Luo, Chong Ruan, Zhifang Sui, Wenfeng Liang

In the era of large language models, Mixture-of-Experts (MoE) is a promising architecture for managing computational costs when scaling up model parameters. However, conventional MoE architectures like GShard, which activate the top-$K$ out of $N$ experts, face challenges in ensuring expert specialization, i.e. each expert acquires non-overlapping and focused knowledge. In response, we propose the DeepSeekMoE architecture towards ultimate expert specialization. It involves two principal strategies: (1) finely segmenting the experts into $mN$ ones and activating $mK$ from them, allowing for a more flexible combination of activated experts; (2) isolating $K_s$ experts as shared ones, aiming at capturing common knowledge and mitigating redundancy in routed experts. Starting from a modest scale with 2B parameters, we demonstrate that DeepSeekMoE 2B achieves comparable performance with GShard 2.9B, which has 1.5 times the expert parameters and computation. In addition, DeepSeekMoE 2B nearly approaches the performance of its dense counterpart with the same number of total parameters, which set the upper bound of MoE models. Subsequently, we scale up DeepSeekMoE to 16B parameters and show that it achieves comparable performance with LLaMA2 7B, with only about 40% of computations. Further, our preliminary efforts to scale up DeepSeekMoE to 145B parameters consistently validate its substantial advantages over the GShard architecture, and show its performance comparable with DeepSeek 67B, using only 28.5% (maybe even 18.2%) of computations.

📄 PDF Abstract BibTeX arXiv:2401.06066

Code (2)

deepseek-ai/deepseek-moe 공식 구현 pytorch
kamanphoebe/look-into-moes pytorch

Tasks

Language ModellingLarge Language ModelMixture-of-Experts

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
GShard GShard is a intra-layer parallel distributed method. It consists of set of simple APIs for annotations, and a compiler extension in XLA for automatic parallelization.

Similar Papers 제목 키워드 기반

Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specialization

2026-02-15 · Rizhen Hu, Yuan Cao, Boao Kong, Mou Sun 외 arxiv

Sparse Mixture-of-Experts (MoE) models scale Transformers efficiently but suffer from expert overlap -- redundant representations across experts and routing ambiguity, resulting in severely underutilized model capacity. …

OLMoE: Open Mixture-of-Experts Language Models

2024-09-03 · Niklas Muennighoff, Luca Soldaini, Dirk Groeneveld, Kyle Lo 외

We introduce OLMoE, a fully open, state-of-the-art language model leveraging sparse Mixture-of-Experts (MoE). OLMoE-1B-7B has 7 billion (B) parameters but uses only 1B per input token. We pretrain it on 5 trillion tokens…

Language ModelingLanguage ModellingMixture-of-Experts

HELLoRA: Hot Experts Layer-Level Low-Rank Adaptation for Mixture-of-Experts Models

2026-05-11 · Jia Wei, Zhonghao Zhang, Ping Chen, Qianyang li 외 arxiv

Low-Rank Adaptation (LoRA) dominates parameter-efficient fine-tuning of large language models, yet most variants target dense architectures. Mixture-of-Experts (MoE) models scale parameters at near-constant per-token com…

parameter-efficient fine-tuningMathematical ReasoningCode Generation

MoE Lens -- An Expert Is All You Need

2026-03-06 · Marmik Chaudhari, Idhant Gulati, Nishkal Hundia, Pranav Karra 외 arxiv

Mixture of Experts (MoE) models enable parameter-efficient scaling through sparse expert activations, yet optimizing their inference and memory costs remains challenging due to limited understanding of their specializati…

On DeepSeekMoE: Statistical Benefits of Shared Experts and Normalized Sigmoid Gating

2025-05-16 · Huy Nguyen, Thong T. Doan, Quang Pham, Nghi D. Q. Bui 외

Mixture of experts (MoE) methods are a key component in most large language model architectures, including the recent series of DeepSeek models. Compared to other MoE implementations, DeepSeekMoE stands out because of tw…

Language ModelingLanguage ModellingLarge Language ModelMixture-of-Experts