[Paper Review] P4L: Privacy Preserving Peer-to-Peer Learning for Infrastructureless Setups
P4L proposes a fully decentralized, infrastructureless peer-to-peer learning system that enables mobile devices to collaboratively train machine learning models using homomorphic encryption to preserve gradient confidentiality and utility without relying on centralized servers or differential privacy. The system achieves minimal performance overhead—under 3 mAh battery discharge—while demonstrating resilience to poisoning attacks and scalability across diverse device configurations.
Distributed (or Federated) learning enables users to train machine learning models on their very own devices, while they share only the gradients of their models usually in a differentially private way (utility loss). Although such a strategy provides better privacy guarantees than the traditional centralized approach, it requires users to blindly trust a centralized infrastructure that may also become a bottleneck with the increasing number of users. In this paper, we design and implement P4L: a privacy preserving peer-to-peer learning system for users to participate in an asynchronous, collaborative learning scheme without requiring any sort of infrastructure or relying on differential privacy. Our design uses strong cryptographic primitives to preserve both the confidentiality and utility of the shared gradients, a set of peer-to-peer mechanisms for fault tolerance and user churn, proximity and cross device communications. Extensive simulations under different network settings and ML scenarios for three real-life datasets show that P4L provides competitive performance to baselines, while it is resilient to different poisoning attacks. We implement P4L and experimental results show that the performance overhead and power consumption is minimal (less than 3mAh of discharge).
Motivation & Objective
- To address the privacy and scalability limitations of centralized federated learning, which relies on a single trusted server that becomes a bottleneck and a point of failure.
- To eliminate dependence on external infrastructure such as blockchain, IPFS, or public key infrastructure in decentralized learning systems.
- To preserve both the confidentiality and utility of shared model gradients using strong cryptographic primitives, avoiding utility loss from differential privacy.
- To enable fault-tolerant, scalable, and efficient collaborative learning in infrastructureless, proximity-based mobile and IoT environments.
- To ensure user privacy by preventing information leakage attacks from malicious peers through cryptographic protection of gradients.
Proposed method
- P4L uses partial homomorphic encryption (Paillier cryptosystem) to allow peers to homomorphically aggregate encrypted gradients without decryption, preserving both privacy and model utility.
- The system implements a custom Rust-based HE library that supports packed ciphertexts, enabling efficient vectorized homomorphic operations on model gradients.
- It leverages Android's Nearby Connections API to discover and communicate with nearby devices, enabling infrastructureless, proximity-based peer-to-peer communication.
- Model updates are shared asynchronously between nearby peers, with each device performing local training and participating in private gradient aggregation.
- Ciphertexts are compressed using gzip to reduce communication overhead and improve performance on resource-constrained devices.
- The system uses a decentralized, non-colluding peer model where no single peer is trusted, and cryptographic techniques prevent de-anonymization and poisoning attacks.
Experimental results
Research questions
- RQ1Can a fully decentralized, infrastructureless peer-to-peer learning system achieve comparable model performance to centralized federated learning without relying on differential privacy?
- RQ2How does the use of homomorphic encryption affect the performance and power consumption of collaborative model training on mobile devices?
- RQ3To what extent can P4L resist various types of poisoning attacks in a decentralized, untrusted peer environment?
- RQ4What is the real-world performance overhead—especially in terms of battery discharge and latency—of running P4L on contemporary mobile devices?
- RQ5Can P4L maintain scalability and fault tolerance in the presence of user churn and dynamic network conditions?
Key findings
- P4L achieves competitive model performance compared to centralized federated learning baselines, even under adversarial conditions, with no degradation in model utility.
- The system exhibits minimal performance overhead, consuming less than 3 mAh of battery discharge during operation, making it feasible for real-world deployment on mobile devices.
- End-to-end latency for a single synergy remains under 4 seconds across all tested devices, with linear scaling proportional to the number of model parameters exchanged.
- CPU utilization increases linearly with the number of parameters shared, but remains within acceptable limits for background operation on modern smartphones.
- P4L demonstrates strong resilience to various poisoning attacks, maintaining global model accuracy even when a subset of peers are malicious.
- The system scales effectively across devices with varying hardware configurations, including low-end and high-end smartphones, confirming its practical feasibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.