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

大语言模型的通信高效与张量化联邦微调

Communication-Efficient and Tensorized Federated Fine-Tuning of Large Language Models

Electrical and Computer Engineering Department, UC Santa Barbara(加州大学圣芭芭拉分校电气与计算机工程系);Computer Science Department, UC Santa Barbara(加州大学圣芭芭拉分校计算机科学系)

Sajjad Ghiasvand, Yifan Yang, Zhiyu Xue, Mahnoosh Alizadeh, Zheng Zhang, Ramtin Pedarsani

AI总结:

本文提出FedTT和FedTT+方法,通过在客户端模型中集成张量化适配器并自适应冻结部分张量因子,有效解决了大语言模型联邦微调中的通信开销与数据异构性问题,在降低10倍通信成本的同时性能优于现有方法。

摘要:

参数高效微调(PEFT)方法通常假设大语言模型(LLMs)是在单一设备或客户端的数据上进行训练的。然而,现实场景往往需要在分布于多个设备上的私有数据上微调这些模型。联邦学习(FL)提供了一种极具吸引力的解决方案,通过在训练期间将敏感数据保留在本地设备上,从而保护用户隐私。尽管如此,将PEFT方法集成到FL中引入了两个主要挑战:通信开销和数据异构性。在本文中,我们提出了FedTT和FedTT+,通过将张量化适配器集成到客户端模型的编码器/解码器块中来适配LLMs的方法。FedTT具有通用性,可应用于跨孤岛FL和大规模跨设备FL。FedTT+是FedTT专为跨孤岛FL定制的扩展,通过自适应冻结部分张量因子,增强了应对数据异构性的鲁棒性,进一步减少了可训练参数的数量。在BERT和LLaMA模型上的实验表明,我们提出的方法成功应对了数据异构性挑战,表现与现有的联邦PEFT方法相当甚至更好,同时实现了高达10倍的通信成本降低。

英文摘要:

Parameter-efficient fine-tuning (PEFT) methods typically assume that Large Language Models (LLMs) are trained on data from a single device or client. However, real-world scenarios often require fine-tuning these models on private data distributed across multiple devices. Federated Learning (FL) offers an appealing solution by preserving user privacy, as sensitive data remains on local devices during training. Nonetheless, integrating PEFT methods into FL introduces two main challenges: communication overhead and data heterogeneity. In this paper, we introduce FedTT and FedTT+, methods for adapting LLMs by integrating tensorized adapters into client-side models' encoder/decoder blocks. FedTT is versatile and can be applied to both cross-silo FL and large-scale cross-device FL. FedTT+, an extension of FedTT tailored for cross-silo FL, enhances robustness against data heterogeneity by adaptively freezing portions of tensor factors, further reducing the number of trainable parameters. Experiments on BERT and LLaMA models demonstrate that our proposed methods successfully address data heterogeneity challenges and perform on par or even better than existing federated PEFT approaches while achieving up to 10$\times$ reduction in communication cost.

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

↑