arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.15315cs.LG
收藏

紧密集群成为专门专家

Tight Clusters Make Specialized Experts

FPT Software AI Center(FPT软件人工智能中心);National University of Singapore(新加坡国立大学);Department of Mathematics(数学系)

Stefan K. Nielsen, Rachel S. Y. Teo, Laziz U. Abdullaev, Tan M. Nguyen

AI总结:

本文提出适应性聚类路由器,通过优化特征权重提升MoE模型的收敛速度、数据鲁棒性和整体性能。

摘要:

稀疏混合专家(MoE)架构通过解耦模型容量与计算成本成为有前景的方法。MoE模型的核心是路由器,它学习输入分布的聚类结构以将输入标记发送到合适的专家。然而,高维空间中潜在聚类可能难以识别,导致收敛缓慢、易受数据污染影响以及整体表示退化。本文通过聚类优化推导出最优特征权重,以最大识别潜在聚类。利用这些权重在自适应变换空间中计算标记-专家路由分配,促进聚类分离,帮助识别每个标记的最佳匹配专家。特别是,对于每个专家聚类,计算一组权重,根据该专家聚类是否紧密沿该特征进行特征缩放。我们称这种新颖的路由器为适应性聚类(AC)路由器。AC路由器使MoE模型获得三个连接的收益:1)更快的收敛,2)更好的数据污染鲁棒性,3)整体性能提升,因为专家在输入空间的语义不同区域专业化。我们实证展示了AC路由器在语言模型和图像识别任务中,在干净和受污染设置下的优势。

英文摘要:

Sparse Mixture-of-Experts (MoE) architectures have emerged as a promising approach to decoupling model capacity from computational cost. At the core of the MoE model is the router, which learns the underlying clustering structure of the input distribution in order to send input tokens to appropriate experts. However, latent clusters may be unidentifiable in high dimension, which causes slow convergence, susceptibility to data contamination, and overall degraded representations as the router is unable to perform appropriate token-expert matching. We examine the router through the lens of clustering optimization and derive optimal feature weights that maximally identify the latent clusters. We use these weights to compute the token-expert routing assignments in an adaptively transformed space that promotes well-separated clusters, which helps identify the best-matched expert for each token. In particular, for each expert cluster, we compute a set of weights that scales features according to whether that expert clusters tightly along that feature. We term this novel router the Adaptive Clustering (AC) router. Our AC router enables the MoE model to obtain three connected benefits: 1) faster convergence, 2) better robustness to data corruption, and 3) overall performance improvement, as experts are specialized in semantically distinct regions of the input space. We empirically demonstrate the advantages of our AC router over baseline routing methods when applied on a variety of MoE backbones for language modeling and image recognition tasks in both clean and corrupted settings.

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

↑