The Shapley value is a solution concept from cooperative game theory that assigns a unique distribution of a total surplus to each player based on their marginal contribution to every possible coalition. Formally, it is the average marginal contribution of a player across all permutations of the player set. This axiomatic approach satisfies properties of efficiency, symmetry, dummy player, and additivity, making it a theoretically grounded measure of fair attribution. In machine learning, it underpins popular model explainability tools like SHAP (SHapley Additive exPlanations).
Glossary
Shapley Value

What is the Shapley Value?
The Shapley value is a foundational concept from cooperative game theory that provides a mathematically fair method for distributing a collective payoff among contributing players. In federated learning, it is adapted to quantify the marginal contribution of each client's data to the performance of the global model.
In federated learning, the Shapley value is repurposed for contribution valuation and client selection. It quantifies how much each client's local dataset improves the global model's accuracy compared to models trained without it. Calculating the exact value is computationally prohibitive, requiring retraining on all possible subsets of clients. Therefore, practical implementations use approximations, such as Monte Carlo sampling or gradient-based heuristics, to efficiently estimate contributions for incentive design or to prioritize high-value clients in resource-aware selection strategies.
Key Properties of the Shapley Value
The Shapley value is defined by four axioms from cooperative game theory. These properties ensure a unique, fair, and mathematically rigorous valuation of each player's contribution.
Efficiency (Budget Balance)
The Efficiency axiom states that the sum of all assigned Shapley values equals the total value generated by the grand coalition of all players. This ensures the entire surplus from cooperation is fully distributed, with no value created or destroyed.
- Mathematically: Σ φ_i(v) = v(N), where N is the set of all players.
- In FL Context: The total 'value' (e.g., global model accuracy improvement) is precisely allocated among the participating clients. This property is foundational for creating a closed economic system in contribution-based incentive mechanisms.
Symmetry (Equal Treatment)
The Symmetry axiom states that if two players make identical marginal contributions to every possible coalition, they must receive the same Shapley value. Fairness is based solely on contribution, not on arbitrary labels or identities.
- Formal Definition: If v(S ∪ {i}) = v(S ∪ {j}) for all coalitions S not containing i or j, then φ_i(v) = φ_j(v).
- In FL Context: Two clients with statistically identical data distributions and local dataset sizes that provide the same utility to any subset of other clients will be valued equally, preventing bias from non-contributory factors.
Dummy Player (Null Player)
The Dummy Player axiom states that a player who adds no marginal value to any coalition receives a Shapley value of zero. Value is assigned only for actual contribution.
- Formal Definition: If v(S ∪ {i}) = v(S) for all coalitions S, then φ_i(v) = 0.
- In FL Context: A client whose local data provides no improvement to any possible combination of other clients' models (e.g., its data is pure noise or already perfectly represented by others) is correctly assigned zero contribution. This property is critical for filtering out non-beneficial participants.
Additivity (Linearity)
The Additivity axiom states that the Shapley value of a sum of games is the sum of the Shapley values from each individual game. This allows complex valuation problems to be decomposed.
- Mathematically: For any two characteristic functions v and w, φ_i(v + w) = φ_i(v) + φ_i(w).
- In FL Context: If the overall model utility (v) can be expressed as a sum of utilities from different tasks or data modalities (v1 + v2), a client's total contribution is the sum of its contributions to each sub-task. This supports multi-objective or multi-task federated learning scenarios.
Marginalism
While not one of the original four axioms, Marginalism is a fundamental consequence: a player's Shapley value depends only on its marginal contributions to various coalitions. The valuation is completely defined by the incremental value the player brings.
- Core Principle: φ_i(v) is a weighted average of i's marginal contributions, v(S ∪ {i}) - v(S), over all possible subsets S.
- In FL Context: A client's valuation is not based on its data in isolation but on how its data improves models trained on every possible combination of other clients' data. This captures complex, non-linear interactions in data utility.
Uniqueness Theorem
The Uniqueness Theorem (Shapley, 1953) is the seminal result proving that the Shapley value is the only solution concept satisfying the four axioms of Efficiency, Symmetry, Dummy Player, and Additivity. This provides a rigorous, non-arbitrary foundation for contribution valuation.
- Significance: It guarantees there is no other fair distribution scheme that satisfies all four intuitive fairness principles. Any alternative method (e.g., simpler heuristics) must violate at least one axiom.
- In FL Context: For system architects designing incentive or client selection mechanisms, this theorem justifies the computational cost of Shapley value approximation, as it is the unique theoretically fair solution.
Shapley Value vs. Other Contribution Metrics
A comparison of methods used in federated learning to quantify the value or contribution of individual clients to the global model's performance.
| Metric / Feature | Shapley Value | Gradient Norm | Data Quantity | Random Baseline |
|---|---|---|---|---|
Theoretical Foundation | Cooperative Game Theory (axiomatic) | Optimization (first-order approximation) | Heuristic / Assumption | Statistical (no foundation) |
Fairness Guarantees | ||||
Computational Cost | Exponential (exact) | Linear | Negligible | Negligible |
Handles Non-IID Data | ||||
Requires Model Retraining | Exponential (exact) / Linear (approximate) | |||
Interpretability | High (exact marginal contribution) | Medium (update magnitude) | Low (proxy only) | None |
Primary Use Case | Contribution valuation, incentive design, fair selection | Stratified or importance sampling | Resource-aware weighting | Control group, simple baselines |
Robust to Byzantine Clients |
Frequently Asked Questions
The Shapley value is a concept from cooperative game theory that has been adapted to quantify the contribution of individual participants in federated learning. These questions address its core mechanics, applications, and practical considerations for system architects and CTOs.
In federated learning, the Shapley value is a mathematical framework from cooperative game theory used to fairly attribute the marginal contribution of each client's local dataset to the overall performance of the trained global model. It provides a principled way to value client participation, which can be used for incentive design, client selection, or understanding data source importance. The core idea is to evaluate a client's contribution by measuring the change in a predefined utility function (e.g., model accuracy on a validation set) when that client's data is added to various possible coalitions of other clients.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
The Shapley value is a foundational concept from cooperative game theory applied to quantify individual contributions in federated learning. These related terms define the ecosystem of valuation, selection, and incentive mechanisms it operates within.
Client Contribution Valuation
The overarching process of measuring the value each client's data and compute resources provide to the federated model. The Shapley value is a premier method for this valuation, offering a theoretically fair distribution of the total model utility gain among participants. Other valuation metrics include:
- Leave-One-Out Error: Measuring the performance drop when a client is excluded.
- Gradient Norm: Using the magnitude of a client's model update as a proxy for contribution.
- Data Quantity: Simple valuation based on the number of local training samples. Accurate valuation is critical for incentive mechanisms and fairness-aware selection.
Incentive Mechanism
A system design element, often economic or reputational, that encourages client devices to participate reliably in federated learning by compensating them for their resources. The Shapley value provides a principled basis for determining fair monetary or reputational rewards. Effective mechanisms must:
- Align Incentives: Reward clients proportional to their true contribution (e.g., via Shapley).
- Prevent Free-Riding: Discourage clients from submitting low-effort updates.
- Ensure Sustainability: Balance the cost of rewards with the value of the improved global model. These mechanisms are essential for long-term, large-scale federated learning deployments.
Fairness-Aware Selection
A client selection approach that incorporates fairness constraints to prevent systematic underrepresentation of devices or data distributions, thereby mitigating bias in the global model. Using Shapley values for selection can promote fairness by choosing clients with historically high marginal contributions. Key techniques include:
- Stratified Sampling: Ensuring selection from all demographic or data strata.
- Proportional Representation: Selecting clients in proportion to their population size.
- Bias Mitigation: Actively correcting for selection bias in the aggregated model. This is crucial for building equitable and robust models.
Multi-Armed Bandit for Selection
An online learning framework used to sequentially choose clients (arms) to maximize a reward, such as model improvement, while balancing exploration of new clients and exploitation of known high-performers. The Shapley value can inform the reward function. Common bandit algorithms adapted for federated learning include:
- Upper Confidence Bound (UCB): Selects clients with high estimated reward and high uncertainty.
- Thompson Sampling: Uses a probabilistic model to sample clients based on their probability of being optimal.
- Contextual Bandits: Incorporates client metadata (e.g., device type, data size) into the decision. This approach is ideal for environments with unknown and changing client utilities.
Client Scoring & Utility Function
The process of assigning a numerical score to each potential participant based on a utility function that quantifies the expected benefit of their selection. The Shapley value is a theoretically sound utility function. A comprehensive utility function often combines multiple factors:
- Statistical Utility: Expected improvement in model accuracy (e.g., via Shapley, loss reduction).
- System Efficiency: Client's resource profile (compute speed, bandwidth, battery).
- Fairness Contribution: How the client's selection improves demographic representation. Frameworks like Oort explicitly optimize for joint statistical and system utility.
Federated Coreset
A small, weighted subset of client data (or synthetic proxy data) that approximates the overall federated data distribution. Coresets are used to guide client selection or as a proxy for efficient server-side model analysis. Relationship to Shapley value:
- Selection Proxy: A coreset can be used to efficiently estimate the Shapley value of clients without full retraining.
- Valuation Anchor: Clients whose local data is well-represented in the coreset may be deemed to have higher value.
- Synthetic Data: Coresets can be generated to represent client contributions in a privacy-preserving manner. This concept bridges efficient computation with contribution analysis.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us