Generalized Functional ANOVA: A Complete Theoretical Framework
stat.ML, cs.LG, math.ST, stat.TH
Submitted: 2026-05-18
Updated: 2026-09-26
Code: https://github.com/shap/shap
License: http://creativecommons.org/licenses/by/4.0/
The gist: The functional ANOVA provides a fundamental representation of square-integrable multivariate functions into main effects and higher-order interactions.
Terminology
Abstract
The functional ANOVA provides a fundamental representation of square-integrable multivariate functions into main effects and higher-order interactions. For independent inputs, the components belong to mutually orthogonal Hilbert subspaces and admit an explicit representation. For dependent inputs, however, the components are only hierarchically orthogonal: although existence and uniqueness results are available, the Hilbert subspaces underlying the generalized decomposition have remained implicit. We resolve this representation problem for continuous inputs supported on a bounded hyperrectangle whose joint density is bounded above and away from zero. We introduce a distribution-adapted family of functions and prove that it forms a Riesz basis of the L squared space, thereby guaranteeing a unique, stable, and unconditionally convergent representation. We then show that, for every coalition of variables, the corresponding block of this basis exactly characterizes the Hilbert subspace containing the functional ANOVA component. Our construction recovers the classical orthogonal decomposition under input independence. As a direct consequence, computing the generalized functional ANOVA reduces to estimating coefficients in an explicit, distribution-adapted basis. Finally, as a proof of concept, we introduce an elementary, fast and model-agnostic estimator based on our theoretical results. Experiments on synthetic and real-world datasets illustrate its connections with established tabular explanation methods and show that low order components often capture most of the signal in the model output.
Sources
- NODE-GAM: Neural Generalized Additive Model for Interpretable Deep Learning
- Exact Functional ANOVA Decomposition for Categorical Inputs Models
- Statistical Aspects of SHAP: Functional ANOVA for Model Interpretation
- Adam: A Method for Stochastic Optimization
- Consistent Individualized Feature Attribution for Tree Ensembles
- InterpretML: A Unified Framework for Machine Learning Interpretability
- Neural Oblivious Decision Ensembles for Deep Learning on Tabular Data
- Reluctant Interaction Modeling
Related papers
- Behavior of prediction performance metrics with rare events
- Optimal Estimation of Generic Dynamics by Path-Dependent Neural Jump ODEs
- A Posterior-Dynamics Framework for Imaging Inverse Problems with Pretrained Diffusion Priors
- Efficient quadratic entropy with distance sketches
- Embedding-Bias in Conditional Independence Testing
- From Log-Odds to Shapley Values: An Explanatory Geometry for the Weighted Naive Bayes Classifier