arXiv:2409.18448cs.LG2024-09NeurIPS被引 34

解决分层联邦学习中多时间尺度模型漂移问题

Hierarchical Federated Learning with Multi-Timescale Gradient Correction

  • 引入双级梯度修正机制,分别校正客户端与组间梯度
  • 收敛性分析证明对数据异构性不敏感,稳定性强
  • 适用于真实分布式系统,尤其适合多层级架构

传统联邦学习通常采用客户端直连中心服务器的星型拓扑,但实际分布式系统常呈现分层结构。分层联邦学习(HFL)应运而生,通过多级聚合点缓解这一差距。然而,现有HFL算法难以应对跨层级的数据异构导致的多时间尺度模型漂移问题。本文提出多时间尺度梯度修正(MTGC)方法:引入独立控制变量,分别校正客户端梯度向组内梯度、组梯度向全局梯度的偏差,以缓解局部更新和组内聚合带来的模型漂移。我们在一般非凸设定下严格分析了MTGC的收敛行为,克服了校正项间耦合带来的挑战。结果表明,该方法的收敛界不受数据异构程度影响,证实其在多层级非独立同分布(non-i.i.d.)数据下的鲁棒性。通过在多种数据集和模型上的广泛实验,验证了MTGC在不同分层联邦设置中的有效性。代码已公开于https://github.com/wenzhifang/MTGC。

原文摘要 · Abstract (English)

While traditional federated learning (FL) typically focuses on a star topology where clients are directly connected to a central server, real-world distributed systems often exhibit hierarchical architectures. Hierarchical FL (HFL) has emerged as a promising solution to bridge this gap, leveraging aggregation points at multiple levels of the system. However, existing algorithms for HFL encounter challenges in dealing with multi-timescale model drift, i.e., model drift occurring across hierarchical levels of data heterogeneity. In this paper, we propose a multi-timescale gradient correction (MTGC) methodology to resolve this issue. Our key idea is to introduce distinct control variables to (i) correct the client gradient towards the group gradient, i.e., to reduce client model drift caused by local updates based on individual datasets, and (ii) correct the group gradient towards the global gradient, i.e., to reduce group model drift caused by FL over clients within the group. We analytically characterize the convergence behavior of MTGC under general non-convex settings, overcoming challenges associated with couplings between correction terms. We show that our convergence bound is immune to the extent of data heterogeneity, confirming the stability of the proposed algorithm against multi-level non-i.i.d. data. Through extensive experiments on various datasets and models, we validate the effectiveness of MTGC in diverse HFL settings. The code for this project is available at \href{https://github.com/wenzhifang/MTGC}{https://github.com/wenzhifang/MTGC}.

联邦学习分层架构梯度修正模型漂移

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。