DS-Sync:利用Divide-and-Shuffle同步解决分布式DNN训练的网络瓶颈
DS-Sync: Addressing Network Bottlenecks with Divide-and-Shuffle Synchronization for Distributed DNN Training
摘要:
批量同步并行(BSP)是当今生产集群中分布式DNN训练的事实范例。然而,由于全局同步的性质,其性能可以显着影响由静态拓扑异构性或动态带宽竞争引起的网络瓶颈。现有的解决方案,无论是系统级优化加强BSP(例如,Ring或Hierarchical All-reduce)或算法优化替换BSP(例如,ASP或SSP,这放宽了全球的障碍),并没有完全解决这个问题,因为他们仍然可能遭受通信效率低下或风险收敛不准确。在本文中,我们提出了一种新的划分和洗牌同步(DS-Sync),以实现通信效率,而不牺牲分布式DNN训练的收敛精度。DS-Sync的核心是考虑到网络瓶颈,通过将工作人员划分为不重叠的组,以无阻塞的方式独立同步,从而提高通信效率。同时,它通过迭代地在不同的组之间洗牌来保持收敛精度,以确保全局共识。我们从理论上证明了DS-Sync在像DNN这样的非凸和光滑条件下正确收敛。我们进一步实现了DS-Sync并将其与PyTorch集成,我们的测试床实验表明,DS-Sync可以在现有解决方案的端到端训练时间上实现高达$94\%$的改进,同时保持相同的准确性。
英文摘要:
Bulk synchronous parallel (BSP) is the de-facto paradigm for distributed DNN training in today's production clusters. However, due to the global synchronization nature, its performance can be significantly influenced by network bottlenecks caused by either static topology heterogeneity or dynamic bandwidth contentions. Existing solutions, either system-level optimizations strengthening BSP (e.g., Ring or Hierarchical All-reduce) or algorithmic optimizations replacing BSP (e.g., ASP or SSP, which relax the global barriers), do not completely solve the problem, as they may still suffer from communication inefficiency or risk convergence inaccuracy. In this paper, we present a novel divide-and-shuffle synchronization (DS-Sync) to realize communication efficiency without sacrificing convergence accuracy for distributed DNN training. At its heart, by taking into account the network bottlenecks, DS-Sync improves communication efficiency by dividing workers into non-overlap groups to synchronize independently in a bottleneck-free manner. Meanwhile, it maintains convergence accuracy by iteratively shuffling workers among different groups to ensure a global consensus. We theoretically prove that DS-Sync converges properly in non-convex and smooth conditions like DNN. We further implement DS-Sync and integrate it with PyTorch, and our testbed experiments show that DS-Sync can achieve up to $94\%$ improvements on the end-to-end training time with existing solutions while maintaining the same accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。