Expert Threshold Routing for Autoregressive Language Modeling with Dynamic Computation Allocation and Load Balancing

Ryan Sun, Yixin Liu, Yonghui Wu, Lichao SunCOLM 2026

This paper, published for COLM 2026, introduces Expert Threshold (ET) routing, a novel mechanism for Mixture-of-Experts (MoE) language models that combines the benefits of dynamic computation and perfect load balancing with the strict causality required for autoregressive generation.

TL;DR

Expert Threshold (ET) routing replaces fixed per-token expert selection with an independent, threshold-based mechanism using global score statistics. It achieves 1.6× better token efficiency than standard Token Choice routing and enables dynamic computation allocation while remaining fully causal for inference.

What Problem Does This Paper Address?

Mixture-of-Experts (MoE) architectures are the current "gold standard" for scaling large language models (LLMs) like DeepSeek-V3. By activating only a subset of "experts" for each token, they decouple model capacity from computational cost. However, current routing methods face a fundamental trade-off:

  1. Token Choice (TC): Each token picks its top-$k$ experts. This is causal but forces the same amount of compute on every token (regardless of difficulty) and requires "auxiliary losses" to prevent all tokens from rushing to the same few experts (load imbalance).
  2. Expert Choice (EC): Each expert picks its top-$k$ tokens from a batch. This achieves perfect load balancing and dynamic compute (important tokens get more experts), but it is non-causal. To decide which tokens an expert wants, the model must look at the entire batch, including future tokens that don't exist yet during real-time generation.

The authors aim to bridge this gap: creating a routing mechanism that is as efficient and dynamic as Expert Choice but as causal and generation-friendly as Token Choice.

Methods

The core idea of Expert Threshold (ET) routing is to relax the strict per-batch load balancing of EC into a stochastic expectation over the entire global token distribution.

Instead of comparing a token's score against other tokens in the same batch, ET compares it against a learned threshold $c_i$ for each expert $i$. This threshold is maintained using an Exponential Moving Average (EMA) of the $k$-th largest router scores from historical training batches.

  • Routing Rule: A token $t$ activates expert $i$ if its routing score $r_{t,i} > c_i$.
  • Causality: Because $c_i$ is derived from past statistics, the routing decision for the current token is independent of future tokens in the sequence.
  • Dynamic Compute: Difficult or "important" tokens (like numbers or punctuation in math problems) can naturally exceed the thresholds of multiple experts, while "easier" tokens might activate fewer.
Figure 2: Illustration of TC, EC, and ET routing mechanisms and their routing pools. Left: TC routes each token independently to its top-G experts, causing load imbalance. Middle: EC has each expert select its top-k tokens from the batch, requiring access to all tokens including future ones (non-causal). Right: ET routes each token independently by comparing its score against the population’s top-(1/E) quantile estimated by an EMA-tracked threshold ci, enabling fully causal routing over the population.

Datasets

The authors evaluated ET on:

  • FineWeb-Edu 100B: Used for pretraining models at two scales: d12 (575M parameters) and d20 (2.4B parameters).
  • CORE Benchmark: A standardized suite of in-context learning tasks for evaluation.
  • HumanEval & GSM8K: Used for analyzing expert specialization in coding and mathematics, respectively.

Key Insights and Ideas

  • The "Infinite Batch" Limit: The authors show that ET is essentially the limit of Expert Choice routing as the batch size goes to infinity. By using a global threshold, they eliminate the "noise" and causality violations inherent in small-batch token selection.
  • Information Leakage Proof: The paper provides a formal proof that infinite-precision Expert Choice fundamentally "leaks" information from the future, making it mathematically unsuitable for autoregressive modeling. ET avoids this by relying on historical population statistics.
  • Specialization without Coordination: ET achieves sharper expert specialization than small-batch EC. It naturally learns to route domain-specific tokens (like code or math) to specialized experts without needing complex batch-level coordination.
  • Dynamic Allocation is Key: Visualizations show that ET spends more "expert budget" on structurally important tokens (punctuation, sentence boundaries, and numerical results) than on common filler words.

Key Results

  • Superior Efficiency: ET achieves a 0.067 lower cross-entropy loss than standard Token Choice. This is equivalent to reaching the same performance level using 1.6× fewer training tokens.
  • Performance Gains: On the 2.4B parameter model (d20), ET improved the CORE benchmark score by 2.83 points over TC with auxiliary losses.
  • Training-Inference Alignment: Unlike EC, which suffers from a performance drop when moved to causal inference, ET maintains consistent behavior because the thresholds used during training are the same ones used at inference.
Figure 1: Evaluation loss for Dense, TC, and ET. Compared to TC, ET achieves a 0.067 final loss gap, or reaches the same performance with 1.6× fewer tokens.

Limitations and Future Work

  • Hardware Consistency: While ET is mathematically elegant, it trades off hardware consistency. Because the number of tokens per expert varies slightly per batch, it can lead to "starvation" (idle hardware) or "saturation" (dropped tokens if a buffer overflows). The authors use a capacity factor to mitigate this, but it remains a practical engineering challenge for massive-scale deployment.
  • Warmup Sensitivity: The model requires a careful warmup period (either using EC temporarily or a scheduled EMA decay) to stabilize the thresholds early in training.
  • Scaling: While tested up to 2.4B parameters, further research is needed to see if these benefits hold at the 100B+ parameter scale where communication overhead between experts becomes the primary bottleneck.

Summary updated

BibTeX
@inproceedings{sun2026expert,
  author = {Ryan Sun and Yixin Liu and Yonghui Wu and Lichao Sun},
  title = {{Expert Threshold Routing for Autoregressive Language Modeling with Dynamic Computation Allocation and Load Balancing}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=Ixq78yFOiT},
}
Figure