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

DYNAMITE:联邦学习中静态与流式数据集的小批量大小与聚合频率的动态交互

DYNAMITE: Dynamic Interplay of Mini-Batch Size and Aggregation Frequency for Federated Learning with Static and Streaming Dataset

Sun Yat-sen University(中山大学);Peng Cheng Laboratory(鹏城实验室);Carnegie Mellon University(卡内基梅隆大学)

Weijie Liu, Xiaoxi Zhang, Jingpu Duan, Carlee Joe-Wong, Zhi Zhou, Xu Chen

AI总结:

本文提出分析模型与优化算法,利用批量大小与聚合频率的交互,在动态联邦学习中权衡收敛、成本与时间,并设计离线最优与在线自适应方案,实验验证其优越性。

摘要:

联邦学习(FL)是一种分布式学习范式,能够协调异构边缘设备在不共享私有数据的情况下执行模型训练。虽然先前的工作侧重于分析FL在批量大小和聚合频率等超参数下的收敛性,但调整这些参数对模型性能、训练时间和资源消耗的联合影响却被忽视,尤其是在面对动态数据流和网络特征时。本文提出了新颖的分析模型和优化算法,利用批量大小与聚合频率之间的交互作用,来权衡动态FL训练中的收敛性、成本和完成时间。我们针对设备间异构数据集建立了新的训练误差收敛界,并推导出在所有设备上一致的协同优化批量大小和聚合频率的闭式解。此外,我们设计了一种高效算法,用于在不同设备间分配不同的批量配置,从而提高模型精度并解决数据和系统特征的异构性。进一步地,我们提出了一种自适应控制算法,能够动态估计网络状态,高效采样合适的数据批次,并实时调整批量大小和聚合频率。大量实验证明了我们离线最优解和在线自适应算法的优越性。

英文摘要:

Federated Learning (FL) is a distributed learning paradigm that can coordinate heterogeneous edge devices to perform model training without sharing private data. While prior works have focused on analyzing FL convergence with respect to hyperparameters like batch size and aggregation frequency, the joint effects of adjusting these parameters on model performance, training time, and resource consumption have been overlooked, especially when facing dynamic data streams and network characteristics. This paper introduces novel analytical models and optimization algorithms that leverage the interplay between batch size and aggregation frequency to navigate the trade-offs among convergence, cost, and completion time for dynamic FL training. We establish a new convergence bound for training error considering heterogeneous datasets across devices and derive closed-form solutions for co-optimized batch size and aggregation frequency that are consistent across all devices. Additionally, we design an efficient algorithm for assigning different batch configurations across devices, improving model accuracy and addressing the heterogeneity of both data and system characteristics. Further, we propose an adaptive control algorithm that dynamically estimates network states, efficiently samples appropriate data batches, and effectively adjusts batch sizes and aggregation frequency on the fly. Extensive experiments demonstrate the superiority of our offline optimal solutions and online adaptive algorithm.

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

↑