Confidence-Adaptive SwiGLU for Mixture-of-Experts

Shaohua Li, Xiuchao Sui, Xiaobing Sun, Yuhang Wu, Liangli Zhen +2 more
5/30/2026
cs.LGcs.CL

Official code: askerlee/kappa-swiglu (0 stars, MIT, last commit 2026-06-05).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Confidence-aware SwiGLU

00HTML, ShellJan 13, 20264 months agoMIT

Similar Papers

Cite this paper

@article{li2026confidenceadaptive,
  title  = {Confidence-Adaptive SwiGLU for Mixture-of-Experts},
  author = {Shaohua Li and Xiuchao Sui and Xiaobing Sun and Yuhang Wu and Liangli Zhen and Yong Liu and Rick Siow Mong Goh},
  year   = {2026},
  eprint = {2606.00761},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.00761v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.00761.svg)](https://codeofpaper.com/paper/2606.00761)

Discussion