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

FedBiOT:联邦学习中无需完整模型的LLM本地微调

FedBiOT: LLM Local Fine-tuning in Federated Learning without Full Model

Purdue University(普渡大学);Alibaba Group(阿里巴巴集团)

Feijie Wu, Zitao Li, Yaliang Li, Bolin Ding, Jing Gao

AI总结:

提出FedBiOT,一种联邦学习下资源高效的LLM微调方法,通过服务器生成压缩模型并让客户端微调轻量适配器,结合双层优化解决数据分布差异,在LLaMA-2上实现与基准相当性能的同时显著降低资源消耗。

摘要:

大型语言模型(LLMs)在使用适当数据进行微调后,在许多特定领域的任务上展现出惊人的性能。然而,许多特定领域的数据被私有分布在多个所有者之间。因此,这种困境引发了如何在联邦学习(FL)中进行LLM微调的兴趣。然而,面对有限的计算和通信能力,FL客户端难以有效地对LLM进行微调。为此,我们引入了FedBiOT,一种针对FL的资源高效的LLM微调方法。具体而言,我们的方法包括服务器生成一个压缩的LLM,并将其性能与完整模型对齐。随后,客户端微调压缩模型的一个轻量但重要的部分,称为适配器(adapter)。注意,由于服务器无法访问客户端拥有的私有数据,服务器用于对齐的数据与客户端用于微调的数据具有不同的分布。我们将该问题表述为双层优化问题,以最小化数据差异的负面影响,并推导出服务器和客户端的更新规则。我们在LLaMA-2上进行了大量实验,经验性地表明,当适配器重新集成到全局LLM中时,具有出色的性能。结果还表明,与现有基准相比,所提出的FedBiOT显著减少了资源消耗,同时实现了相当的性能水平。

英文摘要:

Large language models (LLMs) show amazing performance on many domain-specific tasks after fine-tuning with some appropriate data. However, many domain-specific data are privately distributed across multiple owners. Thus, this dilemma raises the interest in how to perform LLM fine-tuning in federated learning (FL). However, confronted with limited computation and communication capacities, FL clients struggle to fine-tune an LLM effectively. To this end, we introduce FedBiOT, a resource-efficient LLM fine-tuning approach to FL. Specifically, our method involves the server generating a compressed LLM and aligning its performance with the full model. Subsequently, the clients fine-tune a lightweight yet important part of the compressed model, referred to as an adapter. Notice that as the server has no access to the private data owned by the clients, the data used for alignment by the server has a different distribution from the one used for fine-tuning by clients. We formulate the problem into a bi-level optimization problem to minimize the negative effect of data discrepancy and derive the updating rules for the server and clients. We conduct extensive experiments on LLaMA-2, empirically showing that the adapter has exceptional performance when reintegrated into the global LLM. The results also indicate that the proposed FedBiOT significantly reduces resource consumption compared to existing benchmarks, all while achieving comparable performance levels.

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

↑