Explaining Models under Multivariate Bernoulli Distribution via Hoeffding Decomposition

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

Abstract

Understanding the behavior of predictive models with random inputs can be achieved through functional decompositions into sub-models that capture interpretable effects of input groups. Building on recent advances in uncertainty quantification, the existence and uniqueness of a generalized Hoeffding decomposition have been established for correlated input variables, using oblique projections onto suitable functional subspaces. This work focuses on the case of Bernoulli inputs and provides a complete analytical characterization of the decomposition. We show that, in this discrete setting, the associated subspaces are one-dimensional and that the decomposition admits a closed-form representation. One of the main contributions of this study is to generalize the classical Fourier--Walsh--Hadamard decomposition for pseudo-Boolean functions to the correlated case, yielding an oblique version when the underlying distribution is not a product measure, and recovering the standard orthogonal form when independence holds. This explicit structure offers a fully interpretable framework, clarifying the contribution of each input combination and theoretically enabling model reverse engineering. From this formulation, explicit sensitivity measures—such as Sobol' indices and Shapley effects—can be directly derived. Numerical experiments illustrate the practical interest of the approach for decision-support problems involving binary features.

Introduction: Bridging Fourier Analysis and ANOVA

In theoretical computer science, Fourier analysis on the Boolean hypercube is the gold standard for understanding functions with binary inputs. However, it typically assumes a uniform probability measure, where every combination of zeros and ones is equally likely. In real-world machine learning, features are often highly correlated due to physical constraints or preprocessing like one-hot encoding. When standard Fourier analysis is applied to these non-uniform distributions, its mathematical foundations—specifically orthogonality—fail.

This research bridges the gap between Boolean Fourier analysis and Hoeffding Functional Decomposition (HFD) to create a framework for analyzing models trained on correlated binary data. By introducing "Scaled Parity Functions," the authors provide a computationally tractable way to decompose complex models into interpretable main effects and interactions, even under feature dependence.

Methodology: Scaled Parity Functions and Oblique Projections

The proposed generalization is based on the Hoeffding Functional Decomposition (HFD), also known as functional ANOVA. The approach centers on three pillars:

  1. Scaled Parity Functions ($\psi_S$): The core innovation involves modifying the classic Walsh-Hadamard basis by incorporating inverse probability weighting. Each function is scaled by the marginal probability of its input subset, ensuring the decomposition remains statistically grounded under feature dependence.
  2. Weighted Least Squares (WLS) Formulation: Instead of simple projections, the discovery of Fourier coefficients is framed as a regression problem, allowing the use of standard optimization tools.
  3. Regularization and Truncation: To manage the exponential growth of feature interactions, the model is restricted to low-order terms (e.g., main effects and pairwise interactions). For datasets with "non-full support" (where some bit combinations never occur), Elastic Net regularization is applied to ensure a sparse and stable decomposition.
Visualization of non-orthogonal basis functions under high correlation, necessitating oblique projections.

As shown in the figure above, when inputs are highly correlated, the basis functions $\psi_1$ and $\psi_2$ are no longer orthogonal. The decomposition must therefore rely on oblique projections onto these functional subspaces to maintain interpretability.

Experimental Evaluation

The framework was evaluated on six real-world datasets involving categorical or binary features with common dependencies, ranging from protein engineering (GB1, Entacmaea) to GPU performance (SGEMM) and classification tasks (Mushrooms, Chess endgames).

Key Insights and Results

A major theoretical contribution is the proof that standard Boolean Fourier analysis is a special case of HFD applied to a uniform product measure. This unification allows researchers to apply HFD's statistical rigor to the Boolean domain. Furthermore, the paper demonstrates that popular feature attribution methods like SHAP are essentially proxies for the measure-dependent low-order effects captured by this generalized Fourier expansion.

A non-uniform probability distribution on the 3D Boolean hypercube, where certain bit combinations (000 and 111) are significantly more likely.

The figure above illustrates a scenario where the distribution is concentrated on specific vertices, a common occurrence in correlated data that the proposed method is designed to handle.

Performance Highlights:

  • High Fidelity: Using only first- and second-order interactions, the authors achieved remarkably high reconstruction fidelity ($R^2_{Fourier}$). On the Mushrooms dataset, a first-order expansion perfectly reproduced model behavior ($R^2 = 1.00$).
  • Efficiency: Unlike local XAI methods that must be re-run for every data point, this decomposition is computed once globally. Local explanations can then be generated instantaneously through simple addition. Computation took only fractions of a second for most datasets.

Conclusion and Future Directions

While the current framework is highly effective for pseudo-Boolean functions, several avenues for future work remain. Extending the methodology to continuous features and identifying a "canonical" selection principle for cases with non-full support are primary goals. Additionally, while the "sparsity of effects" principle suggests high-order interactions are rare, some complex biological systems may require higher-order expansions, presenting a computational challenge for future optimization.

Summary updated

BibTeX
@misc{ferrere2025explaining,
  author = {Baptiste Ferrere and Nicolas Bousquet and Fabrice Gamboa and Jean-Michel Loubes and Joseph Muré},
  title = {{Explaining Models under Multivariate Bernoulli Distribution via Hoeffding Decomposition}},
  year = {2025},
  eprint = {2510.07088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.07088},
}
Figure