When a complex machine learning model makes a high-stakes prediction—such as calculating a patient's risk of post-operative complications or diagnosing a disease—it often operates as a "black box." We see the final output, but the underlying rationale remains hidden.
To trust these models in clinical and industrial settings, we need to understand why a specific prediction was made. Additive feature attribution solves this by breaking down a model's output into a sum of scores, where each score represents the localized contribution of an individual input feature.
Instead of asking how important a feature is across an entire dataset, additive attribution explains a single, specific prediction by treating the model's output as a baseline value modified by a series of feature-level pushes and pulls.
The Core Intuition: Pushing Away from the Baseline
Imagine a model that predicts the risk of neonatal feeding intolerance. On average, any newborn in the hospital might have a baseline risk of 10%. However, for a specific preterm infant, the model predicts a 45% risk.
Where did that extra 35% risk come from?
Additive feature attribution methods decompose that 35% difference into explicit, human-readable components. For instance:
- Delayed first feeding might add $+20\%$
- History of resuscitation might add $+15\%$
- High gestational age might subtract $-5\%$
When you sum these individual contributions ($20 + 15 - 5 = 35$), you exactly reconstruct the model's deviation from the baseline.
Mathematically, for a model prediction $f(x)$, an additive explanation model $g(x')$ takes the form:
$$g(x') = \phi_0 + \sum_{i=1}^{M} \phi_i x'_i$$
where $\phi_0$ is the baseline (the expected model outcome without any feature information), and $\phi_i$ is the attribution value for feature $i$. As highlighted by Angela Lombardi et al. in A robust framework to investigate the reliability and stability of explainable artificial intelligence markers of Mild Cognitive Impairment and Alzheimer's Disease, this game-theoretic formulation guarantees that the sum of feature contributions strictly equals the difference between the local prediction and the average prediction.
Resolving Feature Interactions via Shapley Values
The primary challenge in assigning credit to individual features is interaction. Features rarely act in isolation. For example, a high body mass index (BMI) and a history of smoking might jointly amplify a patient's risk of avascular necrosis far more than the simple sum of their individual risks. If we evaluate a feature's impact simply by removing it from the model, we risk miscalculating its true importance due to these non-linear dependencies.
To distribute credit fairly, researchers look to cooperative game theory, specifically Shapley values. In this framework:
- The features of an instance are treated as "players" in a game.
- The model's prediction is the "payout" of the game.
- To find the true contribution of a single feature, we measure its marginal impact across all possible combinations (or coalitions) of other features.
By averaging a feature's marginal contribution across every possible subset of features, Shapley values satisfy crucial axioms of fairness. For instance, if two features contribute equally to every possible coalition, their attributions are identical (Symmetry). If a feature adds no value to any coalition, its attribution is zero (Dummy).
This rigorous approach allows frameworks like SHAP (SHapley Additive exPlanations) to provide local explanations that practitioners can trust. For example, Xingwang Peng et al. integrated this framework in Construction and SHAP interpretability analysis of a risk prediction model for feeding intolerance in preterm newborns based on machine learning to isolate specific physiological triggers behind opaque risk scores, turning black-box predictions into actionable clinical insights.
Making Attribution Efficient: Path-Based Decompositions
While Shapley values offer an elegant mathematical solution, calculating them exactly is computationally expensive. Because you must evaluate a feature's impact across every possible subset of features, the computational complexity scales exponentially ($2^M$) with the number of features $M$.
For tree-based models like Random Forests and XGBoost, researchers bypass this bottleneck by leveraging the internal structure of the model itself. Instead of simulating random coalitions of features, we can trace the exact path an individual data point takes down each decision tree.
At each node split in a decision tree, a specific feature is chosen to divide the data, which alters the expected value or reduces the impurity of the remaining samples. By summing these local impurity decreases or expected value shifts along the specific path an instance travels, we can compute local attributions highly efficiently.
[ Root: All Patients ] (Expected Risk: 10%)
|
Is Smoker? == Yes (Risk shifts to 25%; Smoking Attribution: +15%)
|
BMI > 30? == Yes (Risk shifts to 45%; BMI Attribution: +20%)
|
[ Final Prediction: 45% ]
In From global to local MDI variable importances for random forests and when they are Shapley values, Antonio Sutera et al. established the theoretical bridge showing how these path-based tree decompositions reuse statistics calculated during training, providing a computationally efficient local explanation that can, under specific conditions, directly equate to Shapley values. This enables real-time local attribution even within massive ensembles.
From Local Justifications to Global Insights
While additive feature attribution is fundamentally a local interpretability tool designed to explain individual instances, it also serves as a powerful diagnostic tool when aggregated across an entire population.
By calculating local attributions for thousands of instances, researchers can construct global profiles of model behavior. As Thanveer Shaik et al. explain in Towards Transparent Deep Learning in Medicine: Feature Contribution and Attention Mechanism-Based Explainability, separating global population-level trends from patient-specific justifications allows developers to audit models for systemic biases while giving clinicians granular transparency for individual decisions.
This dual capability enables two critical practices:
1. Uncovering Hidden Proxies
A model may achieve high accuracy by relying on confounding variables rather than true causal factors. Joshua S. Speagle et al. demonstrated this in Disentangling Stellar Age Estimates from Galactic Chemodynamical Evolution, using additive attribution values to discover that a predictive model was "proxying" stellar ages through external chemical trends rather than intrinsic physical signatures, preventing flawed scientific conclusions.
2. Patient-Specific Risk Stratification
In clinical settings, two patients might receive the exact same high-risk score for entirely different biological reasons. Single-author researcher Yan Zhang demonstrated this utility in Development and validation of a machine learning-based model to predict the risk of hospitalization death in hospitalized patients with AECOPD, showing that additive frameworks allow clinicians to decompose identical risk scores into individual risk factors. One patient's risk might be driven by inflammatory markers, while another's is driven by cardiac dimensions, allowing for personalized therapeutic interventions.
By shifting the interpretability paradigm from "how does the model work overall?" to "how did each feature contribute to this specific outcome?", additive feature attribution provides the mathematical precision and intuitive clarity required to safely deploy machine learning in the real world.
Key Foundational Work
Learning Multi-Way Relations via Tensor Decomposition With Neural Networks (2018) — contributed 1 concept elements to this direction.
The Automatic Statistician (2019) — contributed 1 concept elements to this direction.