Tideway: Phase-Aware Tiered Memory Management for MoE Inference on Consumer Devices
Yifei Wang, Tsun-yu Yang, Yechen Xu, Hancheng Ye, Qinsi Wang, Baijun Zhou, Tingjun Chen, Hai "Helen" Li and 2 others
Duke University
Published November 10, 2026 · on the feed November 19, 2026 · ▲ 67 · arXiv 2611.14848
The abstract
Large language model (LLM) agents are rapidly becoming a dominant paradigm for AI applications. Recently, there is a growing demand to deploy large-scale Mixture-of-Experts (MoE) models locally on consumer PCs to balance data privacy, API costs, and inference efficiency. However, unlike datacenter servers with abundant DRAM, consumer devices are tightly constrained in both GPU VRAM and host RAM, forcing massive MoE weights to spill across VRAM, host RAM, and SSD. Under such spilling, we observe that existing systems fail to fully utilize this memory hierarchy, treating the tiers as independent caches and thrashing in inference. We present TIDEWAY, a system for efficient inference of large MoE models on memory-constrained consumer devices. Our core insight is to manage host RAM and GPU VRAM as a unified memory pool. Within this pool, TIDEWAY couples phase-aware memory layouts, which adapt to the distinct access patterns of prefill and decode, with an execution engine that optimizes CUDA Graph execution under expert paging. Our evaluations on representative consumer hardware with frontier MoE models demonstrate that TIDEWAY significantly outperforms state-of-the-art systems. On average, TIDEWAY achieves speedups of 1.97x in end-to-end latency and 2.40x in Time-to-First-Token (TTFT), along with 1.61x higher decode throughput against the fastest baseline. Our source code is publicly available at https://github.com/Afterglow231/Tideway .
The Brief
2:33A short podcast summary of the paper. Written and voiced by AI.
Transcript
Tideway. Phase-Aware Tiered Memory Management for MoE Inference on Consumer Devices. By Yifei Wang and nine others, from Duke University. Published on the tenth of November.
Large language model agents are rapidly becoming a dominant paradigm for AI applications, and with them comes a growing demand to run large Mixture-of-Experts models locally, on consumer PCs. The motivations are data privacy, API costs and inference efficiency, balanced against one another. The obstacle is memory. A datacenter server has abundant DRAM. A consumer device is tightly constrained in both GPU VRAM and host RAM, so the massive weights of an MoE model have to spill across three tiers: VRAM, host RAM, and SSD.
Under that spilling, the authors observe that existing systems fail to fully use the memory hierarchy. They treat the tiers as independent caches, and the result during inference is thrashing: weights moved back and forth rather than put where they will be used.
TIDEWAY is a system for efficient inference of large MoE models on memory-constrained consumer devices. Its core insight is to stop treating the fast tiers separately. Host RAM and GPU VRAM are managed together, as one unified memory pool. Everything else in the design operates within that pool.
Two parts do the work. The first is a set of phase-aware memory layouts. Inference has two phases, prefill and decode, and they have distinct access patterns; TIDEWAY's layouts adapt to each, rather than using one arrangement for both. The second part is an execution engine. Experts are paged in and out under this scheme, and the engine optimizes CUDA Graph execution under that expert paging. The abstract pairs the two: the layouts decide where weights sit for each phase, and the engine keeps execution efficient while experts move.
The evaluation runs on representative consumer hardware, with frontier MoE models, and the comparison is against state-of-the-art systems, which TIDEWAY is reported to significantly outperform. Against the fastest baseline, the averages are as follows. End-to-end latency improves by a speedup of one point nine seven times.
Time-to-First-Token, the delay before the first output appears, improves by two point four times. Decode throughput is one point six one times higher.
The diagnosis and the remedy line up neatly. Existing systems were losing performance by treating memory tiers as separate caches, so TIDEWAY merges the two fastest tiers into a single pool. Prefill and decode use memory differently, so the layout changes with the phase. And because experts are paged, the execution engine is built around that paging rather than in spite of it. The target is a single consumer machine running a model that does not fit in any one of its memories.
The deep dive
6:29A longer episode, written from the whole paper. Written and voiced by AI.
Transcript
Tideway. Phase-Aware Tiered Memory Management for MoE Inference on Consumer Devices. By Yifei Wang and nine others, from Duke University. Published on the tenth of November. This is the long version: the whole paper rather than the abstract.
Open-weight mixture-of-experts models now reason and code well while activating only a fraction of their parameters per token, and running them at home keeps data on the device. The obstacle is memory. Across four 2026 populations of machines, including the Steam Hardware Survey, sixteen to sixty-four gibibytes of host RAM is the mainstream. Even owners of the top consumer graphics card stop at sixty-four. DeepSeek V4 Flash, in four-bit floating point, weighs a hundred and fifty-five gibibytes. So the weights spill: out of graphics memory into host RAM, and out of RAM onto the SSD. Existing systems handle that badly. Replaying agent traces as RAM shrinks, the baselines read most of the model from storage whatever the budget, and their time per output token grows by as much as seven times.
Two facts drive the design. First, prefill and decode touch experts in opposite ways. In prefill, a chunk of eight thousand tokens activates nearly every expert of every layer, so the whole model streams through the GPU once per chunk. In decode, each step touches a few experts, but any missing one stalls the step. Second, the tiers are not symmetric. On the test machine the link between host and card moves about fifty-seven gigabytes per second each way, while the SSD reads at six point eight. A copy in RAM is worth far more than one on disk, and a copy held in both RAM and VRAM is wasted space.
Existing systems treat RAM as a cache behind VRAM and the SSD as a cache behind RAM, each tier evicting by recency on its own. With sixty-four gibibytes of RAM, enough for forty-four percent of the experts, the SSD still supplies eighty-six to ninety-nine percent of the baselines' prefill expert traffic.
The core move is to manage VRAM and host RAM as one Unified Memory Pool, with the SSD behind it. Both tiers are cut into uniform expert slots, and a Residency Table records where each expert lives and which copy is its last one in memory.
The pool has two layouts, switched at the phase boundary. For prefill, VRAM borrowed from the decode cache holds activations and a double buffer for staging weights. In RAM, resident experts are anchored against eviction, and only a small streaming window cycles weights arriving from the SSD. While the GPU computes one layer, the other half of the double buffer fills with the next, from whichever tier holds each expert.
When decode resumes, the anchors are released and the borrowed VRAM becomes fixed-address expert slots again. Replacement is now replica-aware. When an expert is promoted into VRAM, its RAM copy is marked replaceable, and RAM reclaims those duplicates before evicting anything unique; a few hot experts are exempt. When VRAM evicts an expert that exists nowhere else in the pool, it is written back to RAM over the nearly idle return direction of the link, if a slot is free or replaceable. In the paper's worked example, after one decode miss, independent eviction holds seven distinct experts in ten slots; Tideway holds nine.
The second half is execution. CUDA Graphs cut launch overhead by replaying a captured kernel sequence, but paging needs the host: the CPU must read the routed expert IDs and issue transfers, so existing systems fall back to launching kernels one at a time. Tideway splits each layer into three captured pieces: the attention prefix, the feed-forward front up to routing, and the routed experts, computed over slot IDs. Between pieces, a host handler resolves experts to fixed VRAM slots and queues any copies on the same stream. A miss changes which weights sit in a slot, not which graph runs.
Everything runs on one consumer desktop, against four baselines, two of them rebuilt by the authors because neither was released. Across two hundred and seventy fixed-shape configurations over three models, Tideway is one point nine seven times faster end to end than the fastest baseline on average, and up to three point one four times on replayed coding-agent sessions from TraceLab.
The comparison that tests the thesis is how the gain moves with memory pressure. When every expert fits in the pool, Tideway wins by one point one three to one point five eight times, from dispatch and overlap alone. Once weights spill to the SSD, the fixed-shape gain widens to between one point nine five and three point one eight times.
The ablation separates the parts. The memory manager gives one point two three times end to end; asynchronous delivery and the prefill pipeline multiply that by one point three six, and decode graphs by another one point three six. Decode graphs do nothing for time to first token, while most of the decode gain comes from them.
There is no limitations section. The discussion names one tension: the KV cache is a competing tenant. Its space is reserved before expert slots, so a growing context leaves less room for experts, and managing both in one pool is left as future work. Speculative decoding is said to fit the slot-addressed graphs naturally, but that is argued, not measured.
The evidence has boundaries too. Every number comes from one machine with one graphics card and one SSD, averaged with no error bars and no stated number of runs, and two baselines are reconstructions. On cost, capture takes a few seconds at warmup, the extra buffers use under three percent of VRAM, and the SSD is only ever read.
The idea to carry away is that a memory hierarchy is not a stack of independent caches when crossing tiers costs this unevenly. Prefill and decode want opposite things from the same bytes: one a streaming path that leaves reusable experts alone, the other as many distinct experts as possible near the GPU. Tideway gives each phase its own layout over one pool, treats duplicates as waste, refuses to drop an expert's last copy, and keeps graph replay alive by making paging change data rather than code.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free