Exactly Computing do-Shapley Values
Abstract
Lay Summary
Understanding cause and effect is central to science: a doctor wants to know whether a drug caused a patient to improve, an economist whether a policy caused unemployment to fall. Researchers capture these relationships in mathematical models, and then try to fairly assign credit to each contributing factor — for example, how much a patient's medication versus their diet mattered for recovery. A well-established way to assign this credit fairly is borrowed from game theory, but it has a serious drawback: it requires testing every possible combination of factors, and the number of combinations doubles with each factor added. For models with many factors, this quickly becomes impossible to compute. We noticed that many of these combinations are secretly identical. Because of how causes and effects are wired together, changing certain factors often makes no difference once others are already accounted for. We developed a method that recognizes these equivalent combinations and groups them, so the expensive calculation is done only once per group rather than once per combination. When the full calculation is still too costly, we provide a fast approximation that spends its limited budget wisely. This makes explaining cause and effect dramatically faster, helping researchers draw trustworthy conclusions from complex models.