Federated Learning (FL) is a solution that enables training a machine learning algorithm by distributing it across multiple devices (clients), which process a local model and then share the trained parameters to derive a global model. This has many advantages regarding computational distribution and privacy, as the clients’ local datasets are never shared. Nevertheless, configuring and managing a cluster of heterogeneous devices can present several challenges. In this perspective, some frameworks, such as Flower, provide valuable tools to facilitate the construction of FL processes. Yet, infrastructure management, installation of dependencies, and network configuration are still required. We propose a solution that allows Flower to be seamlessly integrated with training within the Web browser, following the novel Cloud-Edge-Client Continuum paradigm. This enables ready-to-use devices, including laptops and smartphones, with no dependencies to install or configurations to make. The solution’s effectiveness has been tested in heterogeneous environments exploiting Open Neural Network Exchange (ONNX) and TensorFlow.js as deep learning technologies. Although browser-based training is generally slower than native execution, our evaluation shows no significant overhead when deployed in heterogeneous environments with resource-constrained edge devices.

Enabling Flower for Federated Learning in Web Browsers in the Cloud-Edge-Client Continuum

Garofalo, Marco;Villari, Massimo
2024-01-01

Abstract

Federated Learning (FL) is a solution that enables training a machine learning algorithm by distributing it across multiple devices (clients), which process a local model and then share the trained parameters to derive a global model. This has many advantages regarding computational distribution and privacy, as the clients’ local datasets are never shared. Nevertheless, configuring and managing a cluster of heterogeneous devices can present several challenges. In this perspective, some frameworks, such as Flower, provide valuable tools to facilitate the construction of FL processes. Yet, infrastructure management, installation of dependencies, and network configuration are still required. We propose a solution that allows Flower to be seamlessly integrated with training within the Web browser, following the novel Cloud-Edge-Client Continuum paradigm. This enables ready-to-use devices, including laptops and smartphones, with no dependencies to install or configurations to make. The solution’s effectiveness has been tested in heterogeneous environments exploiting Open Neural Network Exchange (ONNX) and TensorFlow.js as deep learning technologies. Although browser-based training is generally slower than native execution, our evaluation shows no significant overhead when deployed in heterogeneous environments with resource-constrained edge devices.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11568/1324850
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact