UMoE: Unifying Attention and FFN with Shared Experts

Yuanhang Yang, Chao-Zheng Wang, Jing Li
5/1/2025
transformer-attentionmoe

No confident code implementation found for this paper.

Abstract

Sparse Mixture of Experts (MoE) architectures have emerged as a promising approach for scaling Transformer models. While initial works primarily incorporated MoE into feed-forward network (FFN) layers, recent studies have explored extending the MoE paradigm to attention layers to enhance model performance.

Show full abstract

However, existing attention-based MoE layers require specialized implementations and demonstrate suboptimal performance compared to their FFN-based counterparts. In this paper, we aim to unify MoE designs in attention and FFN layers by introducing a novel reformulation of the attention mechanism, that reveals an underlying FFN-like structure within attention modules. Our proposed architecture, UMoE, achieves superior performance through attention-based MoE layers while enabling efficient parameter sharing between FFN and attention components.

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{yang2025umoe,
  title  = {UMoE: Unifying Attention and FFN with Shared Experts},
  author = {Yuanhang Yang and Chao-Zheng Wang and Jing Li},
  year   = {2025},
  eprint = {2505.07260},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.07260},
  url    = {https://doi.org/10.48550/arXiv.2505.07260},
  journal = {Neural Information Processing Systems}
}

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/2505.07260.svg)](https://codeofpaper.com/paper/2505.07260)

Discussion