atlas

Research map / Architectures and efficiency / Mixture of experts

UMoE: Unifying Attention and FFN with Shared Experts

NeurIPS 2025 · Architectures and efficiency › Mixture of experts · approach: Expert routing and specialization · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes UMoE, which reformulates multi-head attention as pre-mixing token aggregation followed by FFN-like experts so attention and FFN layers can share one MoE expert set, improving perplexity and zero-shot accuracy over FFN-MoE, MoA and SwitchHead at 134M and 1.1B scales.

Problem

Attention-based MoE layers underperform FFN-based MoE and require specialized implementations; the paper asks whether attention can be reformulated to share the FFN expert design without losing expressiveness.

Approach

Reformulate attention as pre-mixing (token mixing first, then grouped value and output projections), which is an FFN-like two-matrix expert applied to mixed inputs. Routing these experts in both attention and FFN layers lets one shared expert pool serve both modules, with low-rank expert-specific query projections.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use UMoE instead of Fine-grained FFN-MoEBase language model · FineWeb-Eduperplexity: 21.19 -> 20.44Helped
Use UMoE instead of Fine-grained FFN-MoEBase language model · Wikitext-103perplexity: 27.94 -> 26.67Helped
Use UMoE instead of Fine-grained FFN-MoELarge language model · FineWeb-Eduperplexity: 16.09 -> 15.95Helped
Use UMoE instead of MoALarge language model · Wikitext-103perplexity: 25.14 -> 25.44Hurt
Use UMoE instead of Fine-grained FFN-MoEBase model · Zero-shot averageaccuracy: $39.55$ -> $40.06$Helped
Use UMoE instead of Fine-grained FFN-MoELarge model · Zero-shot averageaccuracy: $47.12$ -> $47.58$Helped
Shift expert allocation from FFN layers toward attention layers (ablation)UMoE · FineWeb-Edu (20B tokens)perplexity: 22.82 -> 21.75Helped
Add activation functions between expert matrix multiplications (ablation)UMoE · FineWeb-Edu (20B tokens)perplexity: 24.43 -> 22.82Helped
Add activation functions between expert matrix multiplications (ablation)UMoE-Att · FineWeb-Edu (20B tokens)perplexity: 23.99 -> 23.37Helped
Use separate fixed experts and routers across attention and FFN layers (ablation)UMoE · FineWeb-Edu (20B tokens)perplexity: $23.11$ -> $22.82$Helped
Replace pre-mixing attention with post-mixing attention (ablation)UMoE attention MoE · Wikitext-103 and FineWeb-Edulanguage-modeling performanceHurt

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu 100B Wikitext-103

Benchmarks: FineWeb-Edu validation perplexity Wikitext-103 perplexity HellaSwag PIQA ARC-E ARC-C RACE Lambada MMLU Winogrande

Metrics: perplexity zero-shot accuracy MACs pre-filling latency training throughput

Baselines: Dense Transformer Fine-grained FFN-MoE MoA SwitchHead

Builds on: Mixture of Experts Mixture-of-Attention (MoA) SwitchHead DeepSeekMoE Switch Transformer load balancing loss

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy