On the Convergence of Zeroth-Order Federated Tuning for Large Language Models

Zhenqing Ling, Daoyuan Chen, Liuyi Yao, Yaliang Li, Ying Shen
2/8/2024
cs.LGcs.CL

No official code found. Best implementation: alibaba/FederatedScope (1,545 stars, Apache-2.0, PyTorch, last commit 2024-08-10). 1 more below.

Abstract

The confluence of Federated Learning (FL) and Large Language Models (LLMs) is ushering in a new era in privacy-preserving natural language processing. However, the intensive memory requirements for fine-tuning LLMs pose significant challenges, especially when deploying on clients with limited computational resources. To circumvent this, we explore the novel integration of Memory-efficient Zeroth-Order Optimization within a federated setting, a synergy we term as FedMeZO. Our study is the first to examine the theoretical underpinnings of FedMeZO in the context of LLMs, tackling key questions regarding the influence of large parameter spaces on optimization behavior, the establishment of convergence properties, and the identification of critical parameters for convergence to inform personalized federated strategies. Our extensive empirical evidence supports the theory, showing that FedMeZO not only converges faster than traditional first-order methods such as FedAvg but also significantly reduces GPU memory usage during training to levels comparable to those during inference. Moreover, the proposed personalized FL strategy that is built upon the theoretical insights to customize the client-wise learning rate can effectively accelerate loss reduction. We hope our work can help to bridge theoretical and practical aspects of federated fine-tuning for LLMs, thereby stimulating further advancements and research in this area.

View on arXivView PDF

Code Implementations(2)

PyTorchApache-2.0

An easy-to-use federated learning platform

1,545261Shell, PythonMar 24, 20222 years agoApache-2.0
federated-learningmachine-learningpytorch
lingzhq/FedMeZOCommunity73%
Apache-2.0

An experimental framework of FedMeZO, from the KDD'2024 paper "On the Convergence of Zeroth-Order Federated Tuning for Large Language Models".

30Shell, PythonMar 11, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{ling2024convergence,
  title  = {On the Convergence of Zeroth-Order Federated Tuning for Large Language Models},
  author = {Zhenqing Ling and Daoyuan Chen and Liuyi Yao and Yaliang Li and Ying Shen},
  year   = {2024},
  eprint = {2402.05926},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.05926v3}
}

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/2402.05926.svg)](https://codeofpaper.com/paper/2402.05926)

Discussion