Abstract: Existing methods of explainable AI and interpretable ML cannot explain change in the values of an output variable for a statistical unit in terms of the change in the input values and the change in the "mechanism" (the function transforming input to output). We propose two methods based on counterfactuals for explaining unit-level changes at various input granularities using the concept of Shapley values from game theory. These methods satisfy two key axioms desirable for any unit-level change attribution method. Through simulations, we study the reliability and the scalability of the proposed methods. We get sensible results from a case study on identifying the drivers of the change in the earnings for individuals in the US.
Introduction
Most Explainable AI (XAI) tools, such as SHAP or LIME, are designed to explain a single prediction in isolation. They typically answer: "Why did the model produce this specific output for this individual right now?" These methods usually compare an individual to a static "background" average, assuming the underlying model—the mechanism—is fixed.
However, real-world scenarios are rarely static. Consider a credit score that increases significantly over a year. Is this improvement due to the individual paying off debts (an input change), or because the financial institution updated its scoring algorithm to be more lenient (a mechanism change)? Current XAI methods struggle to differentiate between these two drivers because they do not account for model evolution. This paper introduces a framework for "root cause analysis" of unit-level changes when both data and models are moving targets.
Methodology
The authors propose two primary methods rooted in Shapley values, a concept from cooperative game theory used to fairly distribute a "payout" (the change in output) among "players" (the potential causes).
- COARSE-ATTRIB: This method treats the entire input vector ($x$) and the mechanism ($f$) as the two primary players. It uses counterfactual logic to determine attribution by asking what the output would be if inputs remained constant while the model changed, and vice versa. The final attribution is the average of these scenarios.
- FINE-ATTRIB: This provides a more granular breakdown by treating the mechanism and each individual input variable (e.g., age, income, education) as separate players.
These methods adhere to two critical axioms: the Dummy Axiom, which ensures a factor that remains unchanged receives zero credit, and the Completeness Axiom, which requires the sum of all attributions to exactly equal the total observed change in output.
Reliability and Scalability
The researchers evaluated these methods using simulated datasets with both linear and complex polynomial models. While calculating exact Shapley values is computationally expensive ($O(2^d)$), the study demonstrates that sampling approximations allow the method to scale effectively.
As shown in the simulation results, the methods are highly reliable for linear models. For non-linear models, while variance increases, the results remain consistent and sensible. Crucially, the sampling approach allows for accurate attribution even as the number of variables grows to 30 or more, making it practical for real-world datasets.
Case Study: Drivers of US Wage Changes
To test the framework on real-world data, the authors analyzed the Panel Study of Income Dynamics (PSID), comparing earnings between 1976 and 1982 for 595 household heads. This period was marked by significant economic transition in the United States.
The analysis revealed that approximately 76% of the wage increase during this period was attributable to mechanism change. This reflects the macro-economic shift from a manufacturing-based economy to a service-based one, where the "rules" governing how experience and occupation translated into wages were fundamentally rewritten. Among input changes, "years of experience" was the primary driver. Notably, the model correctly assigned 0% attribution to "education" for individuals whose education level remained static, validating the mathematical rigor of the approach.
Conclusion and Future Work
This framework provides a rigorous way to distinguish between behavioral changes and systemic shifts. However, limitations remain. The computational cost for models with hundreds of features necessitates heavy reliance on sampling. Additionally, "destructive changes"—where a model coefficient and an input both flip signs, resulting in no net output change—can lead to zero attribution for both, a paradox that warrants further investigation. Future work will focus on extending these methods to stochastic or probabilistic systems.
Summary updated