在能效方面,将 LLM Mixture-of-Experts 权重卸载到 SSD 是有害的
SSD Offloading for LLM Mixture-of-Experts Weights Considered Harmful in Energy Efficiency
AI总结:
本文定量分析了在 LLM 推理解码阶段将 MoE 权重卸载至 SSD 的能耗影响,发现此举会大幅增加每 token 生成能耗并主导总能耗,指出除非未来 Flash 读取能耗显著降低,否则该卸载策略在能效上是有害的。
摘要:
应用 Mixture-of-Experts (MoE) 的大型语言模型 (LLMs) 可扩展至数万亿参数,但需要海量内存,这促使了一系列将专家权重从快速但容量小的 DRAM (HBM) 卸载到密度更高的 Flash SSD 的研究。虽然 SSD 提供了高性价比的容量,但其每比特读取能耗远高于 DRAM。本文定量分析了在 LLM 推理的关键解码阶段,将 MoE 专家权重卸载到 SSD 对能耗的影响。我们的分析比较了 DeepSeek-R1 等模型在 SSD、CPU 内存 (DDR) 和 HBM 存储场景下的表现,结果表明,将 MoE 权重卸载到当前 SSD 会急剧增加每 token 生成能耗(例如,与 HBM 基线相比最高增加约 12 倍),从而主导总推理能耗预算。尽管预取等技术能有效隐藏访问延迟,但无法缓解这一根本性的能耗惩罚。我们进一步探讨了未来的技术扩展,发现如果 Flash 读取能耗显著改善(约一个数量级),MoE 模型固有的稀疏性有可能使 SSD 在能耗上变得可行。
英文摘要:
Large Language Models (LLMs) applying Mixture-of-Experts (MoE) scale to trillions of parameters but require vast memory, motivating a line of research to offload expert weights from fast-but-small DRAM (HBM) to denser Flash SSDs. While SSDs provide cost-effective capacity, their read energy per bit is substantially higher than that of DRAM. This paper quantitatively analyzes the energy implications of offloading MoE expert weights to SSDs during the critical decode stage of LLM inference. Our analysis, comparing SSD, CPU memory (DDR), and HBM storage scenarios for models like DeepSeek-R1, reveals that offloading MoE weights to current SSDs drastically increases per-token-generation energy consumption (e.g., by up to ~12x compared to the HBM baseline), dominating the total inference energy budget. Although techniques like prefetching effectively hide access latency, they cannot mitigate this fundamental energy penalty. We further explore future technological scaling, finding that the inherent sparsity of MoE models could potentially make SSDs energy-viable if Flash read energy improves significantly, roughly by an order of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。