arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.13802cs.LGcs.DC
收藏

用于缓解掉队者的序列梯度编码

Sequential Gradient Coding For Straggler Mitigation

Indian Institute of Technology Palakkad(帕拉卡德印度理工学院);University of Toronto(多伦多大学)

M. Nikhil Krishnan, MohammadReza Ebrahimi, Ashish Khisti

AI总结:

本文研究分布式计算中梯度序列的掉队者缓解问题,提出两种结合梯度编码与任务重复的自适应方案,在 AWS Lambda 集群上实验证明可将运行时间缩短 16%。

摘要:

在分布式计算中,较慢的节点(掉队者)通常会成为瓶颈。由 Tandon 等人提出的 Gradient Coding (GC) 是一种有效的技术,它利用纠错码原理在存在掉队者的情况下分配梯度计算。在本文中,我们考虑分布式计算一个梯度序列 $\{g(1),g(2),\ldots,g(J)\}$,其中每个梯度 $g(t)$ 的处理从第 $t$ 轮开始,并在第 $(t+T)$ 轮之前完成。这里 $T\geq 0$ 表示延迟参数。对于 GC 方案,编码仅跨越计算节点,这导致了一个 $T=0$ 的解决方案。另一方面,$T>0$ 允许设计利用时间维度的方案。在这项工作中,我们提出了两种方案,展示了相比 GC 改进的性能。我们的第一个方案将 GC 与先前未完成任务的重复执行相结合,实现了改进的掉队者缓解。在我们的第二个方案中(这也是我们的主要贡献),我们将 GC 应用于任务的一个子集,对剩余任务进行重复。然后,我们根据过去的掉队者模式,以自适应的方式将这两类任务在工作者节点和轮次之间进行多路复用。通过理论分析,我们证明了我们的第二个方案显著降低了计算负载。在我们的实验中,我们研究了一个在包含 256 个工作者节点的 AWS Lambda 集群上并发训练多个神经网络的实际设置,我们的框架自然适用。我们证明了在自然发生、非模拟的掉队者存在的情况下,后一种方案相比基线 GC 方案能产生 16% 的运行时间改进。

英文摘要:

In distributed computing, slower nodes (stragglers) usually become a bottleneck. Gradient Coding (GC), introduced by Tandon et al., is an efficient technique that uses principles of error-correcting codes to distribute gradient computation in the presence of stragglers. In this paper, we consider the distributed computation of a sequence of gradients $\{g(1),g(2),\ldots,g(J)\}$, where processing of each gradient $g(t)$ starts in round-$t$ and finishes by round-$(t+T)$. Here $T\geq 0$ denotes a delay parameter. For the GC scheme, coding is only across computing nodes and this results in a solution where $T=0$. On the other hand, having $T>0$ allows for designing schemes which exploit the temporal dimension as well. In this work, we propose two schemes that demonstrate improved performance compared to GC. Our first scheme combines GC with selective repetition of previously unfinished tasks and achieves improved straggler mitigation. In our second scheme, which constitutes our main contribution, we apply GC to a subset of the tasks and repetition for the remainder of the tasks. We then multiplex these two classes of tasks across workers and rounds in an adaptive manner, based on past straggler patterns. Using theoretical analysis, we demonstrate that our second scheme achieves significant reduction in the computational load. In our experiments, we study a practical setting of concurrently training multiple neural networks over an AWS Lambda cluster involving 256 worker nodes, where our framework naturally applies. We demonstrate that the latter scheme can yield a 16\% improvement in runtime over the baseline GC scheme, in the presence of naturally occurring, non-simulated stragglers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑