Skip to main content
QUICK REVIEW

[论文解读] Generalized Federated Learning via Sharpness Aware Minimization

Zhe Qu, Xingyu Li|arXiv (Cornell University)|Jun 6, 2022
Privacy-Preserving Technologies in DataComputer Science被引用 20
一句话总结

FedSAM 和 MoFedSAM 使用尖锐性感知最小化来提升泛化并在非 IID 联邦学习中减少学习偏差,具有理论收敛性与泛化边界以及强劲的实证结果。

ABSTRACT

Federated Learning (FL) is a promising framework for performing privacy-preserving, distributed learning with a set of clients. However, the data distribution among clients often exhibits non-IID, i.e., distribution shift, which makes efficient optimization difficult. To tackle this problem, many FL algorithms focus on mitigating the effects of data heterogeneity across clients by increasing the performance of the global model. However, almost all algorithms leverage Empirical Risk Minimization (ERM) to be the local optimizer, which is easy to make the global model fall into a sharp valley and increase a large deviation of parts of local clients. Therefore, in this paper, we revisit the solutions to the distribution shift problem in FL with a focus on local learning generality. To this end, we propose a general, effective algorithm, exttt{FedSAM}, based on Sharpness Aware Minimization (SAM) local optimizer, and develop a momentum FL algorithm to bridge local and global models, exttt{MoFedSAM}. Theoretically, we show the convergence analysis of these two algorithms and demonstrate the generalization bound of exttt{FedSAM}. Empirically, our proposed algorithms substantially outperform existing FL studies and significantly decrease the learning deviation.

研究动机与目标

  • 解决因非IID数据导致的跨设备 FL 的分布偏移。
  • 提升本地训练的泛化能力,使其更好地与全局目标对齐。
  • 引入 FedSAM 作为基于 SAM 的本地优化器,以平滑损失曲面。
  • 开发 MoFedSAM,通过动量将本地和全局模型联系起来。
  • 提供对所提出方法的收敛性分析和泛化界限。

提出的方法

  • 将 FedSAM 正式化为 min_w max_{||δ||≤ρ} f(w, {δ_i}) 问题,其中 f 将跨客户端的扰动局部损失聚合。
  • 通过一阶泰勒展开近似内部扰动 δ_i,得到 δ_i ≈ ρ ∇F_i(w)/||∇F_i(w)||。
  • 使用两步本地更新实现 FedSAM:先扰动,再在扰动后的损失上进行梯度步长(式(4))。
  • 通过引入上一轮全局更新 Δ^r 及动量项来将本地和全局信息融合,发展 MoFedSAM(式(6))。
  • 给出理论结果:收敛速率与最佳非 IID FL 速率相匹配,以及针对 FedSAM 的泛化界(定理 3.1 和 定理 3.5)。
  • 证明 MoFedSAM 通过在本地模型和全局模型之间桥接尖锐性来实现更快的收敛和更好的泛化(定理 4.1)。

实验结果

研究问题

  • RQ1在本地层面应用尖锐性感知最小化如何在非 IID 数据下影响全局 FL 的泛化?
  • RQ2基于动量的机制(MoFedSAM)是否能有效地将本地更新与全局信息耦合,以在 FL 中改善收敛和泛化?
  • RQ3在完整和部分客户端参与下,FedSAM 和 MoFedSAM 的收敛速率和泛化保证是多少?
  • RQ4FedSAM 和 MoFedSAM 是否在标准 FL 基准和非 IID 数据划分上提供稳健的性能?

主要发现

  • FedSAM 在非 IID FL 设置下,提升了全局泛化和相较于基于 ERM 的 FedAvg 的收敛性。
  • MoFedSAM 通过动量整合全局更新,从而实现更快的收敛和更好的泛化。
  • Both FedSAM and MoFedSAM reduce learning deviation across diverse clients, improving robustness to data heterogeneity.
  • FedSAM 和 MoFedSAM 在不同客户端之间降低学习偏差,提高对数据异质性的鲁棒性。
  • 实验在 EMNIST、CIFAR-10 和 CIFAR-100 上表明,作者的方法在不同非 IID 条件下优于 FedAvg、SCAFFOLD、FedRobust、MimeLite 和 FedCM。
  • 理论分析给出与现有非 IID FL 方法相当甚至更好的收敛速率,以及针对 FedSAM 的边际式泛化界。
  • MoFedSAM 在完整和部分客户端参与下均保持有效,在更复杂的数据集如 CIFAR-100 上的性能提升更为显著。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。