arXiv:2409.05976cs.LGcs.DC2024-09NeurIPS被引 201

解决大模型联邦微调中异构低秩适配的聚合难题

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

论文配图:FLoRA: Federated Fine-Tuning Large Language Models with Heterogeneous Low-Rank Adaptations
图 1 · 摘自论文原文
  • 提出基于堆叠的新型聚合方法,实现异构LoRA适配器的无噪声融合
  • 在同质与异质环境下均优于现有最优方法,提升微调精度
  • 适合资源受限设备参与隐私保护的大模型联邦学习场景

大规模语言模型(LLMs)的快速发展推动了人工智能的进步,通过微调可适配多种下游任务。联邦学习(FL)通过本地计算利用客户端数据,无需移动数据即可实现隐私友好的微调。然而,由于参数量巨大,传统方法在资源受限且异构的客户端上面临挑战。现有方法虽采用低秩适配(LoRA)提高效率,但使用传统联邦聚合策略处理LoRA适配器,导致数学上不准确的聚合噪声,降低微调效果并无法应对异构性。本文首次指出现有联邦微调中LoRA聚合的数学错误,提出新方法FLORA,通过创新的堆叠式聚合,实现跨客户端异构LoRA适配器的无噪声融合。实验表明,FLORA在同质与异质设置下均显著优于现有方法。本工作为高效、隐私保护且精确的大型语言模型联邦微调树立了里程碑。代码已开源:https://github.com/ATP-1010/FederatedLLM。

原文摘要 · Abstract (English)

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.

联邦学习大模型微调LoRA异构系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。