potentialpaper

MarCap: From Marginal Routing Probabilities to Risk-Bounded MoE Workspace Provisioning with Lossless Replay

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:50 UTC · 055a6029a3f9 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "koLeIsvEom"
- }
- ],
- "title": "MarCap: From Marginal Routing Probabilities to Risk-Bounded MoE Workspace Provisioning with Lossless Replay",
- "authors": [],
- "abstract": "MoE kernels reserve workspace before routing loads are known.\nReserving for the worst case wastes memory, while fixed capacity factors\nfail to quantify overflow risk. We present MarCap ($\\textbf{mar}$ginal-based $\\textbf{cap}$acity provisioning), which maps routing marginals and a user-specified overflow risk budget\nto per-rank receive-buffer capacities. It optimizes over all possible fixed top-$k$ joint routing laws consistent with the marginals, covering arbitrary within-token expert co-selection\ncorrelations. Under the IID token assumption, we formulate receive-buffer capacity bounds\nin terms of extremal moment-generating functions and use exact feasibility\nconditions to reduce their computation to a small linear program that is\nsolved efficiently by a lower convex-hull construction.\nWe validate MarCap on 2.737B token-level routing records from two LLMs.\nAnalysis identifies inter-token dependence in prefill and marginal drift\nas sources of potential undersizing. Traffic mixing reduces dependence-related shortfalls, while sliding-window recalibration mitigates drift-related undersizing.\nThese results clarify the theory's practical scope.\nWe implement MarCap in $\\mathtt{megamoe\\underline{\\}replay}$, our fused MoE operator with bounded\nworkspace and lossless replay. Across 660k EP4 invocations on Ascend 950PR, $\\mathtt{megamoe\\underline{\\}replay}$ preserves reference outputs and reduces scratch workspace requirements by 44.1--71.4\\% versus\nfull reservation across the evaluated configurations.\nIn the tested decode workloads tested on hardware, which are well aligned with the IID model,\nMarCap keeps the observed frequency of overflow which would trigger additional replay rounds\nwithin the user-specified risk budget. Experimental data confirm the resulting benefit: substantial scratch workspace savings with mean latency comparable to the worst-case reservation, with a median\nabsolute difference of 0.36\\% across the tested decode configurations.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "fefe12c2-f90d-4fd4-8a3c-b5f52f6f222c"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "MarCap: From Marginal Routing Probabilities to Risk-Bounded MoE Workspace Provisioning with Lossless Replay",
+ "authors": [],
+ "abstract": "MoE kernels reserve workspace before routing loads are known.\nReserving for the worst case wastes memory, while fixed capacity factors\nfail to quantify overflow risk. We present MarCap ($\\textbf{mar}$ginal-based $\\textbf{cap}$acity provisioning), which maps routing marginals and a user-specified overflow risk budget\nto per-rank receive-buffer capacities. It optimizes over all possible fixed top-$k$ joint routing laws consistent with the marginals, covering arbitrary within-token expert co-selection\ncorrelations. Under the IID token assumption, we formulate receive-buffer capacity bounds\nin terms of extremal moment-generating functions and use exact feasibility\nconditions to reduce their computation to a small linear program that is\nsolved efficiently by a lower convex-hull construction.\nWe validate MarCap on 2.737B token-level routing records from two LLMs.\nAnalysis identifies inter-token dependence in prefill and marginal drift\nas sources of potential undersizing. Traffic mixing reduces dependence-related shortfalls, while sliding-window recalibration mitigates drift-related undersizing.\nThese results clarify the theory's practical scope.\nWe implement MarCap in $\\mathtt{megamoe\\underline{\\}replay}$, our fused MoE operator with bounded\nworkspace and lossless replay. Across 660k EP4 invocations on Ascend 950PR, $\\mathtt{megamoe\\underline{\\}replay}$ preserves reference outputs and reduces scratch workspace requirements by 44.1--71.4\\% versus\nfull reservation across the evaluated configurations.\nIn the tested decode workloads tested on hardware, which are well aligned with the IID model,\nMarCap keeps the observed frequency of overflow which would trigger additional replay rounds\nwithin the user-specified risk budget. Experimental data confirm the resulting benefit: substantial scratch workspace savings with mean latency comparable to the worst-case reservation, with a median\nabsolute difference of 0.36\\% across the tested decode configurations.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}