Self-hosting large Mixture-of-Experts (MoE) models has always been a memory bottleneck, not a compute one. While architectures like DeepSeek-V4.1-Flash keep inference compute low by activating only 17.2 billion parameters out of 749 billion, the idle experts still demand GPU VRAM. A new paper from TU Wien and the Institute of Science and Technology Austria (ISTA) introduces KEEP (Keep the Experts), an algorithm-and-runtime co-design that dynamically selects which experts to keep per prompt. The result is up to 75% expert sparsity while maintaining over 90% of dense model quality and boosting decode throughput by 3x.
Why Static Pruning Fails
Traditional methods like REAP and SlimWise rely on static pruning, calculating average saliency scores to permanently drop low-value experts. This approach hits a hard wall at 50% sparsity; beyond that threshold, model quality collapses or becomes overly specialized to the calibration dataset. The KEEP authors discovered that expert importance is highly concentrated within specific prompts but varies drastically across domains. For instance, on models like Qwen3.6-35B-A3B, the top 25% of experts for one prompt capture 84โ94% of total saliency, but a static global subset fails to cover out-of-distribution tasks. When static pruning fails at 75% sparsity, it also breaks stopping behavior, causing generated token counts to explode by 1,886% due to looping errors.
Predicting Decode Experts from Prefill
A naive assumption might be to use prefill routing data to determine which experts to keep for decoding, but KEEP reveals that prefill and decode phases rely on surprisingly different experts. The overlap between the top 25% highest-saliency experts in prefill versus decode is only 57โ59%. Instead of copying prefill winners, KEEP treats prefill routing as a predictive signal. During an offline calibration phase, the team fits a compact K x K linear matrix using ridge regression. At serving time, a single tiny matrix multiply predicts which experts will matter for the current prompt, masking out the rest without changing any backbone weights or requiring auxiliary neural encoders.
Three-Tier Memory Architecture
To make dynamic sparsity practical, the authors co-designed the KEEP runtime on top of FreeToken, managing a three-tier memory hierarchy: GPU VRAM, pinned host RAM, and disk. The model skeleton and KV cache reside permanently in GPU VRAM, while the full expert pool sits in pinned host RAM or spills to disk. KEEP uses double-buffered prefill to hide transfer stalls, asynchronously streaming layer l+1 experts into a second buffer while the GPU processes layer l. During decoding, the system places the kept set in GPU VRAM or pinned host RAM, ensuring decoding never reads from disk. An LRU cache keeps hot experts on the GPU, fetching misses from fast host memory, which allows developers to pair KEEP with low-bit quantization for tighter hardware budgets.
Benchmarks on Consumer Hardware
The performance gains are significant for builders working with limited hardware. Evaluated on Qwen3.6-35B-A3B, Qwen3.8-Flash-Next, and DeepSeek-V4.1-Flash, KEEP retains at least 99% of dense accuracy at 50% sparsity across benchmarks like MATH-500 and HumanEval+. At 75% sparsity, it still preserves 90โ97% of quality. On systems ranging from an RTX 5090 desktop (32 GB VRAM) to dual-EPYC RTX 3090 and B200 servers, KEEP adds negligible prefill overhead while lifting decoding throughput by up to 3x compared to FreeToken and llama.cpp. Crucially, it enables large MoEs that cannot fit under FreeToken at all to run smoothly by trimming the active decode footprint.
Key Takeaways
- KEEP achieves up to 75% expert sparsity with minimal quality loss, outperforming static pruning methods.
- Prefill and decode phases use different experts, requiring a dynamic prediction model rather than static selection.
- The runtime uses a three-tier memory hierarchy (VRAM, Host RAM, Disk) to optimize throughput on limited hardware.
- Benchmarks show 3x decode throughput improvements on devices like the RTX 5090 and B200 servers.
The Bottom Line
If you are running local LLMs on consumer GPUs, static pruning is dead. KEEP proves that prompt-conditioned pruning is the future for memory-constrained serving, offering a practical path to running 700B+ parameter models on workstation hardware without sacrificing quality.