SpecMD: A Comprehensive Study On Speculative Expert Prefetching
Abstract
Lay Summary
Modern Language models are huge, and models that are Mixture-of-Experts only use a small piece of itself at a time, akin to opening a few drawers in a giant filing cabinet. To make storing this giant filing cabinet feasible on today's computers, the right drawers need to be kept close at hand. In this paper, we asked: which strategy is best to swapping in and out pieces of this large model such that it still enables normal usage. To this end, we built SpecMD, a testbed that compares strategies. Testing many existing approaches, we found that the usual assumption of keep whatever was used most recently does not match how these models actually reach for their parts. Based on this, we designed Least-Stale, a new strategy that exploits the model's predictable access patterns. With this approach, the model finds what it needs in fast memory 88% of the time and responds up to 34.7% faster using only 0.6GB of memory.