DSMoE: Matrix-Partitioned Experts with Dynamic Routing for Computation-Efficient Dense LLMs

Minxuan Lv, Zhenpeng Su, Leiyu Pan, Yizhe Xiong, Zijia Lin +8 more
2/18/2025
cs.CL
moe

No confident code implementation found for this paper.

Abstract

As large language models continue to scale, computational costs and resource consumption have emerged as significant challenges. While existing sparsification methods like pruning reduce computational overhead, they risk losing model knowledge through parameter removal.

Show full abstract

This paper proposes DSMoE (Dynamic Sparse Mixture-of-Experts), a novel approach that achieves sparsification by partitioning pre-trained FFN layers into computational blocks. We implement adaptive expert routing using sigmoid activation and straight-through estimators, enabling tokens to flexibly access different aspects of model knowledge based on input complexity. Additionally, we introduce a sparsity loss term to balance performance and computational efficiency. Extensive experiments on LLaMA models demonstrate that under equivalent computational constraints, DSMoE achieves superior performance compared to existing pruning and MoE approaches across language modeling and downstream tasks, particularly excelling in generation tasks. Analysis reveals that DSMoE learns distinctive layerwise activation patterns, providing new insights for future MoE architecture design.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lv2025dsmoe,
  title  = {DSMoE: Matrix-Partitioned Experts with Dynamic Routing for Computation-Efficient Dense LLMs},
  author = {Minxuan Lv and Zhenpeng Su and Leiyu Pan and Yizhe Xiong and Zijia Lin and Hui Chen and Wei Zhou and Jungong Han and Guiguang Ding and Cheng Luo and Di Zhang and Kun Gai and Songlin Hu},
  year   = {2025},
  eprint = {2502.12455},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12455v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12455.svg)](https://codeofpaper.com/paper/2502.12455)

Discussion