Mechanisms that Incentivize Data Sharing in Federated Learning

Sai Praneeth Karimireddy, Wenshuo Guo, Michael I. Jordan

TL;DR

Federated learning (FL) faces a "tragedy of the commons" where rational agents are incentivized to free-ride—contributing no data while reaping the benefits of a global model. This paper introduces accuracy shaping, a contract-theory-based mechanism that ties the quality of the model returned to an agent to the amount of data they contribute, provably maximizing total data generation and enabling collaboration on tasks that would be too expensive for any single agent to solve alone.

What Problem Does This Paper Address?

In a standard federated learning setup, a central server aggregates data (or gradients) from multiple agents to train a superior global model, which is then shared back with everyone. While this sounds ideal, it ignores the economic reality of data generation. Collecting and labeling data is expensive.

If a rational agent knows they will receive the full benefit of the combined dataset regardless of their own effort, their optimal strategy is to contribute nothing. The authors show that in a "naive" FL scheme, this leads to catastrophic free-riding: only the agent with the absolute lowest marginal cost contributes any data, while everyone else free-rides. In the worst case, if the problem is too difficult for any single agent to tackle, the entire collaborative effort collapses, and no data is generated at all.

Methods

The authors frame the problem using a principal-agent model from contract theory. The server (the principal) publishes a mechanism—a rule mapping data contributions to model accuracies—and the agents decide how much data to generate to maximize their own utility (Accuracy minus Cost).

The core innovation is Accuracy Shaping. Instead of returning the best possible model to every participant, the server returns a model with accuracy $a_i$ that is specifically tuned to agent $i$'s contribution $m_i$.

  1. Full-Information Setting: When the server knows the agents' costs, it designs a piecewise linear accuracy curve. For contributions above a certain threshold, the server provides a marginal gain in accuracy that slightly exceeds the agent's marginal cost. This creates a "natural attractor" at the maximum feasible contribution level.
  2. Unverifiable Costs: When costs are private to the agents, the authors design truth-revealing accuracy curves. This involves giving "information rent" (extra utility) to low-cost agents to prevent them from pretending to be high-cost agents to shirk their contribution duties.

Datasets

As a theoretical work, the paper does not use specific real-world training datasets. Instead, it validates its mechanisms using simulations based on:

  • Standard Generalization Bounds: Using pseudo-dimension $k$ to model the difficulty of learning tasks.
  • Empirical Power Laws: Modeling accuracy as $b(m) = 1 - \beta/m^\alpha$, which is commonly observed in large-scale machine learning.

Key Insights and Ideas

  • The Credible Threat: To prevent free-riding, the server must be able to withhold model performance. The mechanism relies on the threat that a low contribution will result in a lower-accuracy model, even if a better one is technically available.
  • Overcoming Minimum Viability: One of the most powerful results is that these mechanisms allow agents to solve "insurmountable" problems. If a task requires $10,000$ samples to be useful but costs $\$1$ per sample, a single agent with a $\$5,000$ budget can do nothing. Through incentivized collaboration, ten such agents can successfully reach the goal.
  • Incentive Compatibility: The mechanism does not discourage innovation. Agents who find ways to lower their data collection costs still achieve higher overall utility than their high-cost peers, encouraging long-term efficiency.
Figure 1: Illustration of the optimal amount of data for a single agent. (a): Accuracy and cost versus the dataset size.(b)-(d): Utility function of a low/mid/high-cost agent versus the dataset size.

Key Results

  • Catastrophic Free-Riding Proof: The authors mathematically prove that in standard FL, the total data collected is limited to what the single most efficient agent would have collected on their own.
  • Data Maximization: The proposed accuracy-shaping mechanism is proven to be the unique Nash equilibrium that maximizes data collection under feasibility and individual rationality constraints.
  • Linear Scaling: Simulations show that under the proposed mechanism, the total data collected increases linearly with the number of participating agents, effectively distributing the "cost" of the model across the collective.
Figure 2: Simulation results showing that total data collected increases linearly with the number of agents $n$ (a), and how individual contributions scale with marginal cost (b).

Limitations and Future Work

  • Data Exchangeability: The model assumes all data points from an agent are identical in value and cost. In reality, data is often heterogeneous, and some points are more valuable for training than others.
  • Known Accuracy Functions: The mechanism assumes the server knows the relationship between data volume and model accuracy ($a(m)$). In practice, this might need to be estimated online.
  • Privacy and Verification: The paper assumes data is i.i.d. and verifiable. Future work could integrate privacy-preserving techniques (like Differential Privacy) and methods to prevent agents from submitting "fake" or low-quality data to game the accuracy curve.

Summary updated

Abstract

Federated learning is typically considered a beneficial technology which allows multiple agents to collaborate with each other, improve the accuracy of their models, and solve problems which are otherwise too data-intensive / expensive to be solved individually. However, under the expectation that other agents will share their data, rational agents may be tempted to engage in detrimental behavior such as free-riding where they contribute no data but still enjoy an improved model. In this work, we propose a framework to analyze the behavior of such rational data generators. We first show how a naive scheme leads to catastrophic levels of free-riding where the benefits of data sharing are completely eroded. Then, using ideas from contract theory, we introduce accuracy shaping based mechanisms to maximize the amount of data generated by each agent. These provably prevent free-riding without needing any payment mechanism.
BibTeX
@misc{karimireddy2022mechanisms,
  author = {Sai Praneeth Karimireddy and Wenshuo Guo and Michael I. Jordan},
  title = {{Mechanisms that Incentivize Data Sharing in Federated Learning}},
  year = {2022},
  eprint = {2207.04557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.04557},
}
Figure