Efficient Federated Finetuning of Tiny Transformers with Resource-Constrained Devices

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Pfeiffer, Kilian, Ahmed, Mohamed Aboelenien, Khalili, Ramin, Henkel, Jörg
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917986545172480
author Pfeiffer, Kilian
Ahmed, Mohamed Aboelenien
Khalili, Ramin
Henkel, Jörg
author_facet Pfeiffer, Kilian
Ahmed, Mohamed Aboelenien
Khalili, Ramin
Henkel, Jörg
contents In recent years, Large Language Models (LLMs) through Transformer structures have dominated many machine learning tasks, especially text processing. However, these models require massive amounts of data for training and induce high resource requirements, particularly in terms of the large number of Floating Point Operations (FLOPs) and the high amounts of memory needed. To fine-tune such a model in a parameter-efficient way, techniques like Adapter or LoRA have been developed. However, we observe that the application of LoRA, when used in federated learning (FL), while still being parameter-efficient, is memory and FLOP inefficient. Based on that observation, we develop a novel layer finetuning scheme that allows devices in cross-device FL to make use of pretrained neural networks (NNs) while adhering to given resource constraints. We show that our presented scheme outperforms the current state of the art when dealing with homogeneous or heterogeneous computation and memory constraints and is on par with LoRA regarding limited communication, thereby achieving significantly higher accuracies in FL training.
format Preprint
id arxiv_https___arxiv_org_abs_2411_07826
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Federated Finetuning of Tiny Transformers with Resource-Constrained Devices
Pfeiffer, Kilian
Ahmed, Mohamed Aboelenien
Khalili, Ramin
Henkel, Jörg
Machine Learning
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
In recent years, Large Language Models (LLMs) through Transformer structures have dominated many machine learning tasks, especially text processing. However, these models require massive amounts of data for training and induce high resource requirements, particularly in terms of the large number of Floating Point Operations (FLOPs) and the high amounts of memory needed. To fine-tune such a model in a parameter-efficient way, techniques like Adapter or LoRA have been developed. However, we observe that the application of LoRA, when used in federated learning (FL), while still being parameter-efficient, is memory and FLOP inefficient. Based on that observation, we develop a novel layer finetuning scheme that allows devices in cross-device FL to make use of pretrained neural networks (NNs) while adhering to given resource constraints. We show that our presented scheme outperforms the current state of the art when dealing with homogeneous or heterogeneous computation and memory constraints and is on par with LoRA regarding limited communication, thereby achieving significantly higher accuracies in FL training.
title Efficient Federated Finetuning of Tiny Transformers with Resource-Constrained Devices
topic Machine Learning
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2411.07826