ZorBA: Zeroth-order Federated Fine-tuning of LLMs with Heterogeneous Block Activation
Organizations: Department of Electrical and Computer Engineering, The University of British Columbia, Vancouver, Canada · Department of Computer Science and Engineering, Southern University of Science and Technology, China
Abstract
Federated fine-tuning of large language models (LLMs) enables collaborative tuning across distributed clients. However, due to the large size of LLMs, local updates in federated learning (FL) may incur substantial video random-access memory (VRAM) usage. Moreover, frequent model exchange may lead to significant communication overhead. To tackle these challenges, in this paper we propose ZorBA, a zeroth-order optimization-based federated fine-tuning framework with heterogeneous block activation. ZorBA leverages zeroth-order optimization to eliminate the storage of gradients at the clients by forward passes. ZorBA includes a heterogeneous block activation mechanism in which the central server allocates different subsets of transformer blocks to clients in order to accelerate the convergence rate and reduce the VRAM usage. Furthermore, ZorBA utilizes shared random seeds and the finite differences of gradients in order to reduce the communication overhead. We conduct theoretical analysis to characterize the effect of block activation decisions on the convergence rate and VRAM usage. To jointly enhance the convergence rate and reduce the VRAM usage, we formulate an optimization problem to optimize the block activation decisions. We propose an -constraint lexicographic algorithm to solve this problem. Experimental results show that ZorBA outperforms three federated fine-tuning baselines in VRAM usage by up to 62.41% and incurs a low communication overhead.
Figures & tables
| Model | Datasets | ZorBA | FedIT | FedZO | DeComFL |
| OPT-125M | AG-News | 138 | 49 | 155 | 181 |
| SST-2 | 167 | 70 | 161 | 205 | |
| SNLI | 231 | 112 | 255 | 246 | |
| OPT-1.3B | AG-News | 61 | 23 | 79 | 68 |
| SST-2 | 99 | 48 | 104 | 104 | |
| SNLI | 157 | 82 | 186 | 173 |
| Model | Datasets | Metrics | ZorBA | FedIT | FedZO | DeComFL |
| OPT-125M | AG-News | VRAM | 47.31 | 118.67 | 95.37 | 95.37 |
| Commun. | ||||||
| SST-2 | VRAM | 59.32 | 118.67 | 95.37 | 95.37 | |
| Commun. | ||||||
| SNLI | VRAM | 131.39 | 190.74 | 167.44 | 167.44 | |
| Commun. |
Federated Fine-Tuning
Federated fine-tuning adapts pretrained models across decentralized data holders without pooling their private data.
See all 115 papersCFLoRA: Federated Fine-tuning of LLMs with Complementary Factors for Error-free Aggregation
CFLoRA, a federated LoRA scheme that partitions latent LoRA channels into two complementary sets in every communication round. By ensuring that columns and rows are complementary across factors, we eliminate bilinear terms in matrix multiplications, making federated aggregation exact. Crucially, our framework also supports clients with heterogeneous rank budgets. Convergence analysis validates CFLoRA achieves convergence rate of the original LoRA objective in homogeneous-rank cases. Extensive experiments with RoBERTa on the GLUE benchmark and with LLaMA-3.2-3B-Instruct on commonsense reasoning tasks demonstrate that CFLoRA achieves superior performance and training efficiency compared to state-of-the-art federated LoRA baselines.