arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.09101cs.DC
收藏

基于渐进式层冻结的异构感知内存高效联邦学习

Heterogeneity-Aware Memory Efficient Federated Learning via Progressive Layer Freezing

Wu Yebo, Li Li, Tian Chunlin, Chang Tao, Lin Chi, Wang Cong, Xu Cheng-Zhong

AI总结:

针对联邦学习的内存占用问题,本文提出SmartFreeze框架,通过渐进式层冻结训练搭配节奏控制器和异构感知参与者选择器,大幅降低内存占用并提升模型准确率与训练速度。

摘要:

本文提出了SmartFreeze框架,该框架通过以渐进方式开展训练,有效降低内存占用。SmartFreeze并非在每轮训练中更新完整模型,而是将共享模型划分为由指定层数组成的模块。它首先借助精心设计的输出模块训练前端模块,在收敛后将其安全冻结,随后启动下一个模块的训练,该过程不断迭代直至整个模型完成训练。通过这种方式,冻结模块的反向计算以及用于存储中间输出和梯度的对应内存空间都得到了有效节省。除渐进式训练框架外,SmartFreeze还包含以下两个核心组件:节奏控制器和参与者选择器。节奏控制器用于在运行时有效监控每个模块的训练进度,并在收敛后将其安全冻结;参与者选择器则通过综合考虑内存容量、统计异构性和系统异构性,为每个模块选择合适的设备参与训练。我们在仿真平台和硬件测试平台上开展了大量实验,以评估SmartFreeze的有效性。结果表明,SmartFreeze可将平均内存使用量有效降低最高达82%。此外,它还同时将模型准确率最高提升了83.1%,并将训练过程最高加速至2.02倍。

英文摘要:

In this paper, we propose SmartFreeze, a framework that effectively reduces the memory footprint by conducting the training in a progressive manner. Instead of updating the full model in each training round, SmartFreeze divides the shared model into blocks consisting of a specified number of layers. It first trains the front block with a well-designed output module, safely freezes it after convergence, and then triggers the training of the next one. This process iterates until the whole model has been successfully trained. In this way, the backward computation of the frozen blocks and the corresponding memory space for storing the intermediate outputs and gradients are effectively saved. Except for the progressive training framework, SmartFreeze consists of the following two core components: a pace controller and a participant selector. The pace controller is designed to effectively monitor the training progress of each block at runtime and safely freezes them after convergence while the participant selector selects the right devices to participate in the training for each block by jointly considering the memory capacity, the statistical and system heterogeneity. Extensive experiments are conducted to evaluate the effectiveness of SmartFreeze on both simulation and hardware testbeds. The results demonstrate that SmartFreeze effectively reduces average memory usage by up to 82%. Moreover, it simultaneously improves the model accuracy by up to 83.1% and accelerates the training process up to 2.02X.

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

↑