arXiv:2508.18182cs.LGcs.AI2025-08

自适应批量调度提升大模型训练通信效率与收敛速度

AdLoCo: adaptive batching significantly improves communications efficiency and convergence for Large Language Models

  • 三阶段设计:多实例训练+动态批处理+模式切换
  • 通信次数理论可算,同步延迟显著降低
  • 适合异构集群下大规模LLM训练场景

扩展大语言模型的分布式训练不仅需要算法进步,还需高效利用异构硬件资源。现有方法如DiLoCo虽有成效,但在动态负载下难以充分挖掘计算集群潜力。为此,我们提出三阶段方法:多实例训练(MIT)使单节点并行运行多个轻量级训练流,融合知识以提升吞吐并减少空闲时间;自适应批量DiLoCo动态调整本地批大小,平衡计算与通信,大幅降低同步延迟;模式切换机制在批大小超出硬件友好范围时无缝引入梯度累积,稳定训练过程。三项创新共同提升收敛速度与系统效率。我们还提供了使用该方法训练模型达到完全收敛所需通信次数的理论估计。

原文摘要 · Abstract (English)

Scaling distributed training of Large Language Models (LLMs) requires not only algorithmic advances but also efficient utilization of heterogeneous hardware resources. While existing methods such as DiLoCo have demonstrated promising results, they often fail to fully exploit computational clusters under dynamic workloads. To address this limitation, we propose a three-stage method that combines Multi-Instance Training (MIT), Adaptive Batched DiLoCo, and switch mode mechanism. MIT allows individual nodes to run multiple lightweight training streams with different model instances in parallel and merge them to combine knowledge, increasing throughput and reducing idle time. Adaptive Batched DiLoCo dynamically adjusts local batch sizes to balance computation and communication, substantially lowering synchronization delays. Switch mode further stabilizes training by seamlessly introducing gradient accumulation once adaptive batch sizes grow beyond hardware-friendly limits. Together, these innovations improve both convergence speed and system efficiency. We also provide a theoretical estimate of the number of communications required for the full convergence of a model trained using our method.

大模型训练分布式优化通信效率

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