Asynchronous Peer-to-Peer Data Mining with Stochastic Gradient Descent

Róbert Ormándi, István Hegedüs, Márk Jelasity

Abstract

In large-scale peer-to-peer (P2P) networks, centralizing data for machine learning is often impractical due to bandwidth, scale, and privacy constraints. This paper presents a robust, fully distributed framework for training models using asynchronous Stochastic Gradient Descent (SGD). By conceptualizing models as "random walkers" that update their parameters as they traverse individual nodes, the authors demonstrate that complex models like Support Vector Machines (SVMs) can be learned effectively without moving sensitive raw data or requiring global synchronization. The proposed P2Pegasos algorithm is shown to be resilient to network churn and message loss, achieving accuracy comparable to centralized learners.

Introduction

Traditional data mining typically requires gathering data into a central repository. In massive P2P networks, such as social networks or file-sharing communities, this approach is often unfeasible due to the sheer scale of the network and privacy concerns. While gossip-based protocols have addressed simple aggregation tasks, building complex predictive models in a fully decentralized, asynchronous environment remains a significant challenge. This work aims to bridge this gap by creating a learning scheme that is fully distributed, asynchronous, privacy-preserving, and robust to network failures.

The P2P Stochastic Gradient Descent Algorithm

The core innovation is the P2P Stochastic Gradient Descent Algorithm. Instead of nodes sending data to a model, the model travels through the network. Each node initializes a model and periodically sends its current state to a random neighbor selected via a peer sampling service. Upon receiving a model, a node performs a single SGD update step using its local training data, stores the updated model, and eventually passes it on.

P2P Stochastic Gradient Descent Algorithm pseudocode

The authors instantiate this framework using P2Pegasos, a version of SVM in primal form. This representation is crucial because the model size depends on the number of features rather than the number of training samples, ensuring messages remain small enough for P2P transmission. To enhance accuracy, nodes maintain a modelQueue of the last 10 received models and utilize a majority voting mechanism for predictions.

Experimental Evaluation

The approach was evaluated using several standard benchmarks, adapted for a P2P setting where each node holds a single data record. These include the Iris dataset, Reuters-21578 text classification, Spambase email detection, and a massive Malicious URLs dataset. For the latter, offline correlation analysis was used to reduce the feature set to the 10 most significant features to maintain manageable message sizes.

Dataset statistics and performance comparison across various benchmarks

Results and Discussion

The experimental results indicate that asynchrony is a strength rather than a limitation. The random arrival of models mimics the random sampling required for standard SGD, making the algorithm inherently resilient to network delays. In "no failure" scenarios, P2Pegasos achieved error rates nearly identical to centralized SVM solvers like SVMLight, as shown in the performance comparison table.

The system demonstrated extreme resilience, maintaining convergence even with a 50% message drop rate and significant delays. Furthermore, the algorithm handled churn—where 10% of nodes are offline at any given time—with minimal impact on model quality. The voting mechanism proved beneficial, smoothing the learning curve and outperforming single sequential learners by leveraging the "wisdom of the crowd" from multiple circulating models.

Conclusion

This work provides a scalable and privacy-preserving solution for data mining in decentralized networks. While the current approach requires models to fit within single P2P messages—limiting its direct application to extremely high-dimensional data—it establishes a strong foundation for future research. Potential extensions include addressing Byzantine failures and adapting to concept drift in dynamic data environments.

Summary updated

BibTeX
@inproceedings{ormandi2011asynchronous,
  author = {Róbert Ormándi and István Hegedüs and Márk Jelasity},
  title = {{Asynchronous Peer-to-Peer Data Mining with Stochastic Gradient Descent}},
  booktitle = {Euro-Par},
  year = {2011},
  doi = {10.1007/978-3-642-23400-2\_49},
}
Figure