betaFeedback

WorksComputer Science

Rethinking Routing Exploration in Modern Mixture-of-Experts

Abstract

Mixture-of-experts (MoE) models have become an important approach for scaling model parameters. Modern MoE architectures increasingly combine two design choices: fine-grained expert segmentation and shared experts. The former increases expressiveness by enabling more expert combinations at a fixed activation ratio, and the latter introduces experts that are active for every token. We identify an exploration dilemma between these designs: shared experts can make routing less exploratory by reducing the variability of token representations. This conflicts with the greater need for exploration induced by fine-grained expert segmentation due to the combinatorially enlarged routing space. Consequently, the additional expressiveness offered by fine-grained segmentation may not be fully realized in practice. MirrorMoE is proposed to reconcile this exploration dilemma by shrinking the exploration space through token-adaptive suppression of unnecessary experts. MirrorMoE consistently improves performance across model scales.

Introduction

Mixture-of-experts (MoE) models have been instrumental in scaling large language models (LLMs) to trillions of parameters and beyond [17, 8]. MoEs adopt a sparse conditional-computation paradigm, where each token activates only a subset of experts, or subnetworks. During pretraining, recent work has shown that MoEs can outperform their dense counterparts under matched total parameter counts, compute, and data budgets [19]. At inference, sparse activation allows computational cost to grow sublinearly with total parameters. Thanks to these advantages, MoEs have become a core architecture underlying model families such as DeepSeek [5, 23], Kimi [32, 33], and Qwen [35, 40], among many others [12, 1].

At the core of MoEs is the MoE layer, which consists of a router and EE experts, each implemented as a feedforward network (FFN). For each input token, the router selects KK experts (K<EK < E) for sparse activation [17, 8]. Building on this basic design, recent MoEs have increasingly adopted two notable architectural advances. The first is fine-grained expert segmentation [33, 23]. Recent MoEs tend to use larger numbers of both total and activated experts, i.e., larger EE and KK. For example, at the same activation ratio K/EK/E, (E,K)=(64,8)(E, K) = (64, 8) is often preferred over (E,K)=(8,1)(E, K) = (8, 1). Since there are (EK)\binom{E}{K} expert combinations, the latter yields richer routing space for more expressive token representations [7]. The second advance is shared experts. Activated for every token, shared experts capture common knowledge that would otherwise be learned redundantly by routed experts. This allows routed ones to devote more capacity to specialization. The combination of the above architectural choices have become standard in modern MoEs [5, 23, 35].

This work reexamines the interaction between these two trends from the angle of routing exploration. The goal of exploration is to search for alternative expert combinations during pretraining to identify (near-)optimal routes for each token. On the one hand, realizing the expressive potential of fine-grained expert segmentation requires exploring a combinatorially larger routing space within each MoE layer. For example, the number of expert subsets increases from 8 when (E,K)=(8,1)(E, K) = (8, 1) to (648)≈4.4×109\binom{64}{8} \approx4.4 \times10^{9} with (E,K)=(64,8)(E, K) = (64, 8), i.e., several orders of magnitude increase. On the other hand, our analysis reveals an asymmetry during pretraining: shared experts dominate the learned token representations, leaving routed experts with less influence on the layer output. Consequently, even activating different routed experts only leads to limited variation in the learned features, making alternative routes harder to distinguish and thereby undermining the goal of exploration.

This exploration dilemma has tangible consequences for shared-expert MoEs. To see this, we train matched MoE models with and without shared experts at 4 scales, ranging from 100M to 2.4B total parameters. At each scale, we fix the total number of experts EE and vary the number of (total) activated experts KK over {6,8,10}\{6, 8, 10\}. A larger KK simultaneously increases model expressiveness and demands more strategic exploration due to enlarged routing space. As shown in Figure 1, shared experts no longer provide benefits over their non-shared counterparts as KK increases. More strikingly, the performance of shared-expert MoEs can even degrade as KK increases in Figure 1b and Figure 1d, suggesting that the inefficient exploration hinders realization of the additional expressiveness from larger KK.

Comparison of MoEs with and without shared experts and the proposed MirrorMoE

Figure 1. Comparison of MoEs with and without shared experts (SE) and the proposed MirrorMoE. MirrorMoE consistently i) achieves the best performance, ii) realizes the expressiveness gains from larger KK, and iii) enables shared-expert MoEs to outperform their non-shared counterparts.

MirrorMoE is proposed to reconcile the conflicting architecture designs above. It adaptively suppresses routed experts on a token basis, reducing the exploration space to better match the model’s exploration capability. Technically, MirrorMoE is derived by mirroring the routing logits via sign negation, hence its name. As shown in Figure 1, MirrorMoE improves the performance of shared-expert MoEs and attains expressiveness gains from larger KK. In summary, our contributions are as follows:

  • We identify an exploration dilemma in modern MoEs: the enlarged routing space induced by fine-grained expert segmentation demands greater exploration, while shared experts make routing less explorative. As a result, the benefits of shared experts diminish as the routing space grows.

  • We propose MirrorMoE, which adaptively shrinks the exploration space to reconcile competing demands above. MirrorMoE is conceptually simple, and its adaptivity is theoretically characterized.

  • We demonstrate that MirrorMoE addresses the exploration dilemma across MoEs of different scales. On the 2.4B model, MirrorMoE improves pretraining and downstream performance by 0.67 and 1.64 points, respectively. Moreover, it enables shared-expert MoEs to consistently outperform their non-shared counterparts and restores the performance gains from increasing KK; see Figure 1.

Related work

MoEs. Modern sparse MoEs originated with the sparsely gated MoE layer of Shazeer et al. [29] and were extended to large-scale Transformers in e.g., Lepikhin et al. [17]; Fedus et al. [8]. Later work focused on improving scalability, stability, and expert specialization. GLaM Du et al. [6] demonstrated that sparse language models could scale beyond one trillion parameters, while ST-MoE Zoph et al. [46] improved training stability. MoEs have since become widely adopted. Beyond those mentioned earlier, other representative examples include Gemma4, OLMoE and gpt-oss [31, 25, 2]. Across this development trajectory, two trends have clearly emerged: fine-grained expert segmentation and shared experts.

Tension between expressiveness and pretraining. A growing line of work shows that a model’s expressive capacity may not be readily realized without carefully designed training procedures [22, 44, 11, 38]. Within the context of MoEs, related evidence is provided by Jin et al. [13], which augments learnable experts with fixed zero, copy, and constant experts. Although standard FFN experts can, in principle, learn these operations, explicitly incorporating them still improves empirical performance. The benefit of directly defining these operations, rather than learning them through training, suggests that the available expressiveness may not be fully realized in practice. Our work further shows that the additional expressiveness provided by fine-grained expert segmentation is not naturally attained in shared-expert MoEs.

Additional related work on MoE routing and systems is deferred to App. § 6 due to limited space.

The Exploration Dilemma in Shared-Expert MoEs

This section first reviews MoEs and then examines the effect of shared experts on exploration.

MoE recap

MoEs replace the FFN in each Transformer layer with a collection of FFNs, each referred to as an expert. Among EE experts at layer ll, there are two types: SS shared experts {SEl,s}s\{\mathrm{SE}_{l,s}\}_{s}, activated for every token [23], and R:=E−SR := E-S routed experts {REl,e}e\{\mathrm{RE}_{l,e}\}_{e}, activated in a token-driven manner. We use KK to denote the total number of activated experts, including the shared ones.

For hln∈Rd\mathbf{h}_{l}^{n} \in\mathbb{R}^{d}, the representation of the nn-th token entering the ll-th MoE layer, the routed experts to be activated are selected by a linear projection Gl∈RR×dG_l \in\mathbb{R}^{R \times d}, known as the router. The router produces a probability distribution over the routed experts, and those with the highest probabilities are activated. The activated routed experts are collected in Al(hln)\mathcal{A}_l(\mathbf{h}_l^n):

pl,e(hln)=exp⁡(Gl[e,:]hln)∑j=1Rexp⁡(Gl[j,:]hln),Al(hln)=Top⁡K−S({pl,e(hln)},e∈[R]).(1)p_{l,e}(\mathbf{h}_l^n) = \frac{\exp(G_l[e,:]\mathbf{h}_l^n)}{\sum_{j=1}^{R}\exp(G_l[j,:]\mathbf{h}_l^n)}, \qquad\mathcal{A}_l(\mathbf{h}_l^n) = \operatorname{Top}_{K-S}\left(\{p_{l,e}(\mathbf{h}_l^n)\}, e \in[R]\right). \tag*{(1)}

Here, Top⁡K−S(⋅)\operatorname{Top}_{K-S}(\cdot) deterministically selects K−SK-S experts with the largest probabilities and [R]:={1,…,R}[R] := \{1,\ldots,R\} denotes all the routed experts. The learned token representation of this layer combines the outputs of both shared and routed experts, where shared experts capture common features and routed experts learn specialized ones, i.e.,

hl+1n=∑s=1SSEl,s(hln)+∑e∈Al(hln)pl,e(hln)Z(hln)⋅REl,e(hln)(2)\mathbf{h}_{l+1}^{n} = \sum_{s=1}^{S}\mathrm{SE}_{l,s}(\mathbf{h}_{l}^{n}) + \sum_{e\in\mathcal{A}_l(\mathbf{h}_l^n)}\frac{p_{l,e}(\mathbf{h}_l^n)}{Z(\mathbf{h}_l^n)}\cdot\mathrm{RE}_{l,e}(\mathbf{h}_l^n) \tag*{(2)}

where Z(hln)=∑j∈Al(hln)pl,j(hln)Z(\mathbf{h}_l^n)=\sum_{j\in\mathcal{A}_l(\mathbf{h}_l^n)}p_{l,j}(\mathbf{h}_l^n) renormalizes the weights of the activated experts, as in Yang et al., [40] or Z(hln)=1Z(\mathbf{h}_l^n)=1 as in DeepSeek-MoE and Qwen1.5-MoE [5, 25, 34]. We follow the latter in this paper. Vanilla MoEs without shared experts are recovered when S=0S=0. For convenience, we omit the dependence of pl,ep_{l,e} and Al\mathcal{A}_l on hln\mathbf{h}_l^n, as well as the token index nn whenever clear from context.

Beyond shared experts, recent MoEs have also shifted toward fine-grained expert segmentation [23, 40, 7]. For the same activation ratio, this trend favors configurations such as R=64R=64, K−S=8K-S=8 over R=8R=8, K−S=1K-S=1, enabling a combinatorially richer set of expert compositions and, hence, more expressive token representations. However, realizing such expressiveness through pretraining is far from straightforward, where the challenge also stems from the combinatorial expansion of the routing space. Identifying optimal expert combinations therefore requires more exploration. This motivates us to revisit exploration in MoE training.

Shared experts weaken routing exploration

This subsection reexamines the roles of shared and routed experts, reveals an asymmetry in their learning dynamics, and shows how shared-expert dominance can hinder exploration.

To isolate the impact of shared experts, we compare MoEs with and without them using matching datasets, tokenizers, and configurations. The models in this subsection have 121M activated and 498M total parameters, with E=66E=66 and K=8K=8. We set S=2S=2 for shared-expert MoEs, while MoEs without shared experts amount to S=0S=0. Details are deferred to App. § 7.§ 1. We select checkpoints at 20%, 50%, and 100% of pretraining to represent the early, middle, and final stages, respectively.

Asymmetric training dynamics in shared-expert MoEs. We first ablate individual experts to assess their importance. Specifically, we zero out each expert’s output and measure the resulting perplexity change, ΔPPL=PPLafter−PPLbase\Delta\mathrm{PPL} = \mathrm{PPL}_{\mathrm{after}} - \mathrm{PPL}_{\mathrm{base}}. In Figure 2, the two rightmost columns in the right-hand plots correspond to shared experts. Across all three checkpoints, ablating a shared expert leads to a substantially larger perplexity increase than ablating a routed expert. This shows that shared experts play a disproportionately important role in model performance.

Figure 2. Perplexity increase after ablating individual experts. In the right subplot, the two rightmost columns, separated by a solid line, correspond to shared experts.

Another means to quantify the asymmetric roles of experts is through the so-termed routing criticality, which replaces the learned router with uniform random routing and measures the resulting performance change. We apply this intervention one layer at a time and report the relative perplexity increase, PPLafter−PPLbasePPLbase\frac{\mathrm{PPL}_{\mathrm{after}}-\mathrm{PPL}_{\mathrm{base}}}{\mathrm{PPL}_{\mathrm{base}}}. Larger values indicate greater dependence on the learned router. As shown in Figure 3a, uniform routing in the early and middle layers of the shared-expert MoE leads to a much smaller perplexity increase than in standard MoEs. In other words, shared experts in these layers capture such a large fraction of the learned representation that the layers are robust to random routing.

Three plots showing routing criticality, expert variance, and router variance across layers for shared-expert and non-shared-expert MoEs

Figure 3. Shared experts make MoE routing less exploratory.

Next, we examine how this asymmetry in expert roles shapes exploration. Exploration aims to discover alternative routes that produce diverse token representations. We therefore quantify exploration by measuring how much the learned representation changes under different routing decisions. Even before this analysis, the asymmetry between shared and routed experts suggests that exploration may be ineffective: if a highly exploratory routing policy, such as uniform routing, barely changes the output of a shared-expert layer, other routing is also unlikely to produce substantially different representations. We next confirm this intuition using two complementary variance metrics, one induced by experts and the other by routers.

Shared experts suppress expert-induced variance. We first quantify how much an MoE layer’s output can vary when different experts are activated. To this end, we introduce the notion of expert variance. Given an input token hlh_l and its learned output hl+1h_{l+1} in (2), we define the expert variance as

ExpertVar⁡l=1R∑e=1R∥h~l+1,e−hl+1∥2∥hl+1∥2whereh~l+1,e=∑s=1SEl,s(hl)+REl,e(hl).\operatorname{ExpertVar}_l = \frac{1}{R}\sum_{e=1}^{R}\frac{\left\lVert\tilde{h}_{l+1,e}-h_{l+1}\right\rVert^2}{\left\lVert h_{l+1}\right\rVert^2} \quad\text{where}\quad \tilde{h}_{l+1,e}=\sum_{s=1}^{S}\mathcal{E}_{l,s}(h_l)+\mathcal{R}\mathcal{E}_{l,e}(h_l).

In other words, h~l+1,e\tilde{h}_{l+1,e} is the representation obtained if only a single expert ee is activated. A larger ExpertVar⁡l\operatorname{ExpertVar}_l indicates that changing routed experts can produce substantially different representations compared to hl+1h_{l+1}, indicating greater potential for exploration. Moreover, ExpertVar⁡l\operatorname{ExpertVar}_l bounds the relative change induced by any routing policies from above if Z(hl)=∑j∈Al(hl)pl,j(hl)Z(h_l)=\sum_{j\in\mathcal{A}_l(h_l)}p_{l,j}(h_l). Let h^l+1\hat{h}_{l+1} denote the representation obtained from any set of activated experts and routing probabilities. As shown in App. § 9.§ 1, we can prove that max⁡h^l+1∥h^l+1−hl+1∥2/∥hl+1∥2≤R⋅ExpertVar⁡l\max_{\hat{h}_{l+1}}\|\hat{h}_{l+1}-h_{l+1}\|^2/\|h_{l+1}\|^2\le R\cdot\operatorname{ExpertVar}_l. We evaluate ExpertVar⁡l\operatorname{ExpertVar}_l, averaged over tokens, for every MoE layer in Figure 3b. Expert variance is smaller across all layers when shared experts are present. This is because shared experts dominate the output, while routed experts can only make relatively small variations. Consequently, shared-expert MoEs are less explorative even with different activated experts.

Shared experts reduce router-induced variance. Next, we show that when routing decisions are sampled from the router’s learned distribution, shared-expert MoEs also produce less variable output features. To this end, we replace deterministic top-(K−S)(K-S) routing in (1) with stochastic expert selection according to the learned routing probabilities. For each token, we independently sample M=256M=256 expert sets and denote the resulting representation of the mm-th sample by h^l+1(m)\hat{\mathbf{h}}_{l+1}(m), where m∈[M]m \in[M]. We then define the router-induced variance as

RouterVar⁡l=1M∑m∥h^l+1(m)−hˉl+1∥2∥hˉl+1∥2wherehˉl+1=1M∑mh^l+1(m).\operatorname{RouterVar}_{l}=\frac{1}{M}\sum_{m}\frac{\left\|\hat{\mathbf{h}}_{l+1}(m)-\bar{\mathbf{h}}_{l+1}\right\|^{2}}{\left\|\bar{\mathbf{h}}_{l+1}\right\|^{2}} \quad\text{where}\quad \bar{\mathbf{h}}_{l+1}=\frac{1}{M}\sum_{m}\hat{\mathbf{h}}_{l+1}(m).

A larger RouterVar⁡l\operatorname{RouterVar}_{l} indicates that sampling according to the routing distribution is more likely to produce diverse features, and thus more explorative. Figure 3c reports RouterVar⁡l\operatorname{RouterVar}_{l} averaged over tokens. Because shared experts dominate the layer output, they reduce RouterVar⁡l\operatorname{RouterVar}_{l} by approximately an order of magnitude relative to a standard MoE. The stochastic routing above is equivalent to adding Gumbel noise with β=1\beta=1 to the routing logits Nie et al., [27]. We further evaluate perturbed routing distributions with β∈{0.5,2}\beta\in\{0.5, 2\}. Results in App. B.2 exhibit the same trend as Figure 3c. Thus, even under routing distributions perturbed from the learned one, shared-expert MoEs are less likely to produce diverse representations.

In summary, our diagnosis suggests that exploration faces inherent limitations in shared-expert MoEs.

Takeaway. Shared experts can dominate representation learning, limiting representational diversity and thereby weakening routing exploration.

Consequences of the exploration dilemma

The preceding discussions reveals a fundamental exploration dilemma in shared-expert MoEs. On the one hand, the combinatorial growth of the routing space induced by fine-grained expert segmentation demands greater exploration to identify (near-)optimal expert combinations. On the other hand, shared experts reduce feature variation, thereby weakening exploration. This mismatch gives rise to several practical inefficiencies. We reveal them by evaluating models ranging from 100M to 2.4B total parameters. We set R∈{64,128}R \in\{64, 128\} and S=2S=2 for shared-expert MoEs, and match the total number of experts for MoEs without shared experts. We vary the number of activated experts as K∈{6,8,10}K \in\{6, 8, 10\}. In this scenario, increasing KK improves expressiveness but also enlarges the exploration space.

Inefficiency 1. Benefits of shared experts are eroded. The first consequence is that shared-expert MoEs do not consistently improve upon standard MoEs. As shown in Figure 1, when KK is small and hence demanding less exploration, shared-expert MoEs outperform their non-shared counterparts. As KK increases, however, the benefits of shared experts diminish or even disappear.

Inefficiency 2. Shared experts can diminish the expressive benefits of increasing KK. Across the four model scales in Figure 1, increasing KK from 6 to 10 yields perplexity gains of {2.23,1.32,1.08,0.87}\{2.23, 1.32, 1.08, 0.87\} for MoEs without shared experts. With shared experts, however, these gains drop to {0.29,−0.03,0.58,−0.03}\{0.29, -0.03, 0.58, -0.03\}, i.e., negative at two scales. These negative numbers indicate that additional expressiveness from activating more experts is not fully realized with shared experts.

Inefficiency 3. Shared experts slow routing specialization. As shown in Figure 3a, replacing the learned router with a uniformly random one leads to a steadily increasing relative perplexity gap across training stages for MoEs without shared experts. This is expected as routing becomes increasingly specialized. In contrast, shared-expert MoEs exhibit little increase in this gap between the 20% and 50% checkpoints, suggesting slower routing specialization.

MirrorMoE for Pretraining Shared-Expert MoEs

To reconcile this exploration dilemma and mitigate the inefficiencies discussed earlier, we propose MirrorMoE, a simple yet effective pretraining approach tailored to MoEs with shared experts.

MirrorMoE shrinks the exploration space

One solution to the exploration dilemma is to encourage exploration. However, this can introduce tradeoffs in MoE training, such as reduced stability and increased optimization variance, as further illustrated in App. § 7.§ 3. We thus take the opposite approach: shrink the routing space to better match the model’s exploration capability.

An intuitive way to view this is through the number of effective expert combinations, which scales with (RKeff)\binom{R}{K_{\mathrm{eff}}}. We formally define KeffK_{\mathrm{eff}} in § 3.2; for now, it can be understood as the number of functionally active experts induced by the routing method. The routing space is reduced when Keff<K−SK_{\mathrm{eff}} < K - S. However, as shown by the ablation in § 4.3, naively reducing activated experts is suboptimal. MirrorMoE reduces KeffK_{\mathrm{eff}} by leveraging experts with low routing probabilities. It selects these low-probability experts in a token-adaptive manner but assigns them negligible aggregation weights. They therefore contribute little to the learned token representation and are functionally suppressed, reducing the number of experts that need to be explored. We detail this approach below.

Mirror routing. Recall that GlG_l denotes the router weights at the ll-th layer, and consider a token representation hl∈Rdh_l \in\mathbb{R}^d. Mirror routing activates experts according to a new routing probability

pl,e=(1−ρ)exp⁡(Gl[e,:]hl)∑j=1Rexp⁡(Gl[j,:]hl)⏟:=ξl,e+ρexp⁡(−Gl[e,:]hl)∑j=1Rexp⁡(−Gl[j,:]hl)⏟:=ζl,e(3)p_{l,e}=(1-\rho)\underbrace{\frac{\exp(G_l[e,:]h_l)}{\sum_{j=1}^{R}\exp(G_l[j,:]h_l)}}_{:=\xi_{l,e}}+\rho\underbrace{\frac{\exp(-G_l[e,:]h_l)}{\sum_{j=1}^{R}\exp(-G_l[j,:]h_l)}}_{:=\zeta_{l,e}} \tag*{(3)}

where any ρ∈[0,1]\rho\in[0,1] yields a valid probability distribution. The first term ξl,e\xi_{l,e} is the standard routing distribution and favors experts with larger logits. The second term ζl,e\zeta_{l,e} is obtained by negating the sign of GlG_l, and therefore favors experts with smaller logits. This sign reversal motivates the name mirror routing. The convex combination of ξl,e\xi_{l,e} and ζl,e\zeta_{l,e} shifts routing probability towards both ends of the logit range. Experts with larger pl,ep_{l,e} are activated

Al(hl)=Top⁡K−S{pl,e}, e∈[R].(4)\mathcal{A}_l(h_l)=\operatorname{Top}_{K-S}\{p_{l,e}\},\ e\in[R]. \tag*{(4)}

Mirror aggregation. This is the central mechanism for shrinking the exploration space, where we aggregate the selected experts using the probabilities ξl,e\xi_{l,e} instead of pl,ep_{l,e}

hl+1=∑s=1SSEl,s(hl)+∑e∈Alξl,eZ(hl)REl,e(hl).(5)h_{l+1}=\sum_{s=1}^{S}\mathcal{S}\mathcal{E}_{l,s}(h_l)+\sum_{e\in\mathcal{A}_l}\frac{\xi_{l,e}}{Z(h_l)}\mathcal{R}\mathcal{E}_{l,e}(h_l). \tag*{(5)}

Here, we set Z(hl)=1Z(h_l)=1, analogous to (2) and consistent with the convention adopted throughout this work. Alternatively, one may use Z(hl)=∑j∈Alξl,jZ(h_l)=\sum_{j\in\mathcal{A}_l}\xi_{l,j} to normalize the routing weights over the activated experts. Consequently, even when low-logit experts are activated, they contribute minimally to the representation hl+1h_{l+1} and are therefore functionally suppressed, reducing KeffK_{\mathrm{eff}}. This reduction is adaptive: it is determined by ξl,e\xi_{l,e} and can vary across tokens and layers, as visualized shortly in § 3.2. Viewed jointly, MirrorMoE router GlG_l serves two complementary roles. As in standard routing, it governs exploitation by selecting experts with large logits. More importantly, it leverages small logits, which standard routing discards, to determine how many experts to suppress.

Lastly, we make two practical modifications to the pretraining procedure to further improve performance. First, because permanently suppressing experts could limit the expressiveness of the final model, we gradually anneal ρ\rho to 0 over the course of training in (3). A cosine schedule is found effective in our experiments; see § 4.3. This yields a temporally strategic exploration scheme: the routing space gradually expands only after experts have developed more stable specialization.

Algorithm 1 MirrorMoE training iteration tt

  1. Forward: ρt←CosineAnneal⁡(ρ0,t)\rho_t \leftarrow\operatorname{CosineAnneal}(\rho_0,t) Select experts for each token using (3) and (4), and aggregate their outputs using (5) Compute L←Ltask+λbalLbal\mathcal{L} \leftarrow\mathcal{L}_{\mathrm{task}}+\lambda_{\mathrm{bal}}\mathcal{L}_{\mathrm{bal}}, where Lbal\mathcal{L}_{\mathrm{bal}} is defined in (6)

  2. Backward: Backpropagate L\mathcal{L} and update the model parameters

Second, a modest additional improvement can be achieved by balancing the probabilities ξl,e(hln)\xi_{l,e}(\mathbf{h}_l^n) rather than the mirror-routing probabilities pl,e(hln)p_{l,e}(\mathbf{h}_l^n). Specifically, modify the load-balancing loss to

Lbal=R∑l=1L∑e=1Rfl,eqˉl,e,withfl,e=cl,eN(K−S),qˉl,e=1N∑n=1Nξl,e(hln)(6)\mathcal{L}_{\mathrm{bal}}=R\sum_{l=1}^{L}\sum_{e=1}^{R}f_{l,e}\bar{q}_{l,e},\quad\text{with}\quad f_{l,e}=\frac{c_{l,e}}{N(K-S)},\quad\bar{q}_{l,e}=\frac{1}{N}\sum_{n=1}^{N}\xi_{l,e}(\mathbf{h}_l^n) \tag*{(6)}

where NN is the number of tokens and cl,ec_{l,e} is the number of tokens routed to expert ee at llth layer. The intuition is that experts with small ξl,e(hln)\xi_{l,e}(\mathbf{h}_l^n) contribute little to the resulting token representations, even if activated. The load-balancing objective therefore focuses on the experts that are functionally active. As shown in App.B.5, this modification improves performance. The complete MirrorMoE pretraining procedure is summarized in Alg.1.

Visualization of routing space reduction in MirrorMoE

Next, we empirically show that MirrorMoE shrinks the exploration space early in training and ultimately learns a more confident routing policy, indicating stronger expert specialization. The notion of effective experts is introduced to quantify this.

Definition 3.1 (Token-wise) effective experts. For a given token hln\mathbf{h}_l^n, recall the mirror aggregation in (5). The effective experts for this token is defined as

Keff(hln)=exp⁡(−∑e∈Al(hln)ξˉl,e(hln)log⁡ξˉl,e(hln)),whereξˉl,e(hln)=ξl,e(hln)∑j∈Al(hln)ξl,j(hln).K_{\mathrm{eff}}(\mathbf{h}_l^n)=\exp\left(-\sum_{e\in\mathcal{A}_l(\mathbf{h}_l^n)}\bar{\xi}_{l,e}(\mathbf{h}_l^n)\log\bar{\xi}_{l,e}(\mathbf{h}_l^n)\right),\quad\text{where}\quad\bar{\xi}_{l,e}(\mathbf{h}_l^n)=\frac{\xi_{l,e}(\mathbf{h}_l^n)}{\sum_{j\in\mathcal{A}_l(\mathbf{h}_l^n)}\xi_{l,j}(\mathbf{h}_l^n)}.

We omit the dependence on hln\mathbf{h}_l^n for convenience. This definition measures how many of the activated experts contribute substantially to the aggregated representation. In other words, Keff(hln)K_{\mathrm{eff}}(\mathbf{h}_l^n) is a smooth approximation to the number of functionally active experts, excluding shared ones. If ξˉl,e=1/(K−S)\bar{\xi}_{l,e}=1/(K-S) for every e∈Ale\in\mathcal{A}_l, then Keff=K−SK_{\mathrm{eff}}=K-S, indicating that all routed experts contribute significantly to the aggregation. Conversely, if ξˉl,e=1\bar{\xi}_{l,e}=1 for one expert and zero for others, then Keff=1K_{\mathrm{eff}}=1, indicating that the final token representation is determined by a single expert. Intuitively, if roughly KeffK_{\mathrm{eff}} experts contribute, the number of expert combinations to explore scales as (RKeff)\binom{R}{K_{\mathrm{eff}}}, and smaller KeffK_{\mathrm{eff}} corresponds to fewer “active” experts and a smaller effective exploration space.

We plot KeffK_{\mathrm{eff}}, averaged over all tokens and layers, against iterations in Figure 4. We train an MoE with 100M parameters and vary K∈{6,8,10}K\in\{6,8,10\}. Alongside KeffK_{\mathrm{eff}}, we report the minimum normalized aggregation weight among the activated experts, min⁡e∈Alξˉl,e\min_{e\in\mathcal{A}_l}\bar{\xi}_{l,e}, also averaged over tokens and layers. It can be seen that MirrorMoE has smaller KeffK_{\mathrm{eff}} than the baseline during the first half of training. Meanwhile, min⁡e∈Alξˉl,e\min_{e\in\mathcal{A}_l}\bar{\xi}_{l,e} approaches 0, showing that some activated experts contribute negligibly to the aggregated representation. Together, these results confirm that MirrorMoE reduces exploration space by functionally suppressing activated experts. We further demonstrate that the adaptivity of the suppression in App.B.4 by plotting the layer-wise version of Figure 4. Lastly, as KeffK_{\mathrm{eff}} is the exponential entropy of the aggregation probabilities, its smaller value at the end of training in Figure 4 shows that MirrorMoE learns a more concentrated routing policy, consistent with stronger expert specialization.

Figure 4. Preview of how MirrorMoE in Alg. 1 actively suppresses experts on a 100M MoE model. The rebound in KeffK_{\mathrm{eff}} results from annealing ρ\rho.

Discussions on adaptivity of MirrorMoE

Lastly, we theoretically characterize the adaptivity of MirrorMoE by deriving sufficient conditions for both expert suppression and preservation at mirror routing. We begin with the former. When an expert has a sufficiently small ξl,e\xi_{l,e} and ρ\rho is chosen appropriately, MirrorMoE activates this expert but functionally removes it as negligible aggregation weight is assigned. For convenience, we omit the layer index throughout this subsection.

Proposition 3.2 (Sufficient condition for expert suppression). For a given token, let {ξe}\{\xi_e\} and {pe}\{p_e\} be probabilities obtained as (3). Let Ap:=A\mathcal{A}^{p}:=\mathcal{A}, i.e., (4), denote the set of experts activated by MirrorMoE, and define Aξ:=Top⁡K−S({ξe}e=1R)\mathcal{A}^{\xi}:=\operatorname{Top}_{K-S}(\{\xi_e\}_{e=1}^{R}) as the set that would be activated under the standard routing probabilities {ξe}\{\xi_e\}. Let emin⁡:=arg⁡min⁡e∈[R]ξee_{\min}:=\arg\min_{e\in[R]}\xi_e with ξemin⁡=ϵ\xi_{e_{\min}}=\epsilon, and let j:=arg⁡min⁡e∈Aξξej:=\arg\min_{e\in\mathcal{A}^{\xi}}\xi_e with ξj=c/R\xi_j=c/R. As ϵ→0\epsilon\to0, ρ>c/(1+c)\rho>c/(1+c) is sufficient for emin⁡∈Ap∖Aξe_{\min}\in\mathcal{A}^{p}\setminus\mathcal{A}^{\xi}; that is, MirrorMoE activates this expert while functionally suppressing its contribution during aggregation.

This explains the reduced KeffK_{\mathrm{eff}} as visualized in Figure 4. Next, we show the token adaptivity of MirrorMoE by identifying a regime in which no expert is suppressed. Specifically, when the router is uncertain about its choices, MirrorMoE behaves similarly to standard routing.

Proposition 3.3 (Sufficient condition for expert preservation). Let ξmax⁡:=max⁡e∈[R]ξe\xi_{\max}:=\max_{e\in[R]}\xi_e, ξmin⁡:=min⁡e∈[R]ξe\xi_{\min}:=\min_{e\in[R]}\xi_e, and κ:=(1−ρ)/ρ\kappa:=\sqrt{(1-\rho)/\rho}. If ξmax⁡/ξmin⁡≤κ\xi_{\max}/\xi_{\min}\le\kappa, Ap=Aξ\mathcal{A}^{p}=\mathcal{A}^{\xi}. Moreover, with ξˉe\bar{\xi}_e defined in Def. 3.1, it satisfies ξˉe≥1/((K−S)κ)\bar{\xi}_e\ge1/((K-S)\kappa), ∀e∈Ap\forall e\in\mathcal{A}^{p}, i.e., no selected expert is functionally suppressed.

Another interpretation for MirrorMoE. The above discussions provide an alternative interpretation of MirrorMoE beyond exploration. In MoEs with large EE and KK, not every token may require the full expressiveness from all activated experts. If a token can be learned well using fewer experts, the capacity of remaining experts can be devoted to other tokens. MirrorMoE can therefore be viewed as an approach for tokens to adaptively determine their number of activated experts, where this adaptivity arises from the expert suppression and preservation shown in Props. 3.2 and 3.3, respectively.

Numerical Results

This section evaluates the performance of MirrorMoE. Our implementation builds on [15] and uses the Megatron-LM framework [30] with the DCLM dataset [20]. All experiments are conducted on NVIDIA H100 GPUs. Code is available at https://github.com/BingcongLi/MirrorMoE/tree/main.

Pretraining performance of MirrorMoE

We evaluate four shared-expert MoEs ranging from 100M to 2.4B total parameters, with R∈{64,128}R\in\{64,128\} experts. For each token, 6 routed experts and S=2S=2 shared experts are activated, yielding K=8K=8. Activated parameters account for 16% to 38% of the total parameters across models. The model configurations are summarized in Table 1 and detailed in App. § 7.§ 1.

ModelExpertsDepthPPL (↓) VanillaPPL (↓) MirrorMoEiteration time (ms) (↓) Vanillaiteration time (ms) (↓) MirrorMoE
Total-activated params.K/R/SK/R/S
MoE-100M-A38M8/64/21D + 8S54.7851.777871.3 ± 65.97844.4 ± 85.6
MoE-498M-A121M8/64/21D + 12S28.3127.3613550.0 ± 63.013426.7 ± 83.3
MoE-625M-A100M8/128/21D + 8S28.4627.849527.5 ± 45.49462.5 ± 61.2
MoE-2.4B-A270M8/128/21D + 15S21.1720.5025711.1 ± 176.225635.4 ± 109.4

Table 1. Pretraining performance of MirrorMoE across scales. D/S in the depth column denotes dense/sparse Transformer layers.

Perplexity. We first compare the test perplexity of pretrained MoE models in Table 1. MirrorMoE consistently achieves lower perplexity across all model scales. Notably, MoE-498M-A121M and

MoE-625M-A100M use the same hidden dimensions and differ primarily in numbers of layers and experts. Since the number of end-to-end routing paths scales as (E−SK−S)L\left(\frac{E-S}{K-S}\right)^L, where LL denotes the number of sparse layers, MoE-498M-A121M has a larger routing space under our configurations. MirrorMoE also yields a larger performance gain on this model, suggesting that shrinking the routing space is particularly beneficial when the exploration dilemma is more pronounced.

Runtime. MirrorMoE slightly reduces the per-iteration training time despite introducing an additional softmax operation in (3) at each layer. It suggests improved load balance. Note that MoE-100M-A38M is trained on two GPUs, whereas all other models are trained on four.

Downstream tasks. We further demonstrate that the gains of MirrorMoE translate into improved downstream performance on six commonsense reasoning tasks in Table 2. For the 2.4B model, MirrorMoE improves the average performance by 1.64.

ModelMethodARC-EOBQAHellaSwagPIQABoolQSIQAAvg (↑)
MoE-100M-A38MVanilla32.1126.4026.6257.5642.6634.2936.61
MoE-100M-A38MMirrorMoE34.2226.0025.7658.0042.4834.4936.82
MoE-498M-A121MVanilla39.4426.8029.8761.4358.6536.6942.15
MoE-498M-A121MMirrorMoE41.0427.8030.3364.3159.2036.9543.27
MoE-625M-A100MVanilla41.1228.2029.9761.1061.4737.3643.20
MoE-625M-A100MMirrorMoE41.3729.8030.2362.0861.1636.5943.53
MoE-2.4B-A270MVanilla45.3730.0036.6366.5954.5038.3345.23
MoE-2.4B-A270MMirrorMoE46.6332.4037.4067.9558.5338.2846.87

Table 2. Downstream performance of MoE models trained with MirrorMoE.

Comparison under enlarged routing space

Building on the same model configuration, we vary the number of activated experts as K∈{6,8,10}K \in\{6, 8, 10\}. Increasing KK enables richer expert combinations, thereby enlarging both the exploration space and model expressiveness. As shown in Figure 1, the standard shared-expert MoE is outperformed by its non-shared counterpart at large KK. In contrast, MirrorMoE mitigates the exploration dilemma, enabling the shared-expert model to consistently outperform the non-shared MoE across all tested cases. More importantly, the perplexity of MirrorMoE consistently decreases as KK increases, suggesting that the additional expressiveness enabled by larger KK is realized.

Additional experiments

We use a MoE-100M-A38M with K=8K = 8 (2 shared and 6 routed experts) for ablation study.

Hyperparameters. Figure 5 compares constant, linear, and cosine schedules for ρt\rho_t in (3), together with initial values ρ0∈{0.1,0.2,0.4}\rho_0 \in\{0.1, 0.2, 0.4\}. A cosine schedule with ρ0=0.4\rho_0 = 0.4 achieves the best performance and is therefore used in all preceding experiments.

Hyperparameters

Figure 5. Hyperparameters.

Benefit of adaptivity. We demonstrate the importance of token/layer adaptivity in MirrorMoE by comparing it with two simple approaches that also have smaller exploration space. Both begin with fewer activated experts and progressively increase their number. Specifically, we set K=round⁡(K~t)K = \operatorname{round}(\widetilde{K}_t), where K~t\widetilde{K}_t increases from 4 to 8 following either a linear or cosine schedule. Here, K~t\widetilde{K}_t includes two shared experts, and the initial value K~0=4\widetilde{K}_0 = 4 is informed by the number of effective experts in Figure 4. These baselines use the same KK for all tokens and layers and therefore lack adaptivity compared to MirrorMoE. As shown in Table 3, neither matches the performance of MirrorMoE.

MethodTest PPL (↓)
MoE54.78
Linear scheduled K~t\widetilde{K}_t54.91
Cosine scheduled K~t\widetilde{K}_t54.19
MirrorMoE51.77

Table 3. Comparison with non-adaptive schedules.

MirrorMoE is tailored to shared-expert MoEs. We additionally apply MirrorMoE to MoEs without shared experts to further validate our motivation based on the exploration dilemma induced by shared experts. As shown in Table 7 in App. § 7.6, MirrorMoE performs comparably to vanilla training. This is consistent with our analysis: without shared experts, the exploration dilemma is less pronounced, leaving less need to shrink the exploration space.

ModelExpertsDepthPPL (↓\downarrow)
Total-activated paramsK/R/SK/R/SVanillaMirrorMoE
MoE-NS-97M-A36M8/64/08S52.0151.23
MoE-NS-480M-A115M8/64/012S28.2428.20
MoE-NS-614M-A95M8/128/08S28.4228.49
MoE-NS-2.5B-A270M8/128/016S20.8520.83

Table 7. MirrorMoE has less gains when pretraining MoEs without shared experts.

Conclusion

This work identifies an exploration dilemma in MoEs that combine fine-grained expert segmentation with shared experts. This tension can prevent the additional expressiveness enabled by fine-grained segmentation from being fully realized while also diminishing the benefits of shared experts. To address this, we propose MirrorMoE, which adaptively shrinks the exploration space to better match the model’s exploration capability. MirrorMoE consistently improves performance across scales.

Future direction. Our current approach addresses the exploration dilemma by shrinking the exploration space. A promising future direction is to improve the routing strategy itself for more efficient exploration.

Additional related work

Expressiveness does not necessarily translate directly into performance. Beyond those we have discussed earlier in § 1.1, additional works similarly suggest that the expressive capacity of neural networks may not be fully utilized in practice. For example, [4] shows that many deeper layers in Llama 3.1 70B behave close to identity mappings. Since identity mappings are available “for free”, this motivates redesign of residual connections for scaling deeper [44].

MoE systems. A complementary line of work focuses on efficient MoE systems, including faster and more principled expert parallelism, fine-grained all-to-all communication, and topology-aware communication strategies; see e.g., [10, 24, 43]. These methods aim to improve hardware utilization, communication efficiency, and end-to-end throughput. MirrorMoE is largely orthogonal to these system-level optimizations and can be integrated with them.

Routing in MoEs. A broad line of work studies alternative routing mechanisms for MoEs. Hash Layers [28] use hash-based assignments, while BASE Layers [18] and expert-choice routing [45] promote balanced expert utilization through carefully designed token assignments, at the cost of not being strictly autoregressive. Clark et al. [3] study scaling laws for routed models. Other approaches replace hard top-KK selection with differentiable routing mechanisms [37, 36] (Muqeeth et al. 2023). Several works post-train or fine-tune routers to enable token-adaptive computation [41, 42], while Kang [15] uses reinforcement learning to improve routing decisions. During pretraining, noisy routing has also been explored to encourage broader expert exploration: Shazeer et al. [29] introduce Gaussian noise, whereas Nie et al. [27] use Gumbel noise. Routing has also been explicitly studied for multimodal models [39]. In contrast to approaches that encourage broader exploration, MirrorMoE adaptively suppresses experts to shrink the exploration space. The work of Liang et al. [21] studies shared experts from an inference perspective, showing that they can hinder expert offloading, partly because shared experts reduce the importance of routed experts. However, their focus is on routing behavior at inference time, whereas we study how shared experts affect routing throughout pretraining.

Experimental details

Training details

The model configurations for the shared-expert MoE baseline and MirrorMoE are summarized in Table 4. Following Kang et al. [15], we adopt a Llama-style MoE architecture. We also follow DeepSeekMoE [5, 23] by using a dense FFN in the first Transformer layer, so that the first sparse layer receives sufficiently developed token representations for routing. MoE-100M-A38M is trained on two H100 GPUs, while all other models are trained on four. DCLM dataset [20] is adopted. We use AdamW for optimization. The learning rate is selected from {1,3,5}×10−4\{1, 3, 5\} \times10^{-4} based on performance after 500 training steps on a held-out validation set. We adopt a warmup-stable-decay (WSD) learning-rate schedule. The global batch size is 1024, with gradient accumulation used to reduce memory consumption.

ParameterMoE-100M-A38MMoE-498M-A121MMoE-625M-A100MMoE-2.4B-A270M
Dense / MoE layers1 / 81 / 121 / 81 / 15
Layer layout1D + 8S1D + 12S1D + 8S1D + 15S
Hidden size (dmodeld_{\mathrm{model}})256512512768
Dense FFN hidden1368273627363648
MoE FFN hidden (per expert)176352352512
Shared expert FFN (2×2\times)3527047041024
# Routed experts6464128128
Top-kk (activated)6666
Sequence length2048204820482048
Load balancing0.10.10.10.1
# Training tokens4.4B7.6B7.6B12.8B

Table 4. Model configurations used in our experiments.

The model analyzed in § 2.2 is MoE-498M-A121M.

For MoEs without shared experts, we convert the shared experts into routed experts to preserve the same total parameter count. Due to implementation constraints in Megatron-LM, this requires a different expert layout across GPUs, i.e., a different expert-parallelism configuration, and consequently a different number of GPUs. Specifically, Megatron-LM requires the number of routed experts to be divisible by the expert-parallelism size. Therefore, configurations with 66 or 130 routed experts use three or five GPUs, respectively. The global batch size consequently differs across configurations, while the total number of training tokens is kept approximately the same to ensure a fair comparison.

Router Variance under Different Levels of Gumbel Noise

When evaluating RouterVar⁡l\operatorname{RouterVar}_{l}, we replace deterministic top-KK (for non-shared MoEs) or top-(K−S)(K-S) (for shared-expert MoEs) routing with stochastic sampling from the learned routing distribution. Such sampling is equivalent to perturbing the routing logits with unit-scale Gumbel noise (β=1\beta= 1) and then applying top-KK selection [16, 27]. We further extend this evaluation by defining RouterVar⁡lβ\operatorname{RouterVar}_{l}^{\beta}, where the routing logits are perturbed by Gumbel noise parameterized by other β\betas. We consider β∈{0.5,2}\beta\in\{0.5, 2\} and report the resulting RouterVar⁡lβ\operatorname{RouterVar}_{l}^{\beta} for MoE-498M-A121M model in Figure 6. The same trend persists across these perturbation levels, further showing that shared experts consistently reduce routing-induced variance.

(a) (a) Gumbel noise with β=0.5\beta= 0.5

(b) (b) Gumbel noise with β=2\beta= 2

Figure 6. Router variance under different levels of Gumbel perturbation.

Increasing Exploration during Pretraining Can Be Tricky

An alternative way to address the exploration dilemma is to encourage greater exploration during pretraining. However, this can be challenging for MoEs because stochastic routing may introduce unstable router dynamics and increased training variance. To examine this tradeoff, we consider two alternative routing strategies under K=8K = 8. First, we replace deterministic top-(K−S)(K-S) routing with stochastic sampling of K−SK-S experts, denoted as Sto-(K−S)(K-S) in Table 5. Second, we deterministically select the top-2 experts and stochastically sample the remaining K−S−2K-S-2 experts, denoted as Top-2 + Sto-(K−S−2)(K-S-2).

Top-(K−S)(K-S)Sto-(K−S)(K-S)Top-2 with Sto-(K−S−2)(K-S-2)
PPL54.7855.7455.38

Table 5. Intrinsic difficulty of increasing exploration

As shown in Table 5, on a MoE-100M-A38M model, deterministic top-(K−S)(K-S) routing performs best, followed by Top-2+Sto-(K−S−2)(K-S-2), while fully stochastic routing performs worst. These results suggest that the additional instability introduced by exploration can outweigh its potential benefits during pretraining. For this reason, MirrorMoE takes the opposite approach by shrinking the exploration space.

Layer-wise effective experts

Extending Figure 4, Figure 7 reports the layer-wise number of effective experts, averaged over tokens when training an MoE-100M-A38M model. For example, when K=8K = 8 in Figure 7b, Layers 1 and 2 maintain roughly three effective experts during the first half of training, whereas Layer 3 suppresses more aggressively and approaches a single effective expert. In contrast, Layers 7 and 8 are more conservative, retaining around four effective experts. This confirms that MirrorMoE shrinks the exploration space in a layer-adaptive manner.

Figure 7. Effective experts vs. iterations plot by layers.

On the Load-Balancing Loss

We use an MoE-100M-A38M to compare the standard load-balancing loss with our modified loss in (6). The two objectives differ in whether they balance the mirror routing probabilities {pl,e}e\{p_{l,e}\}_{e} or the original routing probabilities {ξl,e}e\{\xi_{l,e}\}_{e}. As shown in Table 6, balancing {ξl,e}e\{\xi_{l,e}\}_{e} reduces perplexity, at the cost of a slight increase in per-iteration training time. Since our primary objective is model performance, we adopt the modified load-balancing loss throughout our experiments.

vanilla balancing lossour load balancing loss (6)
PPL52.9451.77
runtime7727.1±91.87727.1 \pm91.87844.4±85.67844.4 \pm85.6

Table 6. Comparison of different load balancing loss for MirrorMoE

MirrorMoE performance degrades for MoEs without shared experts

We further evaluate MirrorMoE on MoEs without shared experts. For ease of parallelization, we use E∈{64,128}E \in\{64, 128\} and K=8K = 8, with slightly adjusted model depths. These results are therefore not directly comparable to those in Table 1. As shown in Table 7, without shared experts, MirrorMoE with ρ0=0.4\rho_0 = 0.4 and a cosine schedule performs comparably to standard training, with no significant improvement. This result is consistent with our motivation: when shared experts are absent, the exploration dilemma is less pronounced, leaving less need to shrink the exploration space.

Comparison with top-pp routing

We additionally compare MirrorMoE with another adaptive routing approach, namely top-pp routing [9]. Top-pp routing activates the smallest set of experts whose cumulative probability exceeds pp, where p∈(0,1)p \in(0, 1) is a threshold parameter. Intuitively, it also adapts the number of activated experts over training. Early in training, when routing probabilities are relatively uniform, more experts are required to exceed the threshold pp. As routing becomes more concentrated, fewer experts are sufficient.

However, this adaptivity makes a fair comparison challenging. In our experiments, we observe that the average number of activated experts per token decreases over the course of training. As a result, top-pp routing uses different amounts of activated computation at different training stages, making direct comparison with MirrorMoE and the baseline difficult, as both use a fixed number of activated experts. Table 8 reports the number of activated experts (including shared ones) averaged over layers and tokens for MoE-100M-A38M with K=8K = 8 and S=2S = 2.

MethodPPL (↓\downarrow)# activated experts at first iteration# activated experts at last iteration
Vanilla54.7888
MirrorMoE51.7788
Top-pp, p=0.4p = 0.455.6418.656.73
Top-pp, p=0.6p = 0.654.0929.4610.79

Table 8. Comparison with top-pp routing. Activated experts are averaged over layers and tokens for top-pp routing.

In terms of training performance, we use entropy regularization with a coefficient of 10−410^{-4} for top-pp routing. As shown in Table 8, even with p=0.6p = 0.6, which activates more experts on average, top-pp routing still underperforms MirrorMoE.

Missing proofs

Missing proofs

ExpertVarl_l upper-bounds routing-induced changes

Consider Z(hl)=∑j∈Al(hl)pl,j(hl)Z(h_l) = \sum_{j \in\mathcal{A}_l(h_l)} p_{l,j}(h_l). To see that ExpertVarl_l bounds the relative change induced by any routing policies from above, let h~l+1(α)=∑e=1Rαeh~l+1,e\tilde{h}_{l+1}(\boldsymbol{\alpha}) = \sum_{e=1}^{R} \alpha_e \tilde{h}_{l+1,e} where α∈RR\boldsymbol{\alpha} \in\mathbb{R}^{R} is any routing probability with α≥0\boldsymbol{\alpha} \ge0, and 1⊤α=1\mathbf{1}^{\top}\boldsymbol{\alpha} = 1. One can easily see through convexity of ∥⋅∥2\lVert\cdot\rVert^2 that

∥h~l+1(α)−hl+1∥2∥hl+1∥2≤∑e=1Rαe∥h~l+1,e−hl+1∥2∥hl+1∥2≤∑e=1R∥h~l+1,e−hl+1∥2∥hl+1∥2=R⋅ExpertVar⁡l.\begin{aligned} \frac{\lVert\tilde{h}_{l+1}(\boldsymbol{\alpha}) - h_{l+1} \rVert^2}{\lVert h_{l+1} \rVert^2} \le\sum_{e=1}^{R} \alpha_e \frac{\lVert\tilde{h}_{l+1,e} - h_{l+1} \rVert^2}{\lVert h_{l+1} \rVert^2} \\ &\le\sum_{e=1}^{R} \frac{\lVert\tilde{h}_{l+1,e} - h_{l+1} \rVert^2}{\lVert h_{l+1} \rVert^2} = R \cdot\operatorname{ExpertVar}_l. \end{aligned}

Proofs of Prop. 3.2

Proof. Recall that in MirrorMoE, one can write pe=(1−ρ)ξe+ρζep_e = (1-\rho)\xi_e + \rho\zeta_e. Using the detailed expression of ξe\xi_e and ζe\zeta_e in (3), one can rewrite ζe=1/ξe∑r=1R1/ξr\zeta_e = \frac{1/\xi_e}{\sum_{r=1}^{R}1/\xi_r}. Given that emin⁡:=arg min⁡e∈[R]ξee_{\min} := \operatorname*{arg\,min}_{e \in[R]} \xi_e with ξemin⁡=ϵ\xi_{e_{\min}} = \epsilon, we have that

∑e=1R1ξe≤Rξemin⁡.\sum_{e=1}^{R} \frac{1}{\xi_e} \le\frac{R}{\xi_{e_{\min}}}.

With j:=arg min⁡e∈Aξξej := \operatorname*{arg\,min}_{e \in\mathcal{A}_{\xi}} \xi_e, it follows that

ζemin⁡−ζj=1/ξemin⁡−1/ξj∑r=1R1/ξr≥1R(1−ξemin⁡ξj)=1R(1−ϵξj).\zeta_{e_{\min}} - \zeta_j = \frac{1/\xi_{e_{\min}} - 1/\xi_j}{\sum_{r=1}^{R}1/\xi_r} \ge\frac{1}{R}\left(1-\frac{\xi_{e_{\min}}}{\xi_j}\right) = \frac{1}{R}\left(1-\frac{\epsilon}{\xi_j}\right).

Using the inequality above, we have that

pemin⁡−pj=−(1−ρ)(ξj−ξemin⁡)+ρ(ζemin⁡−ζj)≥−(1−ρ)ξj+ρR(1−ϵξj).\begin{aligned} p_{e_{\min}} - p_j = -(1-\rho)(\xi_j-\xi_{e_{\min}}) + \rho(\zeta_{e_{\min}}-\zeta_j) \\ &\ge-(1-\rho)\xi_j + \frac{\rho}{R}\left(1-\frac{\epsilon}{\xi_j}\right). \end{aligned}

The right-hand side is positive whenever

ρ>RξjRξj+1−ϵ/ξj=cc+1−ϵR/c\rho> \frac{R\xi_j}{R\xi_j+1-\epsilon/\xi_j} = \frac{c}{c+1-\epsilon R/c}

where the last equation comes from ξj=c/R\xi_j=c/R. As ϵ→0\epsilon\to0, we get the condition for ρ\rho in the proposition.

So far we have proved pemin⁡≥pjp_{e_{\min}}\ge p_j. To complete the proof, we will show that emin⁡∈Ape_{\min}\in\mathcal{A}^{p}, i.e., emin⁡e_{\min} is indeed activated in MirrorMoE. Because j:=arg⁡min⁡e∈Aξξej:=\arg\min_{e\in\mathcal{A}^{\xi}}\xi_e, every non-activated expert e∉Aξe\notin\mathcal{A}^{\xi} satisfies ξemin⁡≤ξe≤ξj\xi_{e_{\min}}\le\xi_e\le\xi_j. Hence, there exists some λe∈[0,1]\lambda_e\in[0,1] such that

ξe=λeξemin⁡+(1−λe)ξj.\xi_e=\lambda_e\xi_{e_{\min}}+(1-\lambda_e)\xi_j.

Since f(x)=1/xf(x)=1/x is convex on R++\mathbb{R}_{++}, we have that

1ξe≤λeξemin⁡+1−λeξj.\frac{1}{\xi_e}\le\frac{\lambda_e}{\xi_{e_{\min}}}+\frac{1-\lambda_e}{\xi_j}.

Denote C=(∑e=1R1ξe)−1C=\left(\sum_{e=1}^{R}\frac{1}{\xi_e}\right)^{-1}. It then follows that

pe=(1−ρ)ξe+ρCξe≤λe((1−ρ)ξemin⁡+ρCξemin⁡)+(1−λe)((1−ρ)ξj+ρCξj)=λepemin⁡+(1−λe)pj≤pemin⁡, ∀e∉Aξ\begin{aligned} p_e=(1-\rho)\xi_e+\rho\frac{C}{\xi_e} \\ &\le\lambda_e\left((1-\rho)\xi_{e_{\min}}+\frac{\rho C}{\xi_{e_{\min}}}\right)+(1-\lambda_e)\left((1-\rho)\xi_j+\frac{\rho C}{\xi_j}\right) \\ &=\lambda_e p_{e_{\min}}+(1-\lambda_e)p_j \\ &\le p_{e_{\min}},\ \forall e\notin\mathcal{A}^{\xi} \end{aligned}

where the final inequality follows from pemin⁡>pjp_{e_{\min}}>p_j. Combining pemin⁡≥pjp_{e_{\min}}\ge p_j and pemin⁡≥pe,∀e∉Aξp_{e_{\min}}\ge p_e,\forall e\notin\mathcal{A}^{\xi}, it can be seen that emin⁡e_{\min} has to be activated in MirrorMoE, i.e., emin⁡∈Ape_{\min}\in\mathcal{A}^{p}.

Finally, since emin⁡∈Ape_{\min}\in\mathcal{A}^{p}, according to the aggregation in (5), ξemin⁡=ϵ→0\xi_{e_{\min}}=\epsilon\to0 ensures that emin⁡e_{\min} is functionally suppressed. The proof is thus completed. □\square

Proof of Prop. 3.3

Proof. Let C=(∑r=1R1ξr)−1C=\left(\sum_{r=1}^{R}\frac{1}{\xi_r}\right)^{-1}. Recall from (3), pe=(1−ρ)ξe+ρζep_e=(1-\rho)\xi_e+\rho\zeta_e and ζe=Cξe\zeta_e=\frac{C}{\xi_e}.

We first show that C≤1R2C\le\frac{1}{R^2} via Cauchy-Schwarz inequality. To see this, we have

(∑r=1Rξr)(∑r=1R1ξr)≥R2.\left(\sum_{r=1}^{R}\xi_r\right)\left(\sum_{r=1}^{R}\frac{1}{\xi_r}\right)\ge R^2.

It is easy to see C≤1R2C\le\frac{1}{R^2} once noticing ∑rξr=1\sum_r\xi_r=1.

Now, consider any two experts ii and jj satisfying ξi>ξj\xi_i>\xi_j. We have

pi−pj=(1−ρ)(ξi−ξj)+ρC(1ξi−1ξj)=(ξi−ξj)[(1−ρ)−ρCξiξj].\begin{aligned} p_i-p_j=(1-\rho)(\xi_i-\xi_j)+\rho C\left(\frac{1}{\xi_i}-\frac{1}{\xi_j}\right) \\ &=(\xi_i-\xi_j)\left[(1-\rho)-\rho\frac{C}{\xi_i\xi_j}\right]. \end{aligned}

Since ξiξj≥ξmin⁡2\xi_i\xi_j\ge\xi_{\min}^2 and ξmax⁡≥1/R\xi_{\max}\ge1/R, it can be seen that

Cξiξj≤1R2ξiξj≤1R2ξmin⁡2≤(ξmax⁡ξmin⁡)2<κ2=1−ρρ.\frac{C}{\xi_i\xi_j}\le\frac{1}{R^2\xi_i\xi_j}\le\frac{1}{R^2\xi_{\min}^2}\le\left(\frac{\xi_{\max}}{\xi_{\min}}\right)^2<\kappa^2=\frac{1-\rho}{\rho}.

Combining the above two equations, it is straightforward to see ξi>ξj⟹pi>pj\xi_i>\xi_j\Longrightarrow p_i>p_j for all ii and jj. Thus, it can be seen that the ordering of experts are same if ranked with {ξe}\{\xi_e\} and {pe}\{p_e\}. This indicates the top-(K−S)(K-S) aggregation will choose the same set of experts, i.e., Aξ=Ap\mathcal{A}^{\xi}=\mathcal{A}^{p}.

It remains to show that none of the selected experts has a vanishing score. For any selected expert e∈Ape \in\mathcal{A}^{p},

ξˉe=ξe∑r∈Apξr≥ξmin⁡(K−S)ξmax⁡>1(K−S)κ.\bar{\xi}_{e} = \frac{\xi_{e}}{\sum_{r \in\mathcal{A}^{p}} \xi_{r}} \ge\frac{\xi_{\min}}{(K-S)\xi_{\max}} > \frac{1}{(K-S)\kappa}.

Thus, every selected expert has a non-vanishing aggregation weight, which rules out functional path pruning.

References

  1. [1]Marah Abdin, Jyoti Aneja, Hany Awadalla, Ahmed Awadallah, Ammar Ahmad Awan, Nguyen Bach, Amit Bahree, Arash Bakhtiari, Jianmin Bao, Harkirat Behl, et al. Phi-3 technical report: A highly capable language model locally on your phone. arXiv e-prints, pages arXiv–2404, 2024.arxiv.org/abs/2404.14219
  2. [2]Sandhini Agarwal, Lama Ahmad, Jason Ai, Sam Altman, Andy Applebaum, Edwin Arbus, Rahul K Arora, Yu Bai, Bowen Baker, Haiming Bao, et al. gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925, 2025.arxiv.org/abs/2508.10925
  3. [3]Aidan Clark, Diego de Las Casas, Aurelia Guy, Arthur Mensch, Michela Paganini, Jordan Hoffmann, Bogdan Damoc, Blake Hechtman, Trevor Cai, Sebastian Borgeaud, et al. Unified scaling laws for routed language models. In International conference on machine learning, pages 4057–4086. PMLR, 2022.arxiv.org/abs/2202.01169
  4. [4]Róbert Csordás, Christopher D Manning, and Christopher Potts. Do language models use their depth efficiently? arXiv preprint arXiv:2505.13898, 2025.arxiv.org/abs/2505.13898
  5. [5]Damai Dai, Chengqi Deng, Chenggang Zhao, RX Xu, Huazuo Gao, Deli Chen, Jiashi Li, Wangding Zeng, Xingkai Yu, Yu Wu, et al. Deepseekmoe: Towards ultimate expert specialization in mixture-of-experts language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1280–1297, 2024.
  6. [6]Nan Du, Yanping Huang, Andrew M Dai, Simon Tong, Dmitry Lepikhin, Yuanzhong Xu, Maxim Krikun, Yanqi Zhou, Adams Wei Yu, Orhan Firat, et al. Glam: Efficient scaling of language models with mixture-of-experts. In International conference on machine learning, pages 5547–5569. PMLR, 2022.arxiv.org/abs/2112.06905
  7. [7]Venmugil Elango, Nidhi Bhatia, Roger Waleffe, Rasoul Shafipour, Tomer Asida, Abhinav Khattar, Nave Assaf, Maximilian Golub, Joey Guman, Tiyasa Mitra, et al. Latentmoe: Toward optimal accuracy per flop and parameter in mixture of experts. arXiv preprint arXiv:2601.18089, 2026.
  8. [8]William Fedus, Barret Zoph, and Noam Shazeer. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120):1–39, 2022.
  9. [9]Quzhe Huang, Zhenwei An, Nan Zhuang, Mingxu Tao, Chen Zhang, Yang Jin, Kun Xu, Liwei Chen, Songfang Huang, and Yansong Feng. Harder task needs more experts: Dynamic routing in moe models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12883–12895, 2024.
  10. [10]Changho Hwang, Wei Cui, Yifan Xiong, Ziyue Yang, Ze Liu, Han Hu, Zilong Wang, Rafael Salas, Jithin Jose, Prabhat Ram, et al. Tutel: Adaptive mixture-of-experts at scale. Proceedings of Machine Learning and Systems, 5:269–287, 2023.arxiv.org/abs/2206.03382
  11. [11]Nandan Kumar Jha and Brandon Reagen. Same architecture, different capacity: Optimizer-induced spectral scaling laws. arXiv preprint arXiv:2605.21803, 2026.arxiv.org/abs/2605.21803
  12. [12]Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. Mixtral of experts. arXiv preprint arXiv:2401.04088, 2024.arxiv.org/abs/2401.04088
  13. [13]Peng Jin, Bo Zhu, Li Yuan, and Shuicheng Yan. Moe++: Accelerating mixture-of-experts methods with zero-computation experts. arXiv preprint arXiv:2410.07348, 2024.arxiv.org/abs/2410.07348
  14. [15]Hao Kang, Zichun Yu, and Chenyan Xiong. Flame-moe: A transparent end-to-end research platform for mixture-of-experts language models. arXiv preprint arXiv:2505.20225, 2025.
  15. [16]Wouter Kool, Herke Van Hoof, and Max Welling. Stochastic beams and where to find them: The gumbel-top-k trick for sampling sequences without replacement. pages 3499–3508. PMLR, 2019.arxiv.org/abs/1903.06059
  16. [17]Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan Firat, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. Gshard: Scaling giant models with conditional computation and automatic sharding. arXiv preprint arXiv:2006.16668, 2020.arxiv.org/abs/2006.16668
  17. [18]Mike Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal, and Luke Zettlemoyer. Base layers: Simplifying training of large, sparse models. In International Conference on Machine Learning, pages 6265–6274. PMLR, 2021.arxiv.org/abs/2103.16716
  18. [19]Houyi Li, Ka Man Lo, Shijie Xuyang, Ziqi Wang, Wenzhen Zheng, Haocheng Zhang, Zhao Li, Shuigeng Zhou, Xiangyu Zhang, and Daxin Jiang. Mixtrue-of-experts can surpass dense llms under strictly equal resource. In The Fourteenth International Conference on Learning Representations, 2026.arxiv.org/abs/2506.12119
  19. [20]Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Gadre, Hritik Bansal, Etash Guha, Sedrick Keh, Kushal Arora, et al. Datacomp-lm: In search of the next generation of training sets for language models. Advances in Neural Information Processing Systems, 37:14200–14282, 2024.arxiv.org/abs/2406.11794
  20. [21]Jingcong Liang, Siyuan Wang, Miren Tian, Yitong Li, Duyu Tang, et al. Not all models suit expert offloading: On local routing consistency of mixture-of-expert models. In International Conference on Learning Representations, volume 2026, pages 64993–65021, 2026.arxiv.org/abs/2505.16056
  21. [22]Kai Lion, Liang Zhang, Bingcong Li, and Niao He. Polar: Polar-decomposed low-rank adapter representation. arXiv preprint arXiv:2506.03133, 2025.arxiv.org/abs/2506.03133
  22. [23]Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Boqiao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, et al. Deepseek-v3 technical report. arXiv preprint arXiv:2412.19437, 2024.arxiv.org/abs/2412.19437
  23. [24]Xinyi Liu, Yujie Wang, Fangcheng Fu, Xupeng Miao, Shenhan Zhu, Xiaonan Nie, and Bin Cui. NetMoE: Accelerating moe training through dynamic sample placement. In The Thirteenth International Conference on Learning Representations, 2025.
  24. [25]Niklas Muennighoff, Luca Soldaini, Dirk Groeneveld, Kyle Lo, Jacob Morrison, Sewon Min, Weijia Shi, Pete Walsh, Oyvind Tafjord, Nathan Lambert, et al. Olmoe: Open mixture-of-experts language models. In International Conference on Learning Representations, volume 2025, pages 62061–62121, 2025.arxiv.org/abs/2409.02060
  25. [27]Xiaonan Nie, Xupeng Miao, Shijie Cao, Lingxiao Ma, Qibin Liu, Jilong Xue, Youshan Miao, Yi Liu, Zhi Yang, and Bin Cui. EvoMoE: An evolutional mixture-of-experts training framework via dense-to-sparse gate. arXiv preprint arXiv:2112.14397, 2021.arxiv.org/abs/2112.14397
  26. [28]Stephen Roller, Sainbayar Sukhbaatar, Jason Weston, et al. Hash layers for large sparse models. advances in neural information processing systems, 34:17555–17566, 2021.arxiv.org/abs/2106.04426
  27. [29]Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017.arxiv.org/abs/1701.06538
  28. [30]Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053, 2019.arxiv.org/abs/1909.08053
  29. [31]Team-Gemma. Gemma 4 technical report. arXiv preprint arXiv:2607.02770, 2026.arxiv.org/abs/2607.02770
  30. [32]Team-Kimi. Kimi k2: Open agentic intelligence. arXiv preprint arXiv:2507.20534, 2025.arxiv.org/abs/2507.20534
  31. [33]Team-Kimi. Kimi k3: Open frontier intelligence. 2026. URL https://www.kimi.com/blog/kimi-k3.arxiv.org/abs/2607.24653
  32. [34]Team-Owen. Owen1.5-moe: Matching 7b model performance with 1/3 activated parameters", February 2024a. URL https://qwenlm.github.io/blog/qwen-moe/.
  33. [35]Team-Owen. Qwen1.5-moe: Matching 7b model performance with 1/3 activated parameters”. URL https://qwenlm.github.io/blog/qwen-moe, 2024b.
  34. [36]Amirhossein Vahidi, Hesam Asadollahzadeh, Navid Akhavan Attar, Marie Moullet, Kevin Ly, Xingyi Yang, and Mohammad Lotfollahi. Dirmoe: Dirichlet-routed mixture of experts. arXiv preprint arXiv:2602.09001, 2026.arxiv.org/abs/2602.09001
  35. [37]Ziteng Wang, Jun Zhu, and Jianfei Chen. Remoe: Fully differentiable mixture-of-experts with relu routing. In International Conference on Learning Representations, volume 2025, pages 59486–59507, 2025.arxiv.org/abs/2412.14711
  36. [38]Yudong Wei, Liang Zhang, Bingcong Li, and Niao He. On the benefits of weight normalization for overparameterized matrix sensing. arXiv preprint arXiv:2510.01175, 2025a.arxiv.org/abs/2510.01175
  37. [39]Yujie Wei, Shiwei Zhang, Hangjie Yuan, Yujin Han, Zhekai Chen, Jiayu Wang, Difan Zou, Xihui Liu, Yingya Zhang, Yu Liu, et al. Routing matters in moe: Scaling diffusion transformers with explicit routing guidance. arXiv preprint arXiv:2510.24711, 2025b.arxiv.org/abs/2510.24711
  38. [40]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengeng Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
  39. [41]Tongtian Yue, Longteng Guo, Jie Cheng, Xuange Gao, Hua Huang, and Jing Liu. Ada-K routing: Boosting the efficiency of moe-based llms. In The Thirteenth International Conference on Learning Representations, 2024.arxiv.org/abs/2410.10456
  40. [42]Zihao Zeng, Yibo Miao, Hongcheng Gao, Hao Zhang, and Zhijie Deng. Adamoe: Token-adaptive routing with null experts for mixture-of-experts language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6223–6235, 2024.
  41. [43]Shulai Zhang, Ningxin Zheng, Haibin Lin, Ziheng Jiang, Wenlei Bao, Chengquan Jiang, Qi Hou, Weihao Cui, Size Zheng, Li-Wen Chang, et al. Comet: Fine-grained computation-communication overlapping for mixture-of-experts. Proceedings of Machine Learning and Systems, 7, 2025.
  42. [44]Yilang Zhang, Bingcong Li, Niao He, and Georgios B Giannakis. Ancre: Adaptive neural connection reassignment for efficient depth scaling. arXiv preprint arXiv:2602.09009, 2026.
  43. [45]Yanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du, Yanping Huang, Vincent Zhao, Andrew M Dai, Quoc V Le, James Laudon, et al. Mixture-of-experts with expert choice routing. Advances in Neural Information Processing Systems, 35:7103–7114, 2022.arxiv.org/abs/2202.09368
  44. [46]Barret Zoph, Irwan Bello, Sameer Kumar, Nan Du, Yanping Huang, Jeff Dean, Noam Shazeer, and William Fedus. St-moe: Designing stable and transferable sparse expert models. arXiv preprint arXiv:2202.08906, 2022.arxiv.org/abs/2202.08906

Paper details

vlnc:W_xrqsvrn2
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents