TL;DR
ZorBA is a novel federated fine-tuning framework for Large Language Models (LLMs) that slashes client memory requirements and communication overhead. By combining zeroth-order optimization with a clever, heterogeneous block-activation strategy, it reduces total VRAM usage by up to 62.41% while accelerating convergence compared to existing zeroth-order baselines.
What Problem Does This Paper Address?
Collaborative fine-tuning of LLMs via Federated Learning (FL) allows multiple clients to train a shared model without centralizing their private data. However, edge clients (like consumer GPUs or mobile devices) face two massive bottlenecks: memory (VRAM) and communication bandwidth.
Standard training relies on backpropagation, which requires storing massive gradients and intermediate activations. Zeroth-order (ZO) optimization helps by estimating gradients using only forward passes, completely eliminating gradient storage. However, ZO still requires storing forward-pass activations (such as attention projections and feed-forward network states), which scale linearly with model depth and quickly overwhelm resource-constrained devices. Furthermore, frequently transmitting high-dimensional model updates across a network creates severe communication overhead.
Methods
The authors propose ZorBA (Zeroth-order Federated Fine-tuning with Heterogeneous Block Activation) to solve these twin challenges through three core techniques:
- Heterogeneous Block Activation: Instead of forcing every client to activate and update the entire model, the central server allocates a specific subset of transformer blocks to each client based on its unique VRAM capacity.
- Shared Random Seeds: The server and clients share a pool of random seeds. This allows them to independently generate identical perturbation vectors locally. Instead of transmitting high-dimensional gradient vectors, clients only need to send scalar finite differences, drastically lowering communication costs.
- $\epsilon$-Constraint Lexicographic Algorithm: To determine which blocks to allocate to which clients, the authors formulate a multi-objective optimization problem that balances convergence speed against VRAM constraints. They decouple this NP-hard problem into two manageable sub-problems: maximizing the "least popular" block activation across the network and greedily allocating the remaining VRAM budget.
Datasets
The framework was evaluated using two local model architectures—OPT-125M (12 blocks) and OPT-1.3B (24 blocks)—across three standard NLP text classification datasets:
- AG-News
- SST-2
- SNLI
To simulate realistic federated environments, the data was partitioned across 50 clients using a non-IID (Independent and Identically Distributed) Dirichlet distribution.
Key Insights and Ideas
- The Activation Bottleneck: Even when gradient storage is eliminated via zeroth-order methods, forward-pass activations remain a massive memory hog, often matching or exceeding the size of the model parameters themselves.
- Distribution Over Volume: Counterintuitively, the total number of activated blocks across the network isn't the primary driver of convergence. Theoretical analysis reveals that convergence is heavily governed by the least popular blocks (the blocks activated by the fewest clients).
- Seed Synchronization as a Communication Bypass: Syncing random number generator seeds allows high-dimensional vector communication to be bypassed entirely. The network exchanges scalar loss differences instead of weight matrices, turning a major FL bottleneck into a negligible cost.
Key Results
- VRAM Reduction: ZorBA cuts total VRAM usage by up to 62.41% compared to traditional first-order fine-tuning (FedIT) and up to 54.75% compared to full-block zeroth-order methods (FedZO and DeComFL).
- Faster Convergence: ZorBA reaches target evaluation accuracies up to 23.76% faster (requiring fewer training rounds) than DeComFL, proving that selective block activation can actually accelerate optimization when properly balanced.
- Communication Efficiency: Transmitted parameter counts are orders of magnitude lower than standard FL methods, matching the highly efficient DeComFL while maintaining superior memory savings.
Limitations and Future Work
While ZorBA demonstrates impressive efficiency gains, the paper operates under a few constraints:
- Static Resource Assumptions: The block allocation algorithm assumes that client VRAM capacities are static throughout the training process. In real-world edge applications, available memory can fluctuate dynamically.
- Centralized Coordination: The framework relies on a central server to solve the block allocation matrix before training begins. Extending this to fully decentralized or peer-to-peer federated networks remains an open challenge.
Summary updated