Ferret: Federated Full-Parameter Tuning at Scale for Large Language Models

Yao Shu, Wenyang Hu, See-Kiong Ng, Bryan Kian Hsiang Low, Fei Richard Yu
9/10/2024
cs.LGcs.AI

Official code: allen4747/Ferret (19 stars, MIT, last commit 2024-09-11).

Abstract

Large Language Models (LLMs) have become indispensable in numerous real-world applications. However, fine-tuning these models at scale, especially in federated settings where data privacy and communication efficiency are critical, presents significant challenges. Existing approaches often resort to parameter-efficient fine-tuning (PEFT) to mitigate communication overhead, but this typically comes at the cost of model accuracy. To this end, we propose federated full-parameter tuning at scale for LLMs (Ferret), the first first-order method with shared randomness to enable scalable full-parameter tuning of LLMs across decentralized data sources while maintaining competitive model accuracy. Ferret accomplishes this through three aspects: (i) it employs widely used first-order methods for efficient local updates; (ii) it projects these updates into a low-dimensional space to considerably reduce communication overhead; and (iii) it reconstructs local updates from this low-dimensional space with shared randomness to facilitate effective full-parameter global aggregation, ensuring fast convergence and competitive final performance. Our rigorous theoretical analyses and insights along with extensive experiments, show that Ferret significantly enhances the scalability of existing federated full-parameter tuning approaches by achieving high computational efficiency, reduced communication overhead, and fast convergence, all while maintaining competitive model accuracy. Our implementation is available at https://github.com/allen4747/Ferret.

View on arXivView PDF

Code Implementations(1)

allen4747/FerretOfficial100%
MIT

This is the official implementation for the paper: Ferret: Federated Full-Parameter Tuning at Scale for Large Language Models

191Shell, PythonSep 10, 20242 years agoMIT

Similar Papers

Cite this paper

@article{shu2024ferret,
  title  = {Ferret: Federated Full-Parameter Tuning at Scale for Large Language Models},
  author = {Yao Shu and Wenyang Hu and See-Kiong Ng and Bryan Kian Hsiang Low and Fei Richard Yu},
  year   = {2024},
  eprint = {2409.06277},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.06277v3},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.06277.svg)](https://codeofpaper.com/paper/2409.06277)

Discussion