Stepped MoE: Segment-Level Routing with Configurable Inference Complexity
Abstract
Training large language models (LLMs) is resource-intensive, and adapting them for diverse deployment scenarios with varying computational constraints remains challenging. While elastic architectures enable flexible model deployment and sparsely activated models allow input-adaptive computation, existing approaches treat these dimensions independently. Moreover, models catered towards on-device edge inference need to conform to the memory and compute limitations of the serving devices. In this paper, we introduce a unified framework that combines elastic structures with sparsely gated architectures to create models that adapt simultaneously to both deployment constraints and task requirements. Our approach employs a model backbone that conditions on both the context and target efficiency specifications, enabling fine-grained control over the accuracy-efficiency trade-off at inference time. The model learns to activate task-relevant parameters within elastically-nested sub-networks, allowing a single model to span multiple capacity points while maintaining input-adaptive routing. Through experiments we demonstrate that we can create a model that allows the flexibility to use 1,2,3,4 billion parameters while being more accurate than their dense counter-parts (2-5\% on knowledge-intensive benchmarks) and at par with their static versions while delivering similar latency metrics as dense models. Overall, we save on device disk space by sharing the model parameters, allow flexibility of serving based on DRAM and compute available while delivering more accurate results.
Community
Large MoEs are compute-efficient, but serving them can still be memory-inefficient.
If expert choices change across tokens/layers, you either keep a large expert pool in DRAM or repeatedly move weights during generation.
Stepped MoE changes the routing granularity: early layers predict experts for a segment of future tokens, improving weight locality and keeping memory closer to the active parameter footprint.
But different devices have different memory budgets.
So with Flexible Stepped MoE, the same model can run at roughly 1B, 2B, 3B, or 4B active parameters at inference time.
The model adapts along two axes:
- which experts the input needs
- how much total capacity to use
The broader idea:
Model size can be a runtime decision, not a fixed property of the checkpoint.
Get this paper in your agent:
hf papers read 2610.07348 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper