# DuoMI: Dual Mutual Information Regularization for Expert Reuse in Looped Transformers

> DuoMI, a dual mutual information regularizer controlling both aggregate and token-level expert reuse across rounds, boosts looped MoE Transformers by 1.74 points, surpassing even unshared baselines.

- **Source:** [arXiv](https://arxiv.org/abs/2611.33952)
- **Published:** 2026-11-28
- **Permalink:** https://picx.dev/p/l0fRXQ
- **Whiteboard:** https://picx.dev/p/l0fRXQ/image

## Summary

## 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)$ to limit dependence of aggregate expert usage on the invocation round, and **token-level conditional mutual information** $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 = 0$, $D = 0.5$ — identical aggregate distributions, each token retains half its experts
- Figure 1(b): $G = 0$, $D = 0$ — identical aggregate distributions, complete retention
- Figure 1(c): $G = 0$, $D = 1$ — identical aggregate distributions, complete replacement
- Figure 1(d): $G = 0.5$, $D = 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 $M$ shared expert pools, each containing $K$ experts, invoked at two distinct layers (rounds $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 $b$ with $N_b$ valid token positions, define a uniform distribution over selected experts:

$$q_{j,r}(e \mid x) = \frac{\mathbf{1}\{e \in S_{j,r}(x)\}}{k}, \quad e \in \{1, \dots, K\}$$

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

$$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 $r$:

$$\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:

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

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

$$\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 $G_{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

$$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, $D_{b,j}$ equals the average fraction of selected experts replaced across rounds:

$$D_{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 \leq G_{b,j} \leq D_{b,j} \leq 1$$

with the chain rule giving:

$$D_{b,j} - G_{b,j} = I(R; X \mid E) \geq 0$$

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

### Differentiable Surrogates

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

$$p_{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:

$$\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:

$$\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

$$\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)$ and:
- First term: penalizes **excessive** aggregate usage differences (upper bound on $G$)
- Second term: penalizes **insufficient** token-level routing change (lower bound on $D$)
- Third term: penalizes **excessive** token-level routing change (upper bound on $D$)

### Training Objective

$$\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:

$$\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 = 6$)
- **Each pool**: $K = 64$ experts, $k = 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**: $\tau = 1$, $\widetilde{g}_{\max} = 0.02$, $[\widetilde{d}_{\min}, \widetilde{d}_{\max}] = [0.05, 0.30]$, $\lambda_G = \lambda_L = \lambda_U = 0.1$

### Main Results (Table 1)

| Method | Avg. | ARC-C | ARC-E | BBH | BoolQ | COPA | HellaS. | LAMB. | MMLU | OBQA | PIQA | RACE | SciQ | SST-2 | TQA | Wino. |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OLMoE baseline | 51.15 | 40.44 | 69.65 | 6.36 | 62.02 | 78.00 | 64.84 | 50.05 | 25.76 | 41.00 | 75.41 | 35.02 | 86.20 | 52.64 | 21.86 | 58.01 |
| OLMoE-Loop baseline | 50.08 | 39.08 | 69.02 | 6.34 | 56.79 | 75.00 | 62.55 | 48.17 | 24.61 | 43.60 | 75.79 | 35.31 | 86.10 | 51.72 | 20.89 | 56.20 |
| **OLMoE-Loop DuoMI** | **51.82** | 42.06 | 68.52 | **14.10** | **61.10** | 74.00 | 63.04 | 49.54 | 24.60 | 42.80 | **75.84** | 34.26 | **86.70** | **61.47** | 20.58 | **58.64** |
| ModuleFormer-style MI | 50.01 | 39.33 | 67.47 | 7.66 | 62.02 | 71.00 | 60.95 | 48.24 | 26.58 | 40.40 | 74.43 | 34.93 | 86.20 | 53.10 | 19.97 | 57.93 |
| Path-style shared router | 50.76 | 39.59 | 68.64 | 7.39 | 59.66 | 79.00 | 62.01 | 50.24 | 24.60 | 38.20 | 74.43 | 34.93 | 86.70 | 58.72 | 20.01 | 57.22 |
| RMoE-style recurrent router | 50.75 | 39.16 | 68.27 | 12.10 | 63.18 | 79.00 | 61.67 | 50.40 | 25.99 | 41.00 | 74.97 | 35.79 | 83.80 | 49.31 | 20.08 | 56.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)

| Method | Avg. |
|---|---|
| OLMoE-Loop baseline | 50.08 |
| **OLMoE-Loop DuoMI** | **51.82** |
| G-only | 50.53 |
| D-band only | 51.46 |
| w/o D lower bound | 51.05 |
| w/o D upper bound | 51.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

- **$\widetilde{G}$ trajectories**: DuoMI crosses the 0.02 threshold midway through training; baseline remains round-dependent longer
- **$\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)

| Setting | Avg. |
|---|---|
| Default $[\widetilde{d}_{\min}, \widetilde{d}_{\max}] = [0.05, 0.30]$, $\widetilde{g}_{\max} = 0.02$ | 51.82 |
| $[0.20, 0.30]$, $\widetilde{g}_{\max} = 0.02$ | 51.15 |
| $[0.05, 0.35]$, $\widetilde{g}_{\max} = 0.02$ | **52.03** |
| $[0.05, 0.325]$, $\widetilde{g}_{\max} = 0.02$ | 51.06 |
| $[0.05, 0.40]$, $\widetilde{g}_{\max} = 0.02$ | 51.51 |
| $[0.05, 0.30]$, $\widetilde{g}_{\max} = 0.015$ | 51.23 |
| $[0.05, 0.30]$, $\widetilde{g}_{\max} = 0.02$, $\lambda_G = 1$ | 51.21 |

**Findings**: Performance is not monotonic in thresholds; the band $[0.05, 0.35]$ yields the best average (52.03). Tightening $\widetilde{g}_{\max}$ or increasing $\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)$) and token-level routing change ($D = I(R;E|X)$) — within a single framework. The relationship $0 \leq G \leq D \leq 1$ and the chain rule decomposition $D - 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 = 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)$
- **Token-level routing change** through conditional mutual information $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

---

_Markdown view of https://picx.dev/p/l0fRXQ, served by PicX — AI-generated visual whiteboard summaries of research papers._
