首页 > AI前沿 > KEEP: Dynamic Expert Sparsification for Mixture-of-Experts Models

KEEP: Dynamic Expert Sparsification for Mixture-of-Experts Models

arXiv机器学习 2026-11-27 02:45 9 阅读 查看原文
用户现在需要把给定的纯文本新闻正文排版成语义化的HTML片段,按照要求,每个自然段落用p包裹,没有需要划分的h2h3?不对,先看原文的结构,首先第一段是讲Expert pruning的背景和现有问题,然后接下来是本文的发现、提出的方法、实验结果和代码地址对吧?等下原文的内容:首先开头到50%那个是第一段?不对,仔细看原文的内容,整个正文的结构: 第一部分:Expert pruning...without significant accuracy degradation. 不对,不对,原文的段落:首先第一句到50%那个,然后下一句Specifically...decoding. 不对,不对,原文的自然段落?哦,用户给的正文是一整段?不对,等下看用户给的正文: 哦,用户给的正文是连续的,但是需要按自然语义来?不对,规则是每个自然段落用p包裹,长文用h2h3划分小节。那首先,先梳理内容: 首先,先讲背景和现有问题,这部分可以用p?然后讲本文的发现,然后讲提出的KEEP方法,然后讲实验结果,然后讲代码?不对,等下要保留所有信息,不能增删改。首先: 首先,第一个p: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. 这部分可以作为发现?不对,或者有没有需要h2的?不对,再看,然后是提出的KEEP: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 deployable: across three MoEs from 35B to 749B parameters, KEEP retains $\geq$99% of dense accuracy at 50% sparsity and 90-97% at 75%, outperforming static pruning methods. Across devices and models, KEEP enables decoding fully on GPU or GPU+host where this was previously not possible, and increases decoding throughput by up to 3$\times$ compared to specialized MoE serving engines such as FreeToken, as well as the widely adopted llama.cpp. 然后是代码:Code is available at https://github.com/IST-DASLab/keep-engine 不对,但是规则说长文用h2/h3划分小节,那这里是不是可以划分几个小节?比如:

研究背景与现存问题

?不对不对!不能增删内容!哦对,规则4说不得增删改内容,所以小标题不能自己加!哦,对哦,不能加额外的文字,那h2/h3的内容必须是原文的?不对,不对,原文里没有小标题,那是不是不需要用h2h3?因为原文的内容里没有可以作为小标题的句子?不对,再仔细看要求3,长文用h2/h3划分小节,但是如果原文没有对应的标题内容,那不能自己编,对吧?因为不能增删改内容。那首先,每个自然段落用p包裹,那原文的自然段落?用户给的正文是一整段,但是可以按语义拆分自然段落,对吧? 不对,等下,首先,不能添加任何原文没有的文字,所以h2/h3如果用的话,必须是原文里的句子?那原文里有没有适合作为小标题的?好像没有,那可能不需要用h2h3?不对,再看内容,首先: 第一个p:讲Expert pruning的定义和现有问题:

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.

然后第二个p:讲本文的发现:

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.

然后第三个p:讲提出的方法KEEP:

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.

然后第四个p:讲实验结果:

We show that KEEP can successfully push beyond the 50% sparsity barrier while remaining accurate and being deployable: across three MoEs from 35B to 749B parameters, KEEP retains $\geq$99% of dense accuracy at 50% sparsity and 90-97% at 75%, outperforming static pruning methods. Across devices and models, KEEP enables decoding fully on GPU or GPU+host where this was previously not possible, and increases decoding throughput by up to 3$\times$ compared to specialized MoE serving engines such as FreeToken, as well as the widely adopted llama.cpp.

然后第五个p:讲代码:

Code is available at https://github.com/IST-DASLab/keep-engine

不对,但是有没有需要用h2/h3的?哦,规则说“长文用

/

划分小节”,但如果原文没有小标题,不能自己加,那是不是就不用?因为如果加了自己的话就是增删内容了,对吧?对,规则4说不得增删改内容,所以不能自己加小标题的文本。那这样拆分段落是合理的,因为每个自然段落(语义上的段落)用p包裹,重要的句子用strong,比如那些数据,对吧? 等下,再检查有没有漏内容:原文的所有信息都有吗?看一下: Expert pruning的定义:有。现有方法的问题:有。本文的发现:静态目标导致精度下降,专家重要性在提示内集中,跨提示、领域、prefill和decoding变化:有。提出KEEP,动态选择专家,prefill用全模型,用路由信息和轻量离线校准线性预测器选decoding的专家,协同设计服务引擎,把保留的专家放在GPU、主机内存和磁盘,decoding不读磁盘:有。实验结果:突破50%稀疏度,35B到749B的三个MoE,50%稀疏度保留≥99%稠密精度,75%时90-97%,优于静态剪枝,跨设备模型可以全GPU或GPU+主机解码,之前不可能,解码吞吐量比FreeToken和llama.cpp高最多3倍:有。代码地址:有。 然后有没有用其他标签?这里没有列表、引用、代码,所以不用那些标签。重要的句子用strong,那些关键数据用strong是对的,符合规则。 那现在整理成HTML片段,不要任何文档级标签,不要markdown,直接输出。 等下,再看,有没有需要用h2的?比如,会不会把几个部分用h2?但是原文没有对应的标题文本,所以不能自己加,对吧?对,因为如果加“研究背景”这种,就是添加了原文没有的内容,违反规则4。所以不需要h2/h3,直接用p包裹各个语义段落就行。 那最终的HTML就是:

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