[论文解读] Automated Federated Pipeline for Parameter-Efficient Fine-Tuning of Large Language Models
FedPipe 是一种自动化的联邦学习管道,可在资源受限的边缘服务器上通过参数高效微调(PEFT)实现高效且隐私保护的大语言模型(LLM)微调。它选择关键模型权重,根据本地计算能力为每个边缘服务器配置低秩适配器(LoRA),并通过量化技术减少内存占用,在异构环境中实现比最先进方法更快的收敛速度和更高的准确率。
Recently, there has been a surge in the development of advanced intelligent generative content (AIGC), especially large language models (LLMs). However, for many downstream tasks, it is necessary to fine-tune LLMs using private data. While federated learning offers a promising privacy-preserving solution to LLM fine-tuning, the substantial size of an LLM, combined with high computational and communication demands, makes it hard to apply to downstream tasks. More importantly, private edge servers often possess varying computing and network resources in real-world scenarios, introducing additional complexities to LLM fine-tuning. To tackle these problems, we design and implement an automated federated pipeline, named FedPipe, to fine-tune LLMs with minimal training cost but without adding any inference latency. FedPipe firstly identifies the weights to be fine-tuned based on their contributions to the LLM training. It then configures a low-rank adapter for each selected weight to train local low-rank adapters on an edge server, and aggregate local adapters of all edge servers to fine-tune the whole LLM. Finally, it appropriately quantizes the parameters of LLM to reduce memory space according to the requirements of edge servers. Extensive experiments demonstrate that FedPipe expedites the model training and achieves higher accuracy than state-of-the-art benchmarks.
研究动机与目标
- 解决在计算和内存资源异构的边缘服务器上微调大语言模型(LLMs)的挑战。
- 在不共享原始数据的前提下,通过联邦学习(FL)实现隐私保护的模型适配。
- 通过自动化的 PEFT 配置,在降低训练成本和内存占用的同时保持高模型准确率。
- 设计一种动态适应 LoRA 配置和量化级别以匹配边缘服务器能力的流水线。
- 在真实资源异构环境下,相比现有 FL-PEFT 框架,在收敛速度和最终准确率上实现超越。
提出的方法
- 将 LLM 微调问题建模为混合整数线性规划(MILP),在资源约束下优化权重选择与适配器配置。
- 基于对损失减少的贡献度,识别用于微调的关键模型权重,以最小化冗余更新。
- 为选定权重配置低秩适配器(LoRA),其秩和维度根据每个边缘服务器的计算预算进行调优。
- 使用 FedAvg 风格的聚合方法,将各边缘服务器的本地 LoRA 适配器进行聚合,以更新全局 LLM。
- 对 LoRA 参数应用训练后量化,以减少内存使用,且根据边缘服务器的内存限制进行定制化处理。
- 自动化整个流水线,包括权重选择、适配器配置和量化,以最小化人工调优。
实验结果
研究问题
- RQ1在资源受限条件下,如何识别大语言模型中对高效微调最具影响力的权重?
- RQ2如何在异构边缘服务器上动态配置 LoRA 适配器,以在性能与资源使用之间取得平衡?
- RQ3在联邦 LLM 微调中,LoRA 适配器的量化是否能减少内存开销而不降低模型准确率?
- RQ4FedPipe 在异构边缘环境下的收敛速度和最终准确率方面,与最先进 FL-PEFT 框架相比表现如何?
- RQ5自动化流水线设计对降低联邦 LLM 微调中的训练成本和推理延迟有何影响?
主要发现
- 在异构边缘环境下,FedPipe 在联邦 LLM 微调中实现了比最先进基线更快的收敛速度和更高的准确率。
- 自动化的权重选择与 LoRA 配置策略显著降低了训练成本,同时保持了模型性能。
- LoRA 适配器的量化将内存使用量减少了高达 50%,且未造成明显的准确率下降,使低内存边缘设备的部署成为可能。
- 在下游 NLP 任务中,FedPipe 在训练效率和最终模型准确率方面均优于 FedAdapter 及其他基于 PEFT 的 FL 框架。
- 基于 MILP 的优化集成使 LoRA 配置能够有效适配多样化的边缘服务器能力。
- 该流水线通过在推理阶段避免引入额外适配器层,实现了零推理延迟开销,优于标准适配器方法。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。