[论文解读] Fedstellar: A Platform for Decentralized Federated Learning
Fedstellar 是一个平台,能够在分散、半分散和集中模式下,在多样的物理与虚拟设备上训练联邦学习模型,具备实时监控和灵活的拓扑。
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.
研究动机与目标
- 为去中心化联邦学习(DFL)带来动机,旨在减少中央服务器瓶颈与单点故障。
- 设计并实现一个多功能平台,支持在异构设备上实现 DFL、Semi-Decentralized Federated Learning (SDFL) 与 CFL。
- 提供用于联邦管理、拓扑自定义以及实时性能监控的工具。
- 在物理设备(Raspberry Pi 和 Rock64)和虚拟化部署(MNIST/CIFAR-10)上演示 Fedstellar。
- 评估 Fedstellar 在多种场景下的可用性、适应性及性能提升。
提出的方法
- 以模块化架构引入 Fedstellar:前端、控制器,以及每个设备的核心。
- 支持创建具有多种设备类型、拓扑(全连接、星型、环形、随机)以及聚合架构(DFL、SDFL、CFL)的联邦。
- 提供用于场景定义的基于网页的 GUI,以及用于控制器通信的 REST API。
- 允许通过 Mender 在物理设备上部署,并通过 Docker 容器在虚拟设备上部署,具备资源分配与每个节点核心。
- 整合带有类似 TensorBoard 的实时监控界面、数据导出,以及使用 Leaflet 的地理定位功能。
- 使用异步套接字和支持动态节点加入/离开以及多种 KPI 报告的通信模型。
实验结果
研究问题
- RQ1一个统一的平台如何在物理设备和虚拟设备上支持 DFL、SDFL 与 CFL 架构?
- RQ2拓扑、部署模式和聚合策略对 Fedstellar 中的 FL 性能有何影响?
- RQ3Fedstellar 是否能够提供实时的、多维的 KPI 监控,以辅助联邦管理?
- RQ4Fedstellar 的部署在接近现实世界的场景中(带有网络攻击的物理设备,以及虚拟化的 MNIST/CIFAR-10)表现如何?
主要发现
- 在使用 Raspberry Pi 4 和 Rock64 进行的物理部署中,DFL 检测网络攻击的 F1 分数达到 91%。
- 在虚拟化部署中,MNIST 在 DFL 下的 F1 分数为 98%,CIFAR-10 在 DFL 下为 91.2%。
- 在虚拟化场景中,Fedstellar 将训练时间比集中式架构减少了 32%。
- Fedstellar 展现出对全连接、星型和环形拓扑在各个场景中的适应性。
- 该平台在安全通信和异步消息处理方面,支持多种联邦架构(DFL、SDFL、CFL)。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。