arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.05976cs.LGcs.DC

FLoRA:利用异构低秩适配进行大语言模型的联邦微调

FLoRA: Federated Fine-Tuning Large Language Models with Heterogeneous Low-Rank Adaptations

University of Maryland(马里兰大学);Rutgers University(罗格斯大学);Sony Reasearch(索尼研究院)

Ziyao Wang, Zheyu Shen, Yexiao He, Guoheng Sun, Hongyi Wang, Lingjuan Lyu, Ang Li

AI总结:

针对联邦微调中 LoRA 适配器聚合数学不正确且难支持异构配置的问题,本文提出 FLORA,通过基于堆叠的无噪声聚合实现异构 LoRA 联邦微调,并在同构与异构场景中超越现有方法。

摘要:

大语言模型(LLM)的快速发展对推动人工智能至关重要,预训练 LLM 可通过微调适配多种下游任务。联邦学习(FL)通过就地计算利用客户端本地数据,无需移动数据,从而以具有隐私意识的方式进一步增强微调。然而,鉴于 LLM 参数量巨大,微调 LLM 给 FL 中资源受限且异构的客户端带来了挑战。以往方法采用低秩适配(LoRA)实现高效联邦微调,但对 LoRA 适配器使用传统 FL 聚合策略。这些方法导致数学上不准确的聚合噪声,降低了微调效果,且无法处理异构 LoRA。本文中,我们首先指出已有联邦微调方法中 LoRA 聚合在数学上的不正确性。我们提出名为 FLORA 的新方法,通过一种新颖的基于堆叠的聚合方法,在各客户端的异构 LoRA 适配器上实现联邦微调。该方法无噪声,并能无缝支持异构 LoRA 适配器。大量实验表明,FLORA 在同构和异构设置下均具有优越性能,超过最先进方法。我们认为这项工作是高效、隐私保护且准确的 LLM 联邦微调的里程碑。代码可在 https://github.com/ATP-1010/FederatedLLM 获取。

英文摘要:

The rapid development of Large Language Models (LLMs) has been pivotal in advancing AI, with pre-trained LLMs being adaptable to diverse downstream tasks through fine-tuning. Federated learning (FL) further enhances fine-tuning in a privacy-aware manner by utilizing clients' local data through in-situ computation, eliminating the need for data movement. However, fine-tuning LLMs, given their massive scale of parameters, poses challenges for clients with constrained and heterogeneous resources in FL. Previous methods employed low-rank adaptation (LoRA) for efficient federated fine-tuning but utilized traditional FL aggregation strategies on LoRA adapters. These approaches led to mathematically inaccurate aggregation noise, reducing fine-tuning effectiveness and failing to address heterogeneous LoRAs. In this work, we first highlight the mathematical incorrectness of LoRA aggregation in existing federated fine-tuning methods. We introduce a new approach called FLORA that enables federated fine-tuning on heterogeneous LoRA adapters across clients through a novel stacking-based aggregation method. Our approach is noise-free and seamlessly supports heterogeneous LoRA adapters. Extensive experiments demonstrate FLORA' s superior performance in both homogeneous and heterogeneous settings, surpassing state-of-the-art methods. We envision this work as a milestone for efficient, privacy-preserving, and accurate federated fine-tuning of LLMs. Our code is available at https://github.com/ATP-1010/FederatedLLM.

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

↑