FDLoRA: Personalized Federated Learning of Large Language Model via Dual LoRA Tuning
About
Large language models (LLMs) have emerged as important components across various fields, yet their training requires substantial computation resources and abundant labeled data. It poses a challenge to robustly training LLMs for individual users (clients). To tackle this challenge, the intuitive idea is to introduce federated learning (FL), which can collaboratively train models on distributed private data. However, existing methods suffer from the challenges of data heterogeneity, system heterogeneity, and model size, resulting in suboptimal performance and high costs. In this work, we proposed a variant of personalized federated learning (PFL) framework, namely FDLoRA, which allows the client to be a single device or a cluster and adopts low-rank adaptation (LoRA) tuning. FDLoRA sets dual LoRA modules on each client to capture personalized and global knowledge, respectively, and only the global LoRA module uploads parameters to the central server to aggregate cross-client knowledge. Finally, an adaptive fusion approach is employed to combine the parameters of the dual LoRAs. This enables FDLoRA to make effective use of private data distributed across different clients, thereby improving performance on the client without incurring high communication and computing costs. We conducted extensive experiments in two practice scenarios. The results demonstrate that FDLoRA outperforms six baselines in terms of performance, stability, robustness, computation cost, and communication cost.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Federated Cross-Domain Recommendation | GoodReads Children | H@55 | 14 | |
| Federated Cross-Domain Recommendation | GoodReads Crime | H@53.22 | 14 | |
| Federated Cross-Domain Recommendation | GoodReads Comics | Hit Rate @58.18 | 14 | |
| Federated Cross-Domain Recommendation | Amazon Clothing (test) | Hits@50.9 | 10 | |
| Federated Cross-Domain Recommendation | GoodReads Crime, Comics & Children Average | Avg H@55.47 | 10 | |
| Federated Cross-Domain Recommendation | Amazon Beauty (test) | H@51.63 | 10 | |
| Recommendation | Amazon Electronics & Phones (test) | Avg Local Train Time (s)1.19e+3 | 5 |