Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Federated Fine-tuning of Large Language Models under Heterogeneous Tasks and Client Resources

About

Federated Learning (FL) has recently been applied to the parameter-efficient fine-tuning of Large Language Models (LLMs). While promising, it raises significant challenges due to the heterogeneous resources and data distributions of clients. This study introduces FlexLoRA, a simple yet effective aggregation scheme for LLM fine-tuning, which mitigates the ``bucket effect'' in traditional FL that restricts the potential of clients with ample resources by tying them to the capabilities of the least-resourced participants. FlexLoRA allows for dynamic adjustment of local LoRA ranks, fostering the development of a global model imbued with broader, less task-specific knowledge. By synthesizing a full-size LoRA weight from individual client contributions and employing Singular Value Decomposition (SVD) for weight redistribution, FlexLoRA fully leverages heterogeneous client resources. Involving thousands of clients performing heterogeneous NLP tasks and client resources, our experiments validate the efficacy of FlexLoRA, with the federated global model achieving consistently better improvement over SOTA FL methods in downstream NLP task performance across various heterogeneous distributions. FlexLoRA's practicality is further underscored by our theoretical analysis and its seamless integration with existing LoRA-based FL methods, offering a path toward cross-device, privacy-preserving federated tuning for LLMs.

Jiamu Bai, Daoyuan Chen, Bingchen Qian, Liuyi Yao, Yaliang Li• 2024

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningGSM8K
Accuracy (Acc)35.15
337
Image ClassificationDomainNet
Accuracy (ClipArt)88.7
238
Commonsense ReasoningCommonsense Reasoning (BoolQ, PIQA, SIQA, HellaS., WinoG., ARC-e, ARC-c, OBQA)
BoolQ Accuracy64.57
223
Text reconstruction from gradientsRotten Tomatoes
ROUGE-138.44
68
Text ClassificationBANKING77 Dir(0.01) (test)
Accuracy69.84
45
Image ClassificationCIFAR-100 Dirichlet-0.1 (test)
Accuracy56.23
41
Image ClassificationDomainNet (unseen clients)
Average Accuracy84
34
Commonsense ReasoningCommonsense Reasoning
BoolQ Accuracy68.37
29
Cross-task generalizationSuper-NaturalInstructions English Track (unseen clients)
Weighted Avg Rouge-L62.2
27
Question AnsweringTeleQuAD (IID)
BERTScore F162.65
25
Showing 10 of 61 rows

Other info

Code

Follow for update