Abstract
Federated Learning (FL) for Large Language Models (LLMs) is traditionally hindered by extreme memory and communication requirements, often exceeding the capabilities of edge devices. We present FedCyBGD (Federated Cycle Block Gradient Descent), a framework that enables full parameter tuning on resource-constrained hardware. By cyclically updating model blocks and employing a hybrid compression scheme, FedCyBGD reduces memory usage by approximately 72.7% and communication costs by up to 75% compared to standard federated full tuning, while maintaining or exceeding the performance of parameter-efficient fine-tuning (PEFT) baselines.
Introduction
Training or fine-tuning LLMs in a Federated Learning environment—where data remains on local devices like smartphones—is notoriously difficult. The primary hurdles include prohibitive memory constraints (often >60GB for a 7B model), communication bottlenecks from exchanging billions of parameters, and the performance trade-offs of existing solutions like LoRA, which restrict the optimization search space. FedCyBGD aims to "save it all" by achieving the performance of full parameter tuning without the prohibitive hardware costs.
Methodology
FedCyBGD introduces two core innovations to make full tuning "edge-ready":
Cycle Block Gradient Descent
Instead of updating the entire model simultaneously, the model is divided into blocks (e.g., the transformer layers). In each training round, a client is assigned a "responsible block" to update while the rest of the model remains frozen. Clients participate in a cyclic order, ensuring every block eventually gets tuned. This sequential approach also helps mitigate data heterogeneity by preventing conflicting updates during aggregation.
Hybrid Compression (The "Emulator")
To save bandwidth, the server does not send the full model. It transmits the "responsible block" in full but sends a highly compressed version of the other blocks using layer dropping and pruning. This compressed version acts as an "emulator," providing sufficient context for the client to calculate accurate gradients for the active block without needing the full multi-gigabyte weights.
Experimental Evaluation
The framework was evaluated across a diverse set of LLMs (including BLOOM-1.3B, ChatGLM3-6B, and LLaMA2-7B) and tasks such as GLUE, Alpaca-GPT4, OASST1, and SQuAD.
Key Results
Resource Efficiency
FedCyBGD significantly lowers the entry barrier for edge hardware. For a 7B parameter model, peak memory requirements dropped from ~63GB to ~17GB, making it feasible to run on consumer-grade GPUs like the NVIDIA RTX 3090.
As detailed in the table above, FedCyBGD achieves a memory cost of 17.2 GB compared to 62.8 GB for full federated tuning (Fed-full). It also drastically reduces communication overhead, with download costs cut by 50% and upload costs reduced from 12.48 GB to approximately 770 MB.
Performance and Speed
On the Alpaca-GPT4 and OASST1 datasets, FedCyBGD consistently outperformed PEFT methods like FedLora and FedAdaptor. In question-answering tasks (SQuAD), it showed up to a 58.3% performance improvement over FedAdaptor. Furthermore, the backward pass time was cut nearly in half compared to standard federated full tuning, demonstrating both efficiency and effectiveness.
Conclusion
FedCyBGD enables full parameter tuning of LLMs on resource-constrained devices by leveraging cyclical block updates and hybrid compression. While future work is needed to establish formal theoretical convergence guarantees and extend the scope beyond NLP, FedCyBGD provides a robust solution for high-performance decentralized model training.
Summary updated