Cross-Layer Lookahead Expert Prefetching Integrated with Tiered Decode Paging
Predict upcoming mixture-of-experts weights across layers during decoding to prefetch missing experts from solid-state storage before the active layer stalls.
Time
Compute level
Resources
What the paper used
Prerequisites
Scope
The Gap
In TIDEWAY's paging-resilient decode flow (Section 5.3 and Figure 6), active expert IDs for layer l are only known after the GPU router finishes in Segment 2, at which point the host reads back the IDs, queries the Residency Table, and issues synchronous-path SSD reads (6.8 GB/s) and PCIe transfers before Segment 3 can execute.
“Every transfer in the flow is conditional on residency, so a layer whose experts all hit pays only the resolution and the upload, and a miss that reaches the SSD lengthens the handler without changing the execution path around it.”
Limitation
Reactive per-layer miss handling places high-latency NVMe SSD reads directly on the critical path of the current layer's execution, leaving the GPU stalled whenever routed experts miss in both VRAM and host RAM.
Proposed Solution
Add a lightweight cross-layer router predictor (or residual-stream lookahead projection) executed inside Segment 2 of layer l to forecast top-k experts for layers l+1 and l+2. Feed predicted missing expert IDs into a low-priority prefetch queue in the Transfer Engine that asynchronously stages SSD-only experts into the host RAM Streaming Window—or dedicated prefetch slots—without displacing anchored or hot experts, while keeping the Residency Table authoritative so mispredictions simply remain unused in RAM.
Why This Matters
Overlapping lookahead SSD-to-RAM prefetching with current-layer computation is expected to hide storage latency on decode misses and smooth per-step latency spikes immediately following prefill transitions.
How to Get Started
How to test it: Test whether cross-layer lookahead prefetching reduces decode TPOT on DeepSeek-V4-Flash at 64 GiB RAM compared to reactive TIDEWAY by measuring hit rate on prefetched experts, wasted SSD bandwidth, and step-by-step TPOT after turn prefill; stop if misprediction-induced SSD contention increases average TPOT or SSD traffic by more than 10%.
- Log layer-by-layer router activation traces from TIDEWAY on TraceLab sessions to measure cross-layer expert predictability and SSD miss frequency during decode.
- Train lightweight linear or single-layer predictors per layer to predict layer l+1 and l+2 active experts from layer l router inputs/outputs using collected traces.
- Integrate a non-blocking prefetch queue into TIDEWAY's Transfer Engine and Residency Table that respects hot/anchored slot protection.
- Benchmark decode TPOT and post-prefill cold-start recovery latency (as in Figure 9) against reactive TIDEWAY under 32–64 GiB RAM budgets.
Suggested by AI. Adapt it to your setup.
Has This Been Done?
Papers like LayerScope and OasisKV explore predictive cross-layer scheduling and lookahead prefetching for memory-bound architectures. They do not precisely combine a cross-layer lookahead router with tiered decode paging and a host streaming window managed by a residency table in the manner described.
- OasisKV: Scaling In-Decode KV Cache Beyond HBM with Lookahead Sparse Prefetching · 2026 · 2 citations
- LayerScope: Predictive Cross-Layer Scheduling for Efficient Multi-Batch MoE Inference on Legacy Servers · 2026 · 12 citations
We searched OpenAlex and arXiv for “cross-layer lookahead expert prefetching SSD MoE decode inference” and “Cross-Layer Lookahead Expert Prefetching Integrated with Tiered Decode Paging” and an AI compared the idea with the top 10 results. A small search can miss relevant work.
Source Paper
Tideway: Phase-Aware Tiered Memory Management for MoE Inference on Consumer DevicesYifei Wang, Tsun-yu Yang, Yechen Xu +7 more · 2026
This paper introduces TIDEWAY, a phase-aware tiered memory management and execution system for running frontier-scale Mixture-of-Experts (MoE) language models locally on memory-constrained consumer PCs. When model weights exceed GPU VRAM and host RAM and spill onto an NVMe SSD, TIDEWAY unites VRAM and host RAM into a unified pool with phase-specific layouts and paging-resilient CUDA Graph execution, achieving average speedups of 1.97x in end-to-end latency, 2.40x in TTFT, and 1.61x in TPOT over state-of-the-art baselines.
Related Ideas
- Three-Tier NVMe-DRAM-VRAM Expert Hierarchy for Memory-Constrained Consumer HostsFreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Executionđź”´Hard
- Learned Dynamic Prefill Chunk Fetching for Unbounded Multi-Page Document ParsingUnlimited OCR Worksđź”´Hard
- Workload-Adaptive Dynamic Expert Caching for Hybrid GPU-CPU On-Device ExecutionClover-35B-A3B-Preview Technical Report🟡Fairly easy
- Empirical Production Serving Benchmarking of MLA-DSA Attention with IndexShareTeleChat to Xing4: Advancing Frontier Agentic Models on Domestic Chips and Frameworksđź”´Hard
- Efficient Input-Dependent Queries for Attention ResidualsAttention Residualsđźź Medium