重新审视LLM后训练中的参数服务器
Revisiting Parameter Server in LLM Post-Training
AI总结:
本文提出On-Demand Communication(ODC),通过优化参数服务器在LLM后训练中的应用,有效应对不平衡负载,提升设备利用率和训练效率。
摘要:
现代数据并行(DP)训练倾向于使用集体通信而非参数服务器(PS),因为其在负载平衡的情况下简单且高效。然而,在大型语言模型(LLM)后训练中,由于序列长度的高变异性,负载平衡的假设不再成立。在不平衡负载下,集体通信会产生同步障碍,导致小负载设备的利用率低下。这种训练动态的变化要求重新审视PS范式,以适应此类不平衡。我们提出On-Demand Communication(ODC),通过将PS适应到完全分片数据并行(FSDP)中,用直接点对点通信替代集体all-gather和reduce-scatter。与FSDP相比,ODC将同步障碍从每层一次减少到每小批量一次,并解耦每个设备上的负载,使更快的设备不再被阻塞。它还实现了更简单且更有效的批量级负载平衡。在多样化的LLM后训练任务中,ODC一致提高了设备利用率和训练吞吐量,达到标准FSDP的36%加速。这些结果表明,ODC更适合LLM后训练中普遍存在的不平衡负载。我们的ODC实现和与FSDP的集成已在https://github.com/sail-sg/odc开源。
英文摘要:
Modern data parallel (DP) training favors collective communication over parameter servers (PS) for its simplicity and efficiency under balanced workloads. However, the balanced workload assumption no longer holds in large language model (LLM) post-training due to the high variance in sequence lengths. Under imbalanced workloads, collective communication creates synchronization barriers, leading to under-utilization of devices with smaller workloads. This change in training dynamics calls for a revisit of the PS paradigm for its robustness to such imbalance. We propose \textbf{On-Demand Communication (ODC)}, which adapts PS into Fully Sharded Data Parallel (FSDP) by replacing collective all-gather and reduce-scatter with direct point-to-point communication. Compared to FSDP, ODC reduces the synchronization barrier from once per layer to once per minibatch and decouples the workload on each device so that faster workers are not stalled. It also enables simpler and more effective load balancing at the minibatch level. Across diverse LLM post-training tasks, ODC consistently improves device utilization and training throughput, achieving up to a 36\% speedup over standard FSDP. These results demonstrate that ODC is a superior fit for the prevalent imbalanced workloads in LLM post-training. Our implementation of ODC and integration with FSDP is open-sourced at https://github.com/sail-sg/odc.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。