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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Salami, Riccardo, Buzzega, Pietro, Mosconi, Matteo, Bonato, Jacopo, Sabetta, Luigi, Calderara, Simone
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912265311092736
author Salami, Riccardo
Buzzega, Pietro
Mosconi, Matteo
Bonato, Jacopo
Sabetta, Luigi
Calderara, Simone
author_facet Salami, Riccardo
Buzzega, Pietro
Mosconi, Matteo
Bonato, Jacopo
Sabetta, Luigi
Calderara, Simone
contents Model merging has emerged as a crucial technique in Deep Learning, enabling the integration of multiple models into a unified system while preserving perfor-mance and scalability. In this respect, the compositional properties of low-rank adaptation techniques (e.g., LoRA) have proven beneficial, as simple averaging LoRA modules yields a single model that mostly integrates the capabilities of all individual modules. Building on LoRA, we take a step further by imposing that the merged model matches the responses of all learned modules. Solving this objective in closed form yields an indeterminate system with A and B as unknown variables, indicating the existence of infinitely many closed-form solutions. To address this challenge, we introduce LoRM, an alternating optimization strategy that trains one LoRA matrix at a time. This allows solving for each unknown variable individually, thus finding a unique solution. We apply our proposed methodology to Federated Class-Incremental Learning (FCIL), ensuring alignment of model responses both between clients and across tasks. Our method demonstrates state-of-the-art performance across a range of FCIL scenarios. The code to reproduce our experiments is available at github.com/aimagelab/fed-mammoth.
format Preprint
id arxiv_https___arxiv_org_abs_2410_17961
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Closed-form merging of parameter-efficient modules for Federated Continual Learning
Salami, Riccardo
Buzzega, Pietro
Mosconi, Matteo
Bonato, Jacopo
Sabetta, Luigi
Calderara, Simone
Machine Learning
Artificial Intelligence
Model merging has emerged as a crucial technique in Deep Learning, enabling the integration of multiple models into a unified system while preserving perfor-mance and scalability. In this respect, the compositional properties of low-rank adaptation techniques (e.g., LoRA) have proven beneficial, as simple averaging LoRA modules yields a single model that mostly integrates the capabilities of all individual modules. Building on LoRA, we take a step further by imposing that the merged model matches the responses of all learned modules. Solving this objective in closed form yields an indeterminate system with A and B as unknown variables, indicating the existence of infinitely many closed-form solutions. To address this challenge, we introduce LoRM, an alternating optimization strategy that trains one LoRA matrix at a time. This allows solving for each unknown variable individually, thus finding a unique solution. We apply our proposed methodology to Federated Class-Incremental Learning (FCIL), ensuring alignment of model responses both between clients and across tasks. Our method demonstrates state-of-the-art performance across a range of FCIL scenarios. The code to reproduce our experiments is available at github.com/aimagelab/fed-mammoth.
title Closed-form merging of parameter-efficient modules for Federated Continual Learning
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2410.17961