arXiv(opens in a new tab)cs.PFAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.26612

Launch-Bound and Substitutable: Why Three Inference Optimizations Fail to Pay Off in Mixture-of-Experts Models

Gokulakannan Sakthivel, Jerry Wu, Amogh Rajendra, Giriprasad Radhakrishnan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Gokulakannan Sakthivel*, Jerry Wu†, Amogh Rajendra*, Giriprasad Radhakrishnan*

*College of Computer, Mathematical, and Natural Sciences, †Electrical and Computer Engineering

University of Maryland, College Park, MD, USA

{gsakthiv, jerrywu, arajen15, rgpss02}@umd.edu

Abstract—Mixture-of-Experts (MoE) models route each token to a few of many expert networks, and that routing is data-dependent in a way standard inference optimizations do not expect. This paper measures what three of them actually deliver on OLMoE-1B-7B, DeepSeek-V2-Lite, and Qwen3-30B-A3B. Fused Triton kernels reach 5.6x to 9.0x in isolation but 0.999x end to end against a measured 1.07x ceiling, because the model spends its time waiting on roughly a thousand kernel launches per forward pass rather than on the arithmetic those kernels improve. INT4 quantization changes on average 0.53 of the eight selected experts per token position, yet replaying exactly those changed routes through full-precision weights reproduces only 2.7% of the quality loss, which makes the experts substitutable rather than specialized. Removing all 23 graph breaks from PyTorch's compiler, the step prior work treats as the structural fix, makes the model three times slower. A fourth result ties the three together: leaving the routers in FP16 lowers drift by 20% while raising loss, so routing fidelity and output quality are separable objectives. Every number recomputes from committed per-token route dumps.

Index Terms—Mixture-of-Experts, routing drift, Triton kernels, quantization, torch.compile, inference optimization, serverless GPU

I. INTRODUCTION

Large language models built on the Mixture-of-Experts (MoE) architecture have gained significant traction because they decouple model capacity from per-token compute cost. Rather than activating every parameter, a learned gating network selects a handful of expert feed-forward networks per token. This allows OLMoE [1], DeepSeek-V2 [2], and Qwen3 [3] to hold billions of parameters while using only a fraction on any given forward pass.

Despite this advantage, optimizing MoE inference remains difficult. Unlike dense architectures, MoE inference relies on dynamic, data-dependent routing, where the subset of activated experts is determined by the embedding of each input token. That behaviour violates assumptions the usual optimizations are built on. Custom GPU kernels are written for fixed tensor shapes; quantization methods assume small weight perturbations produce small output changes; graph compilers such as torch.compile work best when the traced graph does not change between calls. The adaptive routing that makes MoE efficient is therefore also what complicates kernel optimization, model compression, and compiler acceleration.

Recent work has attacked the problem from the deployment side. MoE-squared plans collaborative inference across heterogeneous edge devices under latency and energy budgets [4]. Liu et al. optimize how experts are distributed across serverless functions so that cold starts and cross-function traffic do not dominate [5]. SP-MoE reorganizes the training pipeline so expert computation and communication overlap [6]. All three take the per-device cost of a forward pass as given and schedule around it. We go the other way and ask what that per-device cost is actually made of, because if the single-device number is misattributed then every schedule built on top of it inherits the error.

This work investigates how the major inference optimizations interact with dynamic routing, and what the practical ceiling on each one really is. We evaluate system-level metrics (latency, throughput, memory) alongside the effect of each optimization on routing itself. Routing perturbation is quantified with four metrics: Routing Similarity, Jaccard Drift, Overlap@k, and Selection Shift. Crucially, we do not stop at correlating drift with quality. We intervene: the full-precision model is forced to follow the quantized model's expert choices, which separates what routing changes cost from what weight error costs. All experiments ran on NVIDIA A100 80GB SXM4 GPUs provisioned as serverless containers through Modal, one container per stage, so that no two measurements share a warmed device.

Three text-only models with clean FP16 baselines let us test whether the findings survive a change of routing configuration. OLMoE-1B-7B has 64 experts per layer with top-8 routing across 16 MoE layers, activating about 1B of 7B parameters. DeepSeek-V2-Lite uses 64 routed experts plus 2 shared, top-6, over 26 layers. Qwen3-30B-A3B is the widest at 128 experts, top-8, across 48 layers, and normalizes its top-k gate probabilities where OLMoE does not. Expert pool size, selection density, and gate normalization all differ, so a constraint that holds across all three is unlikely to be an artifact of one routing configuration.

Contributions: (1) A measured Amdahl ceiling of 1.07x for RMSNorm and router softmax, obtained by profiling wrapped modules rather than matching CUDA kernel names, and the finding that 5.6x to 9.0x isolated kernels still return 0.999x end to end because the model is launch-bound rather than arithmetic-bound. (2) A causal route-replay intervention showing that routing changes account for only 2.7% of INT4's quality loss, with a control that verifies the intervention machinery is itself neutral. (3) Evidence that torch.compile's graph-break count is not a performance metric: eliminating all 23 breaks costs a factor of three in latency. (4) A router-exemption result in which drift and quality move in opposite directions, plus a top-k correction that makes drift comparable across models with different k and reverses the apparent cross-model ordering. (5) A reproducibility and execution layer built on Modal serverless A100 containers, where every stage commits its results to a persistent volume with a provenance manifest recording the git commit, resolved checkpoint revision, and package versions, and every published metric recomputes from raw per-token route dumps in the accompanying open-source repository with no GPU and no third-party packages.

References (16)