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

用于大语言模型参数高效微调的自动化联邦流水线

Automated Federated Pipeline for Parameter-Efficient Fine-Tuning of Large Language Models

School of Computer Science, Fudan University(复旦大学计算机科学学院);City University of Hong Kong(香港城市大学);University of Hong Kong(香港大学)

Zihan Fang, Zheng Lin, Zhe Chen, Xianhao Chen, Yue Gao, Yuguang Fang

AI总结:

本文提出 FedPipe 自动化联邦流水线,通过贡献选权、低秩适配器训练聚合与按需参数量化,在资源异构边缘环境中低成本微调 LLM,且不增加推理延迟。

摘要:

近来,先进智能生成内容(AIGC),尤其是大语言模型(LLM)的开发迅速兴起。然而,对于许多下游任务而言,需要使用私有数据对 LLM 进行微调。尽管联邦学习为 LLM 微调提供了一种有前景的隐私保护方案,但 LLM 的庞大规模以及高昂的计算和通信需求,使其难以应用于下游任务。更重要的是,在现实场景中,私有边缘服务器通常拥有不同的计算和网络资源,这给 LLM 微调带来了额外复杂性。为解决这些问题,我们设计并实现了一个名为 FedPipe 的自动化联邦流水线,以最低训练成本微调 LLM,同时不增加任何推理延迟。FedPipe 首先根据权重对 LLM 训练的贡献识别需要微调的权重;随后,它为每个选中的权重配置一个低秩适配器,在边缘服务器上训练本地低秩适配器,并聚合所有边缘服务器的本地适配器以微调整个 LLM。最后,它根据边缘服务器的需求对 LLM 参数进行适当量化,以减少内存占用。大量实验表明,FedPipe 加快了模型训练,并取得了优于最先进基准的更高准确率。

英文摘要:

Recently, there has been a surge in the development of advanced intelligent generative content (AIGC), especially large language models (LLMs). However, for many downstream tasks, it is necessary to fine-tune LLMs using private data. While federated learning offers a promising privacy-preserving solution to LLM fine-tuning, the substantial size of an LLM, combined with high computational and communication demands, makes it hard to apply to downstream tasks. More importantly, private edge servers often possess varying computing and network resources in real-world scenarios, introducing additional complexities to LLM fine-tuning. To tackle these problems, we design and implement an automated federated pipeline, named FedPipe, to fine-tune LLMs with minimal training cost but without adding any inference latency. FedPipe firstly identifies the weights to be fine-tuned based on their contributions to the LLM training. It then configures a low-rank adapter for each selected weight to train local low-rank adapters on an edge server, and aggregate local adapters of all edge servers to fine-tune the whole LLM. Finally, it appropriately quantizes the parameters of LLM to reduce memory space according to the requirements of edge servers. Extensive experiments demonstrate that FedPipe expedites the model training and achieves higher accuracy than state-of-the-art benchmarks.

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

↑