TL;DR
Federated Learning (FL) needs a way to fairly reward participants based on their data's value, and while Shapley Values are the gold standard for fairness, they are notoriously slow to compute. This paper introduces GTG-Shapley, a highly efficient method that uses gradient updates and smart truncation to approximate Shapley Values without retraining models from scratch. It achieves state-of-the-art speed (up to 7.4x faster) and accuracy, making fair contribution evaluation practical for real-world FL ecosystems.
What Problem Does This Paper Address?
To sustain a Federated Learning ecosystem, you need to attract high-quality data owners by offering them fair incentives. However, because FL is designed to protect privacy, the central server cannot directly inspect a participant's local data to determine its quality.
The fairest way to evaluate a participant's contribution in a cooperative game is the Shapley Value (SV). SV measures a participant's marginal contribution across all possible combinations of participants. Unfortunately, calculating exact SVs requires exponential time complexity—you have to retrain the FL model for every possible subset of participants. Existing approximation methods either still require computationally heavy model retraining or rely on random Monte Carlo sampling that misses important participant combinations, leading to inaccurate valuations (especially when data is non-i.i.d., or not independent and identically distributed).
Methods
The authors propose Guided Truncation Gradient Shapley (GTG-Shapley), which bypasses the need to retrain models and aggressively prunes unnecessary computations. It relies on three main pillars:
- Gradient-Based Model Reconstruction: Instead of retraining a model from scratch to evaluate a specific subset of participants, GTG-Shapley reconstructs the sub-model using the gradient updates those participants already sent to the server during standard FL training.
- Two-Level Truncation: The authors noticed that model evaluation takes up 98.5% of SV computation time. To fix this, they introduce:
- Between-round truncation: Skips entire FL training rounds if the overall marginal utility (accuracy gain) of that round falls below a certain threshold.
- Within-round truncation: Stops evaluating a specific permutation sequence of participants early if adding the remaining participants yields negligible performance gains.
- Guided Monte Carlo Sampling: Pure random sampling can be biased because participants placed at the end of a sequence artificially appear to contribute less (due to diminishing returns). GTG-Shapley uses a guided sampling policy that circulates participants through the crucial early positions in the sequence, ensuring everyone gets a fair evaluation.
Datasets
The authors adapted the standard MNIST handwritten digit dataset to simulate a 10-participant FL environment. To test the robustness of their algorithm, they created five distinct data distribution settings:
- Same Distribution and Same Size (Standard i.i.d.)
- Different Distributions and Same Size (Non-i.i.d., where some participants hold heavily skewed classes, e.g., mostly 1s and 2s)
- Same Distribution and Different Sizes
- Noisy Labels and Same Size (Simulating malicious or low-quality data)
- Noisy Features and Same Size (Simulating poor sensor quality via Gaussian noise)
Key Insights and Ideas
- Diminishing returns are your friend for efficiency: The authors empirically showed that marginal utility gains concentrate heavily in the earliest rounds of FL training, and at the earliest positions in any participant permutation. By identifying and truncating the "long tail" of low-value evaluations, you can save massive amounts of compute without hurting accuracy.
- Order matters in approximation: In standard Monte Carlo SV estimation, late-joining participants in a sampled sequence always look less valuable. If random sampling accidentally places a highly valuable participant at the end of sequences too often, their SV is unfairly penalized. Guided sampling fixes this structural flaw, which is especially critical in non-i.i.d. settings where unique data is highly valuable.
- Gradients are excellent surrogates for data: By caching gradient updates on the server, the entire SV calculation can be done post-hoc on the server side. This means FL participants incur zero extra computational or communication overhead for the sake of being evaluated.
Key Results
- Massive Speedups: GTG-Shapley is significantly faster than state-of-the-art baselines. In the i.i.d. setting, it is 7.4 times faster than the best-performing baseline (Truncated Multi-Round Shapley, or TMR).
- High Accuracy: Across almost all scenarios, GTG-Shapley's estimates remained within a distance of $1 \times 10^{-2}$ from the exact, ground-truth Shapley Values. It consistently achieved the lowest error (measured via Cosine Distance, Euclidean Distance, and Maximum Difference) compared to baselines.
- Robustness to Non-i.i.d. Data: While other truncation-based methods suffered severe efficiency or accuracy drops when faced with noisy labels or skewed distributions, GTG-Shapley maintained its high performance, proving its viability for messy, real-world federations.
Limitations and Future Work
While GTG-Shapley drastically reduces the exponential complexity of exact SVs down to $O(T \log N)$ or $O(TN \log N)$ (where $T$ is training rounds and $N$ is participants), scaling to federations with thousands or millions of edge devices (like mobile phones) may still present overhead challenges for the central server.
For future work, the authors plan to use GTG-Shapley as the foundation for building FL participant auditing tools. These tools aim to help regulatory bodies provide oversight and ensure fairness in federated learning-based data exchanges.
Summary updated