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

基于参数高效提示微调与自适应优化的大型语言模型联邦学习

Federated Learning of Large Language Models with Parameter-Efficient Prompt Tuning and Adaptive Optimization

Auburn University(奥本大学);Baidu Inc.(百度公司);Texas Tech University(德克萨斯理工大学);North Carolina State University(北卡罗来纳州立大学);Boston Consulting Group(波士顿咨询集团);Hithink RoyalFlush Information Network Co., Ltd.(同花顺信息网络股份有限公司)

Tianshi Che, Ji Liu, Yang Zhou, Jiaxiang Ren, Jiwen Zhou, Victor S. Sheng, Huaiyu Dai, Dejing Dou

AI总结:

本文提出FedPepTAO方法,通过高效部分提示微调与自适应优化解决大模型联邦学习中的通信成本和客户端漂移问题,显著提升了性能与训练效率。

摘要:

联邦学习(FL)是一种极具前景的范式,能够利用分散数据实现协作模型训练。然而,大型语言模型(LLMs)的训练过程通常需要更新大量参数,这限制了FL技术在真实场景中处理LLMs的适用性。提示微调可以显著减少需要更新的参数数量,但这会导致性能下降或训练效率低下。在FL中直接使用提示微调通常会带来非平凡的通信成本,并显著降低性能。此外,分散数据通常是非独立同分布(non-IID)的,这会引发客户端漂移问题,从而导致性能不佳。本文提出了一种具有自适应优化的参数高效提示微调方法,即FedPepTAO,以实现LLMs高效且有效的FL。首先,提出了一种高效的部分提示微调方法,以同时提升性能和效率。其次,开发了一种新颖的自适应优化方法,用于解决设备端和服务器端的客户端漂移问题,进一步提升性能。基于10个数据集的大量实验表明,与9种基线方法相比,FedPepTAO展现出卓越的性能(准确率高达60.8%)和效率(训练时间高达97.59%)。代码可在https://github.com/llm-eff/FedPepTAO获取。

英文摘要:

Federated learning (FL) is a promising paradigm to enable collaborative model training with decentralized data. However, the training process of Large Language Models (LLMs) generally incurs the update of significant parameters, which limits the applicability of FL techniques to tackle the LLMs in real scenarios. Prompt tuning can significantly reduce the number of parameters to update, but it either incurs performance degradation or low training efficiency. The straightforward utilization of prompt tuning in the FL often raises non-trivial communication costs and dramatically degrades performance. In addition, the decentralized data is generally non-Independent and Identically Distributed (non-IID), which brings client drift problems and thus poor performance. This paper proposes a Parameter-efficient prompt Tuning approach with Adaptive Optimization, i.e., FedPepTAO, to enable efficient and effective FL of LLMs. First, an efficient partial prompt tuning approach is proposed to improve performance and efficiency simultaneously. Second, a novel adaptive optimization method is developed to address the client drift problems on both the device and server sides to enhance performance further. Extensive experiments based on 10 datasets demonstrate the superb performance (up to 60.8\% in terms of accuracy) and efficiency (up to 97.59\% in terms of training time) of FedPepTAO compared with 9 baseline approaches. Our code is available at https://github.com/llm-eff/FedPepTAO.

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

↑