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

Robust Federated Finetuning of LLMs via Alternating Optimization of LoRA

Shuangyi Chen, Yuanxin Guo, Yue Ju, Hardik Dalal, Zhongwen Zhu, Ashish J Khisti

TL;DR

RoLoRA is a novel federated learning framework designed to solve the "interference" problem inherent in standard LoRA aggregation. By alternating updates between the up-projection and down-projection matrices, RoLoRA maintains the full expressiveness of LoRA while cutting communication costs in half per round. Crucially, it provides significantly better robustness and accuracy as the number of participating clients scales up.

The Challenge of Federated LoRA

Fine-tuning Large Language Models (LLMs) is computationally expensive, leading many practitioners to adopt Low-Rank Adaptation (LoRA). LoRA reduces the trainable parameter count by updating only two small matrices ($A$ and $B$) instead of the entire model. In Federated Learning (FL), where multiple clients train a model collaboratively on private data, the standard approach is to use Federated Averaging (FedAvg) on these LoRA matrices.

However, this introduces a mathematical "interference" problem. The effective update of a LoRA layer is the product of the two matrices ($AB$). When a central server averages the $A$ matrices and $B$ matrices from different clients separately, the product of those averages is not equal to the average of their products. This discrepancy leads to inexact model updates that degrade performance, particularly as the number of clients increases or the number of trainable parameters decreases.

Prior solutions have either ignored this interference (FedIT) or frozen one matrix entirely (FFA-LoRA), which severely limits the model's ability to learn complex patterns.

The RoLoRA Method: Alternating Optimization

To address this, the authors propose RoLoRA, which employs an alternating optimization strategy to ensure mathematically exact aggregation.

RoLoRA Alternating Optimization Framework

The process is divided into alternating communication rounds:

  1. Odd Communication Rounds: The server sends the global $A$ matrix to clients. Clients freeze $A$ and only train their local $B_i$ matrices. Because $A$ is constant across all clients, the average of the products $\frac{1}{N} \sum (A B_i)$ is mathematically identical to $A \times (\frac{1}{N} \sum B_i)$. Aggregation is now exact.
  2. Even Communication Rounds: The server sends the updated global $B$ to clients. Clients freeze $B$ and only train their local $A_i$ matrices. Similarly, because $B$ is constant, the aggregation $\frac{1}{N} \sum (A_i B)$ remains exact.

The paper backs this approach with theoretical proofs, demonstrating that for linear models, RoLoRA achieves exponential convergence to the global optimum. In contrast, freezing $A$ (as in FFA-LoRA) results in a permanent "initialization error" floor.

Key Insights

  • The "A" Matrix is Essential: A common shortcut in federated LoRA is to freeze the down-projection matrix ($A$) to simplify the math. RoLoRA proves that learning $A$ is vital for model "expressiveness." Without updating $A$, the model struggles to learn a shared representation across diverse client datasets.
  • Robustness to Sparsity: RoLoRA excels when the parameter budget is strictly limited. While other methods degrade rapidly when fine-tuning only a few layers or using a very low rank, RoLoRA maintains high accuracy.
  • Communication Efficiency: Because clients only transmit one matrix ($A$ or $B$) per round instead of both, the communication payload per round is reduced by 50% compared to standard federated LoRA.
  • Solving Client Drift: In high-client settings (e.g., 50 clients), standard FedAvg-LoRA suffers from significant performance degradation due to aggregation interference. RoLoRA remains stable because its aggregation is precise.

Experimental Results

The researchers evaluated RoLoRA across a wide range of tasks and scales, including language understanding (GLUE benchmark with RoBERTa-Large), commonsense reasoning (Llama-2-7B), and coding/general knowledge (HumanEval and MMLU).

Convergence Dynamics of RoLoRA vs Baselines
  • Superior Accuracy at Scale: On the QQP dataset with 50 clients, RoLoRA achieved 85.81% accuracy. In contrast, standard LoRA (FedAvg) dropped to 70.72% and FFA-LoRA (frozen A) reached only 76.48%.
  • Llama-2 Performance: In commonsense reasoning tasks, RoLoRA outperformed FFA-LoRA by massive margins. For example, it scored 61.26% on PIQA compared to FFA-LoRA's 35.49%.
  • Convergence Speed: RoLoRA typically converges to a higher accuracy in fewer rounds than its competitors, demonstrating highly efficient finetuning dynamics.
  • Privacy Compatibility: RoLoRA can be seamlessly integrated with Differential Privacy (DP) mechanisms, continuing to outperform baselines even under strict privacy constraints.

Limitations and Future Work

While RoLoRA presents a significant step forward, the authors note a few areas for future exploration:

  • Partial Participation: The current theoretical analysis assumes all clients participate in every round. Real-world scenarios often involve client dropouts (stragglers), requiring further theoretical guarantees for partial participation.
  • Non-linear Theory: The empirical results on highly non-linear LLMs are strong, but the most rigorous mathematical proofs in the paper center on linear models. Bridging this gap with a full non-linear proof is a suggested next step.
  • Asymmetric Roles: Standard LoRA initializes $A$ randomly and $B$ to zero. While a simple symmetric alternation works best currently, further study into whether different learning rates for $A$ and $B$ could optimize the process is warranted.

Summary updated

BibTeX
@inproceedings{chen2025robust,
  author = {Shuangyi Chen and Yuanxin Guo and Yue Ju and Hardik Dalal and Zhongwen Zhu and Ashish J Khisti},
  title = {{Robust Federated Finetuning of LLMs via Alternating Optimization of LoRA}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=e8DrPuJekZ},
}
Figure