NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Federated Fine-tuning of Large Language Models under Heterogeneous Language Tasks and Client Resources

Jiamu Bai, Daoyuan Chen, Bingchen Qian, Liuyi Yao, Yaliang Li · DOI

Introduction

Fine-tuning Large Language Models (LLMs) is computationally intensive and data-demanding. Federated Learning (FL) provides a decentralized alternative, enabling model training on distributed devices without compromising data privacy. To accommodate consumer-grade hardware, Low-Rank Adaptation (LoRA) is typically employed to update only a small subset of model parameters.

However, standard FL frameworks suffer from a "bucket effect," where all participating clients must adhere to the same model architecture. This constraint forces the entire network to adopt the lowest common denominator—the smallest LoRA rank supported by the weakest device (e.g., $r=8$). This limitation underutilizes high-resource devices and often results in poor zero-shot generalization, as low-rank adapters tend to capture task-specific features rather than broader global knowledge.

Methodology

FlexLoRA addresses these challenges by enabling heterogeneous LoRA ranks across the client pool. The framework operates through four primary stages:

  1. Local Flexibility: Each client utilizes the highest LoRA rank supported by their local hardware (e.g., ranging from $r=8$ to $r=200$).
  2. Full-size Synthesis: Instead of averaging low-rank matrices $A$ and $B$ directly—which is mathematically impossible with differing dimensions—the server reconstructs the full-size weight update ($W = sBA$) for each client.
  3. SVD Aggregation: The server averages these full-size updates and performs Singular Value Decomposition (SVD) on the resulting global update to identify the most significant components of collective knowledge.
  4. Tailored Redistribution: The server distributes the top $r_i$ singular vectors and values back to each client $i$, matching their specific local rank requirements.
The FlexLoRA framework: aggregating heterogeneous LoRA ranks via SVD.

This "plug-and-play" mechanism integrates seamlessly with standard FL algorithms like FedAvg and FedIT.

Experimental Setup

The framework was evaluated using the Natural Instructions dataset, containing over 1,600 distinct NLP tasks to simulate a highly heterogeneous environment. Additional scalability experiments were conducted on the Dolly-15K dataset. Foundation models included DataJuicer (1.3B) and LLaMA-3 (8B).

Key Results

FlexLoRA consistently outperforms state-of-the-art methods such as FedIT and HETLORA. Empirical results demonstrate a 3.1% to 4% improvement in zero-shot Rouge-L scores for complex tasks like textual entailment and overlap extraction.

Performance improvement of FlexLoRA across various NLP tasks and resource distributions.

Key findings include:

  • Generalization: Higher LoRA ranks are vital for capturing global knowledge. SVD acts as a knowledge bridge, allowing low-resource clients to benefit from the complex patterns learned by high-resource peers.
  • Efficiency: Despite the use of higher ranks, FlexLoRA often converges faster. In scalability tests on Dolly-15K, it reduced total communication costs by 50% to 67% compared to homogeneous rank baselines.
  • Robustness: The performance advantage remains consistent across various resource distributions, including "heavy-tail" scenarios dominated by low-resource devices.

Conclusion

FlexLoRA effectively mitigates the "weakest link" problem in federated LLM fine-tuning. By leveraging SVD to synthesize and redistribute knowledge across heterogeneous ranks, it achieves superior generalization and communication efficiency. Future research will explore the privacy implications of sharing SVD-decomposed weights and scaling to larger models in massive client networks.

Summary updated

BibTeX
@inproceedings{bai2024federated,
  author = {Jiamu Bai and Daoyuan Chen and Bingchen Qian and Liuyi Yao and Yaliang Li},
  title = {{Federated Fine-tuning of Large Language Models under Heterogeneous Language Tasks and Client Resources}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=gkOzoHBXUw},
}
Figure