# Inner-layer Token Self-modulation as Another Scaling Axis for LLMs

Token self-modulation adds a new scaling axis for LLMs

Yebin Yang, Huaijin Wu, Jingtao Han, Yu Wang, Xiaohan Qin, Jingzhi Wang and 2 more · International Conference on Machine Learning · 2026-9-29

- **Problem** Dense scaling adds FLOPs and memory with model size, and Mixture-of-Experts gains flatten on a log-linear trend.
- **Method** MoRT keeps a pool of token-indexed modulator tables in each layer, and a router picks the top K for each token. Their weighted sum gates the MLP update, adding capacity with little compute.
- **Results** MoRT reaches the same loss as vanilla MoE with 35.2% less compute in the isoFLOPs fit.

## Why dense and sparse scaling run short

Scaling a dense model adds FLOPs and GPU memory roughly in step with its size. High-quality text is also getting scarcer, so extra dense scaling brings diminishing returns and can even hurt performance when data is limited. Mixture-of-Experts models offer a way around this by activating only some experts for each token.

That route saturates as well, because the gain from expert sparsity follows a log-linear trend. Sparse models also need more data to converge, and their routing and communication costs are high. The authors therefore look for a scaling dimension that adds capacity without adding much compute.

## A token-indexed axis inside each layer

Each layer holds a learned table indexed by token id, so every token retrieves its own vector. That vector modulates an existing update in the layer rather than adding new dense weight matrices.

The modulation is element-wise, so the extra FLOPs stay small next to the dense matrix products of the backbone. The authors call this a complementary scaling dimension, separate from dense width and expert sparsity.

Earlier work scales the vocabulary, meaning the number of token ids V, often through hashed N-grams. The authors instead scale the feature dimension d, so each token's vector can interact with context through attention.

## How ReToken gates the MLP update

Each Pre-Norm block adds an attention update and an FFN update, and each is computed from a normalized hidden state. ReToken targets the MLP increment, which is the FFN update of the layer. For each token, the layer's table row is retrieved and turned into a multiplicative gate.

The gate is \\(p^\\ell\_x = 1 + s^\\ell \\odot \\mathrm{Norm}\_\\varepsilon(E^\\ell\[x\])\\), where \\(s^\\ell\\) is a learnable per-dimension scaler. The normalization \\(\\mathrm{Norm}\_\\varepsilon(u) = u / (\\lVert u \\rVert\_2 + \\varepsilon)\\) divides the retrieved vector by its own L2 norm plus a small constant. Because the normalized vector is scaled by \\(s^\\ell\\) and then shifted by one, a small scaler keeps every dimension's multiplier near 1.

The gated update is \\(\\Delta\\hat m^\\ell\_x = \\Delta m^\\ell\_x \\odot p^\\ell\_x\\), and it is added to the residual stream. During training the table entries and the scaler are learned, while the token id is the run-time input that selects the row.

## How MoRT routes across a modulator pool

MoRT keeps a pool of modulator tables in each layer instead of a single table, and the hidden state chooses among them. A linear router maps the normalized hidden state to one logit per modulator, through \\(R^\\ell \\in \\mathbb{R}^{d \\times n\_e}\\). The top K logits are kept, and their weights come from a sigmoid normalized over the selected set.

The mixed vector is \\(e^\\ell\_x = \\sum\_{i \\in G^\\ell\_x} w^\\ell\_i E^\\ell\_i\[x\]\\), a weighted sum over the selected modulators. The mixed vector is normalized and scaled by a learnable element-wise scaler, then multiplied by a factor of \\(1/\\sqrt{2N\_l}\\), where \\(N\_l\\) is the number of backbone layers. The write-back adds the MLP update and this MoRT term to the same residual state.

A load-balancing loss is added during training so that the modulators are used evenly. The main MoE experiments use a pool of 5 modulators with top-K equal to 2.

## Why the saving should be a constant factor

The authors define an effective parameter count as backbone compute parameters plus a discounted count of token-indexed parameters. With \\(\\eta = N\_n / N\_c\\), this reads \\(N\_{eff} = N\_c(1 + \\eta\\gamma(\\rho))\\), where \\(\\rho = K/n\_e\\) is the activation sparsity. The discount \\(\\gamma(\\rho)\\) is an architecture-dependent function, and the main text does not give a closed form for it.

Substituting \\(N\_{eff}\\) into the Kaplan form changes only the constant of the model-size term, to \\(A\_{MoRT} = A/(1+\\eta\\gamma(\\rho))\\). The data term and the dominant FLOPs form stay unchanged. Because the compute-optimal frontier depends on that constant, MoRT shifts the frontier down by a fixed multiplicative factor.

The argument assumes that the MoRT frontier keeps the same compute dependence as the backbone, with only the constant changed. Under that assumption the compute needed for a target loss shrinks by the factor \\(1/(1+\\eta\\gamma(\\rho))\\), which depends on η and ρ rather than on backbone scale.

## Keeping the lookups off the critical path

ReToken adds a normalization, a Hadamard product and a write-back per token per layer, each costing O(d). MoRT adds a router costing O(d n\_e) and a mixture costing O(Kd), while the backbone attention and FFN scale with d squared.

Token frequencies follow a Zipfian distribution, so frequent tokens repeat within a micro-batch. Token deduplication gathers each unique id once and scatters the result back to every occurrence.

The table gathers for a layer can be issued while the backbone runs the GEMMs of the current layer. The retrieved vectors are needed only at the layer write-back, so much of the retrieval time can hide under compute. Embedding parallelism shards the tables across GPUs, and owner-rank premixing lets MoRT send one d-sized vector instead of K of them.

At inference the host-to-device traffic depends on how many vectors a batch requests, not on the table size.

## Quality gains on dense and MoE backbones

The dense backbones are 190M, 0.5B, 1B and 1.5B parameters, all Qwen-style. The MoE backbones are 1.5B-A250M and 3.2B-A0.5B, each with 145 experts: one shared expert and 144 routed experts, with top-8 active per token. ReToken was tested on the 1.5B dense model and on both MoE backbones, while MoRT was tested only on the MoE backbones.

In the training-loss curves, the ReToken or MoRT run sits below its backbone in every setting the authors plotted.

On the dense 1.5B model, ReToken raised the 14-task average from 22.22 to 26.54. Its largest gains were on MMLU at +4.55 and on TriviaQA at +9.50.

On the 1.5B-A250M MoE, MoRT raised the average from 18.87 to 22.78, a gain of +3.91. On the 3.2B-A0.5B MoE, MoRT raised it from 26.75 to 32.34, with ARC C up +7.25 and GSM8K up +6.31. Each average is the mean over 14 tasks spanning knowledge, code, reasoning and math.

The text gives no confidence intervals or seed counts for these averages, so the spread around them is unknown.

## What the appendix ablations isolate

With the factor, MoRT kept the hidden-state variance near the baseline and reached lower training loss than the baseline MoE.

The normalization ablation on the 3.2B-A0.5B backbone compares ReToken with norm, ReToken without norm and the backbone alone over long training. With norm, the MMLU, ARC, CMMLU and CEval curves rise faster and stay higher, but the text gives these trajectories without final numbers.

The 17B-A1.5B placement ablation gates the attention update instead of the MLP update. The after-MLP default averaged 51.58, compared to 50.50 for after-attention.

On the 17B-A1.5B backbone with 36B MoRT parameters, routing from the pre-attention state was compared with routing from the pre-MLP state. The pre-attention default averaged 55.62, compared to 54.45 for pre-MLP routing.

Removing the load-balancing loss dropped the average from 55.62 to 51.68 on the same backbone. The balance metric settled near 1.22 with the loss and near 1.98 without it, compared to an ideal of 1.0. Each ablation uses a single backbone, so these gaps describe that setting only.

## Gains across backbone sizes

MoRT uses the fixed setting η = 50 and ρ = 0.25 on the same token budget for every backbone.

MoRT lowered the final loss by 0.059, 0.064 and 0.051 on the three backbones, in that order. These differences correspond to relative improvements of 2.7%, 3.0% and 2.55%. These are final training-loss differences, not downstream scores.

## Compute saving on the efficient frontier

The authors fix five FLOPs budgets, 3e18, 1e19, 3e19, 1e20 and 3e20, for the vanilla MoE. For each budget they sweep model size, match the token count to the budget and fit a quadratic around the loss minimum. They then attach MoRT with η = 50 and ρ = 0.25 to each compute-optimal configuration, leaving the backbone and training unchanged.

The paper summarizes the matched-budget gain as 2.27% lower loss.

In the log-log fit, \\(\\log\_2 L = \\alpha \\log\_{10} C + \\beta\\), the slope is -0.2016 for the vanilla MoE and -0.2009 for MoRT. The R² values are 0.9994 for the vanilla MoE and 0.9991 for MoRT.

With an intercept gap of 0.038, the compute ratio is \\(10^{\\Delta\\beta/\\alpha}\\), which gives about 0.648. That ratio corresponds to the 35.2% saving the authors report. The derivation takes the baseline slope and treats the two slopes as equal. The 35% figure therefore comes from fitted lines through five budgets, not from a separate run at each target loss.

## Scaling the MoRT parameter count

The authors fix a 3.9B-A0.6B MoE backbone and vary only the MoRT size, sweeping η from 30 to 130 at ρ = 0.25. Validation loss falls monotonically across the sweep, and the trend is close to linear in log-space. A linear fit with R² of 0.9959 gives a reduction of about 0.0118 for each doubling of MoRT parameters.

The authors read this as evidence that MoRT works as a capacity knob that adds little backbone compute. The sweep covers one backbone and η only between 30 and 130, so the fit says nothing beyond that range.

## Training and inference overhead

The naive MoRT run reached 2,749K tokens/s, compared to 4,838K for the baseline.

The authors attribute the naive slowdown to the extra memory lookups and to larger HBM use, which forces a smaller micro-batch.

Prefill fell by 0.8% for ReToken and by 2.3% for MoRT, while decode fell by 4.5% and 7.3%. The authors attribute the larger decode drop to decode leaving less backbone compute to hide the host-to-device transfer. The training and inference numbers come from different setups and should not be combined into one figure.

## Limitations

The backbones are small relative to frontier models, and the authors leave frontier-scale validation to future work. The evaluation covers pretraining only, so interaction with post-training is unexplored. Interaction with quantization and distillation hasn't been studied.

The isoFLOPs analysis covers five budgets from 3e18 to 3e20 for the MoE backbone, and the MoRT size sweep uses one backbone.

## Paper info

- **Authors**: Yebin Yang, Huaijin Wu, Jingtao Han, Yu Wang, Xiaohan Qin, Jingzhi Wang, Debing Zhang, Junchi Yan
- **Venue**: International Conference on Machine Learning · Published
- **First published**: 2026-9-29
- **Added**: 2026-11-25
- **Original paper terms**: [Check in the original ↗](https://proceedings.mlr.press/v306/yang26cj.html)
- **What we show**: Paper info and commentary

[Original paper ↗](https://proceedings.mlr.press/v306/yang26cj.html)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Yebin Yang, Huaijin Wu, Jingtao Han, Yu Wang, Xiaohan Qin, Jingzhi Wang, Debing Zhang, Junchi Yan (2026). Inner-layer Token Self-modulation as Another Scaling Axis for LLMs. International Conference on Machine Learning. https://proceedings.mlr.press/v306/yang26cj.html

**BibTeX**

```
@article{yang2026inner,
  title = {{Inner-layer Token Self-modulation as Another Scaling Axis for LLMs}},
  author = {Yebin Yang and Huaijin Wu and Jingtao Han and Yu Wang and Xiaohan Qin and Jingzhi Wang and Debing Zhang and Junchi Yan},
  year = {2026},
  journal = {International Conference on Machine Learning},
  url = {https://proceedings.mlr.press/v306/yang26cj.html}
}
```

## Other paper commentary

- [Benchmarking Protein Structure Tokenizers as Generation Targets for Language Models](https://refivu.com/en/papers/4d00bdf0-4a55-413c-828b-0d71373808b6-benchmarking-protein-structure-tokenizers-as-generation.md)
- [From Muon to Gluon: Bridging Theory and Practice of LMO-based Optimizers for LLMs](https://refivu.com/en/papers/8abf3f11-d4df-432c-a8d8-b81217f6cb67-from-muon-to-gluon-bridging-theory-and-practice.md)
- [Bits That Count: Quantifying and Predicting Capabilities of Language Models](https://refivu.com/en/papers/18e0cbff-e732-49be-a90d-d2fd6731c419-bits-that-count-quantifying-and-predicting-capabilities-of.md)
- [Kangaroo: Lossless Self-Speculative Decoding for Accelerating LLMs via Double Early Exiting](https://refivu.com/en/papers/23eec56f-f281-4574-ac78-9af424b32f10-kangaroo-lossless-self-speculative-decoding-for-accelerating.md)
- [KMed-31B Technical Report](https://refivu.com/en/papers/f1b37c66-9898-48db-825c-6abc8dde2417-kmed-31b-technical-report.md)
- [Mitigating Backdoors in Masked Diffusion Language Models](https://refivu.com/en/papers/150c4e6d-58c9-4496-8258-d064f65d4e29-mitigating-backdoors-in-masked-diffusion-language-models.md)
- [The KL Divergence Is Never Negative, Except in PyTorch](https://refivu.com/en/papers/a58a89ab-5b60-441f-9175-c03ffbd24fec-the-kl-divergence-is-never-negative-except-in.md)
- [CO-GRAFT: Attributing Reinforcement Learning Gains in Search Agents via Role-Level Policy Grafting](https://refivu.com/en/papers/ca0608ae-9635-4dfa-aeee-67d5801fc208-co-graft-attributing-reinforcement-learning-gains-in-search.md)
- [Per-Attack Blocking Hides Catalog Vulnerability: A Weakest-Link Analysis of Tool Manifests](https://refivu.com/en/papers/e81c6c5d-9783-464f-93c2-4b7a8263a787-per-attack-blocking-hides-catalog-vulnerability-a-weakest.md)
- [(Be Cautious!) Bio-Foundation Models Are Not Yet Robust to Biologically Plausible Perturbations and ML Transformations](https://refivu.com/en/papers/6605e3c5-c4bf-40e9-9976-41c3b38c3353-be-cautious-bio-foundation-models-are-not-yet.md)
- [CLASP: Online learning algorithms for Convex Losses And Squared Penalties](https://refivu.com/en/papers/38b2c59e-54e2-4a8c-a89b-35340bffe40f-clasp-online-learning-algorithms-for-convex-losses-and.md)
- [$\\textit{Read-ME}$: Refactorizing LLMs as Router-Decoupled Mixture of Experts with System Co-Design](https://refivu.com/en/papers/a806bfd3-525b-49ad-a578-7f75e77b4d70-textit-read-me-refactorizing-llms-as-router-decoupled.md)

## Terms in this paper

- [MMLU](https://refivu.com/en/terms/3036c0ba5adb-mmlu)
- [RMSNorm](https://refivu.com/en/terms/9b1cafd281f0-rmsnorm)
- [validation loss](https://refivu.com/en/terms/3fadf1366c80-validation-loss)
- [average accuracy](https://refivu.com/en/terms/7d9a0ee4bc78-average-accuracy)
- [Megatron-LM](https://refivu.com/en/terms/01823afcd1f6-megatron-lm)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/41b1069d-1f88-4c51-a062-27da8c6b3d1e-inner-layer-token-self-modulation-as-another-scaling)
