Unified Co-Management of KV Cache Blocks and MoE Experts Under Memory Pressure
Manage attention key-value cache blocks alongside mixture-of-experts weights in a unified GPU-host memory pool to prevent long prompts from evicting reusable experts.
Source paper
Yifei Wang, Tsun-yu Yang, Yechen Xu, Hancheng Ye, Qinsi Wang, Baijun Zhou, Tingjun Chen, Hai "Helen" Li, Danyang Zhuo, Yiran Chen
Generated by AI. The paper’s authors did not write these.
Manage attention key-value cache blocks alongside mixture-of-experts weights in a unified GPU-host memory pool to prevent long prompts from evicting reusable experts.
Capture variable-width sparse attention inside bucketed CUDA graphs so local inference engines avoid falling back to slow eager execution on every decoder layer.
Predict upcoming mixture-of-experts weights across layers during decoding to prefetch missing experts from solid-state storage before the active layer stalls.
Schedule concurrent agent and subagent requests alongside tiered expert residency so multiple local reasoning sessions share cached weights without thrashing storage.
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.
TIDEWAY pairs a Cross-Tier Memory Manager—which maintains a unified Residency Table, switches between streaming Prefill and slot-based Decode layouts, performs replica-aware eviction via lazy duplicate reclamation and selective D2H victim writeback, and overlaps asynchronous transfers—with a Paging-Aware Execution Engine that uses a double-buffered Streaming Prefill Pipeline and three-segment piecewise CUDA Graph replay around host-side expert paging.