arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13856cs.LGmath.OCstat.ML
收藏

关于拜占庭鲁棒分布式学习的最优批量大小

On the Optimal Batch Size for Byzantine-Robust Distributed Learning

Nanjing University(南京大学)

Yi-Rui Yang, Chang-Wei Shi, Wu-Jun Li

AI总结:

研究固定梯度计算总数下拜占庭鲁棒分布式学习的最优批量大小问题,发现最优批量随拜占庭节点比例增加而增大,并提出ByzSGDnm方法缓解大批量导致的精度下降,在蓄意攻击下优于现有方法。

摘要:

拜占庭鲁棒分布式学习(BRDL),即计算设备由于意外故障或恶意攻击而可能表现出异常行为,最近已成为一个热门研究课题。然而,即使在独立同分布(i.i.d.)情况下,由于随机梯度的较大方差,现有的 BRDL 方法也会在模型准确率上遭受显著下降。增加批量大小是减少方差的一种简单而有效的方法。然而,当梯度计算总数固定时,过大的批量大小会导致过小的迭代次数(更新次数),这也可能降低模型准确率。鉴于这一挑战,我们在这项工作中主要研究当梯度计算总数固定时的最优批量大小。特别是,我们在理论和经验上表明,当梯度计算总数固定时,BRDL 中的最优批量大小会随着拜占庭工作节点比例的增加而增加。因此,与没有攻击的情况相比,在遭受拜占庭攻击时应该将批量大小设置得更大。然而,对于现有的 BRDL 方法,即使没有拜占庭攻击,大的批量大小也会导致模型准确率下降。为了解决这个问题,我们提出了一种新颖的 BRDL 方法,称为具有归一化动量的拜占庭鲁棒随机梯度下降(ByzSGDnm),它可以缓解大批量情况下模型准确率的下降。此外,我们在理论上证明了在拜占庭攻击下 ByzSGDnm 在一般非凸情况下的收敛性。经验结果表明,ByzSGDnm 在位翻转故障下的性能与现有 BRDL 方法相当,但在蓄意制造的攻击下能够优于现有的 BRDL 方法。

英文摘要:

Byzantine-robust distributed learning (BRDL), in which computing devices are likely to behave abnormally due to accidental failures or malicious attacks, has recently become a hot research topic. However, even in the independent and identically distributed (i.i.d.) case, existing BRDL methods will suffer from a significant drop on model accuracy due to the large variance of stochastic gradients. Increasing batch sizes is a simple yet effective way to reduce the variance. However, when the total number of gradient computation is fixed, a too-large batch size will lead to a too-small iteration number (update number), which may also degrade the model accuracy. In view of this challenge, we mainly study the optimal batch size when the total number of gradient computation is fixed in this work. In particular, we theoretically and empirically show that when the total number of gradient computation is fixed, the optimal batch size in BRDL increases with the fraction of Byzantine workers. Therefore, compared to the case without attacks, the batch size should be set larger when under Byzantine attacks. However, for existing BRDL methods, large batch sizes will lead to a drop on model accuracy, even if there is no Byzantine attack. To deal with this problem, we propose a novel BRDL method, called Byzantine-robust stochastic gradient descent with normalized momentum (ByzSGDnm), which can alleviate the drop on model accuracy in large-batch cases. Moreover, we theoretically prove the convergence of ByzSGDnm for general non-convex cases under Byzantine attacks. Empirical results show that ByzSGDnm has a comparable performance to existing BRDL methods under bit-flipping failure, but can outperform existing BRDL methods under deliberately crafted attacks.

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

↑