Inferensys

Glossary

SAGE (Shapley Additive Global importancE)

SAGE (Shapley Additive Global importancE) is a model-agnostic method that applies Shapley values to quantify the global importance of each feature by measuring the predictive power it contributes when included in a model, accounting for complex feature interactions.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
GLOBAL FEATURE IMPORTANCE

What is SAGE (Shapley Additive Global importancE)?

SAGE is a model-agnostic method that applies Shapley values to quantify the global importance of each feature by measuring the predictive power it contributes when included in a model, accounting for complex feature interactions.

SAGE (Shapley Additive Global importancE) is a game-theoretic framework that quantifies the global importance of features by applying Shapley values to the predictive power they contribute. Unlike local methods that explain individual predictions, SAGE evaluates how much each feature improves overall model performance when included, accounting for complex interactions where features may be redundant or complementary. It decomposes the model's total predictive power into additive feature contributions.

SAGE addresses a critical limitation of permutation feature importance by properly handling feature correlations through conditional sampling rather than marginal perturbation. By framing feature importance as a cooperative game where features form coalitions, SAGE satisfies axioms of fairness including symmetry, dummy, and additivity. This makes it a rigorous tool for model transparency documentation and algorithmic impact assessments, providing auditors with a mathematically sound global explanation of which features drive model behavior.

GLOBAL FEATURE IMPORTANCE

Key Properties of SAGE

SAGE (Shapley Additive Global importancE) quantifies the contribution of each feature to a model's overall predictive performance by applying Shapley values globally, accounting for complex interactions.

01

Global Importance Quantification

Unlike local methods like SHAP, SAGE provides a single importance score per feature for the entire model. It measures how much each feature contributes to the model's expected predictive performance, such as R-squared or cross-entropy loss, over the whole dataset. This allows for direct comparison of feature value across the entire modeling process.

02

Game-Theoretic Foundation

SAGE applies Shapley values from cooperative game theory to the global explanation problem. Each feature is treated as a player in a coalition, and its value is the average marginal increase in model performance when it joins all possible subsets of other features. This ensures a fair, axiomatically justified distribution of credit.

03

Interaction-Aware Accounting

SAGE correctly handles complex feature interactions by evaluating features in the context of all possible subsets. If two features provide redundant information, SAGE splits the credit between them. If a feature is only useful in the presence of another (a synergistic interaction), SAGE accurately reflects this dependency in its global importance scores.

04

SAGE vs. Permutation Importance

While Permutation Feature Importance breaks correlations by shuffling one feature at a time, SAGE removes a feature by marginalizing it out using the conditional distribution. This makes SAGE more robust to correlated features and provides a theoretically sound measure of importance that avoids extrapolation into unrealistic data regions.

05

Loss-Based Evaluation

SAGE defines importance based on a loss function, not just prediction variance. A feature is important if including it reduces the model's expected loss (e.g., mean squared error or log loss). This directly ties feature importance to the business metric the model is optimizing, making it highly relevant for model selection and debugging.

06

Computational Approximation

Exact SAGE calculation requires retraining the model on all 2^p feature subsets, which is computationally infeasible. Practical implementations use sampling-based approximations, iteratively sampling random subsets of features and observing the change in model performance when a target feature is included versus excluded.

GLOBAL FEATURE IMPORTANCE COMPARISON

SAGE vs. SHAP vs. Permutation Feature Importance

Comparing three methods for quantifying global feature importance: SAGE accounts for complex interactions using Shapley values, SHAP aggregates local explanations, and Permutation Importance measures error increase after feature shuffling.

CapabilitySAGESHAPPermutation Importance

Scope of explanation

Global only

Local and global

Global only

Handles feature interactions

Accounts for feature correlations

Requires model retraining

Model-agnostic

Theoretical foundation

Shapley values (game theory)

Shapley values (game theory)

Heuristic (error perturbation)

Computational cost

High (requires marginalization)

Moderate to high

Low

Sensitive to feature scale

SAGE EXPLAINED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Shapley Additive Global importancE, a method for quantifying global feature importance by accounting for complex interactions.

SAGE (Shapley Additive Global importancE) is a model-agnostic method that applies Shapley values to quantify the global importance of each feature by measuring the predictive power it contributes when included in a model, accounting for complex feature interactions. Unlike local explanation methods that explain a single prediction, SAGE evaluates features across an entire dataset. It works by framing the model's performance metric (e.g., for regression or cross-entropy loss for classification) as a cooperative game where features are players. SAGE computes the Shapley value for each feature—the average marginal contribution of that feature to the model's performance across all possible subsets of features. This requires iteratively retraining or re-evaluating the model on different feature subsets, making it computationally intensive but theoretically sound. The result is a decomposition of the model's total predictive power into additive feature contributions, where the sum of all SAGE values equals the difference between the model's performance and a baseline model with no features.

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.