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

Manuscript Offprint

arXiv:2609.04895

Cache-Aware Joint Router Adaptation for Memory-Efficient MoE Inference

Zhenhe Wu, Yaping Jin, Qinghua Xing, Hang Zhou, Wei He, Xianjie Wu, Xianfu Cheng, Jian Yang, Hanting Chen

ABSTRACT

Mixture-of-Experts (MoE) models activate only a small subset of experts per token, but the full expert set often exceeds GPU memory, causing repeated weight transfers during decoding. We formulate expert-cache management as a model-side algorithmic problem and propose a cache-aware post-training framework that jointly adapts the MoE backbone and lightweight auxiliary cache routers while preserving the native Top-K expert-selection rule at inference. Its update-only mode, Temporal Router, predicts same-layer reuse and retains experts for future tokens without proactive loading. The full Spatio-Temporal Router adds a Spatio Router that uses the causal predecessor's hidden state to refine the temporal cache before target-layer access. We evaluate both modes on Qwen3 and GPT-OSS across GSM8K, MATH, and CommonsenseQA. Temporal Router consistently improves cache hit rate and reduces expert-weight traffic over matched LM-only baselines. On Qwen3, Spatio-Temporal Router achieves the best load-adjusted efficiency across three tasks, improving adjusted hit rate by 1.15–18.03 points and reducing traffic by 4.6–53.3% relative to the strongest evaluated prefetching baseline; results on GPT-OSS are competitive but task-dependent. An auxiliary-only ablation preserves baseline accuracy but yields modest cache gains, whereas joint post-training produces larger improvements. Sensitivity analyses show that cache capacity controls transfer demand, while the refinement budget governs the trade-off between pre-access coverage and proactive traffic.

1 INTRODUCTION

Mixture-of-Experts (MoE) is a central architecture for improving the capacity-computation trade-off of Transformer models. By routing each token to a small expert subset, an MoE layer increases total capacity without proportional per-token computation. Yet computational sparsity does not ensure efficient serving: growing expert sets may exceed an inference worker's GPU memory, forcing decode-time weight transfers from slower memory.

This deployment gap has motivated expert offloading, caching, and prefetching. MoE-Infinity reduces offloading overhead through activation-aware caching and request-level tracing Xue et al. (2024). ProMoE predicts future expert use from intermediate hidden states and proactively fetches experts Song et al. (2024), while FineMoE uses fine-grained access patterns and prompt-level signals for expert placement and replacement Yu et al. (2026a). Classical LRU, LFU, and LRFU policies provide training-free alternatives Mattson et al. (1970); Robinson & Devarakonda (1990); Lee et al. (2001). More recent MoE-specific methods include Least-Stale eviction in SpecMD Hoang et al. (2026) and the option-based expert-set persistence of Temporally Extended MoE Shen & Henderson (2026). Closest to our setting, STEP introduces adaptive spatio-temporal expert prefetching Liu et al. (2026), whereas ST-MoE combines profiled cross-token and cross-layer correlations with lightweight runtime prediction and reconfigurable hardware Zhao et al. (2026).

*Corresponding author. †These authors contributed equally to this work.

Two algorithmic gaps remain. First, heuristic or replay-based cache policies cannot directly optimize which resident experts remain useful at later decoding steps. Second, recent spatio-temporal prefetchers mainly treat locality as a runtime prediction and scheduling problem. We instead learn cache priorities during post-training, jointly adapting native routing behavior and auxiliary cache routers under a cache-aware objective while leaving transfer scheduling and hardware realization outside the algorithm.

We introduce a two-stage cache-management framework. After each layer access, the Temporal Router determines which experts remain cached for later tokens at the same layer. Before a target access, the optional Spatio Router uses the causal predecessor's hidden state to refine the cache. The native MoE router selects the executed experts; the auxiliary routers manage residency. The update-only mode uses only Temporal Router and performs no proactive loading, whereas the full Spatio-Temporal Router adds bounded Spatio Router refinement to the temporal carry-over cache.

We evaluate both modes on Qwen3 and GPT-OSS using GSM8K, MATH, and CommonsenseQA. Temporal Router consistently raises hit rate and reduces traffic relative to classical replacement configurations. Among prefetching methods, Spatio-Temporal Router achieves the highest adjusted hit rate and lowest Load on all Qwen3 tasks, with competitive GPT-OSS results and far fewer added inference-time parameters than ProMoE. Auxiliary-only training yields limited cache gains, whereas joint post-training is substantially more effective. Cache-capacity and refinement-budget sweeps show that larger caches reduce transfer demand, while aggressive refinement trades proactive traffic for higher raw hit rate.

The main contributions are as follows:

  • We formulate expert-cache management as cache-aware model post-training that jointly adapts native routing behavior and lightweight in-model cache routers without changing the inference-time Top-K rule.

  • We instantiate a stackable two-stage algorithm: Temporal Router is an independently deployable update-only policy with no proactive traffic, and Spatio-Temporal Router adds bounded Spatio Router refinement to the temporally carried cache before expert access.

  • We compare against representative replacement and prefetching baselines on two sparse MoE backbones and three reasoning benchmarks, and analyze adaptation scope, router composition, cache capacity, refinement budget, and cache-loss weight with proactive-load-aware metrics.

References (21)