UMoE: Unifying Attention and FFN with Shared Experts

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yang, Yuanhang, Wang, Chaozheng, Li, Jing
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917034797826048
author Yang, Yuanhang
Wang, Chaozheng
Li, Jing
author_facet Yang, Yuanhang
Wang, Chaozheng
Li, Jing
contents 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. 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_07260
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle UMoE: Unifying Attention and FFN with Shared Experts
Yang, Yuanhang
Wang, Chaozheng
Li, Jing
Machine Learning
Artificial Intelligence
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. 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.
title UMoE: Unifying Attention and FFN with Shared Experts
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.07260