混合专家解码的通道选择无需校准数据
研究论文 · 2026/10/28
混合专家(MoE)模型在小批量交互解码时,从内存加载路由专家权重成为瓶颈。由于路由专家中大多数中间通道对单个token贡献很小,通道选择器预测哪些通道重要并只读取其权重,通常保留高于离线校准阈值的通道。我们表明通道选择无需校准数据。首先,校准阈值并不能固定选择器读取的量,因为通过阈值的通道数随输入变化;为18%读取预算校准阈值的Prox在基准测试中平均只读取12.9%。其次,top-k保留每个token得分最高的k个通道,无需校准数据。在校准预算下,选择器的top-k版本在13%和18%预算下的43次比较中有40次匹配或超过其阈值版本,包括生成任务上的全部23次。top-k版本还避免了校准阈值在Gemma 4上导致的重复循环崩溃。因此,校准阈值既不能提供选择器使用它的两个目的:已知读取预算和在该预算下一致的精度提升。我们进一步引入完全由模型权重构建的读取器,它用三元草图筛选通道并用低秩映射恢复跳过的通道。在三个后训练MoE模型上,我们的读取器在17.8%的路由专家读取量下保留了98.1%的全模型精度,Triton内核在相同三个模型上批量为1时运行MoE块比优化的vLLM快1.60至1.90倍,在更大批量时快达2.69倍。
该研究挑战了MoE解码中通道选择依赖校准数据的传统做法,证明top-k无需校准且更稳健,并提供了高效的权重内置读取器与显著加速,对高效MoE推理有重要实践价值。
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.