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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Bai, Jiamu, Chen, Daoyuan, Qian, Bingchen, Yao, Liuyi, Li, Yaliang
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909213059448832
author Bai, Jiamu
Chen, Daoyuan
Qian, Bingchen
Yao, Liuyi
Li, Yaliang
author_facet Bai, Jiamu
Chen, Daoyuan
Qian, Bingchen
Yao, Liuyi
Li, Yaliang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_11505
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Federated Fine-tuning of Large Language Models under Heterogeneous Tasks and Client Resources
Bai, Jiamu
Chen, Daoyuan
Qian, Bingchen
Yao, Liuyi
Li, Yaliang
Computation and Language
Artificial Intelligence
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.
title Federated Fine-tuning of Large Language Models under Heterogeneous Tasks and Client Resources
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2402.11505