[Paper Review] Fedstellar: A Platform for Decentralized Federated Learning
Fedstellar is a platform that enables training FL models in decentralized, semi-decentralized, and centralized modes across diverse physical and virtual devices, with real-time monitoring and flexible topologies.
In 2016, Google proposed Federated Learning (FL) as a novel paradigm to train Machine Learning (ML) models across the participants of a federation while preserving data privacy. Since its birth, Centralized FL (CFL) has been the most used approach, where a central entity aggregates participants' models to create a global one. However, CFL presents limitations such as communication bottlenecks, single point of failure, and reliance on a central server. Decentralized Federated Learning (DFL) addresses these issues by enabling decentralized model aggregation and minimizing dependency on a central entity. Despite these advances, current platforms training DFL models struggle with key issues such as managing heterogeneous federation network topologies. To overcome these challenges, this paper presents Fedstellar, a platform extended from p2pfl library and designed to train FL models in a decentralized, semi-decentralized, and centralized fashion across diverse federations of physical or virtualized devices. The Fedstellar implementation encompasses a web application with an interactive graphical interface, a controller for deploying federations of nodes using physical or virtual devices, and a core deployed on each device which provides the logic needed to train, aggregate, and communicate in the network. The effectiveness of the platform has been demonstrated in two scenarios: a physical deployment involving single-board devices such as Raspberry Pis for detecting cyberattacks, and a virtualized deployment comparing various FL approaches in a controlled environment using MNIST and CIFAR-10 datasets. In both scenarios, Fedstellar demonstrated consistent performance and adaptability, achieving F1 scores of 91%, 98%, and 91.2% using DFL for detecting cyberattacks and classifying MNIST and CIFAR-10, respectively, reducing training time by 32% compared to centralized approaches.
Motivation & Objective
- Motivate the need for decentralized Federated Learning (DFL) to reduce central server bottlenecks and single points of failure.
- Design and implement a versatile platform that supports DFL, Semi-Decentralized Federated Learning (SDFL), and CFL across heterogeneous devices.
- Provide tools for federation management, topology customization, and real-time performance monitoring.
- Demonstrate Fedstellar on physical (Raspberry Pi and Rock64) and virtualized (MNIST/CIFAR-10) deployments.
- Evaluate usability, adaptability, and performance gains of Fedstellar in diverse scenarios.
Proposed method
- Introduce Fedstellar with a modular architecture: frontend, controller, and per-device core.
- Support creation of federations with diverse device types, topologies (fully connected, star, ring, random), and aggregation architectures (DFL, SDFL, CFL).
- Provide a web-based GUI for scenario definition and a REST API for controller communication.
- Enable deployment on physical devices via Mender and on virtual devices via Docker containers, with resource provisioning and per-node cores.
- Incorporate real-time monitoring with a TensorBoard-like interface, data export, and a geolocation feature using Leaflet.
- Use asynchronous sockets and a communication model that supports dynamic node joins/leaves and various KPI reporting.
Experimental results
Research questions
- RQ1How can a unified platform support DFL, SDFL, and CFL architectures across physical and virtual devices?
- RQ2What is the impact of topology, deployment mode, and aggregation strategy on FL performance in Fedstellar?
- RQ3Can Fedstellar provide real-time, multi-dimensional KPI monitoring to aid federation management?
- RQ4How do Fedstellar’s deployments perform in real-world-like scenarios (physical devices with cyberattacks, and virtualized MNIST/CIFAR-10)?
Key findings
- In physical deployment with Raspberry Pi 4 and Rock64, DFL to detect cyberattacks achieved F1 score of 91%.
- In virtualized deployment, MNIST achieved F1 score of 98% under DFL, and CIFAR-10 achieved 91.2% under DFL.
- Fedstellar reduced training time by 32% compared to centralized architectures in the virtualized scenario.
- Fedstellar demonstrated adaptability to fully connected, star, and ring topologies across scenarios.
- The platform supports multiple federation architectures (DFL, SDFL, CFL) with secure communication and asynchronous message handling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.