arXiv:2604.06515cs.LGcs.AI2026-04被引 2

为稀疏专家模型设计了基于理论的逐专家混合精度量化方法。

Efficient Quantization of Mixture-of-Experts with Theoretical Generalization Guarantees

论文配图:Efficient Quantization of Mixture-of-Experts with Theoretical Generalization Guarantees
图 1 · 摘自论文原文
  • 根据路由器L2范数变化量分配专家比特数,变化小的专家更敏感需高精度。
  • 在Switch Transformer和Mixtral上实现更高精度,且推理开销更低。
  • 适合大规模MoE模型部署,兼顾精度与效率,无需额外计算成本。

稀疏混合专家(MoE)通过仅激活每输入少量专家,高效扩展语言与视觉模型。尽管计算降低,但大量参数仍带来显著推理内存开销。后训练量化被用于缓解此问题。由于均匀量化在低比特下损失严重,混合精度方法被提出;但通常需大量计算进行比特分配,且忽略不同专家对量化敏感度差异。本文提出一种理论支持的逐专家混合精度策略:主要依据训练中路由器L2范数变化量分配比特数——变化小的专家捕捉不频繁但关键特征,模型性能对其量化更敏感,故需更高精度。此外,为避免高量化噪声,内神经元方差大的专家也分配更高精度。在大规模MoE模型(包括Switch Transformer和Mixtral)上的实验表明,该方法在保持更高精度的同时降低推理成本,比特分配开销可忽略不计。

原文摘要 · Abstract (English)

Sparse Mixture-of-Experts (MoE) allows scaling of language and vision models efficiently by activating only a small subset of experts per input. While this reduces computation, the large number of parameters still incurs substantial memory overhead during inference. Post-training quantization has been explored to address this issue. Because uniform quantization suffers from significant accuracy loss at low bit-widths, mixed-precision methods have been recently explored; however, they often require substantial computation for bit-width allocation and overlook the varying sensitivity of model performance to the quantization of different experts. We propose a theoretically grounded expert-wise mixed precision strategy that assigns bit-width to each expert primarily based on their change in routers l2 norm during training. Experts with smaller changes are shown to capture less frequent but critical features, and model performance is more sensitive to the quantization of these experts, thus requiring higher precision. Furthermore, to avoid allocating experts to lower precision that inject high quantization noise, experts with large maximum intra-neuron variance are also allocated higher precision. Experiments on large-scale MoE models, including Switch Transformer and Mixtral, show that our method achieves higher accuracy than existing approaches, while also reducing inference cost and incurring only negligible overhead for bit-width assignment.

量化MoE混合精度大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。