WE ARE HIRING! If you are Research Engineers, Ph.D. Candidates and Post-Doctoral Researchers send your CV to join.alpha@di.unito.it

← Back to theses
Bachelor Available

Investigating the relationship between centralized and federated model parameters

Marco Aldinucci · Bruno Casella

Abstract

Why do AI models trained on distributed data perform worse than models trained on aggregated data? Should a federated model tend to have the same or similar model parameters as a centralized model? If yes, can we lead the federated model to converge to the same centralized parameters? How do the hyperparameters (epochs per round, learning rate, batch size, etc…) affect this difference?

Activity

It is well known that typical AI models, and in particular neural networks, perform worse when trained on decentralized data via distributed algorithms. In particular, federated learning (FL) algorithms like FedAvg may hinder convergence by averaging the local model parameters iteratively. This thesis aims to study the relationship between centralized parameters and federated parameters. Should they be the same? Do we want to push the federated model to have the same/similar parameters as the centralized counterpart? How can we do that? Hyperparameters such as the number of epochs per round, learning rate and batch size may play a crucial role. In particular, with a low communication frequency (i.e., a lot of updates before aggregation), the local parameters should be similar to the centralized ones. What happens if we increase/decrease the number of epochs per round? How should we modify the learning rate and batch size?

Workload

Under the guidance of a team of researchers, the student will first be required to study recent works on the subject before being practically introduced to the task by experimenting with existing code.

30%
Literature
50%
Code implementation
20%
Experiments
Requirements
  • The candidate should have good programming skills (Python and PyTorch) and be motivated. A previous knowledge of the topic would be preferred but not required.
Bibliography
  1. McMahan B., et al., 'Communication-Efficient Learning of Deep Networks from Decentralized Data', https://proceedings.mlr.press/v54/mcmahan17a/mcmahan17a.pdf, Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS), 2017
  2. Kamp M., et al., 'Efficient Decentralized Deep Learning by Dynamic Model Averaging', https://link.springer.com/chapter/10.1007/978-3-030-10925-7_24, ECML-PKDD, 2018
  3. Ainsworth S., et al., 'Git Re-Basin: Merging Models modulo Permutation Symmetries', https://github.com/samuela/git-re-basin, ICLR, 2023
Keywords
deep learningoptimizationtheoretical analysis