Bayesian Neural Networks for Functional ANOVA Model

Seokhun Park, Choeun Kim, Jihu Lee, Yunseop Shin, Insung Kong, Yongdai Kim

TL;DR

Bayesian-TPNN is a novel framework that automatically decomposes complex, high-dimensional functions into interpretable variable interactions (Functional ANOVA). By treating the model architecture itself as a learnable parameter through a specialized MCMC algorithm, it discovers high-order interactions that previous neural models found computationally impossible to reach.

The Challenge of "Explainable AI" in High Dimensions

In the quest for interpretable machine learning, researchers often turn to Functional ANOVA (fANOVA). This technique breaks a complex function $f(x)$ into a sum of simpler, understandable parts: main effects (individual variables), second-order interactions (pairs), and so on.

While recent "Neural" fANOVA models (like ANOVA-TPNN) have shown promise, they suffer from a severe "combinatorial explosion." To find interactions, you typically have to specify which ones to look for in advance. If you have 100 variables, there are nearly 4,000 possible pairs, but over 160,000 triplets. Pre-specifying and training neural networks for every possible high-order interaction is computationally and memory-prohibitive. Consequently, most existing models limit themselves to 1st or 2nd-order interactions, potentially missing the "true" complex logic of the data.

Introducing Bayesian-TPNN

To overcome these limitations, the authors introduce Bayesian-TPNN, shifting the problem from static optimization to dynamic Bayesian inference.

TPNN Architecture

The methodology relies on several key innovations:

  1. Basis Functions: The model uses Tensor Product Neural Networks (TPNN). These networks are specifically structured to satisfy a "sum-to-zero" constraint, which is mathematically required to ensure the fANOVA decomposition is unique and identifiable.
  2. Architecture as a Parameter: Instead of fixing which variables interact beforehand, the model treats the number of hidden nodes ($K$) and the specific set of input variables for each node ($S_k$) as random variables.
  3. Stepwise MCMC: To explore the massive space of possible architectures, the authors developed a custom Markov Chain Monte Carlo (MCMC) algorithm. A key innovation is the "Stepwise" move: the algorithm can "grow" an interaction by copying an existing important node and adding one more variable to it. This allows the model to efficiently "climb" from simple effects to complex high-order interactions.
  4. Informed Proposals: The search is guided by a pre-trained importance distribution ($p_{input}$), often derived from SHAP values or XGBoost, focusing the MCMC on promising variable groups.
  5. Theoretical Guarantee: The paper provides a proof of posterior consistency, meaning that as you gather more data, the model is guaranteed to converge to the true underlying function and its individual components.

Key Insights and Performance

The model was evaluated across a diverse range of benchmarks, including tabular regression/classification, image datasets (using Concept Bottlenecks), genomic data, and synthetic functions.

  • Automatic Discovery: Unlike frequentist versions, Bayesian-TPNN doesn't need to be told to look for a 4th-order interaction. If the signal is there, the MCMC will eventually "propose" it and keep it if it improves the likelihood.
  • Interpretability vs. Performance: Usually, there is a trade-off between how explainable a model is and how well it performs. However, by capturing high-order interactions, this interpretable model often matches or beats black-box models like XGBoost or standard Deep Neural Networks.
  • Stability: Because of the TPNN structure and Bayesian averaging, the estimated components are more stable across different data folds compared to standard Neural Additive Models (NAMs).

Standout Results

  • Superior Interaction Detection: On the Madelon dataset—a high-dimensional benchmark specifically designed to test feature selection—Bayesian-TPNN identified a 4th-order interaction as the most important component. Frequentist models limited to 2nd-order interactions performed significantly worse (AUROC of 0.854 vs 0.587).
Top Ranked Components
  • Uncertainty Quantification: The model provides better-calibrated uncertainty estimates (lower Expected Calibration Error) than black-box Bayesian methods like mBNN or Deep Ensembles.
  • Scalability: In a massive genomic experiment with over 54,000 features, Bayesian-TPNN was the only neural ANOVA model capable of running. Competing models crashed due to memory constraints when trying to instantiate networks for all possible interactions.

Limitations and Future Work

While powerful, Bayesian-TPNN has a few limitations. The efficiency of the search heavily depends on a good initial guess for variable importance ($p_{input}$). While the model can recover from a poor prior, it takes longer to converge. Additionally, MCMC is inherently slower than standard backpropagation; a single run can take several minutes compared to seconds for a simple XGBoost model.

Future work may focus on "online" updating of the variable importance distribution during the MCMC process, potentially removing the need for a pre-trained importance model entirely.

Summary updated

BibTeX
@inproceedings{park2026bayesian,
  author = {Seokhun Park and Choeun Kim and Jihu Lee and Yunseop Shin and Insung Kong and Yongdai Kim},
  title = {{Bayesian Neural Networks for Functional ANOVA Model}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=cvZhXILRLI},
}
Figure