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

异构任务与客户端资源下的大型语言模型联邦微调

Federated Fine-tuning of Large Language Models under Heterogeneous Tasks and Client Resources

Alibaba Group(阿里巴巴集团);Pennsylvania State University(宾夕法尼亚州立大学)

Jiamu Bai, Daoyuan Chen, Bingchen Qian, Liuyi Yao, Yaliang Li

AI总结:

本研究提出FlexLoRA聚合方案,通过动态调整本地LoRA秩并利用SVD重分配权重,解决联邦学习中客户端资源和任务异构问题,显著提升了大型语言模型在下游NLP任务中的性能。

摘要:

联邦学习(FL)近期已被应用于大型语言模型(LLMs)的参数高效微调。尽管前景广阔,但由于客户端的异构资源和数据分布,它引发了重大挑战。本研究引入了FlexLoRA,一种简单而有效的LLM微调聚合方案,该方案缓解了传统FL中的“木桶效应”,这种效应通过将资源充足的客户端绑定到资源最少的参与者的能力上,限制了它们的潜力。FlexLoRA允许动态调整本地LoRA秩,促进了融入更广泛、较少任务特定知识的全局模型的发展。通过从各个客户端贡献中合成全尺寸LoRA权重,并采用奇异值分解(SVD)进行权重重分配,FlexLoRA充分利用了异构客户端资源。我们的实验涉及数千个执行异构NLP任务和具有异构客户端资源的客户端,验证了FlexLoRA的有效性,联邦全局模型在各种异构分布下的下游NLP任务性能上,相比SOTA FL方法取得了一致的更好改进。FlexLoRA的实用性进一步得到了我们的理论分析及其与现有基于LoRA的FL方法无缝集成的支持,为LLMs的跨设备、隐私保护的联邦微调提供了一条路径。

英文摘要:

Federated Learning (FL) has recently been applied to the parameter-efficient fine-tuning of Large Language Models (LLMs). While promising, it raises significant challenges due to the heterogeneous resources and data distributions of clients. This study introduces FlexLoRA, a simple yet effective aggregation scheme for LLM fine-tuning, which mitigates the ``bucket effect'' in traditional FL that restricts the potential of clients with ample resources by tying them to the capabilities of the least-resourced participants. FlexLoRA allows for dynamic adjustment of local LoRA ranks, fostering the development of a global model imbued with broader, less task-specific knowledge. By synthesizing a full-size LoRA weight from individual client contributions and employing Singular Value Decomposition (SVD) for weight redistribution, FlexLoRA fully leverages heterogeneous client resources. Involving thousands of clients performing heterogeneous NLP tasks and client resources, our experiments validate the efficacy of FlexLoRA, with the federated global model achieving consistently better improvement over SOTA FL methods in downstream NLP task performance across various heterogeneous distributions. FlexLoRA's practicality is further underscored by our theoretical analysis and its seamless integration with existing LoRA-based FL methods, offering a path toward cross-device, privacy-preserving federated tuning for LLMs.

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

↑