COPE:用于混合专家(MoE)卸载策略的可组合性能仿真器
COPE: Composable Performance Emulation for Mixture-of-Experts Offloading Policies
AI总结:
本研究提出COPE,通过策略矩阵分解设计空间、虚拟异构机估计性能,解决MoE卸载策略选择的高成本问题,提升策略选择准确率与预测精度,减少实现工作量。
摘要:
随着大型语言模型(LLM)规模扩大,混合专家(Mixture-of-Experts,MoE)架构在保持每token计算可控的同时提升了模型容量,这种稀疏性还支持内存高效部署——将大部分专家权重保留在CPU内存中,仅按需传输或执行路由后的专家。现有MoE卸载系统通常针对特定模型-平台配置,但模型稀疏性、CPU与GPU吞吐量、显存(VRAM)容量及主机-设备带宽的差异会改变策略排名。由于实现并全面评估所有候选策略会产生大量工程成本,为每个模型-平台配置高效选择性能最优的策略仍是实用MoE卸载的关键挑战。本文提出COPE(Composable Offloading Policy Emulator,可组合卸载策略仿真器),用于在运行时集成前为目标模型-平台配置选择性能最优的MoE卸载策略。COPE包含两个组件:其策略矩阵将设计空间分解为两个独立轴——专家驻留和MoE执行策略,支持候选策略间的机制复用并揭示4种新候选策略;其虚拟异构机在目标平台上分析组合算子调度,并将这些测量值与离线路由轨迹结合以估计候选策略性能。与评估的基线相比,COPE将最快策略选择准确率提升24%-100%,性能预测误差降低1.7倍至6.8倍;通过在集成前确定优选策略,COPE还将策略特定实现工作量减少最多74%。
英文摘要:
As LLMs scale, mixture-of-experts (MoE) architectures increase model capacity while keeping per-token computation manageable through sparse expert activation. This sparsity also enables memory-efficient deployment by retaining most expert weights in CPU memory and transferring or executing only the routed experts on demand. Existing MoE offloading systems typically target specific model-platform configurations, yet differences in model sparsity, CPU and GPU throughput, VRAM capacity, and host-device bandwidth can change the policy ranking. Because implementing and exhaustively evaluating all candidate policies incurs substantial engineering cost, efficiently selecting the best-performing policy for each model-platform configuration remains a key challenge for practical MoE offloading. We present COPE (Composable Offloading Policy Emulator), which selects the best-performing MoE offloading policy for a target model-platform configuration before runtime integration. COPE comprises two components. Its Policy Matrix factors the design space into two independent axes, expert residency and MoE execution strategy, enabling mechanism reuse across candidate policies and exposing four new candidates. Its Virtual Heterogeneous Machine profiles combined-operator schedules on the target platform and combines these measurements with offline routing traces to estimate candidate performance. Compared with the evaluated baselines, COPE improves fastest-policy selection accuracy by 24%-100% and reduces performance-prediction error by $1.7\times$ to $6.8\times$. By identifying the preferred policy before integration, COPE further reduces policy-specific implementation effort by up to 74%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。