# RankLane: Efficient MoE Prefill on Accelerators with Ranked Expert Capacities

RankLane ranks MoE experts by current load to fill fixed accelerator lanes

Wentao Ni, Chihao Yu, Hong Cai, Mingu Lee, Hejia Zhang, Fatih Porikli and 1 more · arXiv · 2026-10-30

- **Problem** Accelerators with static execution plans fix expert capacities before routing is known. Uniform worst-case capacities waste work on padding, while smaller expert-tied capacities overflow when a different expert becomes busy.
- **Method** RankLane ranks each device's experts by current load and assigns them to fixed-capacity lanes. Busiest experts take the largest lanes, and overflowing chunks rerun at full capacity.
- **Results** On Qwen3-30B-A3B, RankLane's end-to-end prefill speedups over a dense baseline reach 1.27 to 4.18 times, and on Gemma 1.93 to 3.46 times.

![Figure 3: RankLane overview. Offline calibration and measured costs select fixed lane counts and capacities. At run time, each SoC (1) ranks its experts, (2) g…](https://refivu.com/papers/f7927c3d-d378-47cf-912d-4d143489b915/figures/figure-94b155fb702eb04cc4090ed03fb9a209.png?thumb=512)

**Figure 3** . RankLane overview. Offline calibration and measured costs select fixed lane counts and capacities. At run time, each SoC (1) ranks its experts, (2) gathers weights and tokens into fixed-capacity lanes, and (3) combines outputs by token on local cores; (4) an elementwise sum combines device partials. After all layers, a host check triggers a capacity-Trerun if any lane overflows.

[Original paper](https://arxiv.org/abs/2611.00421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Wentao Ni, Chihao Yu, Hong Cai, Mingu Lee, Hejia Zhang, Fatih Porikli, Jishen Zhao · RankLane: Efficient MoE Prefill on Accelerators with Ranked Expert Capacities · Original paper figure · Extracted the figure area from page 5 of the original PDF.

## Why fixed lanes waste work

Cloud AI 100 runs a compiled graph whose tensor shapes, lane counts and placement are fixed before any token is routed. Qwen3-30B-A3B selects 8 of 128 experts for each token, so the work per expert changes with the input. A capacity of T rows per expert covers any routing of a T-token chunk. That capacity reserves 128T rows for only 8T assignments, so most of the rows are padding.

Smaller fixed capacities save that padding, but an expert overflows once a different expert becomes the busy one.

Fixed expert assignments need capacities (8,4,8,4) to cover both chunks. Ranking the experts by current load needs only (8,4,2,2) in either chunk. The expert that needs the largest lane changes between chunks, while the lane capacities stay fixed.

Average popularity alone doesn't determine the peak that each expert's capacity must cover. In some layer, one expert receives 127 of 128 tokens, 256 of 256, or 508 of 512. Within one workload, two halves of the data agree at 0.52 to 0.88, so a fixed order cannot follow the peaks of a new input.

A fixed expert order can't track which experts will be busy in a new chunk. Ranking each device's experts by current load lets the busiest experts take the largest lanes.

## Measured load envelope under runtime ranks

The measured load envelope shows how far the busy experts fall once they are ranked by current load. Within one workload, two halves agree far more closely, at 0.52 to 0.88. Figure 2 compares the capacity envelopes built from device-captured routing. With each SoC's 32 experts fixed in calibration-mean order, the held-out maximum reaches 90 to 126 of 128 rows at every position.

Covering that envelope reserves 93% of the rows of capacity-T padding.

![Figure 2: Expert-load envelopes from device routing captures. Each panel uses 200 calibration and 200 held-out chunks, with matched counts per workload across…](https://refivu.com/papers/f7927c3d-d378-47cf-912d-4d143489b915/figures/figure-8093e3a6a2b2fda8c13d5c2769c849c9.png?thumb=512)

**Figure 2** . Expert-load envelopes from device routing captures. Each panel uses 200 calibration and 200 held-out chunks, with matched counts per workload across eight workloads. Calibration fixes the mean-load expert order; curves summarize held-out loads. Red: fixed order. Blue: runtime rank. Black: deployed RankLane capacities. Dotted: capacityT.

[Original paper](https://arxiv.org/abs/2611.00421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Ranking the same experts by their load in the current chunk changes the picture sharply. Ranks 17 to 32 receive at most 12 rows at T=128. The measured rank envelope therefore supports much smaller capacities below the first ranks. Figure 2 also shows the envelopes at T=512 over 200 held-out chunks, with fixed order, runtime rank max, runtime rank median and the RankLane tier capacity.

Assigning experts to capacity buckets by their own load would change how many experts fall into each bucket. Assigning fixed rank ranges to tiers keeps each tier's lane count constant, whatever the expert identities. The small capacities depend on the measured envelope, so inputs beyond it still need overflow detection and recovery. The compiler skips some empty work, so reserved capacity doesn't directly set the executed work.

The authors therefore also evaluate compiled latency alongside provisioned rows.

The rank gap matters only if the return path keeps the savings, which the aggregation step governs. Each lane still reserves T output rows in the accumulator, even when its expert capacity is smaller.

## Ranking experts into fixed tiers

RankLane keeps the number and size of lanes fixed and lets each chunk decide which expert fills which lane. Each device ranks its experts by the token counts they receive in the current chunk. Ranking within each SoC's expert set keeps each expert's computation on its assigned device.

Device c owns a fixed expert set E\_c, with 32 experts per SoC here. After sorting the counts into an order π\_c, tier i runs L\_i lanes per device at capacity C\_i, covering ranks a\_i through a\_i + L\_i − 1. The lane counts add up to the expert count, so every expert keeps one lane. Lane j serves the expert at rank a\_i + j, and its gate, up and down GEMMs run over its fixed row capacity.

The top r experts together hold at most N\_c assignments, so the rank-r expert holds at most N\_c / r. Here N\_c ≤ min(k,\|E\_c\|)T, which averages 2T in this setup and reaches at most 1.9 times that in the Qwen3 captures at 256 and 512 tokens. Lower ranks therefore admit smaller capacities, whereas a fixed expert identity can still peak near T.

A device provisions the sum of L\_i C\_i rows instead of \|E\_c\| T, which is the saving the tiers buy. If an expert's token count fits its lane, the exact-arithmetic output stays unchanged. Qwen3's tested tiering variants are also bit-identical, although compilation can change summation order.

## Token-owned combine

The dense return path writes into a zero-filled accumulator shaped \[lanes, T, d\], so every lane reserves T output rows. Tiers of different widths also need separate accumulators, so dense aggregation doesn't shrink as padding shrinks. Instead, RankLane gathers each token's at-most-k contributions and sums them locally on the device.

Each device forms a token partial Pc\[t\] by summing the weighted outputs Oc\[row(t,j)\] of that token's experts on the device. RankLane exposes device ownership as the gather's leading batch axis.

The gathered rows take the shape \[D, Tk, d\] and sum over k into \[D, T, d\] partials. The compiler splits this work by token tiles, so each core gathers and sums its own tokens with no cross-core reduction. Figure 4 contrasts this placement with a lane-indexed reduction, which still exchanges operands across cores. Each tier gathers Tk rows per device, including masked slots, instead of LsT lane-dense rows.

Added tiers therefore pay for their gathers and local partials, so tier selection has to count those costs.

At T = 512, ranked tiers cut Qwen3's latency by only 4% with dense aggregation. With token-owned aggregation, the same ranked tiers cut Qwen3's latency by 27% at T = 512. Runtime ranking, weight access and the final cross-device sum stay common to all four programs. The capacity savings are identical in both cases, so the return path sets how much of that saving reaches latency.

## Sizing tiers from calibration

Tier capacities come from a calibration rule that bounds the observed load at each rank. The first tier takes capacity T, and tier i starts at rank a\_i, with a\_i equal to 1 plus the sum of the lane counts L\_j of earlier tiers. Each later tier takes the m(a\_i) scaled by headroom h, rounded up to a multiple of the row granularity g and capped at T.

Headroom is empirical, so overflow still requires recovery.

The search therefore scores candidate tiers with measured compiled execution costs instead of provisioned rows. The estimated layer time adds the pre-GEMM time, the GEMM time of each stage, the switches between stages and the aggregation after the last stage, plus fitted corrections.

The search scores 27,466 structures with N = 32 experts per device, at most 16 lanes per stage and at most five tiers. For Qwen3, the deployed 8/8/16 structure gives capacities of 512/128/64 at T = 512. That provisions 6,144 rows per SoC, compared with 16,384 rows for uniform capacity T. The objective excludes recovery and doesn't guarantee that unseen loads fit.

Qwen3 uses the same 8/8/16 lanes across chunk lengths and varies only the capacities, which the authors call among the search leaders at T = 128 and 512.

## Overflow recovery in RankLane

Detection in RankLane reuses each lane's token count, which the host compares with that lane's capacity after every chunk. When a lane goes over its limit, the host reruns that same chunk at capacity T and at the same positions. Normal-path tiers stay smaller, so only the overflowing chunk pays for the wider rerun.

Prefill writes the KV cache only at the chunk's own positions, so the rerun overwrites whatever the failed attempt left there. Later chunks read only the rerun's cache, so the final output matches an overflow-free run. The recovery profile reuses the normal profile's weights and cache and changes only the capacities tied to small row inputs.

Expected chunk cost with in-program recovery is t\_ready plus p times t\_retry, where p is the overflow probability. The t\_ready term covers profile support and host-check overhead, while t\_retry covers the capacity-T rerun and its check. With an injected host overflow signal, a Qwen3 chunk took 238.3, 349.9 and 579.0 ms at T=128, 256 and 512.

That is 2.1 to 2.5 times a normal recovery-enabled chunk, since the measurement includes the rejected tiered attempt and both host checks. Gemma's injected-signal chunks took 248.1, 376.2 and 674.3 ms at the same chunk lengths.

Gemma also passed 180 deliberate actual-overflow recoveries on four-chunk prompts. Accepted outputs and continuations matched direct capacity-T execution at the stressed chunk. At T=2048, Gemma's recovery overhead grows to 10.2%, which lowers its delivered speedup to 2.78×. Across the evaluated range, the speedups of 1.27 to 4.18 times on Qwen3 and 1.93 to 3.46 times on Gemma already include recovery support.

## Replay on unseen routing

Calibration-fixed tiers freeze one expert order per layer and SoC, and the replay asks whether that order still covers new routing. Only the way experts are assigned to those fixed capacities changes between the two alternatives. The authors tested orders based on mean, peak, 99th- and 99.9th-percentile calibration load, and chose among them using calibration alone.

The 99th-percentile order was the selected policy at all three chunk lengths.

The replay used held-out device routing counts from 782, 609 and 443 chunks at T=128, 256 and 512. All four calibration-fixed policies overflow every replayed chunk at the deployed capacities. Runtime ranking overflows none of the 1,834 chunks. Both alternatives provision 59 to 63% fewer rows than uniform capacity T.

Those attempt timings exclude recovery, and Table 2 leaves out recovery support from both programs. The complete-system results in Section 5.2 include detection and recovery support.

![Table 2: Qwen3 assignment at matched tier capacities. In held-out trace replay, fixed assignment overflows every chunk; runtime rank- ing overflows none. Attem…](https://refivu.com/papers/f7927c3d-d378-47cf-912d-4d143489b915/figures/figure-bf934dc629f0b9c6a82e98ce97bbff0f.png?thumb=512)

**Table 2** . Qwen3 assignment at matched tier capacities. In held-out trace replay, fixed assignment overflows every chunk; runtime rank- ing overflows none. Attempt timings exclude recovery, required by all fixed-assignment timing runs.

[Original paper](https://arxiv.org/abs/2611.00421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## Where the speedup comes from

RankLane prefilled 1.27–4.18× faster than the dense baseline on Qwen3 and 1.93–3.46× on Gemma across 128–2048-token chunks. The dense baseline keeps fixed expert assignments, static weights, capacity T and dense aggregation, while sharing the other execution settings.

With uniform capacity T, token-owned aggregation gives 1.27–1.33× speedups, and with ranked tiers it gives 1.76–1.91×. At T=512 tiering cut Qwen3 latency by 27.1% with token-owned aggregation but only 3.6% with dense aggregation. Dense aggregation keeps lane-dense output buffers even when the expert capacities shrink, so the same capacity savings pay off less.

Figure 7 compares the four Qwen3 programs at T=128 and 512.

![Figure 7: Qwen3 full-model prefill under uniform and ranked ca- pacities. Token-owned aggregation enables 9–27% latency reduc- tions from tiering; dense aggreg…](https://refivu.com/papers/f7927c3d-d378-47cf-912d-4d143489b915/figures/figure-8041385fe5bcd01fd520b753c46a1bfe.png?thumb=512)

**Figure 7** . Qwen3 full-model prefill under uniform and ranked ca- pacities. Token-owned aggregation enables 9–27% latency reduc- tions from tiering; dense aggregation yields a 37% slowdown at T= 128and only a 4% reduction atT= 512.

[Original paper](https://arxiv.org/abs/2611.00421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Global row indices moved 1539 MiB between SoCs per MoE layer at T=512, versus 14 MiB with the device-batched gather. A lane-indexed reduction ran 11–15% slower than token-owned aggregation, and its local sum moved 241.9 MiB between cores versus 1.9 MiB.

On Qwen3, reduction alone gives 1.21–2.32× over the dense baseline, and ranked tiers add 1.10–2.11× on top of it before recovery overhead. On Gemma at T=512 the sequence 982.6, 546.9, 274.0 and 283.7 ms means reduction saves 436 ms, tiering saves 273 ms and recovery adds 10 ms.

## Tier selection and cost-model accuracy

On Gemma at T=512, the manual 8/8/8/8 structure ran in 309.9 ms with 6,144 rows per SoC. The latency-guided search chose 11/12/9 lanes with capacities 512/112/32 from the calibration split, using headroom h=1.28. The 12/11/9 alternative ran in 294.2 ms with 7,488 rows, so reserved capacity alone doesn't predict latency.

![Table 3: Gemma prefill at T= 512 with recovery support. Latency-guided tiers cut latency by 8.5% versus manual tiers de- spite 18.2% more rows, showing that re…](https://refivu.com/papers/f7927c3d-d378-47cf-912d-4d143489b915/figures/figure-85745b742c07943774e39779b1b6d2c3.png?thumb=512)

**Table 3** . Gemma prefill at T= 512 with recovery support. Latency-guided tiers cut latency by 8.5% versus manual tiers de- spite 18.2% more rows, showing that reserved capacity alone does not predict performance.

[Original paper](https://arxiv.org/abs/2611.00421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The cost model predicts MoE spans for 48 Qwen3 programs at T=512 with a full-fit mean absolute percentage error of 4.3%. Excluding each program's own cost-table observations raises that error to 4.9%, because auxiliary terms still share the fitting pool. For Qwen3, the model predicts 6.65 ms for 11/12/9 and 6.83 ms for 12/11/9 per MoE layer.

Two-layer measurements reverse that order, at 7.91 ms for 11/12/9 against 7.01 ms for 12/11/9.

For Gemma, the error is 3.9% on 19 independent structures and 10.9% on 20 search-selected candidates. The fit left out both sets, and every search-candidate error comes out optimistic. The models predict MoE spans rather than full-model latency, so full-model validation remains necessary. Close candidates still need measurement to resolve their ordering, since the predictions track cost differences only at coarse resolution.

Gemma uses 251 programs with four samples each. Once the table exists, scoring all 27,466 Qwen3 structures takes seconds, while spill checks take about a minute per candidate.

## Limitations and what was not tested

The cost model predicts MoE span time, not full-model latency, so full-model validation remains necessary. Predicted and measured spans agree with 4.3% mean absolute percentage error for Qwen3, but close candidates still need measurement. Single-sample profiles don't resolve close alternatives, such as the 1.3% gap at T= 256 between 8/16/8 and the fastest candidate.

The objective excludes recovery and doesn't guarantee that unseen loads fit the chosen capacities.

The headroom used for capacity calibration is empirical, so overflow can still occur and requires recovery. Candidates beyond the compiled leaders remain provisional, because unchecked structures have not had their spill corrections updated. Overflow recovery reruns the chunk at full capacity T, which adds latency that the normal-path timings don't include.

The experiments cover batch-one prefill on one four-SoC Cloud AI 100 Ultra card with MXFP6 weights. Timing uses GSM8K chunks, so the authors didn't test other input distributions for latency. The graph path evaluated here is the Cloud AI 100 one, and it isn't available on all AOT platforms. For Gemma at T=2048, the recovery overhead grows to 10.2%, which lowers the delivered speedup to 2.78×.

## Paper info

- **Authors**: Wentao Ni, Chihao Yu, Hong Cai, Mingu Lee, Hejia Zhang, Fatih Porikli, Jishen Zhao
- **Venue**: arXiv · Preprint
- **First published**: 2026-10-30
- **Added**: 2026-11-7
- **Updated**: 2026-10-30
- **Version**: v1
- **arXiv**: 2611.00421
- **Category**: cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.00421v1) · [PDF ↗](https://arxiv.org/pdf/2611.00421v1)

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.

## Abstract

Mixture-of-experts (MoE) models expand model capacity by activating only a subset of experts for each token. On accelerators with static execution plans, expert capacities and placement are fixed before routing reveals each expert's load. Uniform worst-case capacities waste work on padding; smaller capacities tied to expert identities can overflow. We present RankLane, which ranks each device's experts by current load and assigns them to fixed-capacity lanes. Runtime indices select experts and token rows while tier populations, shapes and device placement remain fixed. An aggregation graph preserves device ownership and reduces each token's local contributions on one core. Routing calibration and measured execution costs guide tier selection; overflowing chunks rerun at full capacity. We evaluate full-model prefill of Qwen3-30B-A3B and Gemma 4 26B-A4B with MXFP6 weights on four Cloud AI 100 Ultra SoCs, using 128-2048-token chunks and including overflow detection and in-program recovery support. Against a dense baseline, RankLane achieves end-to-end prefill speedups of 1.27-4.18x on Qwen3 and 1.93-3.46x on Gemma.

## Quote from the paper

Wentao Ni, Chihao Yu, Hong Cai, Mingu Lee, Hejia Zhang, Fatih Porikli, Jishen Zhao (2026). RankLane: Efficient MoE Prefill on Accelerators with Ranked Expert Capacities. arXiv:2611.00421v1. https://arxiv.org/abs/2611.00421v1

**BibTeX**

```
@misc{ni2026ranklane,
  title = {{RankLane: Efficient MoE Prefill on Accelerators with Ranked Expert Capacities}},
  author = {Wentao Ni and Chihao Yu and Hong Cai and Mingu Lee and Hejia Zhang and Fatih Porikli and Jishen Zhao},
  year = {2026},
  eprint = {2611.00421},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.00421v1}
}
```

## Other paper commentary

- [SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot](https://refivu.com/en/papers/98e70bdf-a832-4686-b3f8-e3eefd5887c4-sparsegpt-massive-language-models-can-be-accurately-pruned.md)
- [Fast Inference from Transformers via Speculative Decoding](https://refivu.com/en/papers/41a03564-b5d1-4b7f-8db4-502dbc43fbe0-fast-inference-from-transformers-via-speculative-decoding.md)
- [GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers](https://refivu.com/en/papers/46a31638-80a6-4626-a5e7-028ae5ccea93-gptq-accurate-post-training-quantization-for-generative-pre.md)
- [ZeRO: Memory Optimizations Toward Training Trillion Parameter Models](https://refivu.com/en/papers/30a4fae5-65d8-4fa2-8552-c186c4a4d88f-zero-memory-optimizations-toward-training-trillion-parameter.md)
- [Linformer: Self-Attention with Linear Complexity](https://refivu.com/en/papers/470ce67a-0f79-4a06-ae89-f26384095187-linformer-self-attention-with-linear-complexity.md)
- [Reformer: The Efficient Transformer](https://refivu.com/en/papers/0dd490a3-709f-4bac-ae3f-de0bc9e197db-reformer-the-efficient-transformer.md)
- [Do Multimodal Models Decide Consistently on Equivalent Optical Spectra?](https://refivu.com/en/papers/c483ea13-e457-4204-8a3e-745a9f1ff96f-do-multimodal-models-decide-consistently-on-equivalent.md)
- [VESPER: Online Learning of Free Energies with a Multi-Tempered Variational Objective](https://refivu.com/en/papers/04cc6b0b-2813-4236-aec2-26ed4e60479a-vesper-online-learning-of-free-energies-with-a.md)
- [TAP-Out: Tracking Any Point in 360° via Outpainting](https://refivu.com/en/papers/c96c1eb9-0550-4641-93eb-a30e05f45773-tap-out-tracking-any-point-in-360-via.md)
- [SIEVE: Preserving Cross-Image Evidence via Depth-Aware Token Compression](https://refivu.com/en/papers/83316c7f-11b3-40f3-9c27-b228d2f1541b-sieve-preserving-cross-image-evidence-via-depth-aware.md)
- [ACCT: Asymmetric Cross-LLM Context Transfer](https://refivu.com/en/papers/89f80623-80c2-4c6c-8a1f-c713dd80f97a-acct-asymmetric-cross-llm-context-transfer.md)
- [WASABI: Wasserstein Sampling via Bridge Interpolants](https://refivu.com/en/papers/84b674fb-878d-49cf-807c-fa181997db99-wasabi-wasserstein-sampling-via-bridge-interpolants.md)

## Terms in this paper

- [GSM8K](https://refivu.com/en/terms/e48f0e01064d-gsm8k)
- [Jaccard Index](https://refivu.com/en/terms/c2a7049ebc65-jaccard-index)
- [Qwen3-30B-A3B](https://refivu.com/en/terms/23b7b0cc48f6-qwen3-30b-a3b)
- [expert capacity](https://refivu.com/en/terms/5a23f0a0c75b-expert-capacity)
- [Expert Parallelism](https://refivu.com/en/terms/730d0f2b6260-expert-parallelism)
- [headroom](https://refivu.com/en/terms/75e66232e32f-headroom)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/f7927c3d-d378-47cf-912d-4d143489b915-ranklane-efficient-moe-prefill-on-accelerators-with-ranked)
