Confidence-Adaptive SwiGLU for Mixture-of-Experts

Shaohua Li, Xiuchao Sui, Xiaobing Sun, Yuhang Wu, Liangli Zhen, Yong Liu, Rick Siow Mong GoharXiv 2026

TL;DR

The paper introduces $\kappa$-SwiGLU, a novel gated activation variant for Mixture-of-Experts (MoE) models that dynamically adjusts gate sharpness based on token-level routing confidence. By allowing experts to modulate their activation selectivity on the fly, $\kappa$-SwiGLU consistently improves pretraining performance across various MoE architectures with negligible parameter and computational overhead.

What Problem Does This Paper Address?

Modern Transformer architectures heavily rely on SwiGLU (Swish-Gated Linear Unit) activations within their multilayer perceptrons (MLPs) to selectively amplify or suppress features. However, standard SwiGLU uses a fixed sharpness parameter ($\kappa=1$), meaning the smoothness and selectivity of the gating function remain static throughout training and across all inputs.

In Mixture-of-Experts (MoE) models, a router dynamically assigns tokens to specific experts based on router logits. Naturally, some tokens are routed with high confidence (strongly aligning with an expert's profile), while others are borderline assignments. The authors identify a missed opportunity: this routing confidence can serve as a valuable control signal to regulate how selectively an expert processes a given token.

Figure 2: Two mechanisms by which routing confidence can influence expert gates. Left: naturally emerging router–gate alignment implicitly shifts the input to the SiLU gate, moving tokens across different regions of the same gate curve. Right: κ-SwiGLU explicitly changes the gate curve itself by modulating its sharpness with a token-dependent multiplicative coefficient.

Methods

The authors propose Confidence-Adaptive SwiGLU ($\kappa$-SwiGLU). Instead of using a fixed SiLU gate, they introduce a token-dependent sharpness coefficient, $\kappa$:

$$\text{SiLU}_\kappa(z) = z \cdot \sigma(\kappa z)$$

In $\kappa$-SwiGLU, $\kappa$ is dynamically computed for each expert gate unit as a learnable function of the router logit $s_e(x)$ (the routing confidence):

$$\kappa_{e,j}(x) = \phi(\alpha_{e,j} \cdot s_e(x) + b_{e,j})$$

To maintain training stability and prevent extreme values, they pass the confidence signal through a bounded exponential mapping: $$\phi(z) = U^{\tanh(z)}$$ Using a hyperparameter $U=3$, $\kappa$ is strictly constrained to the interval $(1/3, 3)$. When the input is 0, $\kappa=1$, allowing the mechanism to gracefully revert to a standard SwiGLU gate.

To ensure a stable start, the learnable parameters ($\alpha$ and $b$) are regularized using L2 loss and kept frozen at 0 during the first 10% of training iterations, allowing the model to establish stable routing behaviors before adapting gate sharpness.

Datasets

The models were pretrained on the FineWeb-Edu dataset, scaling across configurations from 8 to 28 layers. To evaluate performance, the authors utilized a suite of 22 CORE benchmarks, which span diverse tasks including textbook knowledge, commonsense reasoning, and language modeling. They report Centered CORE accuracy to control for baseline guessing and task difficulty imbalances.

Key Insights and Ideas

  • Implicit Router-Gate Co-Evolution: The authors discovered that during standard MoE training, expert gate projection directions naturally align or anti-align with their corresponding router weight vectors. This alignment implicitly creates a confidence-induced gate bias, shifting tokens additively across the gate curve.
  • Multiplicative vs. Additive Control: While the natural co-evolution shifts the gate input additively, $\kappa$-SwiGLU introduces explicit multiplicative modulation. This allows the network to alter the actual slope and selectivity of the activation function based on how confident the router is.
  • Exploration and Moderation Dynamics: Tracking the learned $\kappa$ values over time revealed that once unfrozen, the gate units rapidly diverge—some becoming highly selective (sharp) and others broader (smooth)—before gradually settling into a moderate, non-trivial distribution by the end of training.
Figure 3: Cosine similarity between router weight vec- tors and routed token embeddings during training, mea- sured over all routed token–expert pairs in the 7th layer of an 8-layer MoE. The similarities stabilize between 0.075 and 0.25, with a mean of 0.15. It indicates that to- kens routed to an expert have non-negligible alignment with its router direction, yielding high router logits.

Key Results

  • Consistent Performance Gains: $\kappa$-SwiGLU improved the mean Centered CORE score in 7 out of 8 evaluated model configurations. In standard MoE settings (8L to 14L), it delivered a robust improvement of 0.6 to 1.0 percentage points over the standard SwiGLU baseline.
  • Minimal Computational Overhead: Because $\alpha$ and $b$ are simple scalars per gate unit, $\kappa$-SwiGLU introduces a negligible 0.02% increase in active parameters. Inference throughput (measured in tokens per second) changed by only 3.5% to 4.0%, proving that the performance gains come at almost no extra cost.

Limitations and Future Work

  • Scale Constraints: Due to computational resource limits, the method was evaluated on relatively small-scale MoE models. Verifying these positive trends on frontier-scale models with longer training schedules remains an open question.
  • Downstream Evaluation Gap: The evaluation primarily relied on zero-shot pretraining benchmarks (CORE) and did not fully capture downstream behavior after instruction tuning, long-context utilization, or reasoning-heavy tasks.
  • Simplistic Parameterization: The current design maps router logits to $\kappa$ via a simple affine transformation. Exploring alternative confidence signals or non-linear parameterizations represents a promising direction for future work.

Summary updated

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