Communication-Efficient and Tensorized Federated Fine-Tuning of Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ghiasvand, Sajjad, Yang, Yifan, Xue, Zhiyu, Alizadeh, Mahnoosh, Zhang, Zheng, Pedarsani, Ramtin
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910978900230144
author Ghiasvand, Sajjad
Yang, Yifan
Xue, Zhiyu
Alizadeh, Mahnoosh
Zhang, Zheng
Pedarsani, Ramtin
author_facet Ghiasvand, Sajjad
Yang, Yifan
Xue, Zhiyu
Alizadeh, Mahnoosh
Zhang, Zheng
Pedarsani, Ramtin
contents Parameter-efficient fine-tuning (PEFT) methods typically assume that Large Language Models (LLMs) are trained on data from a single device or client. However, real-world scenarios often require fine-tuning these models on private data distributed across multiple devices. Federated Learning (FL) offers an appealing solution by preserving user privacy, as sensitive data remains on local devices during training. Nonetheless, integrating PEFT methods into FL introduces two main challenges: communication overhead and data heterogeneity. In this paper, we introduce FedTT and FedTT+, methods for adapting LLMs by integrating tensorized adapters into client-side models' encoder/decoder blocks. FedTT is versatile and can be applied to both cross-silo FL and large-scale cross-device FL. FedTT+, an extension of FedTT tailored for cross-silo FL, enhances robustness against data heterogeneity by adaptively freezing portions of tensor factors, further reducing the number of trainable parameters. Experiments on BERT and LLaMA models demonstrate that our proposed methods successfully address data heterogeneity challenges and perform on par or even better than existing federated PEFT approaches while achieving up to 10$\times$ reduction in communication cost.
format Preprint
id arxiv_https___arxiv_org_abs_2410_13097
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Communication-Efficient and Tensorized Federated Fine-Tuning of Large Language Models
Ghiasvand, Sajjad
Yang, Yifan
Xue, Zhiyu
Alizadeh, Mahnoosh
Zhang, Zheng
Pedarsani, Ramtin
Machine Learning
Computation and Language
Parameter-efficient fine-tuning (PEFT) methods typically assume that Large Language Models (LLMs) are trained on data from a single device or client. However, real-world scenarios often require fine-tuning these models on private data distributed across multiple devices. Federated Learning (FL) offers an appealing solution by preserving user privacy, as sensitive data remains on local devices during training. Nonetheless, integrating PEFT methods into FL introduces two main challenges: communication overhead and data heterogeneity. In this paper, we introduce FedTT and FedTT+, methods for adapting LLMs by integrating tensorized adapters into client-side models' encoder/decoder blocks. FedTT is versatile and can be applied to both cross-silo FL and large-scale cross-device FL. FedTT+, an extension of FedTT tailored for cross-silo FL, enhances robustness against data heterogeneity by adaptively freezing portions of tensor factors, further reducing the number of trainable parameters. Experiments on BERT and LLaMA models demonstrate that our proposed methods successfully address data heterogeneity challenges and perform on par or even better than existing federated PEFT approaches while achieving up to 10$\times$ reduction in communication cost.
title Communication-Efficient and Tensorized Federated Fine-Tuning of Large Language Models
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2410.13097