arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.13897cs.LGstat.ML
收藏

分布式和联邦学习中的隐式梯度对齐

Implicit Gradient Alignment in Distributed and Federated Learning

IIT Kanpur(印度理工学院坎普尔分校);EPFL(洛桑联邦理工学院)

Yatin Dandi, Luis Barba, Martin Jaggi

摘要:

在分布式和联邦学习中实现全局收敛的一个主要障碍是由于分布式数据的异构性和随机性而导致的跨客户端或小批量的梯度不一致。在这项工作中,我们表明,数据的异质性实际上可以利用隐式正则化来提高泛化性能。减轻异质性影响的一种方法是鼓励在整个培训过程中调整不同客户的梯度。我们的分析表明,这一目标可以通过利用正确的优化方法来实现,该方法复制了SGD的隐式正则化效果,从而实现梯度对齐以及测试精度的提高。由于SGD中这种正则化的存在完全依赖于在训练过程中顺序使用不同的minibatch,因此在使用大型minibatch进行训练时,它本质上是不存在的。为了在提高并行性的同时获得这种正则化的泛化优势,我们提出了一种新的GradAlign算法,该算法可以引入相同的隐式正则化,同时允许在每次更新中使用任意大的批次。我们通过实验验证了我们的算法在不同的分布式和联邦学习设置的好处。

英文摘要:

A major obstacle to achieving global convergence in distributed and federated learning is the misalignment of gradients across clients, or mini-batches due to heterogeneity and stochasticity of the distributed data. In this work, we show that data heterogeneity can in fact be exploited to improve generalization performance through implicit regularization. One way to alleviate the effects of heterogeneity is to encourage the alignment of gradients across different clients throughout training. Our analysis reveals that this goal can be accomplished by utilizing the right optimization method that replicates the implicit regularization effect of SGD, leading to gradient alignment as well as improvements in test accuracies. Since the existence of this regularization in SGD completely relies on the sequential use of different mini-batches during training, it is inherently absent when training with large mini-batches. To obtain the generalization benefits of this regularization while increasing parallelism, we propose a novel GradAlign algorithm that induces the same implicit regularization while allowing the use of arbitrarily large batches in each update. We experimentally validate the benefits of our algorithm in different distributed and federated learning settings.

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

↑