Bayesian Neural Networks for Functional ANOVA model

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

TL;DR

This paper introduces Bayesian-TPNN, a novel Bayesian neural network framework designed to break down complex, high-dimensional functions into interpretable low-dimensional components using functional ANOVA. By treating the network architecture itself as a learnable parameter and exploring it via a specialized Markov Chain Monte Carlo (MCMC) algorithm, the model efficiently detects important higher-order feature interactions without the exponential computational and memory costs that plague existing methods.

What Problem Does This Paper Address?

As machine learning models grow more complex, the demand for inherent interpretability has skyrocketed. One principled way to achieve this is through functional ANOVA decomposition, which breaks a high-dimensional function into a sum of simpler, low-dimensional components (e.g., main effects of single variables, plus two-way or higher-way interactions).

Recently, Tensor Product Neural Networks (TPNNs) were introduced to model these components under strict uniqueness constraints. However, existing frequentist approaches (like ANOVA-TPNN) require researchers to specify all interaction components in advance. If your input data has many features, the number of potential interactions grows exponentially. As a result, practitioners are usually forced to limit their models to 1D or 2D components, missing crucial higher-order interactions and sacrificing predictive accuracy.

Methods

The authors propose Bayesian-TPNN, which reframes the functional ANOVA problem in a Bayesian setting. Instead of pre-defining which feature interactions to model, the network architecture itself is treated as a random variable to be learned.

Input (x) --------> Sparse Active Edges --------> TPNN Hidden Nodes (ϕ) --------> Weighted Sum (β) --------> Output
Figure 1: Bayesian-TPNN with p = 4 and K = 5.

Key innovations include:

  1. Hierarchical Priors for Sparsity: The model places a prior on the number of hidden nodes ($K$) to enforce node-sparsity, and a mixture prior on the input variable sets ($S_k$) to enforce edge-sparsity (inspired by Bayesian CART).
  2. Stepwise MCMC Search: To explore the massive space of possible network architectures, the authors developed a custom Metropolis-Hastings algorithm. Instead of jumping randomly, it uses a stepwise search that grows the architecture by copying an existing node and adding a single new edge (interaction), preventing dramatic drops in model accuracy during exploration.
  3. Informed Proposals ($p_{input}$): To avoid searching blindly in high-dimensional spaces, the MCMC algorithm leverages a pretrained model (like XGBoost or a standard DNN) to calculate initial feature importances (e.g., via SHAP values), guiding the sampler toward promising higher-order interactions.
  4. Langevin Dynamics: Continuous parameters (weights and biases) are updated efficiently using Langevin proposals to accelerate MCMC convergence.

The authors also provide a rigorous theoretical contribution, proving the mathematical posterior consistency of both the overall prediction model and its individual decomposed components.

Datasets

The model was evaluated across a diverse set of benchmarks:

  • Real Tabular Datasets: Abalone, Boston Housing, Auto MPG, Servo, FICO, Breast Cancer, Churn, and Madelon (a high-dimensional challenge with 500 features).
  • Genomic Dataset: GSE43358, an extremely high-dimensional gene expression dataset ($n = 57, p = 54,675$).
  • Image Datasets (via Concept Bottleneck Models): CelebA-HQ and CatDog, where images are first mapped to high-level concepts before predicting the final label.
  • Synthetic Datasets: Custom-generated functions ($f^{(1)}, f^{(2)}, f^{(3)}$) with 50 input dimensions to explicitly test higher-order interaction detection.

Key Insights and Ideas

  • Architecture as a Parameter: Moving from a fixed network structure to a dynamically sampled graph allows the model to automatically scale up to higher-order interactions only where the data demands it.
  • The "Aha" of Stepwise Copying: When proposing a higher-order interaction, copying an existing well-performing node and adding one variable ensures that the model retains its current predictive power while gracefully testing more complex relationships.
  • Data-Driven MCMC Guidance: Purely non-informative uniform priors perform poorly in high dimensions. Using a fast, pretrained black-box model (like XGBoost) to seed the MCMC variable selection probabilities bridges the gap between black-box performance and glass-box interpretability.

Key Results

Bayesian-TPNN achieves a rare trifecta in machine learning: strong predictive performance, excellent uncertainty quantification, and clear interpretability.

  • Prediction Accuracy: It performs comparably to or better than state-of-the-art interpretable models (like NAM and ANOVA-TPNN) and black-box models (like XGBoost and BART) across multiple real-world datasets. The averaged prediction accuracies (and standard errors) across real-world datasets show Bayesian-TPNN competing strongly with black-box alternatives.
Table 1: The averaged prediction accuracies (the standard errors) on real datasets.
  • Uncertainty Quantification: Bayesian-TPNN delivers highly calibrated uncertainty estimates, outperforming black-box Bayesian models like BART and mBNN on metrics like Continuous Ranked Probability Score (CRPS) and Negative Log-Likelihood (NLL). Comparison of uncertainty quantification metrics on real datasets.
Table 2: Comparison of Bayesian models in view of uncertainty quantification on real datasets.
  • Component Selection: On synthetic datasets containing 3rd-order interactions, Bayesian-TPNN successfully identified the true signal components with high AUROC, whereas baseline models like ANOVA-$T^2$PNN and $\text{NA}^2\text{M}$ completely missed them because they were restricted to 2nd-order interactions due to memory limits. AUROC scores for component selection on synthetic datasets show Bayesian-TPNN's unique ability to capture 3rd-order interactions.
Table 3: Performance of component selection on synthetic datasets.

Limitations and Future Work

While highly effective, the current implementation relies on a predefined, static variable importance distribution ($p_{input}$) derived from a separate pretrained model. The authors note that a compelling direction for future work is to update this variable selection probability dynamically online alongside the other parameters during the MCMC process.

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