Closed-form merging of parameter-efficient modules for Federated Continual Learning

Riccardo Salami, Pietro Buzzega, Matteo Mosconi, Jacopo Bonato, Luigi Sabetta, Simone Calderara · DOI

In the evolving landscape of decentralized AI, two major challenges often collide: Continual Learning (CL), which involves learning new skills incrementally without forgetting old ones, and Federated Learning (FL), which enables learning across decentralized devices while preserving data privacy.

A new framework introduced at ICLR 2025, titled "Closed-Form Merging of Parameter-Efficient Modules for Federated Continual Learning," presents LoRM (Low-rank Regression Mean). This method provides a mathematically elegant approach to merging specialized model "plugins" (LoRA modules) across a network, setting a new standard for efficiency and performance in decentralized AI.

The Challenge: Federated Class-Incremental Learning

The authors address Federated Class-Incremental Learning (FCIL), a scenario where a fleet of decentralized devices (e.g., smartphones or robots) must learn to recognize new categories of objects sequentially. Because local data cannot be shared due to privacy constraints, the central server must find ways to integrate knowledge from diverse clients.

While LoRA (Low-Rank Adaptation) is the current standard for efficient model adaptation—adding small, trainable matrices $A$ and $B$ to a fixed pre-trained model—merging these modules typically relies on simple averaging (FedAvg). However, simple averaging does not guarantee that the merged model will produce the same responses as the individual client models. While more sophisticated methods like RegMean exist for full-weight models, they are not directly compatible with the low-rank structure of LoRA.

The LoRM Framework

LoRM adapts the RegMean philosophy to low-rank matrices by aiming to find a merged LoRA module that minimizes the difference in output responses compared to all individual client modules.

Overview of the LoRM alternating optimization process across communication rounds.

A primary mathematical hurdle identified by the authors is that solving for both LoRA matrices ($A$ and $B$) simultaneously results in an indeterminate system with infinite solutions. To resolve this, LoRM employs a "round-robin" alternating optimization strategy:

  1. Round $j$: The server fixes matrix $A$ and solves for the optimal $B$.
  2. Round $j+1$: The server fixes $B$ and solves for the optimal $A$.

This approach ensures a unique, solvable mathematical solution. To perform these calculations without exposing raw data, clients transmit the diagonal of a Gram matrix ($X X^\top$), providing a statistical summary that preserves privacy while enabling optimal alignment.

Experimental Evaluation

The authors conducted extensive evaluations across multiple domains, including vision (CIFAR-100, ImageNet-R, ImageNet-A, fine-grained classification) and language (Out-Of-Scope intent classification). They simulated real-world data heterogeneity using a Dirichlet distribution with parameter $\beta$, testing the model's robustness when clients possess significantly different data distributions.

Key Results and Discussion

LoRM consistently outperformed existing state-of-the-art methods, such as PILoRA and TARGET, across nearly all tested scenarios.

Performance comparison of LoRM against state-of-the-art methods across vision datasets.
  • Accuracy and Robustness: On CIFAR-100 with high heterogeneity, LoRM achieved 82.76% accuracy, compared to PILoRA's 74.80%. It also showed superior generalization on the challenging ImageNet-A adversarial dataset.
  • Communication Efficiency: By updating only one matrix ($A$ or $B$) per round, LoRM effectively halves the communication overhead compared to standard federated LoRA training.
  • Faster Convergence: Because the merging is based on an exact closed-form solution rather than iterative gradient steps, the model reaches peak performance in significantly fewer communication rounds.

Conclusion

LoRM represents a significant advancement in Federated Continual Learning by providing a mathematically optimal way to integrate decentralized knowledge. While currently focused on linear layers, the framework's success suggests potential for scaling to massive models and broader layer types. By combining privacy-preserving statistics with alternating optimization, LoRM offers a robust path forward for efficient, decentralized AI development.

Summary updated

BibTeX
@inproceedings{salami2025closed,
  author = {Riccardo Salami and Pietro Buzzega and Matteo Mosconi and Jacopo Bonato and Luigi Sabetta and Simone Calderara},
  title = {{Closed-form merging of parameter-efficient modules for Federated Continual Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ROpY0qRUXL},
}
Figure