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

异构设备上的自适应参数高效联邦微调

Adaptive Parameter-Efficient Federated Fine-Tuning on Heterogeneous Devices

School of Computer Science and Technology, University of Science and Technology of China(中国科学技术大学计算机科学与技术学院);Suzhou Institute for Advanced Research, University of Science and Technology of China(中国科学技术大学苏州高等研究院);Department of Computer Science and Engineering, University of California at Santa Cruz(加州大学圣克鲁兹分校计算机科学与工程系)

Jun Liu, Yunming Liao, Hongli Xu, Yang Xu, Jianchun Liu, Chen Qian

AI总结:

本文提出LEGEND框架,通过分析LoRA深度与秩分布的耦合关系,为异构设备自适应配置LoRA层,在联邦微调中实现1.5-2.8倍加速并节省约42.3%通信成本。

摘要:

联邦微调(FedFT)已被提出用于以分布式方式微调预训练语言模型。然而,在实际应用中,高效的联邦微调面临两个关键挑战,即资源约束和系统异构性。现有工作依赖参数高效微调方法,例如低秩适配(LoRA),但存在重大局限。本文基于联邦微调的内在特征,观察到在靠近输出端添加具有更高秩的LoRA层有助于节省资源消耗,同时实现可比的微调性能。随后,我们提出了一种新颖的基于LoRA的联邦微调框架,称为LEGEND,该框架面临确定LoRA层数量(称为LoRA深度)和每个LoRA层的秩(称为秩分布)的困难。我们分析了LoRA深度与秩分布之间的耦合关系,并为异构设备设计了一种高效的LoRA配置算法,从而提升微调效率。在包含80台商用设备的物理平台上进行了大量实验。结果表明,与先进解决方案相比,LEGEND在达到目标精度时可实现1.5至2.8倍的加速,并节省约42.3%的通信成本。

英文摘要:

Federated fine-tuning (FedFT) has been proposed to fine-tune the pre-trained language models in a distributed manner. However, there are two critical challenges for efficient FedFT in practical applications, i.e., resource constraints and system heterogeneity. Existing works rely on parameter-efficient fine-tuning methods, e.g., low-rank adaptation (LoRA), but with major limitations. Herein, based on the inherent characteristics of FedFT, we observe that LoRA layers with higher ranks added close to the output help to save resource consumption while achieving comparable fine-tuning performance. Then we propose a novel LoRA-based FedFT framework, termed LEGEND, which faces the difficulty of determining the number of LoRA layers (called, LoRA depth) and the rank of each LoRA layer (called, rank distribution). We analyze the coupled relationship between LoRA depth and rank distribution, and design an efficient LoRA configuration algorithm for heterogeneous devices, thereby promoting fine-tuning efficiency. Extensive experiments are conducted on a physical platform with 80 commercial devices. The results show that LEGEND can achieve a speedup of 1.5-2.8$\times$ and save communication costs by about 42.3% when achieving the target accuracy, compared to the advanced solutions.

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

↑