arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.09265cs.LGcs.CLcs.CV
收藏

用于学习不变性表示的混合群组专家

Mixture of Group Experts for Learning Invariant Representations

Beijing Normal University(北京师范大学)

Lei Kang, Jia Li, Mi Tian, Hua Huang

AI总结:

针对MoE模型专家多样性和专业化受限的问题,提出混合群组专家(MoGE),通过群组稀疏正则化和二维拓扑分组学习不变性表示,显著提升了专家多样性与模型性能。

摘要:

稀疏激活的混合专家(MoE)模型在保持每个token计算成本一致的同时,有效增加了参数数量。然而,普通的MoE模型通常面临专家之间多样性和专业化程度有限的问题,这限制了它们的性能和可扩展性,尤其是在专家数量增加时。在本文中,我们受稀疏表示启发,提出了关于带有top-$k$路由的普通MoE的新视角。这使我们能够将稀疏表示的既有理论见解引入MoE模型。在此基础之上,我们针对top-$k$路由的输入提出了一种群组稀疏正则化方法,称为混合群组专家(MoGE)。MoGE通过对路由输入施加结构约束来间接正则化专家,同时保留原始MoE架构。此外,我们将路由输入组织成二维地形图,在空间上对相邻元素进行分组。这种结构使MoGE能够捕获对微小变换不变的表示,从而显著增强专家的多样性和专业化。在用于图像分类和语言建模任务的各种Transformer模型上的综合评估表明,MoGE在极少的额外内存和计算开销下,显著优于其MoE对应模型。我们的方法提供了一种简单而有效的解决方案,可扩展专家数量并减少它们之间的冗余。源代码包含在补充材料中并将公开发布。

英文摘要:

Sparsely activated Mixture-of-Experts (MoE) models effectively increase the number of parameters while maintaining consistent computational costs per token. However, vanilla MoE models often suffer from limited diversity and specialization among experts, constraining their performance and scalability, especially as the number of experts increases. In this paper, we present a novel perspective on vanilla MoE with top-$k$ routing inspired by sparse representation. This allows us to bridge established theoretical insights from sparse representation into MoE models. Building on this foundation, we propose a group sparse regularization approach for the input of top-$k$ routing, termed Mixture of Group Experts (MoGE). MoGE indirectly regularizes experts by imposing structural constraints on the routing inputs, while preserving the original MoE architecture. Furthermore, we organize the routing input into a 2D topographic map, spatially grouping neighboring elements. This structure enables MoGE to capture representations invariant to minor transformations, thereby significantly enhancing expert diversity and specialization. Comprehensive evaluations across various Transformer models for image classification and language modeling tasks demonstrate that MoGE substantially outperforms its MoE counterpart, with minimal additional memory and computation overhead. Our approach provides a simple yet effective solution to scale the number of experts and reduce redundancy among them. The source code is included in the supplementary material and will be publicly released.

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

↑