Future Directions in MoE Architecture
local graph
Chapter 12 — Future Directions in MoE Architecture
Section titled “Chapter 12 — Future Directions in MoE Architecture”Mixture of Depths and Adaptive Computation
Section titled “Mixture of Depths and Adaptive Computation”Mixture of Depths (MoD), introduced in a 2024 paper from Google DeepMind, extends the MoE paradigm from routing across expert dimension (which expert processes each token) to routing across the depth dimension (whether a token is processed by a given layer at all). In a MoD model, each transformer layer is augmented with a routing mechanism that decides whether to apply the full layer computation to each token or to skip the layer and pass the token through a residual bypass. Tokens that are deemed ‘easy’ by the router can skip computation at some layers, while ‘hard’ tokens are processed by all layers. This creates a form of adaptive computation time that allocates more processing to complex inputs without requiring explicit Adaptive Computation Time mechanisms.
The implementation of Mixture of Depths requires careful management of the causal attention mask in autoregressive language models. In standard transformer architectures, all tokens in the sequence attend to all preceding tokens at every layer. In a MoD model where some tokens skip certain layers, the position of tokens in the residual stream diverges from what the attention pattern assumes: a token that skips layer 5 will have a different representation than expected by the query and key projections of layer 6, which were trained assuming the layer 5 computation was applied. This mismatch can degrade quality if not handled carefully, requiring modified attention mask designs or dedicated bypass representation pathways that maintain consistency between the token representation and the attention pattern.
MoE and MoD can be combined in a unified architecture that routes both across the expert dimension and the depth dimension. This combination - sometimes called Mixture of Experts and Depths or MoED - allows the model to adaptively allocate both breadth of knowledge (through expert routing) and depth of processing (through layer routing) to each token. Early results on MoED architectures show that combining both routing mechanisms provides additive quality improvements over either alone, with the combined model achieving higher quality at matched compute cost than either pure MoE or pure MoD baseline. The additional routing complexity of MoED is manageable because the depth routing and expert routing can share a common routing infrastructure.
Adaptive computation time for MoE models extends beyond layer skipping to include variable numbers of expert activations per token. Rather than the fixed-k routing of standard MoE, adaptive expert selection uses a confidence-based stopping criterion: experts are added to the computation for each token until a confidence threshold is reached or a maximum number of experts is reached.
Tokens that require only one expert to reach the confidence threshold incur less compute than tokens that require the maximum number of experts. This mechanism closely resembles the original motivation for conditional computation, providing a rigorous implementation of the intuition that difficult inputs should receive more compute than easy ones.
The theoretical foundations of adaptive computation in language models draw on computational complexity theory, learning theory, and information theory. From an information-theoretic perspective, the amount of computation a model should invest in a token is related to the information content of that token relative to the model’s current representation - highly predictable tokens require little computation to process correctly, while surprising or complex tokens require more. Formalizing this intuition into a tractable training objective remains an open research challenge, as the computation required to assess a token’s processing needs may itself be significant. Progress on adaptive computation theory will likely require contributions from both the theoretical ML community and the engineering community building and evaluating practical systems.

Mixture of Depths Transformer (“Variable path lenghts per token” [sic]): tokens skip layers through arcs over the layer stack. Beside it, “Computation Depth Distribution (Sample Batch)” shows the percentage of tokens by the number of layers processed (3, 5 or 6 layers), with a “Mixture of Depths” callout. Below, the Standard Uniform Depth Transformer: “All tokens processed by all 6 layers.”
Dynamic Experts and Continual Learning
Section titled “Dynamic Experts and Continual Learning”Dynamic expert addition is a mechanism for extending a deployed MoE model’s knowledge by adding new experts without full retraining. When a new domain, language, or skill needs to be added to a deployed model, the standard approach requires full fine-tuning or continued pretraining, which is expensive and risks degrading existing capabilities. Dynamic expert addition inserts new expert modules into the existing MoE layers, initializes them with small random perturbations or from existing expert weights, and fine-tunes only the new experts and the gating network on data from the new domain. This approach can extend a model’s coverage at a fraction of the cost of full retraining, though the quality of the new experts typically lags behind experts trained from scratch with full compute.
Expert merging is the complementary operation to expert addition, combining multiple existing experts into a single expert to reduce the parameter count and serving cost of an overparameterized model. When analysis reveals that two experts have developed highly similar routing profiles and weight matrices - suggesting redundant specialization - they can be merged by averaging their weights or through more sophisticated merging algorithms such as TIES (Task-Incremental Encoders Sequence) or DARE (Delta Alignment with Resampling Estimation). Expert merging has been applied to reduce the size of models trained with too many experts, recovering most of the quality of the original model at a fraction of its memory footprint.
Continual learning for MoE models exploits the natural modularity of the expert architecture to implement forgetting-resistant knowledge updates. In continual learning, a model must learn new tasks or domains sequentially without forgetting previously learned knowledge - a challenging objective that dense models typically address through regularization, replay, or architectural modifications. MoE models offer a natural continual learning mechanism: when new knowledge is required, new experts can be added to learn the new domain while existing experts are frozen, preventing interference between old and new knowledge. The gating network is updated to route appropriately between old and new experts, implementing a form of modular continual learning that has been shown to significantly reduce catastrophic forgetting compared to fine-tuning all parameters of a dense model.
Expert pruning and activation threshold tuning is an important technique for adapting a pretrained MoE model to a new deployment environment with different compute constraints. By analyzing the routing statistics over a representative sample of deployment traffic, engineers can identify experts that are rarely activated and either prune them (remove them entirely) or assign them to slower memory tiers (expert offloading). The quality impact of pruning low-utilization experts depends on the specific requests in the deployment workload: if those experts serve rare but important use cases, pruning them may cause severe quality degradation on specific inputs even if average quality is not significantly affected. Expert-level ablation testing on a diverse evaluation set is essential before committing to a pruning decision in production.
Self-improving MoE systems, where the model can modify its own routing behavior and expert parameters based on feedback signals during deployment, represent a speculative but significant future direction. Current deployed models have fixed weights after training and serving deployment; future systems might use online learning signals - implicit feedback from user interactions, explicit corrections, or automated quality signals - to continuously refine the routing behavior and update individual experts in response to shifting data distributions. Safety and reliability considerations for self-modifying deployed models are significant: any online learning system must be designed to prevent adversarial manipulation of the learning signal and to maintain quality guarantees across all subpopulations of users. These challenges will require careful co-design of learning algorithms, safety evaluation, and deployment infrastructure.
Active MoE Model: A Living, Evolving Architecture for Adaptive Intelligence
flowchart LR
H["Expert pool<br/>(hexagon cluster)"] --> A["Mixture-of-Experts<br/>(MoE) Architecture"]
L(["Active MoE Model"]) -.-> A
A --> M["Expert Utilization Monitoring"]
M --> A
M --> O1["Expert Addition<br/>(New Domain)"]
M --> O2["Expert Merging<br/>(Redundant Experts)"]
M --> O3["Expert Pruning<br/>(Unused Experts)"]
O1 --- R1["System Expansion"]
O2 --- R2["Consolidation"]
O3 --- R3["Optimization"]
subgraph OPS["Operations"]
O1
O2
O3
end
OPS --> M
[!visual-conversion] Converted from the scanned infographic (PDF 108, printed p. 100). The legible labels are transcribed as printed. On the scan, two curved arrows run from Expert Utilization Monitoring back to the MoE Architecture ring; they are drawn here as one feedback edge. The “Operations” label points back to the monitoring gauge. The hexagon labels and the gauge reading are illegible and are omitted; “Expert pool” is a descriptive label for the hexagon cluster, not printed text.
The Future Landscape of Sparse Models
Section titled “The Future Landscape of Sparse Models”The trajectory of MoE research and deployment suggests several major directions for the coming years. The first is the continued push toward larger total parameter counts at fixed active compute, with models potentially reaching trillions of parameters while maintaining per-token compute costs comparable to today’s 7-10 billion parameter dense models. This scaling direction is enabled by improvements in expert parallel communication infrastructure, more efficient routing algorithms, and the continued growth of GPU cluster sizes available to leading model training organizations. The quality improvements from this scaling - particularly in knowledge breadth and factual accuracy - are likely to be significant.
The convergence of MoE with other efficiency techniques represents a second major direction. Sliding window attention combined with MoE FFN layers, as in Mistral’s architecture family, enables efficient long-context processing that MoE alone cannot provide. Structured state space models (SSMs) such as Mamba combined with MoE FFN layers have been explored as an alternative to attention-plus-MoE, targeting applications where the O(n^2) attention cost is prohibitive. Diffusion-based generation combined with MoE scoring models is being explored for image and video generation where the conditional computation benefits of MoE align with the variable difficulty of different generation steps in a diffusion sampling chain.
Hardware-software co-design for MoE is emerging as a critical research and engineering area, as the all-to-all communication pattern of expert parallelism does not map naturally onto the hardware topologies of current GPU clusters, which are optimized for the all-reduce communication patterns of tensor parallelism. Future AI accelerators - including Google’s TPU successors, NVIDIA’s NVLink 5.0 architectures, and startup accelerators from Cerebras, Groq, and SambaNova - are increasingly being designed with the specific communication patterns of sparse MoE in mind, promising to eliminate the communication overhead that currently limits the efficiency of large expert parallel deployments.
Theoretical understanding of MoE generalization and scaling is an active research area that lags significantly behind empirical practice. While empirical results clearly show that MoE models achieve better quality at fixed compute than dense models, the theoretical reasons for this advantage remain poorly understood. Questions about the optimal number of experts for a given task complexity, the conditions under which expert specialization improves generalization, and the relationship between routing policy and sample efficiency during training are all open research questions. Progress on these theoretical questions will likely improve our ability to design optimal MoE architectures for specific applications rather than relying purely on empirical ablation studies.

Left: “MoE Model Scale Trends (2021-2027)”, a scatter of models by year with two dashed “Projected 2027” trend lines. Labelled points: Switch Transformer (1.6T, total, 8B active), Mixtral 8x7B (2023, 13B active), DeepSeek-MoE (2024, 854, 20B active) and Mixtral 8x7B (2024, 20B active). Right: “Parameter Efficiency Improvement vs-Dense Baselines (2021-2027)”, “MoE Parameter Efficiency Trend”. Relative efficiency rises 5x → 18 → 12x (solid, historical) and on to 40x (dashed, projected), against a flat 1x dense baseline. Legend: Historical Data, Projected Trend, Dense Baseline.