arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.37386cs.LGcs.AI
收藏

混合专家解码的通道选择无需校准数据

Channel Selection for Mixture-of-Experts Decoding Needs No Calibration Data

KAIST(韩国科学技术院)

Geunhyoung Kim, Sung Ju Hwang

AI总结:

本文提出混合专家解码的通道选择无需校准数据,用top-k方法替代阈值校准,还引入基于模型权重的读取器,提升MoE模型解码速度并保持高精度。

摘要:

混合专家(MoE)模型在小批量交互式解码时,因从内存加载路由专家权重而成为瓶颈。由于路由专家中的大多数中间通道对单个令牌贡献极小,通道选择器会预测哪些通道重要并仅读取其权重,通常保留基于离线数据校准阈值以上的通道。本文表明通道选择无需校准数据:其一,校准阈值无法确定选择器读取量,因为通过阈值的通道数随输入变化,针对18%读取预算校准的Prox方法,在基准测试中平均仅读取12.9%;其二,top-k方法保留每个令牌的k个最高得分通道,无需校准数据,在13%和18%预算下,选择器的top-k版本在43次比较中40次匹配或优于阈值版本的相同得分,包括生成任务的全部23次,且避免了校准阈值在Gemma 4上导致的重复循环崩溃。校准阈值无法提供选择器所需的已知读取预算和该预算下的一致精度增益。此外,本文引入一种完全基于模型权重构建的读取器,通过三元草图筛选通道并通过低秩映射恢复跳过的通道,在三个后训练MoE模型上,该读取器在17.8%路由专家读取量下保留98.1%的全模型精度,Triton内核运行的MoE块在批量为1时比优化的vLLM快1.60至1.90倍,在更大批量时最高快2.69倍。

英文摘要:

Mixture-of-Experts (MoE) models are bottlenecked by loading routed-expert weights from memory during interactive decoding at small batch sizes. Because most intermediate channels in a routed expert contribute little to any single token, channel selectors predict which channels matter and read only their weights, typically keeping channels above a threshold calibrated on offline data. We show that channel selection needs no calibration data. First, a calibrated threshold does not fix how much a selector reads, because the number of channels passing it varies across inputs; Prox with thresholds calibrated for an 18% read budget actually reads only 12.9% on average across our benchmarks. Second, top-k keeps each token's k highest-scoring channels and needs no calibration data. At the calibrated budget, a selector's top-k version matches or beats its threshold version on the same score in 40 of 43 comparisons at 13% and 18% budgets, including all 23 on generation tasks. The top-k versions also avoid the repetition-loop collapse that calibrated thresholds cause on Gemma 4. Calibrating a threshold thus provides neither of the two things selectors use it for: a known read budget and a consistent accuracy gain at that budget. We furthermore introduce a reader built entirely from the model's weights, which screens channels with a ternary sketch and recovers the skipped ones with a low-rank map. Across three post-trained MoE models, our reader retains 98.1% of full-model accuracy at 17.8% of routed-expert reads, with Triton kernels running MoE blocks 1.60 to 1.90x faster than optimized vLLM at batch one and up to 2.69x at larger batches on the same three models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑