FedEx-LoRA: Exact Aggregation for Federated and Efficient Fine-Tuning of Foundation Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Singhal, Raghav, Ponkshe, Kaustubh, Vepakomma, Praneeth
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908427883642880
author Singhal, Raghav
Ponkshe, Kaustubh
Vepakomma, Praneeth
author_facet Singhal, Raghav
Ponkshe, Kaustubh
Vepakomma, Praneeth
contents Low-Rank Adaptation (LoRA) is a popular technique for efficient fine-tuning of foundation models. However, applying LoRA in federated learning environments, where data is distributed across multiple clients, presents unique challenges. Existing methods rely on traditional federated averaging of LoRA adapters, resulting in inexact updates. To address this, we propose Federated Exact LoRA, or FedEx-LoRA, which adds a residual error term to the pretrained frozen weight matrix. Our approach achieves exact updates with minimal computational and communication overhead, preserving LoRA's efficiency. We evaluate the method on various models across arithmetic reasoning, commonsense reasoning, natural language understanding and natural language generation tasks, showing consistent performance gains over state-of-the-art methods across multiple settings. Through extensive analysis, we quantify that the deviations in updates from the ideal solution are significant, highlighting the need for exact aggregation. Our method's simplicity, efficiency, and broad applicability position it as a promising solution for accurate and effective federated fine-tuning of foundation models. Our code is publicly available at https://github.com/RaghavSinghal10/fedex-lora.
format Preprint
id arxiv_https___arxiv_org_abs_2410_09432
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FedEx-LoRA: Exact Aggregation for Federated and Efficient Fine-Tuning of Foundation Models
Singhal, Raghav
Ponkshe, Kaustubh
Vepakomma, Praneeth
Distributed, Parallel, and Cluster Computing
Computation and Language
Computer Vision and Pattern Recognition
Low-Rank Adaptation (LoRA) is a popular technique for efficient fine-tuning of foundation models. However, applying LoRA in federated learning environments, where data is distributed across multiple clients, presents unique challenges. Existing methods rely on traditional federated averaging of LoRA adapters, resulting in inexact updates. To address this, we propose Federated Exact LoRA, or FedEx-LoRA, which adds a residual error term to the pretrained frozen weight matrix. Our approach achieves exact updates with minimal computational and communication overhead, preserving LoRA's efficiency. We evaluate the method on various models across arithmetic reasoning, commonsense reasoning, natural language understanding and natural language generation tasks, showing consistent performance gains over state-of-the-art methods across multiple settings. Through extensive analysis, we quantify that the deviations in updates from the ideal solution are significant, highlighting the need for exact aggregation. Our method's simplicity, efficiency, and broad applicability position it as a promising solution for accurate and effective federated fine-tuning of foundation models. Our code is publicly available at https://github.com/RaghavSinghal10/fedex-lora.
title FedEx-LoRA: Exact Aggregation for Federated and Efficient Fine-Tuning of Foundation Models
topic Distributed, Parallel, and Cluster Computing
Computation and Language
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.09432