跳到正文
arXiv cs.CL· Avni Mittal, Avinash Anand, Ashutosh Kumar, Dikshant Kukreja, Kritarth Prasad, Chaitanya Lakhchaura, Rishitej Reddy Vyalla, Erik Cambria, Zhengkui Wang, Rajiv Ratn Shah·· 11 小时前AI 评分24

Sonar-MoE:在反向传播中更新专家,实现更省内存的 MoE 训练

Sonar-MoE: In-Backward Expert Updates for Memory-Efficient Mixture-of-Experts Training

AI 导读

Sonar-MoE 将 optimizer-in-backward 引入批量 MoE 专家张量,在反向传播中直接更新每个专家张量并立即释放其梯度,使 GPU 最多只保留一层专家梯度。

正文 · 原文

View PDF HTML (experimental)

Abstract:Most parameters of a Mixture-of-Experts (MoE) model belong to its experts, and standard training keeps every expert gradient in GPU memory until the optimizer step. This memory grows with the number and size of the experts, so it rises as MoE models scale. We introduce Sonar-MoE, which updates each expert tensor during the backward pass and frees its gradient right away. It brings optimizer-in-backward from dense models to batched MoE expert tensors, so the GPU never holds more than one layer of expert gradients. When we fine-tune OLMoE-1B-7B and Granite-3.1-3B-A800M in bf16 with two expert-kernel backends, Sonar-MoE lowers peak memory by 19% to 22%. Its updates are bitwise identical to standard training without expert gradient clipping, and held-out loss stays within 0.003 of all baselines. Each step also takes 17% to 23% less time than standard training with global-norm clipping. Updating whole batched tensors rather than individual experts is what keeps Sonar-MoE fast, as it avoids a 20% to 72% slowdown while using the same memory. Sonar-MoE matches optimizer-in-backward over all parameters in memory and speed while still clipping the dense parameters.
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL); Performance (cs.PF)
Cite as: arXiv:2611.03577 [cs.LG]
  (or arXiv:2611.03577v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2611.03577

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Avni Mittal [view email]
[v1] Mon, 2 Nov 2026 18:30:00 UTC (299 KB)

来源:arXiv cs.CL · arxiv.org