TL;DR
This paper introduces a cache-aware post-training framework for Mixture-of-Experts (MoE) models that jointly optimizes the model's backbone and lightweight auxiliary routers to manage GPU expert caches efficiently. By adapting the model's routing behavior to be inherently more cache-friendly, the proposed Temporal and Spatio-Temporal Routers significantly increase cache hit rates and reduce off-chip memory traffic during inference without altering the native Top-K routing rule.
What Problem Does This Paper Address?
Mixture-of-Experts (MoE) models achieve massive capacity by activating only a small subset of experts per token. However, while this provides computational sparsity, it does not alleviate memory storage costs. When a model's full expert set exceeds the available GPU memory, experts must be stored in slower off-chip memory (like CPU RAM or storage) and repeatedly transferred to the GPU during autoregressive decoding.
Existing systems attempt to solve this via caching and prefetching policies (like LRU or predictive prefetchers) based on a fixed model access pattern. This paper flips the script by asking: Can we post-train the model to jointly adapt its own expert demand and cache priorities, making its access patterns inherently more cache-compatible?
Methods
The authors propose a unified cache-routing framework that introduces lightweight auxiliary routers alongside the native MoE routers. Crucially, they use a differentiable, soft Top-B membership surrogate loss ($\ell_{cache}$) during post-training. This allows the MoE backbone and the auxiliary routers to be optimized jointly.
The framework operates in two stackable modes:
- Temporal Router (Post-Access Retention): This module predicts same-layer expert demand for the next token based on the current token's hidden state. It scores resident experts to decide which ones to retain in the GPU cache after execution, incurring zero proactive prefetching traffic.
- Spatio-Temporal Router (Pre-Access Refinement): This full mode adds a Spatio Router that uses the causal predecessor's hidden state (e.g., the previous layer or the previous token's final layer) to proactively prefetch and refine the cache before the target layer is actually accessed.
Datasets
The methods were evaluated on two prominent MoE backbones (Qwen3-30B-A3B-Instruct and GPT-OSS-20B) across three standard reasoning benchmarks:
- GSM8K: Grade-school mathematics problems.
- MATH: Competition-level mathematics problems.
- CommonsenseQA: Multiple-choice commonsense reasoning questions.
Key Insights and Ideas
- Co-designing Model and Cache: Instead of treating the cache as a passive hardware layer, this work treats cache management as an algorithmic problem that the model can learn to accommodate. Joint post-training reshapes the native expert-use distribution, concentrating demand onto a more predictable subset of experts.
- The Power of Retention: The update-only Temporal Router demonstrates that simply learning what to keep in the cache after a demand load can yield massive traffic reductions without the bandwidth risks or complexity of proactive prefetching.
- Soft Supervision Retains Uncertainty: Rather than training auxiliary routers on hard Top-K labels, supervising them with the full continuous probability distribution of the native router preserves boundary uncertainty and provides denser gradients for learning relative cache priorities.
Key Results
The proposed methods demonstrate substantial improvements in cache efficiency with minimal parameter overhead (adding only 0.083% parameters for Qwen3 and 0.021% for GPT-OSS):
- Update-Only Gains: On Qwen3, the Temporal Router achieved the highest hit rate among all update-only methods, reducing expert-weight traffic (Load/token) dramatically—for instance, dropping from 1512 MB/token (LRU) to just 304 MB/token on CommonsenseQA.
- Prefetching Leadership: The full Spatio-Temporal Router outperformed strong prefetching baselines (like ProMoE and FineMoE) on Qwen3, boosting the adjusted hit rate by 1.15 to 18.03 points and cutting data traffic by 4.6% to 53.3%.
- Joint Training vs. Auxiliary-Only: Freezing the backbone and training only the auxiliary routers ("auxiliary-only") preserved baseline accuracy but yielded modest cache coverage. Jointly training the backbone and routers unlocked significantly higher cache hit rates, albeit with a minor, controllable trade-off in task accuracy at higher cache-loss weights.
Limitations and Future Work
- Simulation-Based Evaluation: The evaluation relies on a trace-driven cache simulator to measure algorithmic token traffic and hit rates. It does not measure end-to-end wall-clock latency, hardware interconnect bottlenecks, or transfer-computation overlap in a real runtime environment.
- Post-Training Requirement: The method requires full-model fine-tuning, which might be computationally expensive for exceptionally large models.
- Load Balancing Risks: Concentrating native routing onto fewer experts to improve cache locality could potentially impair expert-parallel load balancing in distributed, multi-GPU serving setups.
- Scope: The framework was validated only on pure MoE models and academic reasoning tasks; its performance on hybrid dense-sparse architectures or broader workloads remains untested.
Summary updated