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

FeDeRA:利用权重分解在联邦学习中高效微调语言模型

FeDeRA:Efficient Fine-tuning of Language Models in Federated Learning Leveraging Weight Decomposition

College of Information Science and Electronic Engineering, Zhejiang University(浙江大学信息科学与电子工程学院)

Yuxuan Yan, Qianqian Yang, Shunpu Tang, Zhiguo Shi

AI总结:

FeDeRA通过奇异值分解初始化低秩矩阵,在联邦学习中高效微调语言模型,仅用1%参数即可达到或超越全参数微调性能,并显著降低训练成本。

摘要:

尽管预训练语言模型(PLMs)在微调后能在各种任务上表现出色,但由于集中式训练方法中的数据隐私问题日益严重,它们面临着重大挑战。本文考虑使用联邦学习(FL)来微调PLMs。然而,PLMs中大量的参数给通信和计算资源有限的客户端设备带来了巨大困难。一个可行的解决方案是将参数高效微调(PEFT)引入FL,与全参数微调(FFT)相比,它训练的参数集要小得多。尽管PEFT方法显著提高了训练效率,但实验结果表明,尤其是当不同客户端的数据非独立同分布(non-i.i.d)时,PEFT方法可能导致性能下降。为了克服这一问题,我们提出了FeDeRA,它扩展并改进了一种广泛使用的PEFT方法,即低秩适配(LoRA)。FeDeRA遵循LoRA,将PLMs的权重矩阵分解为低秩矩阵,从而在微调过程中实现更高效的计算和参数更新。与LoRA通过随机采样或零初始化这些低秩矩阵不同,所提出的FeDeRA通过对预训练权重矩阵执行奇异值分解(SVD)的结果来初始化这些矩阵。在各种任务和数据集上的大量实验表明,在FL设置中,FeDeRA在任务性能上优于所考虑的PEFT基线,并且与FFT方法相当甚至超越。此外,与FFT相比,FeDeRA仅需1%的可训练参数,在达到相同任务性能水平时,显著减少了超过90%的训练时间成本。实验结果还强调了FeDeRA对数据异质性的鲁棒性,即使数据异质性增加,它也能保持稳定的任务性能。

英文摘要:

Despite their exceptional performance on various tasks after fine-tuning, pre-trained language models (PLMs) face significant challenges due to growing privacy concerns with data in centralized training methods. We consider federated learning (FL) to fine-tune PLMs in this paper. However, the substantial number of parameters in PLMs poses significant difficulties for client devices with limited communication and computational resources. One promising solution is to exploit parameter-efficient fine-tuning (PEFT) into FL, which trains a much smaller set of parameters than full parameter fine-tuning (FFT). Although remarkably improving training efficiency, PEFT methods may lead to degraded performance especially when data across different clients are non i.i.d, as revealed by experimental results. To overcome this, we propose FeDeRA, which extends and improves a widely used PEFT method, i.e., low-rank adaption (LoRA). FeDeRA follows LoRA by decomposing the weight matrices of the PLMs into low-rank matrices, which allows for more efficient computation and parameter updates during fine-tuning. Different from LoRA which simply initializes these low-rank matrices by random sampling or zeros, the proposed FeDeRA initializes these matrices by the results of performing singular value decomposition (SVD) on the pre-trained weight matrices. Extensive experiments across various tasks and datasets show that FeDeRA outperforms the considered PEFT baselines and is comparable to or even surpasses FFT method within the FL setting in terms of task performance. Moreover, FeDeRA requires only 1% trainable paramentes compared to FFT, significantly reducing training time costs by more than 90% to achieve the same task performance level. The experimental results also highlight the robustness of FeDeRA against data heterogeneity, as it maintains stable task performance even as data heterogeneity increases.

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

↑