Peer to Peer Consensus in Serverless Federated Learning

161 concepts136 papers1 proposal

Traditional federated learning relies on a hub-and-spoke architecture. A central parameter server orchestrates the training process, distributing a global model to clients, collecting their local updates, and aggregating them. While this preserves raw data privacy, it introduces severe systemic vulnerabilities: a single point of failure, a massive communication bottleneck at the server, and a reliance on a trusted central entity.

As explored by Seyedamin Pouriyeh et al., moving away from this star topology toward decentralized, peer-to-peer (P2P) network structures offers a compelling alternative. Lalana Kagal demonstrates that clients can achieve high model accuracy through collaborative learning even in a fully serverless architecture. By eliminating the central orchestrator, the network distributes both the computational and communication load across all participating devices.

The Core Mechanism: Local Gossip and Emergent Global Consensus

How does a network learn collectively without a central coordinator? The foundational mechanism relies on graph-structured communication and local gossip protocols. Instead of broadcasting updates to a central hub, each node communicates exclusively with its immediate neighbors in a network graph.

As explained by Alfredo García et al., global coordination emerges naturally from these decentralized, local updates. In a typical round, nodes perform local stochastic gradient descent (SGD) on their own datasets and then execute decentralized periodic averaging with their neighbors. Chaoyang He et al. leverage this strategy to train graph neural networks on molecular data, eliminating the need for a trusted central party.

Centralized (Star Topology)             Decentralized (Graph Topology)
       [ Client ]                                 [ Node A ]
         /    \                                    /      \
   [ Client ]--[ Server ]--[ Client ]       [ Node B ]----[ Node C ]
         \    /                                    \      /
       [ Client ]                                 [ Node D ]

Information propagates through the network like a wave. Even if Node A and Node C are not directly connected, Node A's updates influence Node B, which in turn influences Node C in subsequent rounds. Liangqi Yuan et al. show that this P2P gossip architecture significantly enhances system robustness in highly dynamic environments, such as vehicular networks, where persistent cloud connectivity is impossible.

Handling Data Heterogeneity: Learning Who to Trust

One of the greatest challenges in federated learning is non-IID (non-independently and identically distributed) data across devices. In a centralized system, the server forces a single global model or performs centralized clustering. In a serverless environment, nodes must autonomously navigate this heterogeneity.

To solve this, Valentina Zantedeschi et al. propose a framework where nodes simultaneously learn what to predict and who to trust. By dynamically updating a "collaboration graph," nodes assign higher aggregation weights to neighbors with similar data distributions. Similarly, Jonas Kirch introduces a decentralized federated clustering algorithm where distinct cluster models emerge organically across the network through a sequential running average.

This localized adaptation allows for personalized learning. For instance, JinYi Yoon et al. design a protocol where devices "piggyback" on the specialized model backbones of relevant neighbors, providing a powerful alternative to centralized federation for resource-constrained edge devices.

Optimizing the Communication Pipeline

Without a central server to manage traffic, a naive P2P broadcast would flood the network. Serverless federated learning relies on clever communication primitives to scale efficiently.

One approach is model fragmentation. Rafael Pires et al. introduce "Mosaic Learning," which chops models into disjoint fragments and distributes them to different neighbors independently. This increases information diversity across the network without expanding the total communication budget. Another technique is client-side sharding; Dario Fenoglio et al. show that by distributing gradient shards across a dynamic subset of client aggregators, system bandwidth scales linearly with the number of participants, completely bypassing the server-side bottleneck.

Furthermore, communication does not need to be rigidly synchronized. Seyyedali Hosseinalipour et al. demonstrate that asynchronous, event-triggered communication based on local device thresholds minimizes unnecessary transmissions, allowing the network to converge rapidly while preserving precious wireless bandwidth.

Why it Works: The Intuition of Distributed Intelligence

Serverless federated learning works because it decouples global optimization from centralized orchestration. By treating the learning problem as a consensus problem over a graph, the network leverages the collective capacity of all participating links.

As shown by Anis Elgabli et al. and Jian Li et al., even complex second-order optimization methods can be adapted to these decentralized topologies by designing new consensus strategies. Ultimately, this paradigm shifts machine learning from a rigid, top-down infrastructure to a resilient, organic ecosystem capable of learning continuously at the edge.

History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_decentralized_federated_learning_4666cd64,
  title = {decentralized federated learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/decentralized-federated-learning/rdr_4666cd6446fb47028d36ec896eb8b5c1},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_decentralized_federated_learning_4666cd64_v1,
  title = {decentralized federated learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/decentralized-federated-learning/rdr_4666cd6446fb47028d36ec896eb8b5c1/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake