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

自适应秩分配用于联邦参数高效语言模型微调

Adaptive Rank Allocation for Federated Parameter-Efficient Fine-Tuning of Language Models

Department of Computer Science, University of Exeter(埃克塞特大学计算机科学系)

Fei Wu, Jia Hu, Geyong Min, Shiqiang Wang

AI总结:

FedARA通过自适应秩分配提升联邦参数高效语言模型微调的性能与通信效率

摘要:

预训练语言模型(PLMs)在现代自然语言处理(NLP)中展现了其优越性和多功能性,能够通过进一步微调适应各种下游任务。联邦参数高效微调(FedPEFT)已成为解决在资源受限本地设备上分布式训练中隐私和效率挑战的有希望的解决方案。然而,我们的测量发现FedPEFT有两个关键局限:设备间异构数据加剧了低秩适应的性能退化,而固定参数配置导致了通信效率低下。为克服这些限制,我们提出了FedARA,一种新的自适应秩分配框架,用于联邦参数高效语言模型微调。具体而言,FedARA采用截断奇异值分解(SVD)适应来增强客户端之间的相似特征表示,显著减轻了数据异构的不利影响。随后,它利用动态秩分配来逐步识别关键秩,有效提高了通信效率。最后,它利用基于秩的模块剪枝来自动移除不活跃的模块,稳定地减少了每个联邦学习轮次中的本地计算成本和内存使用。广泛的实验表明,FedARA在各种数据集和模型上平均比基线高出6.95%至8.49%,同时显著提高了通信效率2.40倍。此外,在各种边缘设备上的实验显示,总训练时间和能耗分别减少了高达48.90%和46.95%。

英文摘要:

Pre-trained Language Models (PLMs) have demonstrated their superiority and versatility in modern Natural Language Processing (NLP), effectively adapting to various downstream tasks through further fine-tuning. Federated Parameter-Efficient Fine-Tuning (FedPEFT) has emerged as a promising solution to address privacy and efficiency challenges in distributed training for PLMs on resource-constrained local devices. However, our measurements reveal two key limitations of FedPEFT: heterogeneous data across devices exacerbates performance degradation of low-rank adaptation, and a fixed parameter configuration results in communication inefficiency. To overcome these limitations, we propose FedARA, a novel adaptive rank allocation framework for federated parameter-efficient fine-tuning of language models. Specifically, FedARA employs truncated Singular Value Decomposition (SVD) adaptation to enhance similar feature representation across clients, significantly mitigating the adverse effects of data heterogeneity. Subsequently, it utilizes dynamic rank allocation to progressively identify critical ranks, effectively improving communication efficiency. Lastly, it leverages rank-based module pruning to automatically remove inactive modules, steadily reducing local computational cost and memory usage in each federated learning round. Extensive experiments show that FedARA consistently outperforms baselines by an average of 6.95% to 8.49% across various datasets and models under heterogeneous data while significantly improving communication efficiency by 2.40$ \times$. Moreover, experiments on various edge devices demonstrate substantial decreases in total training time and energy consumption by up to 48.90% and 46.95%, respectively.

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

↑