p2pGNN: A Decentralized Graph Neural Network for Node Classification in Peer-to-Peer Networks

Emmanouil Krasanakis, Symeon Papadopoulos, Ioannis KompatsiarisarXiv 2021 · DOI · arXiv

TL;DR

p2pGNN is a new framework that enables Graph Neural Networks (GNNs) to work in decentralized, peer-to-peer networks where communication is irregular and uncertain. By decoupling base classifier training from graph diffusion, it achieves node classification accuracy nearly identical to centralized models while adding negligible communication overhead.

What Problem Does This Paper Address?

In the quest for privacy and data control, decentralized social networks and IoT systems are gaining traction. However, performing machine learning in these environments is notoriously difficult. Specifically, node classification—predicting a user's interests or a device's status—benefits immensely from Graph Neural Networks (GNNs) because they leverage the "homophily" of social links (the idea that connected nodes are often similar).

The catch? Standard GNNs assume a centralized view of the graph or, at the very least, constant and reliable communication between neighbors to compute graph convolutions. In a real-world peer-to-peer (P2P) setting, users go offline, connections drop, and the network structure is messy and unstructured. Existing decentralized learning methods often ignore these natural links or require rigid, artificial communication topologies (like rings) that don't match real-world social behavior.

Methods

The authors introduce p2pGNN, which tackles these challenges through two main innovations:

  1. Decoupled Architecture: Instead of trying to train a deep GNN end-to-end across a shaky network, p2pGNN separates the process. First, a base classifier (like a simple neural network or logistic regression) is trained locally or via "gossip averaging." Then, the resulting predictions and errors are "diffused" across the network links. This separation means nodes don't need to wait for complex backpropagation steps from neighbors to start improving their local estimates.
  2. Asynchronous Decentralized Diffusion: The authors developed a new algorithm for graph diffusion that works under communication uncertainty. Using a "Send-Receive-Acknowledge" protocol, nodes update their local estimates whenever a neighbor happens to be available.
FIGURE 2. p2pGNN helps peer-to-peer devices classify themselves by improving local feature-based classifiers with fragments of decentralized graph diffusion that approximate the FDiff-scale decoupled GNN.

Crucially, they provide a theoretical proof that this asynchronous process converges to the same result as a centralized model, with a linear convergence rate relative to how often nodes communicate.

Datasets

The researchers evaluated p2pGNN using three standard graph benchmarks, simulating them as P2P networks with random communication frequencies:

  • Citeseer: A citation network with 3,327 nodes and 6 classes.
  • Cora: A citation network with 2,708 nodes and 7 classes.
  • Pubmed: A large medical publication network with 19,717 nodes and 3 classes.

Key Insights and Ideas

  • Decoupling is the "Secret Sauce": By separating learning from diffusion, the system becomes robust to "node churn" (nodes joining and leaving). You can update your base model whenever you have data, and refine it through the graph whenever you have a connection.
  • Social Links as Data: Unlike many decentralized algorithms that treat the network as a hurdle, p2pGNN treats the social graph itself as a valuable source of information, just as a centralized GNN would.
  • Minimal Communication Cost: The data exchanged for diffusion (small vectors of class probabilities) is tiny. The authors found this overhead to be less than 3% of what standard "gossip training" already requires.

Key Results

The experiments showed that p2pGNN effectively bridges the gap between local and centralized learning:

  • Accuracy Boost: Compared to using just local features, p2pGNN improved accuracy by 7% to 47% across different datasets.
  • Near-Centralized Performance: On the Citeseer and Cora datasets, p2pGNN achieved results within 3% of a fully centralized GNN.
  • Fast Convergence: Even when communication rates were halved, the algorithm still reached its peak accuracy quickly, typically within 200-400 simulated time steps.
TABLE 2. Comparing the accuracy of different types and training schemes of base algorithms and their combination with the diffusion of p2pGNN. Accuracy is computed after 1000 time steps and averaged across 5 peer-to-peer simulation runs.

Limitations and Future Work

While p2pGNN is a significant step forward, the authors note a few areas for improvement:

  • Gossip Training Interference: Sometimes, the initial gossip training of the base classifier "leaks" some graph structure into the model parameters, which can make the subsequent diffusion step less effective. Refining how these two stages interact is a goal for future research.
  • Privacy and Bias: While decentralized by nature, the authors acknowledge that future work must explicitly address potential privacy leaks and societal biases that could emerge from these automated classification systems.
  • Hyperparameter Tuning: Currently, some parameters (like the diffusion rate) are set manually. Automating this in a decentralized environment remains an open challenge.

Summary updated

Abstract

In this work, we aim to classify nodes of unstructured peer-to-peer networks with communication uncertainty, such as users of decentralized social networks. Graph Neural Networks (GNNs) are known to improve the accuracy of simple classifiers in centralized settings by leveraging naturally occurring network links, but graph convolutional layers are challenging to implement in decentralized settings when node neighbors are not constantly available. We address this problem by employing decoupled GNNs, where base classifier predictions and errors are diffused through graphs after training. For these, we deploy pre-trained and gossip-trained base classifiers and implement peer-to-peer graph diffusion under communication uncertainty. In particular, we develop an asynchronous decentralized formulation of diffusion that converges to centralized predictions in distribution and linearly with respect to communication rates. We experiment on three real-world graphs with node features and labels and simulate peer-to-peer networks with uniformly random communication frequencies; given a portion of known labels, our decentralized graph diffusion achieves comparable accuracy to centralized GNNs with minimal communication overhead (less than 3% of what gossip training already adds).
BibTeX
@misc{krasanakis2021p,
  author = {Emmanouil Krasanakis and Symeon Papadopoulos and Ioannis Kompatsiaris},
  title = {{p2pGNN: A Decentralized Graph Neural Network for Node Classification in Peer-to-Peer Networks}},
  year = {2021},
  eprint = {2111.14837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.14837},
}
Figure