Exact Functional ANOVA Decomposition for Categorical Inputs Models

Baptiste Ferrere, Nicolas Bousquet, Gamboa Fabrice, Jean-Michel Loubes, Joseph Muré

International Conference on Machine Learning 2026 · Oral

Overview

This talk explores explainable AI (XAI), focusing on the mathematical underpinnings of model interpretability through the lens of Functional ANOVA (Analysis of Variance). As machine learning models scale in complexity, understanding how individual features and feature coalitions drive specific predictions remains a central challenge in the systems and ML communities. Rather than inspecting internal model architectures layer by layer, this work treats machine learning models as black-box functions mapping inputs from $\mathbb{R}^D$ to $\mathbb{R}$, seeking to decompose their outputs into interpretable components such as main effects and high-order interactions.

Watch on SlidesLive

Visual summary for Exact Functional ANOVA Decomposition for Categorical Inputs Models by Baptiste Ferrere, Nicolas Bousquet, Gamboa Fabrice, Jean-Michel Loubes, Joseph Muré
Visual summary for Exact Functional ANOVA Decomposition for Categorical Inputs Models by Baptiste Ferrere, Nicolas Bousquet, Gamboa Fabrice, Jean-Michel Loubes, Joseph Muré

Key moments

  1. 0:00 Introduction to explainable AI and black-box models
  2. 2:00 Additive explanations and Functional ANOVA decomposition
  3. 4:00 Challenges with non-independent data in the categorical setting
  4. 6:00 The inverse likelihood mechanism and its theoretical properties
  5. 8:00 Visual examples on binarized MNIST and poker datasets
  6. 10:00 Q&A and discussion on extending to the continuous case

Exact Functional ANOVA Decomposition for Categorical Inputs Models

Speakers: Baptiste Ferrere; Nicolas Bousquet; Gamboa Fabrice; Jean-Michel Loubes; Joseph Muré

Conference: ICML

YouTube: https://slideslive.com/39083593

Overview

This talk explores explainable AI (XAI), focusing on the mathematical underpinnings of model interpretability through the lens of Functional ANOVA (Analysis of Variance). As machine learning models scale in complexity, understanding how individual features and feature coalitions drive specific predictions remains a central challenge in the systems and ML communities. Rather than inspecting internal model architectures layer by layer, this work treats machine learning models as black-box functions mapping inputs from $\mathbb{R}^D$ to $\mathbb{R}$, seeking to decompose their outputs into interpretable components such as main effects and high-order interactions.

A persistent bottleneck in classical XAI is the assumption that input data features are mutually independent and follow a product probability measure. In real-world deployments, data distributions feature complex correlations. This talk introduces an inverse likelihood mechanism that achieves exact Functional ANOVA decomposition for categorical inputs under non-product, correlated probability measures. The resulting framework unifies several classical decomposition tools—including the Möbius transform of conditional expectations, the Fourier-Walsh-Hadamard basis, and Boolean analysis—while resolving longstanding formulation problems first posed by Hooker in 2007.

Background

▶ Watch: Introduction to explainable AI and black-box models (0:00)

In the broader machine learning and systems literature, additive explanation methods are ubiquitous. Frameworks like LIME, SHAP, and DeepLIFT attempt to attribute model predictions to individual input features. Concurrently, structured white-box models such as Generalized Additive Models (GAMs), Neural Additive Models (NAMs), and Explainable Boosting Machines (EBMs) enforce additive structures by design to guarantee transparency and auditability.

Underneath these methods lies Functional ANOVA, a representation theorem stating that any well-behaved function $F$ can be uniquely decomposed into a sum of constant terms, univariate main effects, bivariate interaction terms, and higher-order interactions.

In the idealized case where input data follows an independent product probability measure, closed-form formulations for Functional ANOVA components can be derived using the Möbius transform of conditional expectations. Furthermore, these components form an orthogonal decomposition in the $L^2$ space, making them straightforward to approximate using kernels or orthogonal bases.

However, assuming feature independence fails in practical deployments where data distributions $P$ exhibit strong correlations and dependencies. When $P$ is not a product measure, computing unique and orthogonal functional components becomes mathematically intractable using classical tools. This creates a severe gap in explainability pipelines: traditional methods either ignore feature correlations (leading to misleading attributions) or lack rigorous theoretical guarantees when applied to dependent categorical inputs.

Key Findings

▶ Watch: Challenges with non-independent data in the categorical setting (4:00)

The primary contribution of this work is the formulation of an exact Functional ANOVA decomposition tailored specifically for categorical inputs under arbitrary, non-product probability distributions $P$.

  • Exact Closed-Form Representation: By employing a specialized sign function combined with an inverse likelihood adjustment, the authors construct a functional basis that spans the $L^2$ space of categorical functions and yields a quasi-closed-form formulation of the ANOVA components.
  • Uniqueness via Support Constraints: The decomposition is proved to be unique if and only if the support of the categorical data distribution is full. Lacks in support introduce geometric constraints that allow multiple valid representations, matching fundamental limitations in the literature.
  • Generalization of Prior Frameworks: Under product distributions, the proposed basis automatically collapses into orthogonal sets, recovering classical conditional expectation decompositions via the Möbius transform. When specialized to independent and identically distributed (IID) Bernoulli variables with parameter $1/2$ (the uniform hypercube), the basis reduces directly to the Fourier-Walsh-Hadamard transform used in Boolean analysis.
  • Resolution of Hooker's Problem: The framework successfully solves the generalized Functional ANOVA problem originally formulated by Hooker in 2007, properly separating feature interactions from underlying data correlations.

Technical Deep Dive

▶ Watch: The inverse likelihood mechanism and its theoretical properties (6:00)

The technical core of the presentation centers on what the authors term the inverse likelihood mechanism. Given a machine learning model viewed as a black-box function $F: \mathcal{X} \to \mathbb{R}$ over categorical inputs, standard additive decomposition techniques break down when the input distribution $P$ is not a product measure.

To overcome this, the authors define a family of functions utilizing a well-suited sign function taking values in $\{-1, 0, 1\}$, scaled inversely by the data likelihood $P(X)$. This construction maintains hierarchical separation between main effects and interaction terms even in the presence of strong feature correlations.

For any subset of features $A \subseteq \{1, \dots, D\}$, the component $FA(X_A)$ is extracted using this inverse likelihood basis. Formally, let the data space consist of categorical inputs. The inverse likelihood weighting mechanism acts as a corrective measure over the non-product probability space, re-weighting the basis functions to maintain orthogonality properties specifically when the distribution is product, while remaining well-defined for correlated distributions.

The authors establish that this family of functions spans the entire $L^2$ space of categorical functions. The uniqueness theorem dictates that full support of the distribution $P$ is both a necessary and sufficient condition; if the support is restricted or sparse, identifiability issues arise due to unobserved feature combinations.

Experimental Setup & Results

▶ Watch: Visual examples on binarized MNIST and poker datasets (8:00)

To demonstrate the practical utility of the inverse likelihood decomposition, the authors evaluate the framework on high-dimensional categorical and binarized datasets using both convolutional and transformer architectures.

  • Binarized MNIST: The authors evaluate a neural network trained to classify binarized $28 \times 28$ image inputs (dimension $D = 784$) as the digit three versus other digits. Qualitative evaluation of the reconstructed model outputs reveals that pixels overlapping with the core visual structure of a three positively drive the classification probability, whereas peripheral background regions suppress it. This confirms that the framework scales to high-dimensional inputs ($784$ dimensions) without collapsing computationally.
  • Poker Hands Transformer: The framework is applied to a transformer architecture trained on the poker hands dataset. By computing feature importance scores for card ranks versus suits, the method quantitatively demonstrates that feature ranks carry significantly higher predictive importance than suits—aligning precisely with established domain knowledge in poker. This attribution is contrasted favorably against standard attention rollout baselines.

No formal hardware specifications, training runtimes, or quantitative error benchmarks were reported in this theoretical presentation, as the focus remained on exact mathematical decomposition and qualitative interpretability verification.

Practical Implications

▶ Watch: Q&A and discussion on extending to the continuous case (10:00)

For machine learning practitioners, infrastructure teams, and model deployers, this work bridges a critical gap between theoretical XAI and real-world data distributions.

  • Handling Correlated Features: Most mainstream attribution methods (such as standard SHAP variants) struggle or make unrealistic independence assumptions when features are heavily correlated. By explicitly accommodating non-product probability measures, this framework prevents attribution errors caused by confounding feature correlations.
  • Auditability and Compliance: In regulated domains (e.g., finance, healthcare), deploying complex black-box models requires rigorous auditing. The exact functional ANOVA guarantees that feature attributions accurately reflect the model's true functional dependency rather than artifacts of sampling approximations.
  • Tradeoffs and Limitations: The primary limitation highlighted in the analysis is the requirement for full support in the categorical data distribution. If the empirical distribution lacks samples for certain feature combinations, the uniqueness of the decomposition is lost. Furthermore, while the categorical case is fully resolved, extending these exact guarantees to continuous input spaces requires distinct mathematical machinery (such as orthonormal bases like Fourier or Legendre polynomials divided by continuous densities, as noted in the speaker's subsequent work).

Key Takeaways

  • Exact Non-Product Decomposition: The proposed inverse likelihood mechanism solves Functional ANOVA decomposition for categorical inputs under arbitrary, correlated probability distributions.
  • Uniqueness Condition: The resulting decomposition is mathematically unique if and only if the underlying data distribution possesses full support.
  • Unification of Classical Tools: When data distributions become independent, the framework seamlessly recovers classical orthogonal ANOVA via the Möbius transform and reduces to the Fourier-Walsh-Hadamard basis on the uniform hypercube.
  • Resolving Hooker's Problem: The method successfully resolves the generalized Functional ANOVA problem formulated by Hooker in 2007, properly decoupling interaction effects from data correlations.
  • Empirical Scalability: Qualitative evaluations on binarized MNIST ($D = 784$) and transformer-based poker hand classifiers demonstrate that the framework scales effectively to high-dimensional models and recovers domain-specific feature importance.

About the Speaker(s)

  • Baptiste Ferrere: Speaker introducing the paper on Exact Functional ANOVA Decomposition for Categorical Inputs Models.
  • Nicolas Bousquet: PhD advisor to Baptiste Ferrere on this research project.
  • Gamboa Fabrice: PhD advisor to Baptiste Ferrere on this research project.
  • Jean-Michel Loubes: PhD advisor to Baptiste Ferrere on this research project.
  • Joseph Muré: PhD advisor to Baptiste Ferrere on this research project.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026