Federated Learning Topologies
This section describes the various network topologies available when building federated learning with SymetryML.
Last updated
This section describes the various network topologies available when building federated learning with SymetryML.
Last updated
Decentralized: In a decentralized setting every peer will sync their SymetryML Project with the other peers at some regular periodic interval. Please see below for an example of a deployment with 3 nodes.
Centralized / Hierarchical: In a centralized setting a Master aggregator node exists, and only it has a global view on the ‘data’ – again it does not access the data but only aggregates the SymetryML projects of all the individual peers. Please see below for details.
Hybrid: It’s actually possible to compose hybrid topologies, involving combinations of Decentralized & Centralized topologies. Please see n below for details.
In a decentralized federation each peer shares their PSR with all other peers in the federation via a queuing system. Each peer is able to merge all the PSRs received from fellow peers in the federation and create one merged PSR which now contains all the information from the datasets of its fellow peers in the federation. Each peer is then free to do their own independent modelling from the information in their newly created merged PSR.
In a decentralized network, the administrator is responsible for the following:
Creating the Federation
Inviting peers to join the Federation via passwords & authentication information
Managing the frequency the Federation will routinely ‘sync’ information (PSRs)
Frequency sync options : minutes, hours, days
In a centralized federation, the Administrator is the only peer in the federation that receives PSRs from other peers, unlike the decentralized network where all peers in the federation send/receive PSRs to/from one another. In a centralized federation the Administrator is the only peer in the federation that is able to merge all PSRs from participants in the federation to create one merged PSR which now contains all the information from the datasets of its fellow peers in the federation. The Admin node is now able to do all the modelling from the merged PSR as though it had access to all the proprietary datasets of the members of the federation.
In a centralized network, the Administrator is responsible for the following:
Creating the centralized Federation
Adding/Inviting peers to join the Federation
The Admin node merged Project updates automatically when peer node project update with new information
Admin node is the only peer in the network that receives Projects from other nodes
Admin node is the only peer in the network able to perform model building on a merged project from the project received from fellow peers in the federation.
A Hybrid Federation allows an Administrator to build a Federated Learning network with combinations of Centralized and Decentralized federated networks. This allows the Administrator to regulate which peers in the Federation have visibility or do not have visibility to fellow peers PSRs. It allows for managing information sharing, and exclusion of sharing, as desired and/or mandated.
In the example illustrated in Figure 3 we can see that this hybrid structure allows for peers 1, 2, and 3 to get equal access to SymetryML project information from peers 1, 2, and 3, plus access to SymetryML project information of peers 4 and 5 via peer 3. However, in this example, peers 4 and 5 do not receive SymetryML projects from anyone else in the network, they simply share and send their SymetryML projects to be shared with the network. This is just one illustration of a Hybrid Federation, one is able to create any customized Hybrid Federation which can contain several decentralized and centralized federated networks within ones customized Hybrid Federation.
Centralized federated learning is called Fusion project with SymetryML. The Rest API for fusion project is documented in the .