FedRPCA: Enhancing Federated LoRA Aggregation Using Robust PCA

Divyansh Jhunjhunwala, Arian Raje, Madan Ravi Ganesh, Chaithanya Kumar Mummadi, Chaoqun Dong, Jiawei Zhou, Wan-Yi Lin, Gauri Joshi, Zhenzhen LiarXiv 2025 · DOI

Introduction

Fine-tuning large foundation models on edge devices is a cornerstone of modern privacy-preserving AI. The combination of Federated Learning (FL) and Parameter-Efficient Fine-Tuning (PEFT), specifically Low-Rank Adaptation (LoRA), has emerged as a powerful paradigm. However, FL faces a significant challenge: data heterogeneity (non-IID data). When client datasets differ significantly, local model updates diverge, and standard aggregation methods like FedAvg often wash out unique, client-specific knowledge through simple averaging.

This paper introduces FedRPCA (Federated Robust PCA Decomposed Aggregation), a server-side method that reframes aggregation as a signal separation problem. By isolating common knowledge from client-specific updates, FedRPCA enables the selective amplification of unique signals, leading to faster convergence and higher final accuracy.

The Challenge of Data Heterogeneity

In standard FL, the server averages updates from multiple clients. While this works for homogeneous data, it fails when clients possess diverse local knowledge. Recent "model merging" techniques, such as Task Arithmetic, attempt to address this by scaling updates before averaging. However, applying these techniques directly to FL is often counterproductive.

Unlike entirely distinct tasks, FL client updates typically share a massive amount of common knowledge, resulting in high cosine similarity. Scaling the entire update over-amplifies this shared signal, leading to training instability. To succeed, an aggregation method must distinguish between the shared "base" knowledge and the unique "innovations" of each client.

The FedRPCA Method

FedRPCA operates entirely on the central server, requiring no modifications to client-side training. The process follows four key steps:

  1. Collect & Stack: The server gathers LoRA updates (matrices $\Delta A$ and $\Delta B$) from all participating clients and stacks them into a single matrix.
  2. Robust PCA Decomposition: The server applies Robust Principal Component Analysis (RPCA) to decompose the update matrix into a low-rank matrix ($L$) and a sparse matrix ($S$). The low-rank component captures the dense, common signal shared across the fleet, while the sparse component captures localized, client-specific deviations.
  3. Scaled Aggregation: The server averages the common components normally but applies a scaling factor ($\beta > 1$) to the sparse components to amplify unique client knowledge.
  4. Adaptive Scaling: To handle the evolving nature of updates during training, the authors implement a dynamic $\beta$ that adjusts automatically based on the ratio of sparse-to-common signals.
Visualizing the decomposition of client updates. The original updates (a) show moderate similarity, which is separated into a highly similar low-rank component (b) and a distinct, low-similarity sparse component (c).

Because LoRA matrices are inherently low-rank and relatively small, the Singular Value Decomposition (SVD) required for RPCA is computationally lightweight on the server, making the method highly practical.

Experimental Evaluation

The authors evaluated FedRPCA across vision (SVHN, DTD, EuroSAT, Stanford Cars) and language (20News, MRQA) domains. Data heterogeneity was simulated using a Dirichlet distribution ($\alpha = 0.3$).

FedRPCA demonstrates superior convergence speed and final test accuracy compared to FedAvg and Task Arithmetic.

Key Results

  • Accuracy Gains: FedRPCA consistently outperformed baselines including FedAvg, FedProx, and TIES-Merging. It achieved absolute accuracy improvements of up to 1.01% on challenging datasets like DTD.
  • Accelerated Convergence: On the SVHN dataset, FedRPCA reached 90% accuracy in just 25 rounds, compared to 41 rounds for FedAvg—a 1.52x speedup.
  • Robustness to Heterogeneity: The performance gap between FedRPCA and standard methods widened as data became more heterogeneous and the number of clients increased.

Conclusion and Future Work

FedRPCA demonstrates that signal separation is a powerful tool for federated aggregation. By leveraging the low-rank nature of LoRA updates, it provides a modular, server-side solution that is orthogonal to existing client-side optimizers like FedProx or SCAFFOLD.

Future research may focus on parallelizing the SVD operations across model layers to further reduce server overhead and extending the signal-separation framework to other PEFT methods beyond LoRA. For now, FedRPCA stands as a highly effective method for navigating the complexities of non-IID data in large-scale federated learning.

Summary updated

BibTeX
@misc{jhunjhunwala2025fedrpca,
  author = {Divyansh Jhunjhunwala and Arian Raje and Madan Ravi Ganesh and Chaithanya Kumar Mummadi and Chaoqun Dong and Jiawei Zhou and Wan-Yi Lin and Gauri Joshi and Zhenzhen Li},
  title = {{FedRPCA: Enhancing Federated LoRA Aggregation Using Robust PCA}},
  year = {2025},
  eprint = {2506.01194},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.01194},
}
Figure