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

局部估计的全局扰动优于局部扰动用于联邦锐度感知最小化

Locally Estimated Global Perturbations are Better than Local Perturbations for Federated Sharpness-aware Minimization

Cooperative Medianet Innovation Center(合作中位数创新中心);Shanghai Jiao Tong University(上海交通大学);Shanghai AI Laboratory(上海人工智能实验室);RIKEN AIP(理化学研究所人工智能项目);The University of Tokyo(东京大学)

Ziqing Fan, Shengchao Hu, Jiangchao Yao, Gang Niu, Ya Zhang, Masashi Sugiyama, Yanfeng Wang

AI总结:

针对联邦学习中数据异构性导致全局模型损失景观锐化的问题,提出FedLESAM算法,通过客户端局部估计全局扰动方向并减少反向传播次数,在提升性能的同时加速了联邦锐度感知最小化。

摘要:

在联邦学习(FL)中,多步更新和客户端间的数据异构性通常会导致具有更锐利极小值的损失景观,从而降低所得全局模型的性能。流行的联邦方法将锐度感知最小化(SAM)纳入本地训练以缓解此问题。然而,在异构环境中,本地损失景观可能无法准确反映全局损失景观的平坦度;因此,最小化本地锐度并在客户端数据上计算扰动可能无法使SAM在FL中的效果与集中式训练保持一致。为克服这一挑战,我们提出了FedLESAM,一种新颖的算法,它在客户端局部估计全局扰动方向,将其作为前一个活跃轮次和当前轮次接收的全局模型之间的差异。除了质量提升外,FedLESAM还加速了基于SAM的联邦方法,因为它在每次迭代中仅执行一次反向传播。理论上,我们通过确保一致的扰动,证明了比其原始FedSAM略紧的界限。实验上,我们在三种划分策略下的四个联邦基准数据集上进行了全面实验,以展示FedLESAM的卓越性能和效率。

英文摘要:

In federated learning (FL), the multi-step update and data heterogeneity among clients often lead to a loss landscape with sharper minima, degenerating the performance of the resulted global model. Prevalent federated approaches incorporate sharpness-aware minimization (SAM) into local training to mitigate this problem. However, the local loss landscapes may not accurately reflect the flatness of global loss landscape in heterogeneous environments; as a result, minimizing local sharpness and calculating perturbations on client data might not align the efficacy of SAM in FL with centralized training. To overcome this challenge, we propose FedLESAM, a novel algorithm that locally estimates the direction of global perturbation on client side as the difference between global models received in the previous active and current rounds. Besides the improved quality, FedLESAM also speed up federated SAM-based approaches since it only performs once backpropagation in each iteration. Theoretically, we prove a slightly tighter bound than its original FedSAM by ensuring consistent perturbation. Empirically, we conduct comprehensive experiments on four federated benchmark datasets under three partition strategies to demonstrate the superior performance and efficiency of FedLESAM.

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

↑