Skip to content
AI-generated research ideađźź Mediumđź’ˇModerate InnovationRelated work found

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

a couple of months

Compute level

Single GPU or less

Resources

Single consumer desktop with RTX 5090, 32–96 GiB RAM, NVMe SSD, DeepSeek-V4-Flash and Qwen3.6-35B-A3B checkpoints, and TraceLab traces for router trace calibration.

What the paper used

A single consumer desktop with a 32-core AMD CPU, 251 GiB RAM (capped at 16–128 GiB per model), a 32 GB NVIDIA GeForce RTX 5090 over PCIe 5.0, and an 8 TB WD_BLACK SN850X NVMe SSD; evaluated on Gemma4-26B-A4B (BF16), Qwen3.6-35B-A3B (BF16), and DeepSeek-V4-Flash (FP4) across 270 static-shape configurations (4K–128K input, 128–2K output) and eight multi-turn TraceLab coding-agent traces.

Prerequisites

MoE routing dynamics, asynchronous CUDA streams and NVMe I/O overlapping, and lightweight linear/MLP predictor training.

Scope

Add lightweight predictor module and modify TIDEWAY Transfer Engine and Residency Table.

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.”
From the paper, Section 5.3, page 7. Matched against the PDF text.

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%.

  1. Log layer-by-layer router activation traces from TIDEWAY on TraceLab sessions to measure cross-layer expert predictability and SSD miss frequency during decode.
  2. 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.
  3. Integrate a non-blocking prefetch queue into TIDEWAY's Transfer Engine and Residency Table that respects hot/anchored slot protection.
  4. 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?

Related work found

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.

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 Devices

Yifei 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

Is this a good idea?

Share onXLinkedIn