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

关于大语言模型零阶联邦微调的收敛性研究

On the Convergence of Zeroth-Order Federated Tuning for Large Language Models

Sun Yat-sen University(中山大学);Alibaba Group(阿里巴巴集团);Pazhou Lab(琶洲实验室)

Zhenqing Ling, Daoyuan Chen, Liuyi Yao, Yaliang Li, Ying Shen

AI总结:

本文首次从理论上研究FedMeZO在大语言模型联邦微调中的收敛性,证明其相比FedAvg收敛更快且大幅降低GPU内存占用,并提出基于理论洞见的个性化学习率策略以加速损失下降。

摘要:

联邦学习(FL)与大语言模型(LLMs)的融合正在开创隐私保护自然语言处理的新时代。然而,微调LLMs所需的大量内存带来了显著挑战,尤其是在计算资源有限的客户端上部署时。为规避这一问题,我们探索了在联邦环境中集成内存高效的零阶优化(Zeroth-Order Optimization)这一新颖方案,并将该协同方法命名为FedMeZO。本研究首次在LLMs背景下考察FedMeZO的理论基础,解决的关键问题包括:大规模参数空间对优化行为的影响、收敛性质的建立,以及识别影响收敛的关键参数以指导个性化联邦策略。我们大量的实证证据支持了该理论,表明FedMeZO不仅比FedAvg等传统一阶方法收敛更快,而且显著降低了训练期间的GPU内存使用量,使其达到与推理期间相当的水平。此外,基于理论洞见提出的个性化联邦学习策略通过定制客户端学习率,能够有效加速损失下降。我们希望本工作有助于弥合LLMs联邦微调在理论与实践之间的差距,从而推动该领域的进一步发展和研究。

英文摘要:

The confluence of Federated Learning (FL) and Large Language Models (LLMs) is ushering in a new era in privacy-preserving natural language processing. However, the intensive memory requirements for fine-tuning LLMs pose significant challenges, especially when deploying on clients with limited computational resources. To circumvent this, we explore the novel integration of Memory-efficient Zeroth-Order Optimization within a federated setting, a synergy we term as FedMeZO. Our study is the first to examine the theoretical underpinnings of FedMeZO in the context of LLMs, tackling key questions regarding the influence of large parameter spaces on optimization behavior, the establishment of convergence properties, and the identification of critical parameters for convergence to inform personalized federated strategies. Our extensive empirical evidence supports the theory, showing that FedMeZO not only converges faster than traditional first-order methods such as FedAvg but also significantly reduces GPU memory usage during training to levels comparable to those during inference. Moreover, the proposed personalized FL strategy that is built upon the theoretical insights to customize the client-wise learning rate can effectively accelerate loss reduction. We hope our work can help to bridge theoretical and practical aspects of federated fine-tuning for LLMs, thereby stimulating further advancements and research in this area.

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

↑