A Persistent State for Auditable Mixture-of-Experts Routing
Organizations: Department of Artificial Intelligence Bahçeşehir University Istanbul, Türkiye
Abstract
Mixture-of-Experts (MoE) models repeatedly route tokens to sparse subsets of experts, but conventional routers expose no routing-specific record of how cross-layer influences accumulate. We introduce Scratchpad-Augmented Mixture-of-Experts (SA-MoE), which gives each router access to a low-dimensional persistent state that is not provided to the experts. Learned layerwise writes update this state, and their realized post-update changes exactly decompose the state-mediated contribution to any later routing margin, forming a routing ledger. Across sparsely upcycled SmolLM2- and Gemma-based models and three independent training seeds per architecture, this pathway adds less than 1% analytical forward compute and is strongly used by trained routers: local removal of its router contribution changes the selected Top-2 expert set in 87.6% and 69.9% of decisions, respectively. Relative to a matched latest-write-only control, persistent accumulation increases long-horizon future-routing accessibility by 19.4 and 12.2 percentage points, with positive effects in every seed. More than 90% of absolute ledger contribution comes from non-recent writes in both families, and full-forward suppression of ledger-selected writes changes later routing and output distributions. The ledger is an exact provenance object for the persistent-state pathway, not a complete causal explanation of routing. Sensitivity-aware scores better predict full-forward intervention effects, and post-hoc methods recover related cross-layer attribution without architectural modification. SA-MoE instead makes one routing-specific computational history explicit and directly inspectable within the model's natural forward computation.
Figures & tables
| Family | Architecture | Params | Active/token | FLOPs/token | PPL (%) | Macro (pp) |
|---|---|---|---|---|---|---|
| SmolLM2 | Ordinary MoE | 1.409B | 294.0M | 729.6M | Ref. | Ref. |
| Latest-write-only | 1.411B | 296.3M | 734.1M | [ ] | [ ] | |
| Persistent | 1.411B | 296.3M | 734.1M | [ ] | [ ] | |
| Gemma | Ordinary MoE | 1.401B | 409.8M | 876.2M | Ref. | Ref. |
| Latest-write-only | 1.402B | 411.4M | 879.2M | [ ] | [ ] | |
| Persistent | 1.402B | 411.4M | 879.2M | [ ] | [ ] |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| SmolLM2 | Gemma | |
| Dense source | SmolLM2-135M | Gemma-3-270M |
| Transformer layers | 30 | 18 |
| Hidden size | 576 | 640 |
| Expert intermediate size | 1536 | 2048 |
| Routed experts / layer | 16 | 16 |
| Shared experts / layer | 1 | 1 |
| SmolLM2 | Gemma | |
| Precision | bf16 | bf16 |
| Optimizer steps | 30,000 | 30,000 |
| Sequence length | 2048 | 2048 |
| World size | 16 | 16 |
| Global sequences / step | 512 | 512 |
| Tokens / optimizer step | 1,048,576 | 1,048,576 |
| Family | Architecture | Params. | Active/token | Fwd. FLOPs/token |
|---|---|---|---|---|
| SmolLM2 | Ordinary | 1.4088B | 294.044M | 729.575M |
| Latest-write-only | 1.4111B | 296.321M | 734.122M | |
| Persistent | 1.4111B | 296.321M | 734.122M | |
| Gemma | Ordinary | 1.4007B | 409.840M | 876.192M |
| Latest-write-only | 1.4023B | 411.354M | 879.215M | |
| Persistent | 1.4023B | 411.354M | 879.215M |
| Family | Architecture | Inf. B1 | Inf. B16 | Train B4 |
|---|---|---|---|---|
| SmolLM2 | Ordinary | 117.3 | 192.2 | 446.8 |
| Latest-write-only | 151.4 | 210.7 | 545.8 | |
| Persistent | 140.9 | 204.2 | 524.4 | |
| Gemma | Ordinary | 94.3 | 191.8 | 318.4 |
| Latest-write-only | 82.2 | 176.9 | 326.6 | |
| Persistent | 82.5 | 182.3 | 316.4 |
| Task | Split | Examples | Primary metric |
|---|---|---|---|
| HellaSwag | validation | 10,042 | normalized accuracy |
| ARC-Easy | test | 2,376 | normalized accuracy |
| PIQA | validation | 1,838 | normalized accuracy |
| WinoGrande | winogrande_xl validation | 1,267 | raw accuracy |
| Family | Architecture | HellaSwag | ARC-Easy | PIQA | WinoGrande | Macro |
|---|---|---|---|---|---|---|
| SmolLM2 | Latest-write-only | |||||
| Persistent | ||||||
| Gemma | Latest-write-only | |||||
| Persistent |
| Family / source | Horizon 1 | Horizon 4 | Horizon 8 |
|---|---|---|---|
| SmolLM2, source 7 | |||
| SmolLM2, source 14 | |||
| Gemma, source 4 | |||
| Gemma, source 8 |
| Family | Representation | 10k | 100k | 1M |
|---|---|---|---|---|
| SmolLM2 | Persistent native state | 79.28 | 81.06 | 81.25 |
| Latest-write-only native state | 56.87 | 58.55 | 58.73 | |
| P hidden-128 | 77.76 | 82.21 | 83.37 | |
| Gemma | Persistent native state | 74.95 | 77.15 | 77.41 |
| Latest-write-only native state | 64.76 | 66.77 | 66.99 | |
| P hidden-128 | 78.19 | 82.70 | 84.10 |
| Family | Top-1 margin | Top-2 boundary |
|---|---|---|
| SmolLM2 | ||
| Gemma |
| Family | Method | Spearman | Top-source acc. | Normalized regret |
|---|---|---|---|---|
| SmolLM2 | Random | — | ||
| Recency | ||||
| Largest write norm | ||||
| Ledger | ||||
| Gradient write | ||||
| Gemma | Random | — |
| Family | Method | Spearman | Top-source acc. | Regret |
|---|---|---|---|---|
| SmolLM2 | Random | |||
| Recency | ||||
| Largest component norm | ||||
| Li variance | ||||
| Li Top-2 boundary | ||||
| Gradient component |
| Family | Audit object | Capture (s) | Capture peak (GiB) | Post-capture score (s) | Gradient extraction (s) |
|---|---|---|---|---|---|
| SmolLM2 | Persistent ledger | 0.249 | 3.96 | included | 3.205 |
| Ordinary Li components | 0.752 | 2.85 | 0.152 | 1.146 | |
| Gemma | Persistent ledger | 0.428 | 10.88 | included | 1.260 |
| Ordinary Li components | 0.852 | 10.70 | 0.080 | 1.319 |
| Family | Architecture | Target | Downstream Top-2 divergence | Output KL |
|---|---|---|---|---|
| SmolLM2 | Persistent | |||
| Latest-write-only | ||||
| P–LWO | ||||
| Gemma | Persistent | |||
| Latest-write-only | ||||
| P–LWO |
| Family | Architecture | Seed | PPL ratio | Hella | ARC-E | PIQA | Wino | Macro |
|---|---|---|---|---|---|---|---|---|
| SmolLM2 | Latest-write-only | 42 | 1.00361 | |||||
| 43 | 1.00557 | |||||||
| 44 | 1.00625 | |||||||
| Persistent | 42 | 1.00213 | ||||||
| 43 | 1.00187 | |||||||
| 44 | 1.00161 |
| Family | Seed 42 | Seed 43 | Seed 44 | |
|---|---|---|---|---|
| SmolLM2 | 0.75 | 11.89 | 12.34 | 11.37 |
| 0.50 | 28.88 | 30.22 | 27.10 | |
| 0.25 | 54.25 | 56.48 | 51.61 | |
| 0 | 88.16 | 88.61 | 86.17 | |
| Gemma | 0.75 | 17.88 | 17.03 | 15.94 |
| 0.50 | 34.67 | 35.76 | 33.91 |
| Family | Endpoint | Seed 42 | Seed 43 | Seed 44 | Mean [95% CI] |
|---|---|---|---|---|---|
| SmolLM2 | Long-horizon accessibility (pp) | 21.97 | 19.33 | 16.99 | |
| Ledger–control advantage | 0.143 | 0.060 | |||
| Ledger intervention effect | 0.174 | 0.124 | 0.016 | ||
| Gemma | Long-horizon accessibility (pp) | 9.68 | 15.09 | 11.75 | |
| Ledger–control advantage | 0.046 | 0.234 | 0.040 | ||
| Ledger intervention effect | 0.059 | 0.257 | 0.086 |
| Family | Budget | Representation | Seed 42 | Seed 43 | Seed 44 |
|---|---|---|---|---|---|
| SmolLM2 | 10k | Persistent native | 79.28 | 78.37 | 80.18 |
| Latest-write-only native | 57.90 | 56.24 | 56.48 | ||
| P hidden-128 | 76.56 | 77.93 | 78.81 | ||
| 100k | Persistent native | 81.18 | 79.88 | 82.12 | |
| Latest-write-only native | 59.50 | 57.76 | 58.40 | ||
| P hidden-128 | 81.52 | 82.20 | 82.92 |
| Family | Metric | Seed 42 | Seed 43 | Seed 44 | Mean [95% CI] |
|---|---|---|---|---|---|
| SmolLM2 | Non-recent absolute share (%) | 91.24 | 92.20 | 91.76 | |
| Effective source support | 9.444 | 9.544 | 9.482 | ||
| Largest absolute source share (%) | 20.57 | 20.10 | 20.47 | ||
| Signed direct margin | 0.478 | 0.343 | 0.403 | ||
| Gemma | Non-recent absolute share (%) | 90.75 | 89.84 | 90.28 | |
| Effective source support | 5.776 | 5.923 | 5.774 |
| Family | Method | Metric | Seed 42 | Seed 43 | Seed 44 |
|---|---|---|---|---|---|
| SmolLM2 | Li Top-2 boundary | Spearman | 0.577 | 0.557 | 0.576 |
| Top-source accuracy | 0.208 | 0.198 | 0.229 | ||
| Regret | 0.575 | 0.612 | 0.555 | ||
| Gradient component | Spearman | 0.731 | 0.697 | 0.734 | |
| Top-source accuracy | 0.281 | 0.292 | 0.406 | ||
| Regret | 0.413 | 0.450 | 0.350 |
| Family | Architecture / contrast | Metric | Seed 42 | Seed 43 | Seed 44 |
|---|---|---|---|---|---|
| SmolLM2 | Persistent | Target | 0.3289 | 0.2344 | 0.2641 |
| Downstream Top-2 | 0.0808 | 0.0958 | 0.0638 | ||
| Output KL | 0.001386 | 0.001709 | 0.001556 | ||
| Latest-write-only | Target | 0.1365 | 0.1138 | 0.2891 | |
| Downstream Top-2 | 0.0257 | 0.0257 | 0.0400 | ||
| Output KL | 0.001442 | 0.001504 | 0.001832 |
| Analysis | Checkpoint scope | Uncertainty / replication unit | Interpretation |
|---|---|---|---|
| Model quality and capability | Seeds 42/43/44 for each family and architecture | Training seed; Student- ( ). PPL analyzed on log-ratio scale. | Replicated architecture-level result. |
| Local state-suppression dose response | Persistent and latest-write-only, seeds 42/43/44 | Training seed; Student- ( ) | Replicated local router-dependence result. |
| Long-horizon persistence endpoint | Persistent and latest-write-only, seeds 42/43/44 | Paired training seed; Student- ( ) | Primary replicated persistence result. |
| Main future-routing probe curves | Seeds 42/43/44 | Training seed after within-checkpoint fit/pair reduction; Student- ( ) | Replicated representation-accessibility result. |
| Additional hidden-state probe controls | Supplementary frozen representation analyses | Within-checkpoint probe evaluation unless explicitly reported across seeds | Representation diagnostic; not used as an independent training-replication claim. |
| Distributed-history provenance | Persistent and latest-write-only, seeds 42/43/44 | Training seed; Student- ( ) | Replicated descriptive direct-provenance result. |