Deterministic Routing for Stable and Efficient Sparse Models

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 128 papers42 conceptsfrozen 2026-10-04

Sparse Mixture-of-Experts (MoE) models have become the standard for scaling neural networks to trillions of parameters. By activating only a fraction of the network for any given input, these models offer a way to increase capacity without a proportional increase in computational cost. However, the traditional way of deciding which "expert" handles which input—using a learned gating network—introduces significant training instabilities, optimization overhead, and "expert collapse," where a few experts are over-utilized while others are ignored.

A growing body of research suggests that we can bypass these problems by replacing learned routers with deterministic routing. Instead of asking the model to learn how to route, we use fixed rules, hashes, or metadata to assign inputs to experts.

The Problem with Learned Routing

In a standard MoE, a router is a small trainable layer that learns to predict which expert is best suited for a specific token. This creates a "chicken-and-egg" problem: an expert can only become specialized if the router sends it relevant data, but the router only knows where to send data if the experts are already specialized.

To make this work, researchers often have to add complex auxiliary "load-balancing" losses to force the router to use all experts equally. Even with these losses, training remains finicky. Xiaozhe Ren and colleagues note in their work on PanGu-Σ that these learned mechanisms are prone to loss spikes and expert collapse. Furthermore, in autoregressive (causal) models, Veselin Stoyanov and the sMLP team point out that dynamic routers can inadvertently leak information from future tokens, breaking the causal constraint.

Routing by Hashing and Randomness

The simplest alternative to a learned router is a fixed one. Stephen Roller and Arthur Szlam demonstrated in Hash Layers that a parameter-free hash of the input token is surprisingly effective. By simply using hash(token_id) % num_experts, they achieved performance competitive with complex learned routers like Switch Transformers.

The intuition here is that even if the assignment is random, it is consistent. Because a specific token (or type of data) always goes to the same expert, that expert will naturally specialize in the patterns present in that slice of the data. This approach is taken further in SMoE-Dropout, where Tianlong Chen uses a fixed random router as a form of regularization, preventing representation collapse and allowing the model to remain "slimmable" for inference.

Routing by Metadata and Modality

In many tasks, we already possess "side information" that can guide routing more effectively than a learned gate. This is often called rule-based or task-aware routing.

  • Multi-modal Models: In Mixture-of-Transformers and Mixture-of-Mamba, Weixin Liang uses the modality of the token (text vs. image) to route it to specialized parameters. This ensures that image-specific features don't "pollute" the weights used for text.
  • Retrieval and Recommendation: Hao Cheng developed TASER, which routes inputs based on whether they are "queries" or "documents." Similarly, Reza Shirkavand and the IDIOMoE team use a static gate to separate natural language text from "Item-IDs" in recommendation systems.
  • Linguistics: Ndapandula Nakashole shows in MoI-MoE that routing based on a language's morphological properties—a fixed typological trait—leads to much better performance on low-resource languages than letting the model discover these patterns on its own.

Anchoring Knowledge for Stability

Deterministic routing also solves the problem of "routing drift" in lifelong learning. In LEMoE, Renzhi Wang uses fixed "key-value anchors" to select experts. Because these anchors never change, new knowledge can be added to new experts without the risk that the router will "forget" how to find the old ones.

This stability is equally critical in decentralized settings. Chaoran Cui uses parameter-free routing in TRIP to ensure that different clients in a federated learning network stay synchronized. Since the routing logic is fixed and doesn't need to be trained, clients don't have to communicate router weights, drastically reducing the bandwidth required to train large models.

Why It Works: The Power of Hard Partitioning

The recurring theme across these papers is that hard partitioning of the data space is often superior to the "soft" probabilistic assignments of learned routers. By removing the router's ability to change its mind, we provide a stable foundation for the experts.

As Ranajoy Sadhukhan demonstrates with STEM, replacing dynamic routing with a simple static lookup can provide the capacity benefits of a massive model while actually reducing the compute required per token. By trusting the structure of the data—whether it's the token ID, the modality, or a pre-defined cluster—deterministic routing allows sparse models to scale without the fragility of learned gates.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_deterministic_routing_for_stable_and_eff_58d5a423,
  title = {Deterministic Routing for Stable and Efficient Sparse Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/deterministic-routing-for-stable-and-efficient-sparse-models/rdr_58d5a4233dc44b23bf47de82a8242a0f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_deterministic_routing_for_stable_and_eff_58d5a423_v1,
  title = {Deterministic Routing for Stable and Efficient Sparse Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/deterministic-routing-for-stable-and-efficient-sparse-models/rdr_58d5a4233dc44b23bf47de82a8242a0f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}