You Get What You Give: Reciprocally Fair Federated Learning

Aniket Murhekar, Jiaxin Song, Parnian Shahkar, Bhaskar Ray Chaudhury, Ruta MehtaICML 2025

Introduction

Federated Learning (FL) is built on the promise of collaboration: multiple agents, such as hospitals or mobile users, pool their data to train a superior machine learning model without ever sharing their raw, sensitive information. However, in the real world, data is not free. Agents face costs related to data acquisition, computation, and privacy risks.

This paper introduces $\mathcal{M}^{Shap}$, a novel payment mechanism for FL that solves the pervasive "free-rider" problem by ensuring reciprocal fairness. By using Shapley values to redistribute gains, the system guarantees that every participant’s final utility is exactly proportional to their contribution, all while remaining budget-balanced and without requiring the server to know participants' private data-sharing costs.

The Free-Rider Problem in Federated Learning

When agents act strategically to maximize their own benefit, they often fall into a Nash Equilibrium trap known as free-riding. An agent might contribute the bare minimum of data while still reaping the rewards of the high-quality global model. This leads to a "tragedy of the commons" where the final model is mediocre because no one wants to foot the bill for high-quality data.

Existing solutions to incentivize sharing often require a central server to have a massive budget to pay participants. Alternatively, they require the server to know the private, sensitive cost functions of every agent—an unrealistic and privacy-invasive requirement.

The $\mathcal{M}^{Shap}$ Mechanism

To address these misaligned incentives, the authors propose $\mathcal{M}^{Shap}$. Its core engine is the Shapley value, a classic concept from cooperative game theory that assigns a "fair share" of a total surplus to each player based on their marginal contribution.

Key technical components of the mechanism include:

  • The Payment Rule: The mechanism implements a budget-balanced payment scheme where $p_i(s) = \phi^A_i(s) - a_i(s)$. In plain English: if your contribution to the collective accuracy ($\phi^A_i$) is higher than the individual accuracy benefit you received ($a_i$), the system pays you a subsidy. If you gained more than you gave, you are "taxed."
  • Budget Balance: Because Shapley values perfectly distribute the total surplus, the sum of all payments is zero. The server acts as a neutral clearinghouse, not a bank.
  • Cost-Agnosticism: Unlike previous methods, the server doesn't need to know an agent's internal costs. It only looks at the output—how much did your data actually improve the model?
  • FedBR-Shap Protocol: To make this practical, the authors developed a distributed protocol that uses gradient information to estimate these Shapley values and update data contributions iteratively, avoiding the need for agents to share raw data points.

Experimental Setup

The researchers evaluated their mechanism across five diverse settings to ensure robustness:

  1. MNIST & FashionMNIST: Standard image classification benchmarks.
  2. CIFAR-10: A more complex image dataset using ResNet-10.
  3. Lumpy Skin Disease: A real-world healthcare dataset involving meteorological and geospatial features.
  4. Synthetic Quadratic Regression: A controlled environment to test theoretical bounds.

The image datasets were partitioned in a "Non-IID" (heterogeneous) fashion—for example, rotating images for different groups—to simulate the real-world reality that different agents hold different types of data.

Key Insights and Results

By guaranteeing that an agent's payoff equals their contribution (a Reciprocity score of 1), the mechanism naturally attracts high-quality data providers who would otherwise stay away. Furthermore, by ignoring the cost of data and focusing only on the value of the contribution, the mechanism remains robust against agents who might lie about their expenses to get higher payouts.

The authors prove that even with strategic agents, the system settles into a stable Nash Equilibrium. Surprisingly, this "fair" equilibrium often results in more total data shared and higher collective welfare than mechanisms designed purely for efficiency. Experimental results show that $\mathcal{M}^{Shap}$ significantly outperforms standard FL (without payments) and welfare-maximizing baselines:

  • Massive Data Gain: On the MNIST dataset, $\mathcal{M}^{Shap}$ achieved a 9.51x increase in data shared compared to the baseline. For FashionMNIST, this jumped to 13.43x.
  • Perfect Fairness: While baseline mechanisms had reciprocity scores as low as 0.02 (highly unfair), $\mathcal{M}^{Shap}$ maintained a perfect 1.00 across all datasets.
  • Accuracy Boost: The collaborative models were consistently more accurate. For the synthetic dataset, the accuracy gain was 1.36x over the baseline.
  • Efficiency: Even though it was designed for fairness, the mechanism achieved higher total utilitarian welfare than "welfare-maximizing" baselines in several scenarios.

Limitations and Future Work

While promising, the authors acknowledge a few hurdles. First, calculating exact Shapley values is exponentially difficult as the number of agents increases. While their Monte Carlo approximation works for "cross-silo" FL (e.g., 30 hospitals), it may struggle with "cross-device" FL (e.g., millions of smartphones). Second, the theoretical proofs rely on payoff functions being concave and cost functions being convex. While these are standard assumptions, real-world ML training dynamics can sometimes be more erratic.

Future directions include exploring other profit-sharing methods beyond the Shapley value and establishing tighter theoretical lower bounds for a wider variety of utility functions.

Summary updated

BibTeX
@inproceedings{murhekar2025you,
  author = {Aniket Murhekar and Jiaxin Song and Parnian Shahkar and Bhaskar Ray Chaudhury and Ruta Mehta},
  title = {{You Get What You Give: Reciprocally Fair Federated Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ZdmMDz33Io},
}
Figure