Skip to main content
QUICK REVIEW

[Paper Review] FedCoin: A Peer-to-Peer Payment System for Federated Learning

Yuan Liu, Shuai Sun|arXiv (Cornell University)|Feb 26, 2020
Privacy-Preserving Technologies in DataComputer Science17 references22 citations
TL;DR

FedCoin proposes a blockchain-based peer-to-peer payment system for federated learning that uses a novel Proof of Shapley (PoSap) consensus protocol to compute and distribute Shapley Values (SVs) as fair incentives for clients. By leveraging distributed computational resources to calculate SVs with bounded resource costs, FedCoin enables decentralized, tamper-resistant, and non-repudiable incentive distribution, promoting high-quality data contributions while allowing non-data-owning entities to participate.

ABSTRACT

Federated learning (FL) is an emerging collaborative machine learning method to train models on distributed datasets with privacy concerns. To properly incentivize data owners to contribute their efforts, Shapley Value (SV) is often adopted to fairly assess their contribution. However, the calculation of SV is time-consuming and computationally costly. In this paper, we propose FedCoin, a blockchain-based peer-to-peer payment system for FL to enable a feasible SV based profit distribution. In FedCoin, blockchain consensus entities calculate SVs and a new block is created based on the proof of Shapley (PoSap) protocol. It is in contrast to the popular BitCoin network where consensus entities "mine" new blocks by solving meaningless puzzles. Based on the computed SVs, a scheme for dividing the incentive payoffs among FL clients with nonrepudiation and tamper-resistance properties is proposed. Experimental results based on real-world data show that FedCoin can promote high-quality data from FL clients through accurately computing SVs with an upper bound on the computational resources required for reaching consensus. It opens opportunities for non-data owners to play a role in FL.

Motivation & Objective

  • To address the high computational cost of calculating Shapley Values (SVs) for fair incentive distribution in federated learning (FL).
  • To enable decentralized, trustless, and tamper-resistant distribution of incentives to FL clients without relying on a central server.
  • To mobilize idle computational resources in the FL ecosystem to perform SV computation, thereby promoting participation from non-data-owning entities.
  • To design a consensus mechanism—Proof of Shapley (PoSap)—that replaces traditional proof-of-work with meaningful computation based on SVs.
  • To ensure the computational cost of consensus remains bounded and feasible, even under increasing mining difficulty.

Proposed method

  • Introduces Proof of Shapley (PoSap), a consensus protocol where nodes compute Shapley Values (SVs) for FL clients instead of solving cryptographic puzzles.
  • Each consensus node independently performs SV calculations using a group sampling-based approximation method to reduce computational complexity.
  • A new block is created only after a node successfully computes and verifies the SVs for all FL clients using the PoSap protocol.
  • Payments are recorded on the blockchain in an immutable, cryptographically secured manner, ensuring nonrepudiation and resistance to tampering.
  • The system uses a difficulty parameter in PoSap to control block generation time, with computational cost upper-bounded at around 2,500 SV calculation iterations under high difficulty.
  • The framework is implemented using Docker containers, enabling independent communication and coordination among consensus nodes in a simulated environment.

Experimental results

Research questions

  • RQ1Can a blockchain-based system be designed to compute Shapley Values (SVs) in federated learning with bounded computational cost?
  • RQ2How can a consensus protocol be constructed such that the computation is meaningful and contributes to incentive fairness rather than being wasteful, as in traditional proof-of-work?
  • RQ3Can the proposed PoSap protocol ensure that only high-quality data contributors receive positive incentives, while low-quality or harmful data contributors are excluded?
  • RQ4To what extent does the system’s computational cost scale with increasing mining difficulty, and is it bounded under realistic conditions?
  • RQ5Can non-data-owning entities with computational power contribute meaningfully to the FL ecosystem through this incentive mechanism?

Key findings

  • FedCoin accurately computes Shapley Values (SVs) for FL clients, with results showing that only clients from data types $T_0$ to $T_4$ have positive SVs, indicating they contribute positively to model accuracy.
  • Clients with lower data quality (e.g., $T_5$ to $T_9$) are assigned negative SVs, indicating they degrade model performance, and are thus excluded from incentives.
  • The block generation time in FedCoin converges to approximately 2,500 Shapley calculation iterations under high difficulty ($D < 10^{-3}$), demonstrating a computationally bounded and feasible consensus cost.
  • The system successfully promotes high-quality data contributions, as evidenced by a linear decrease in data quality (measured by Earth Mover’s Distance) from $T_0$ to $T_9$, which correlates with decreasing SVs.
  • The PoSap protocol ensures that only valid, verified SV computations lead to block creation, maintaining system integrity and enabling decentralized, trustless incentive distribution.
  • To the best of the authors' knowledge, FedCoin is the first system to integrate blockchain technology with Shapley Value-based incentive mechanisms in federated learning, enabling participation from non-data-owning computational contributors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.