Manuscript Offprint

arXiv:2610.11575

Smoothing the Top-k Exposure Boundary for Sparse Mixture-of-Experts

Yunkai Chai, Tong Zhu, Xiaoye Qu, Xuyang Hu, Guanjie Chen, Qipeng Guo, Yu Cheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Sparse Mixture-of-Experts models scale parameter capacity efficiently while maintaining a fixed compute budget per token. However, traditional training paradigms enforce a static choice of top-k experts, which converts a continuous routing distribution into a rigid step function. This constraint introduces a brittle boundary where highly competitive experts are arbitrarily separated into full-supervision and zero-feedback zones based on minor score fluctuations. To address this issue, we propose Elastic Expert Routing, which stochastically samples the active expert budget from a localized discrete distribution centered at k. Over multiple training iterations, this mechanism softens the sharp threshold into a gradual probability distribution. Because the sampling neighborhood remains symmetric, this approach matches the expected computational cost of deterministic training, while preserving the inference budget. Extensive experiments demonstrate the efficacy of our method on both supervised fine-tuning and from-scratch pretraining settings. During supervised fine-tuning, elastic routing improves downstream macro-averages on OLMoE-1B-7B and Qwen3-30B-A3B by +0.84 and +2.02 points, respectively. In addition, in from-scratch pretraining, it outperforms the static top-k baseline by 1.6 points on average across downstream tasks.

1 Introduction

Sparse Mixture-of-Experts (MoE) could scale model capacity efficiently by enlarging the number of total experts while conditionally activating a restricted subset of parameters per token (Jiang et al., 2024; Dai et al., 2024; Du et al., 2022). In the common top-k architecture, a routing network ranks the experts for each incoming token and dispatches that token to the first k candidates (Shazeer et al., 2017; Fedus et al., 2022). Since the choice

Figure

Figure 1: Routing boundaries of static top-k and Elastic Expert Routing.

of k directly serves as a static computational hyperparameter that dictates per-token costs, this design provides an intuitive mechanism for controlling computational requirements, where the compute would stay almost the same while the total model capacity scales (Tian et al., 2025; Krajewski et al., 2024). Consequently, a common practice would enforce a uniform value of k throughout both the training and deployment phases.

However, this fixed threshold converts a continuous routing distribution into a rigid step function at the selection threshold (Wang et al., 2025). This constraint introduces a harsh boundary that restricts model optimization. As shown in Figure 1, highly competitive experts with virtually identical routing scores are arbitrarily separated into full-supervision and zero-feedback zones based on minor score fluctuations. Consequently, an expert ranked precisely inside the cutoff receives full gradient supervision, whereas an adjacent competitor ranked just outside receives zero task-loss feedback. Because tradi-tional top-k training repeatedly presents the routing network with this rigid boundary, optimization near the cutoff becomes highly brittle.

One intuitive approach to mitigate boundary rigidity is dynamic routing. Existing adaptive methods vary the number of activated experts dynamically by allocating more capacity to difficult inputs (Guo et al., 2025) or sampling token-specific budgets from routing signals (Yue et al., 2024). While this strategy removes the top-k threshold, it may change the deployment budget (Wang et al., 2025; Huang et al., 2024), alter the model structure (Zeng et al., 2024; Jin et al., 2025; Team et al., 2025), or lead to suboptimal task performance for extreme efficiency (Lv et al., 2026), which is hard to be applied on model serving infrastructures.

To address this issue, we propose Elastic Expert Routing. Our framework preserves the standard fixed-budget inference constraints but softens the sharp threshold during training. Specifically, our method stochastically samples the active expert budget from a localized discrete distribution centered at k. As illustrated in Figure 1 (right), over multiple training iterations, this mechanism statistically transforms the sharp selection threshold into a smooth selection probability distribution. Consequently, competitive near-boundary experts can be optimized during training. Because the sampling neighborhood remains symmetric around k, this approach matches the expected computational cost of vanilla static top-k training. Furthermore, the model preserves the standard static top-k routing rule at inference time with zero structural modification or latency overhead.

We evaluate the efficacy of elastic routing across fine-tuning and pretraining settings. In supervised fine-tuning experiments, we test our method using OLMoE-1B-7B (Muennighoff et al., 2025) and Qwen3-30B-A3B backbones (Yang et al., 2025). Our approach consistently improves downstream task performance over static top-k baselines, yielding improvements of +0.84 and +2.02 points, respectively. We further validate the foundational utility of budget elasticity during from-scratch pretraining under strict compute-matched and token-matched conditions. In this setting, elastic routing outperforms the static top-k baseline by 1.6 points on average across downstream tasks. Subsequent internal diagnostics confirm that boundary smoothing refines expert prioritization rankings and alters routing distribution behaviors within the foundational middle layers of the network.

Our contributions are summarized below:

• We formulate static top-k MoE training as a hard rank-exposure boundary and introduce Elastic Expert Routing to soften it into a gradual selection probability distribution without modifying inference mechanics.

• We demonstrate consistent performance gains during supervised fine-tuning on OLMoE-1B-7B and Qwen3-30B-A3B backbones, as well as during from-scratch pretraining under fair settings.

• We provide routing diagnostics and router-swap interventions showing that the gains are associated with middle-layer routing changes and improved expert prioritization.

References (42)