Purifying Interaction Effects with the Functional ANOVA: An Efficient Algorithm for Recovering Identifiable Additive Models

Benjamin Lengerich, Sarah Tan, Chun-Hao Chang, Giles Hooker, Rich Caruana
11/12/2019
stat.MLcs.AIcs.LG

Official code: interpretml/interpret (6,990 stars, C++, MIT, last commit 2026-04-29).

Abstract

Models which estimate main effects of individual variables alongside interaction effects have an identifiability challenge: effects can be freely moved between main effects and interaction effects without changing the model prediction. This is a critical problem for interpretability because it permits "contradictory" models to represent the same function.

Show full abstract

To solve this problem, we propose pure interaction effects: variance in the outcome which cannot be represented by any smaller subset of features. This definition has an equivalence with the Functional ANOVA decomposition. To compute this decomposition, we present a fast, exact algorithm that transforms any piecewise-constant function (such as a tree-based model) into a purified, canonical representation. We apply this algorithm to Generalized Additive Models with interactions trained on several datasets and show large disparity, including contradictions, between the effects before and after purification. These results underscore the need to specify data distributions and ensure identifiability before interpreting model parameters.

View on arXivView PDF

Code Implementations(1)

MIT

Fit interpretable models. Explain blackbox machine learning.

6,990801C++, PythonMay 3, 20197 months agoMIT
aiartificial-intelligencebiasblackboxdifferential-privacy+14 more

Similar Papers

Cite this paper

@article{lengerich2019purifying,
  title  = {Purifying Interaction Effects with the Functional ANOVA: An Efficient Algorithm for Recovering Identifiable Additive Models},
  author = {Benjamin Lengerich and Sarah Tan and Chun-Hao Chang and Giles Hooker and Rich Caruana},
  year   = {2019},
  eprint = {1911.04974},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.04974}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.04974.svg)](https://codeofpaper.com/paper/1911.04974)

Discussion