[论文解读] Understanding Generalization of Federated Learning via Stability: Heterogeneity Matters
本文通过使用平均稳定性分析联邦学习的泛化性能,表明模型表现关键取决于数据异质性和算法收敛速度。对于凸和非凸损失下的FedAvg、SCAFFOLD和FedProx,推导出显式关联性能与客户端数据异质性及算法稳定性的泛化界,在独立同分布(i.i.d.)情况下可恢复经典SGD结果。
Generalization performance is a key metric in evaluating machine learning models when applied to real-world applications. Good generalization indicates the model can predict unseen data correctly when trained under a limited number of data. Federated learning (FL), which has emerged as a popular distributed learning framework, allows multiple devices or clients to train a shared model without violating privacy requirements. While the existing literature has studied extensively the generalization performances of centralized machine learning algorithms, similar analysis in the federated settings is either absent or with very restrictive assumptions on the loss functions. In this paper, we aim to analyze the generalization performances of federated learning by means of algorithmic stability, which measures the change of the output model of an algorithm when perturbing one data point. Three widely-used algorithms are studied, including FedAvg, SCAFFOLD, and FedProx, under convex and non-convex loss functions. Our analysis shows that the generalization performances of models trained by these three algorithms are closely related to the heterogeneity of clients' datasets as well as the convergence behaviors of the algorithms. Particularly, in the i.i.d. setting, our results recover the classical results of stochastic gradient descent (SGD).
研究动机与目标
- 理解数据异质性如何影响联邦学习中的泛化性能。
- 利用算法稳定性分析FedAvg、SCAFFOLD和FedProx的泛化性能。
- 推导显式考虑数据异质性和收敛行为的泛化界。
- 克服先前研究依赖强凸性或有界损失等限制性假设的局限性。
- 建立算法稳定性、收敛速度与非独立同分布(non-i.i.d.)联邦设置中泛化性能之间的联系。
提出的方法
- 采用平均稳定性作为理论框架分析泛化性能,避免过于保守的统一稳定性界。
- 针对一般凸和非凸损失函数(包括无界损失)推导FedAvg、SCAFFOLD和FedProx的泛化界。
- 通过扰动单个客户端数据集中的一个数据点来建模客户端数据异质性,并分析其对模型参数变化的影响。
- 应用优化理论中的技术,包括一阶最优性条件和梯度的Lipschitz连续性,以界定参数差异。
- 使用递归不等式展开训练轮次上的稳定性界,从而建立对学习率和梯度范数的累积依赖关系。
- 结合理论分析与基于GitHub开源代码的实验验证,以支持研究发现。
实验结果
研究问题
- RQ1数据异质性在多大程度上影响联邦学习算法的泛化性能?
- RQ2在非独立同分布(non-i.i.i.d.)联邦设置中,收敛速度与算法稳定性在多大程度上影响泛化性能?
- RQ3能否在不假设强凸性或有界损失的前提下,为FedAvg、SCAFFOLD和FedProx推导泛化界?
- RQ4平均稳定性与统一稳定性相比,在捕捉联邦学习泛化性能方面表现如何?
- RQ5理论分析是否在独立同分布(i.i.i.d.)数据设置下恢复了经典SGD的泛化结果?
主要发现
- 联邦学习模型的泛化性能强烈受客户端数据异质性影响,更高的异质性会导致更差的泛化性能,除非通过稳定算法加以缓解。
- 推导出的泛化界明确依赖于算法的收敛行为,收敛越快,泛化性能越好。
- 对于FedAvg、SCAFFOLD和FedProx,泛化误差受一个与学习率、梯度范数和数据异质性成正比的项所限制,在标准假设下其界按O(1/T)缩放。
- 在i.i.i.d.设置下,该界恢复了经典随机梯度下降(SGD)的泛化结果,验证了理论框架的有效性。
- 使用平均稳定性可获得比统一稳定性更紧致且更实用的界,尤其在非凸和无界损失设置下表现更优。
- 在高数据异质性条件下,SCAFFOLD和FedProx由于其缓解客户端漂移的机制,相比FedAvg展现出更优的泛化稳定性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。