KEEP: Dynamic Expert Sparsification for Mixture-of-Experts Models
Expert pruning, the process of removing a subset of routed experts from a Mixture-of-Experts (MoE) model, is a popular way to reduce the size of MoE models. However, currently, state-of-the-art methods fail to push beyond the 50% sparsity mark without significant accuracy degradation. Specifically, past this mark, models usually become task-specific or collapse in accuracy. In this paper, we show that this accuracy degradation is linked to their pruning objective being static, that is, independent of the specific user prompt. We find that expert importance is concentrated within individual prompts but varies across prompts, domains, and between prefill and decoding. Motivated by this observation, we propose KEEP, which dynamically selects experts for each request. KEEP runs prefill on the full model and uses its routing information with a lightweight, offline-calibrated linear predictor to select the experts retained for decoding. Furthermore, we co-design a serving engine that places the kept set across GPU, host memory and disk, so that decoding never reads from disk. We show that KEEP can successfully push beyond the 50% sparsity barrier while remaining accurate and being…
- arXiv
- 2611.36547
- Authors
- Maximilian Kleinegger, Dan Alistarh
- Categories
- cs.LG