arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.07260cs.LGcs.AI
收藏

UMoE:通过共享专家统一注意力机制与FFN

UMoE: Unifying Attention and FFN with Shared Experts

Institute of Science Tokyo(东京科学研究所);The Chinese University of Hong Kong(香港中文大学);Hong Kong Polytechnic University(香港理工大学)

Yuanhang Yang, Chaozheng Wang, Jing Li

AI总结:

本文提出UMoE架构,通过重构注意力机制揭示其内部类FFN结构,统一了注意力层与FFN层中的稀疏混合专家设计,实现了基于注意力的MoE层优越性能及FFN与注意力组件间的参数共享。

摘要:

稀疏混合专家(MoE)架构已成为扩展Transformer模型的一种有前景的方法。虽然最初的工作主要将MoE集成到前馈网络(FFN)层中,但近期的研究已探索将MoE范式扩展到注意力层以提升模型性能。然而,现有的基于注意力的MoE层需要专门的实现,并且与基于FFN的对应层相比表现出次优的性能。在本文中,我们旨在通过引入一种新颖的注意力机制重构来统一注意力层和FFN层中的MoE设计,该重构揭示了注意力模块内部潜在的类FFN结构。我们提出的架构UMoE,通过基于注意力的MoE层实现了优越的性能,同时实现了FFN与注意力组件之间的高效参数共享。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑