Summary (Overview)

  • DuoMI (Dual Mutual Information Regularization) is a novel training method for looped Mixture-of-Experts (MoE) Transformers that regulates how shared expert parameters are reused across computational rounds.
  • The method introduces two complementary mutual information constraints: round-level marginal mutual information G=I(R;E)G = I(R; E) to limit dependence of aggregate expert usage on the invocation round, and token-level conditional mutual information D=I(R;E∣X)D = I(R; E \mid X) to control the average degree of cross-round routing change for individual tokens.
  • DuoMI adds no model parameters and leaves sparse Top-k routing unchanged at inference; it computes differentiable penalties from soft routing distributions during training only.
  • On a looped OLMoE backbone with shared expert pools across paired adjacent layers, DuoMI improves the average score across 15 downstream tasks from 50.08% to 51.82% (+1.74 percentage points over the looped baseline), exceeding even the unshared OLMoE baseline (51.15%).
  • Ablation studies confirm that both constraints contribute independently, and that a two-sided interval constraint on token-level routing change (neither too little nor too much) is essential for optimal performance.

Introduction and Theoretical Foundation

Background and Motivation

The paper addresses a fundamental challenge in combining two architectural innovations for efficient language modeling:

  1. Mixture-of-Experts (MoE) models expand parameter capacity while controlling per-token computation by activating only a subset of experts (Shazeer et al., 2017; Lepikhin et al., 2021).
  2. Looped Transformers repeatedly invoke shared parameters at different depths, enabling multiple rounds of representation transformation with fewer independent parameters (Dehghani et al., 2019; Geiping et al., 2025).

When combining these approaches, a central challenge emerges: how should shared experts be used across rounds? Even when the same expert pool is invoked in both rounds, routers may develop different selection preferences. The paper identifies two distinct statistical levels of cross-round routing:

  • Round-level: The two rounds may favor different expert subsets, effectively partitioning the shared pool by invocation round.
  • Token-level: Even with identical aggregate distributions, individual tokens may retain, partially overlap, or completely change their expert selections across rounds.

Key Theoretical Insight

The paper demonstrates through illustrative examples (Figure 1) that these two levels are statistically independent:

  • Figure 1(a): G=0G = 0, D=0.5D = 0.5 — identical aggregate distributions, each token retains half its experts
  • Figure 1(b): G=0G = 0, D=0D = 0 — identical aggregate distributions, complete retention
  • Figure 1(c): G=0G = 0, D=1D = 1 — identical aggregate distributions, complete replacement
  • Figure 1(d): G=0.5G = 0.5, D=0.5D = 0.5 — different aggregate distributions, each token retains half

This motivates the need for dual constraints — controlling aggregate reuse alone does not determine token-level behavior, and vice versa.

Central Research Question

How can we promote aggregate expert reuse across rounds while preserving a moderate degree of expert selection change for individual tokens?


Methodology

Problem Formulation

Consider a Transformer with MM shared expert pools, each containing KK experts, invoked at two distinct layers (rounds r∈{1,2}r \in \{1, 2\}). Expert FFN parameters are shared between rounds, while attention, router, and normalization modules remain independently parameterized.

Statistical Framework

For a statistical group bb with NbN_b valid token positions, define a uniform distribution over selected experts:

qj,r(e∣x)=1{e∈Sj,r(x)}k,e∈{1,…,K}q_{j,r}(e \mid x) = \frac{\mathbf{1}\{e \in S_{j,r}(x)\}}{k}, \quad e \in \{1, \dots, K\}

where Sj,r(x)S_{j,r}(x) is the Top-kk expert set for pool jj in round rr. The empirical joint distribution is:

Pb,j(X=xi,R=r,E=e)=12Nbqj,r(e∣xi)P_{b,j}(X = x_i, R = r, E = e) = \frac{1}{2N_b} q_{j,r}(e \mid x_i)

Round-Level Marginal Mutual Information

The average expert usage distribution in round rr:

qˉb,j,r(e)=1Nb∑i=1Nbqj,r(e∣xi)\bar{q}_{b,j,r}(e) = \frac{1}{N_b} \sum_{i=1}^{N_b} q_{j,r}(e \mid x_i)

The marginal mutual information between round and expert variables:

Gb,j=I(R;E)=JSD2(qˉb,j,1,qˉb,j,2)G_{b,j} = I(R; E) = \mathrm{JSD}_2\left(\bar{q}_{b,j,1}, \bar{q}_{b,j,2}\right)

where JSD2\mathrm{JSD}_2 is the Jensen–Shannon divergence (base 2 logarithms):

JSD2(a,c)=12KL2(a∥m)+12KL2(c∥m),m=(a+c)/2\mathrm{JSD}_2(a, c) = \frac{1}{2}\mathrm{KL}_2(a \| m) + \frac{1}{2}\mathrm{KL}_2(c \| m), \quad m = (a+c)/2

Interpretation: Small Gb,jG_{b,j} indicates similar aggregate expert usage across rounds; large values indicate round-dependent preferences (partitioning of the shared pool).

Token-Level Conditional Mutual Information

Db,j=I(R;E∣X)=1Nb∑i=1NbJSD2(qj,1(⋅∣xi),qj,2(⋅∣xi))D_{b,j} = I(R; E \mid X) = \frac{1}{N_b} \sum_{i=1}^{N_b} \mathrm{JSD}_2\left(q_{j,1}(\cdot \mid x_i), q_{j,2}(\cdot \mid x_i)\right)

Key property: Under uniform Top-k distributions, Db,jD_{b,j} equals the average fraction of selected experts replaced across rounds:

Db,j=1−1Nb∑i=1Nb∣Sj,1(xi)∩Sj,2(xi)∣kD_{b,j} = 1 - \frac{1}{N_b} \sum_{i=1}^{N_b} \frac{|S_{j,1}(x_i) \cap S_{j,2}(x_i)|}{k}

Theoretical Relationship

The two quantities satisfy:

0≤Gb,j≤Db,j≤10 \leq G_{b,j} \leq D_{b,j} \leq 1

with the chain rule giving:

Db,j−Gb,j=I(R;X∣E)≥0D_{b,j} - G_{b,j} = I(R; X \mid E) \geq 0

Despite this relationship, small GG does not imply small DD (e.g., G=0G = 0 with D=1/2D = 1/2 is possible).

Differentiable Surrogates

Hard Top-k statistics have zero gradients almost everywhere. DuoMI uses softmax-based surrogates with temperature τ\tau:

pj,r(e∣x)=exp⁡(zj,r,e(x)/τ)∑e′=1Kexp⁡(zj,r,e′(x)/τ),τ>0p_{j,r}(e \mid x) = \frac{\exp(z_{j,r,e}(x) / \tau)}{\sum_{e'=1}^{K} \exp(z_{j,r,e'}(x) / \tau)}, \qquad \tau > 0

with partial derivatives:

∂pj,r(e∣x)∂zj,r,e′(x)=1τpj,r(e∣x)(1{e=e′}−pj,r(e′∣x))\frac{\partial p_{j,r}(e \mid x)}{\partial z_{j,r,e'}(x)} = \frac{1}{\tau} p_{j,r}(e \mid x)\left(\mathbf{1}\{e = e'\} - p_{j,r}(e' \mid x)\right)

Soft statistics:

G~b,j=JSD2(pˉb,j,1,pˉb,j,2),D~b,j=1Nb∑i=1NbJSD2(pj,1(⋅∣xi),pj,2(⋅∣xi))\widetilde{G}_{b,j} = \mathrm{JSD}_2\left(\bar{p}_{b,j,1}, \bar{p}_{b,j,2}\right), \quad \widetilde{D}_{b,j} = \frac{1}{N_b} \sum_{i=1}^{N_b} \mathrm{JSD}_2\left(p_{j,1}(\cdot|x_i), p_{j,2}(\cdot|x_i)\right)

Regularization Penalty

Φb,j=λG[G~b,j−g~max⁡]+2+λL[d~min⁡−D~b,j]+2+λU[D~b,j−d~max⁡]+2\Phi_{b,j} = \lambda_G\left[\widetilde{G}_{b,j} - \widetilde{g}_{\max}\right]_+^2 + \lambda_L\left[\widetilde{d}_{\min} - \widetilde{D}_{b,j}\right]_+^2 + \lambda_U\left[\widetilde{D}_{b,j} - \widetilde{d}_{\max}\right]_+^2

where [a]+=max⁡(a,0)[a]_+ = \max(a, 0) and:

  • First term: penalizes excessive aggregate usage differences (upper bound on GG)
  • Second term: penalizes insufficient token-level routing change (lower bound on DD)
  • Third term: penalizes excessive token-level routing change (upper bound on DD)

Training Objective

Lt=Lbase,t+wtBtM∑b∈Gt∑j=1MΦb,j\mathcal{L}_t = \mathcal{L}_{\text{base},t} + \frac{w_t}{B_t M} \sum_{b \in \mathcal{G}_t} \sum_{j=1}^{M} \Phi_{b,j}

where:

Lbase,t=LLM,t+αbalLbal,t+αzLz,t\mathcal{L}_{\text{base},t} = \mathcal{L}_{\text{LM},t} + \alpha_{\text{bal}}\mathcal{L}_{\text{bal},t} + \alpha_z \mathcal{L}_{z,t}

The base objective (language modeling + load balancing + router z-loss) is unchanged from the baseline. Each mutual information estimate uses groups of 8 training sequences; statistics are computed separately per expert pool with aligned token positions across rounds.


Empirical Validation / Results

Experimental Setup

  • Backbone: OLMoE with 16 layers; middle 12 layers arranged into 6 adjacent pairs sharing expert pools (M=6M = 6)
  • Each pool: K=64K = 64 experts, k=8k = 8 selected per token per invocation
  • Parameters: ~4.5B trainable (counting shared weights once), ~1.3B active per token
  • Training: 50,000 steps, sequence length 4,096, global batch size 512, ~104B token positions
  • Data: FineWeb-Edu v1.4.0 (sample-100BT subset)
  • Default DuoMI settings: τ=1\tau = 1, g~max⁡=0.02\widetilde{g}_{\max} = 0.02, [d~min⁡,d~max⁡]=[0.05,0.30][\widetilde{d}_{\min}, \widetilde{d}_{\max}] = [0.05, 0.30], λG=λL=λU=0.1\lambda_G = \lambda_L = \lambda_U = 0.1

Main Results (Table 1)

MethodAvg.ARC-CARC-EBBHBoolQCOPAHellaS.LAMB.MMLUOBQAPIQARACESciQSST-2TQAWino.
OLMoE baseline51.1540.4469.656.3662.0278.0064.8450.0525.7641.0075.4135.0286.2052.6421.8658.01
OLMoE-Loop baseline50.0839.0869.026.3456.7975.0062.5548.1724.6143.6075.7935.3186.1051.7220.8956.20
OLMoE-Loop DuoMI51.8242.0668.5214.1061.1074.0063.0449.5424.6042.8075.8434.2686.7061.4720.5858.64
ModuleFormer-style MI50.0139.3367.477.6662.0271.0060.9548.2426.5840.4074.4334.9386.2053.1019.9757.93
Path-style shared router50.7639.5968.647.3959.6679.0062.0150.2424.6038.2074.4334.9386.7058.7220.0157.22
RMoE-style recurrent router50.7539.1668.2712.1063.1879.0061.6750.4025.9941.0074.9735.7983.8049.3120.0856.59

Key findings:

  • DuoMI outperforms the looped baseline by 1.74 points and the unshared OLMoE baseline by 0.67 points
  • Largest gains: SST-2 (+9.75 points), BBH (+7.76 points)
  • DuoMI exceeds the best alternative routing method (Path-style, 50.76) by 1.06 points

Ablation Studies (Table 2)

MethodAvg.
OLMoE-Loop baseline50.08
OLMoE-Loop DuoMI51.82
G-only50.53
D-band only51.46
w/o D lower bound51.05
w/o D upper bound51.35

Conclusions:

  • Token-level constraint (D-band) provides the larger individual gain (+1.38)
  • Adding G constraint further improves by +0.36 points
  • Removing either bound of the D interval reduces performance, confirming the need for two-sided control

Cross-Round Routing Analysis

  • G~\widetilde{G} trajectories: DuoMI crosses the 0.02 threshold midway through training; baseline remains round-dependent longer
  • D~\widetilde{D} trajectories: Baseline peaks at ~0.70, DuoMI at ~0.47, returning to target band earlier
  • Actual Top-8 expert retention: Baseline retains ~10% of experts per token at end of training; DuoMI retains ~29% (≈2.3 of 8 experts per token)

Sensitivity Analysis (Table 3)

SettingAvg.
Default [d~min⁡,d~max⁡]=[0.05,0.30][\widetilde{d}_{\min}, \widetilde{d}_{\max}] = [0.05, 0.30], g~max⁡=0.02\widetilde{g}_{\max} = 0.0251.82
[0.20,0.30][0.20, 0.30], g~max⁡=0.02\widetilde{g}_{\max} = 0.0251.15
[0.05,0.35][0.05, 0.35], g~max⁡=0.02\widetilde{g}_{\max} = 0.0252.03
[0.05,0.325][0.05, 0.325], g~max⁡=0.02\widetilde{g}_{\max} = 0.0251.06
[0.05,0.40][0.05, 0.40], g~max⁡=0.02\widetilde{g}_{\max} = 0.0251.51
[0.05,0.30][0.05, 0.30], g~max⁡=0.015\widetilde{g}_{\max} = 0.01551.23
[0.05,0.30][0.05, 0.30], g~max⁡=0.02\widetilde{g}_{\max} = 0.02, λG=1\lambda_G = 151.21

Findings: Performance is not monotonic in thresholds; the band [0.05,0.35][0.05, 0.35] yields the best average (52.03). Tightening g~max⁡\widetilde{g}_{\max} or increasing λG\lambda_G does not improve results.


Theoretical and Practical Implications

Theoretical Contributions

  1. Unified information-theoretic framework: DuoMI provides a principled way to characterize two distinct statistical dimensions of cross-round expert routing — aggregate usage alignment (G=I(R;E)G = I(R;E)) and token-level routing change (D=I(R;E∣X)D = I(R;E|X)) — within a single framework. The relationship 0≤G≤D≤10 \leq G \leq D \leq 1 and the chain rule decomposition D−G=I(R;X∣E)≥0D - G = I(R;X|E) \geq 0 clarify their mathematical connection while demonstrating their independence.

  2. Distinction from load balancing: The paper explicitly shows that cross-round distribution alignment (G=0G = 0) is not equivalent to uniform expert usage. Figures 1(a)–(c) all have identical uniform hard usage distributions but exhibit different token-level routing behaviors.

  3. Two-sided control is essential: The ablation results demonstrate that both insufficient and excessive routing change are suboptimal, validating the interval-based constraint design.

Practical Implications

  1. Zero-cost deployment: DuoMI adds no parameters and leaves inference computation unchanged — the gains come entirely from training-time regularization.

  2. Alternative to architectural modifications: DuoMI outperforms architectural approaches (shared routers, recurrent routing states) by over 1 point on average, suggesting that training signals can be more effective than architectural changes for expert reuse.

  3. Bridging the parameter-sharing gap: The method addresses the distinction between parameter sharing (which reduces storage) and actual expert reuse (which affects computation quality) — two concepts that are often conflated.


Conclusion

Main Takeaways

DuoMI successfully addresses the central challenge of regulating expert reuse in looped MoE Transformers by jointly controlling:

  • Round-level aggregate usage through marginal mutual information G=I(R;E)G = I(R; E)
  • Token-level routing change through conditional mutual information D=I(R;E∣X)D = I(R; E \mid X)

The method achieves a 1.74 percentage point improvement over the looped baseline (50.08% → 51.82%) on 15 downstream tasks, exceeding even the unshared baseline. Both constraints contribute independently, and the two-sided interval on routing change is crucial.

Limitations

  • Evaluation limited to a looped backbone derived from OLMoE-1B-7B due to compute budget constraints
  • Generalization to other open-source architectures or larger models remains untested

Future Directions

  1. (i) Multi-round constraints: Formulating mutual information constraints when a shared pool is used across more than two rounds
  2. (ii) Architecture co-design: Developing new looped Transformer architectures whose rounds differ by design, better supporting the behaviors targeted by training objectives like DuoMI

Related papers