Inferensys

Glossary

Efficiency Property

A Shapley axiom ensuring that the sum of all feature attributions exactly equals the difference between the model's prediction and the baseline value.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
SHAPLEY AXIOM

What is the Efficiency Property?

The Efficiency Property is a fundamental axiom in SHAP that guarantees the sum of all feature attributions exactly equals the difference between the model's prediction and the baseline value.

The Efficiency Property ensures that the total Shapley value distribution across all input features perfectly accounts for the model's output deviation from the baseline value. This axiom, also called local accuracy or additivity, mandates that no portion of the prediction remains unexplained, providing a complete and faithful decomposition of the model's decision for a specific instance.

By enforcing that the sum of feature attributions equals f(x) - E[f(X)], the property transforms the abstract game-theoretic concept of fair distribution into a practical, auditable accounting ledger. This guarantees that the explanation model is not an approximation but an exact match to the original model's output at the point of explanation, which is critical for regulatory compliance and debugging.

SHAPLEY AXIOMS

Key Characteristics of the Efficiency Property

The Efficiency property is a foundational axiom of Shapley Additive Explanations that guarantees a complete and fair accounting of a model's prediction. It ensures that the sum of all feature attributions exactly equals the difference between the model's output and the expected baseline value, leaving no residual contribution unexplained.

01

Complete Attribution Accounting

Efficiency mandates that the explanation model's output perfectly matches the original model's prediction for a specific instance. This is formally expressed as: f(x) = φ₀ + Σᵢ φᵢ, where f(x) is the model's prediction, φ₀ is the baseline expected value, and φᵢ are the individual Shapley values for each feature. This property ensures that the total prediction is fully decomposed into additive feature contributions with no unexplained residual.

100%
Attribution Completeness
02

Local Accuracy Guarantee

Also known as the Local Accuracy property, Efficiency ensures that the explanation is faithful to the model at the individual prediction level. When you sum all SHAP values for a single instance and add the baseline, you recover the exact model output. This is critical for high-stakes auditing where every unit of the prediction must be accounted for, such as in credit denial or medical diagnosis explanations.

03

Baseline Value Integration

The Efficiency property explicitly incorporates the baseline value φ₀, which represents the model's expected output across the background dataset. This baseline acts as the starting point from which features push the prediction higher or lower. Without Efficiency, the relationship between the baseline and the final prediction would be ambiguous, undermining the additive nature of the explanation.

04

Distinction from Consistency and Missingness

Efficiency works in concert with the other Shapley axioms but serves a distinct role:

  • Efficiency: Guarantees the sum of attributions equals the prediction difference
  • Missingness: Ensures absent features receive zero attribution
  • Consistency: Ensures that if a feature's contribution increases, its attribution does not decrease Together, these three properties uniquely define the Shapley value solution.
05

Practical Verification in SHAP

In practice, you can verify the Efficiency property by summing the SHAP values for any instance and comparing to the model output. For a prediction of 0.82 with a baseline of 0.50, the sum of all SHAP values must equal exactly 0.32. Libraries like the official shap package enforce this property by construction in both KernelSHAP and TreeSHAP implementations.

06

Additive Feature Attribution Foundation

Efficiency is the defining characteristic of the Additive Feature Attribution class of explanation models. Any method that satisfies this property expresses a prediction as a linear sum of feature effects. This additive structure is what makes SHAP explanations intuitive for human interpretation, as each feature's impact can be understood independently and then combined to reconstruct the full prediction.

SHAPLEY AXIOMS

Frequently Asked Questions

Clear answers to common questions about the Efficiency Property in Shapley Additive Explanations, covering its mathematical definition, practical implications, and relationship to other SHAP axioms.

The Efficiency Property is a fundamental Shapley axiom that guarantees the sum of all feature attributions for a given prediction exactly equals the difference between the model's output and the baseline value. Mathematically, if (\phi_i) represents the SHAP value for feature (i), then (\sum_{i=1}^{M} \phi_i = f(x) - \mathbb{E}[f(X)]). This ensures a complete, additive decomposition of the prediction with no unexplained residual. The property works by distributing the total prediction gap across all features according to their marginal contributions across all possible feature coalitions. For example, if a model predicts a house price of $450,000 and the baseline is $320,000, the SHAP values for square footage, bedrooms, location, and all other features will sum to exactly $130,000. This makes SHAP explanations locally accurate and fully accountable, which is critical for regulatory compliance and debugging.

AXIOM COMPARISON

Efficiency vs. Other Shapley Axioms

How the Efficiency property compares to the other core Shapley axioms in defining fair attribution.

AxiomEfficiencySymmetryDummy / MissingnessAdditivity

Core Requirement

Sum of attributions equals prediction difference from baseline

Identical contributions yield identical values

Zero contribution features get zero attribution

Combined game values equal sum of individual game values

Mathematical Form

∑ᵢ φᵢ = f(x) - E[f(X)]

If f(S∪{i}) = f(S∪{j}) ∀S, then φᵢ = φⱼ

If f(S∪{i}) = f(S) ∀S, then φᵢ = 0

φᵢ(v+w) = φᵢ(v) + φᵢ(w)

Primary Role

Ensures complete accountability

Ensures fairness across equals

Ensures no credit for non-contributors

Ensures consistency across models

Violation Consequence

Unexplained residual in prediction

Arbitrary bias between equivalent features

Non-zero attribution to absent features

Inconsistent explanations for ensemble models

SHAP Implementation

Enforced by design in all SHAP methods

Automatically satisfied by Shapley formula

Corresponds to Missingness property in SHAP

Enables SHAP to explain ensemble models

Audit Relevance

Critical for regulatory compliance

Important for fairness audits

Essential for feature selection validation

Useful for model comparison

Computational Verification

Sum SHAP values and compare to f(x)-baseline

Check attributions of swapped identical features

Verify zero attribution for constant features

Check SHAP of ensemble equals weighted sum of SHAPs

Interdependency

Depends on all other axioms for uniqueness

Works with Efficiency to prevent arbitrary splits

Works with Efficiency to anchor baseline

Works with Efficiency to handle model composition

Prasad Kumkar

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.