SwiGLU adaptatif à la confiance pour le mélange d’experts
Confidence-Adaptive SwiGLU for Mixture-of-Experts
May 30, 2026
Auteurs: Shaohua Li, Xiuchao Sui, Xiaobing Sun, Yuhang Wu, Liangli Zhen, Yong Liu, Rick Siow Mong Goh
cs.AI
Résumé
SwiGLU已成为现代Transformer MLP中的标准门控激活函数,但其门控锐度(即门控函数的平滑性与选择性)在训练过程中通常是固定的。本文提出了一种适用于混合专家(MoE)模型的置信度感知SwiGLU(κ-SwiGLU)变体,该变体根据词元级路由置信度动态调整专家门控锐度。具体而言,κ-SwiGLU将SiLU门控锐度系数参数化为路由器logit的可学习函数,使得每个专家门控单元能够在平滑的广域门控与锐利的选择性门控之间进行插值。我们基于FineWeb-Edu数据集,在8层至28层的MoE Transformer模型上评估了κ-SwiGLU。实验表明,κ-SwiGLU在仅增加极少量参数并引入微小计算开销的情况下,提升了平均CORE性能,从而验证了置信度感知的门控锐度是改进MoE MLP的有效机制。代码已开源至https://github.com/askerlee/kappa-swiglu。
English
SwiGLU has become a standard gated activation in modern Transformer MLPs, yet its gate sharpness -- the smoothness and selectivity of the gating function -- is typically fixed throughout training. In this work, we propose Confidence-Aware SwiGLU (κ-SwiGLU), a variant of SwiGLU for Mixture-of-Experts (MoE) models that adjusts expert gate sharpness according to token-level routing confidence. Specifically, κ-SwiGLU parameterizes the SiLU gate sharpness coefficient as a learnable function of the router logit, enabling each expert gate unit to interpolate between smooth, broadly active gating and sharp, selective gating. We evaluate κ-SwiGLU on the FineWeb-Edu dataset across MoE Transformer models ranging from 8 to 28 layers. Across these settings, κ-SwiGLU improves mean CORE performance while adding negligible parameters and incurring only a small computational overhead, demonstrating that confidence-aware gate sharpness is a promising mechanism for improving MoE MLPs. The code is available at https://github.com/askerlee/kappa-swiglu.