arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.07806cs.LGcs.DCcs.SC
收藏

联邦自动微分

Federated Automatic Differentiation

Google Research(谷歌研究院)

Keith Rush, Zachary Charles, Zachary Garrett

AI总结:

本文提出联邦自动微分(FAD)框架,实现跨客户端与服务器通信边界的导数计算,并展示其可用于自动调整FedAvg服务器优化步骤和学习加权方案以提升联邦学习性能。

摘要:

联邦学习(FL)是一种在中央服务器的协调下,跨组分区数据(异构客户端)进行学习并同时保护数据隐私的通用框架。FL方法通常完全在本地(即完全在每个客户端或完全在服务器上)计算损失函数的梯度,通常使用自动微分(AD)技术。我们提出了一个联邦自动微分(FAD)框架,该框架1)能够计算涉及客户端和服务器计算以及它们之间通信的函数的导数,并且2)以与现有联邦技术兼容的方式运行。换句话说,FAD跨通信边界计算导数。我们证明,与传统AD类似,FAD可以使用各种累积模式来实现,这些模式引入了不同的计算-通信权衡和系统需求。此外,我们证明了一类广泛的联邦计算在这些不同的FAD模式下是封闭的,这特别意味着如果原始计算可以使用隐私保护原语实现,那么它的导数可以仅使用这些相同的原语来计算。然后我们展示了如何使用FAD来创建动态学习算法本身组件的算法。特别是,我们展示了FedAvg风格的算法可以通过使用FAD自动调整服务器优化步骤,或者通过使用FAD学习用于计算跨客户端加权平均值的加权方案,从而显著提高性能。

英文摘要:

Federated learning (FL) is a general framework for learning across an axis of group partitioned data (heterogeneous clients) while preserving data privacy, under the orchestration of a central server. FL methods often compute gradients of loss functions purely locally (ie. entirely at each client, or entirely at the server), typically using automatic differentiation (AD) techniques. We propose a federated automatic differentiation (FAD) framework that 1) enables computing derivatives of functions involving client and server computation as well as communication between them and 2) operates in a manner compatible with existing federated technology. In other words, FAD computes derivatives across communication boundaries. We show, in analogy with traditional AD, that FAD may be implemented using various accumulation modes, which introduce distinct computation-communication trade-offs and systems requirements. Further, we show that a broad class of federated computations is closed under these various modes of FAD, implying in particular that if the original computation can be implemented using privacy-preserving primitives, its derivative may be computed using only these same primitives. We then show how FAD can be used to create algorithms that dynamically learn components of the algorithm itself. In particular, we show that FedAvg-style algorithms can exhibit significantly improved performance by using FAD to adjust the server optimization step automatically, or by using FAD to learn weighting schemes for computing weighted averages across clients.

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

↑