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

通过寻求平坦最小值来提高联邦学习的泛化能力

Improving Generalization in Federated Learning by Seeking Flat Minima

Politecnico di Torino(都灵理工大学);CINI(意大利国家信息学大学联盟)

Debora Caldarola, Barbara Caputo, Marco Ciccone

摘要:

在联邦设置中训练的模型通常会遭受性能下降和泛化失败的困扰,特别是在面对异构场景时。在这项工作中,我们调查这种行为,通过镜头的几何损失和海森本征谱,连接模型的缺乏泛化能力的解决方案的清晰度。受先前研究的启发,将损失表面的锐度与泛化差距联系起来,我们表明:i)使用锐度感知最小化(SAM)或其自适应版本(ASAM)在本地训练客户端,ii)在服务器端平均随机权重(SWA)可以大大提高联邦学习中的泛化能力,并有助于弥合与集中式模型的差距。通过在具有均匀低损失的邻域中寻找参数,该模型收敛于更平坦的最小值,并且其泛化能力在同质和异质场景中都有显着提高。实证结果表明,这些优化器在各种基准视觉数据集(例如CIFAR 10/100,Landmarks-User-160 k,IDDA)和任务(大规模分类,语义分割,领域泛化)上的有效性。

英文摘要:

Models trained in federated settings often suffer from degraded performances and fail at generalizing, especially when facing heterogeneous scenarios. In this work, we investigate such behavior through the lens of geometry of the loss and Hessian eigenspectrum, linking the model's lack of generalization capacity to the sharpness of the solution. Motivated by prior studies connecting the sharpness of the loss surface and the generalization gap, we show that i) training clients locally with Sharpness-Aware Minimization (SAM) or its adaptive version (ASAM) and ii) averaging stochastic weights (SWA) on the server-side can substantially improve generalization in Federated Learning and help bridging the gap with centralized models. By seeking parameters in neighborhoods having uniform low loss, the model converges towards flatter minima and its generalization significantly improves in both homogeneous and heterogeneous scenarios. Empirical results demonstrate the effectiveness of those optimizers across a variety of benchmark vision datasets (e.g. CIFAR10/100, Landmarks-User-160k, IDDA) and tasks (large scale classification, semantic segmentation, domain generalization).

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

↑