TL;DR
Bayesian Generalized Nonlinear Models (BGNLMs) bridge the gap between black-box neural networks and interpretable linear models by combining automated, hierarchical feature engineering with Bayesian variable selection. Using an evolutionary Markov Chain Monte Carlo algorithm (GMJMCMC), the method explores a combinatorial space of nonlinear features, penalizes complexity, and performs Bayesian model averaging. The resulting models achieve competitive predictive performance with deep learning and tree ensembles while extracting sparse, interpretable mathematical formulas—even rediscovering Kepler's third law from observational astronomy data.
What Problem Does This Paper Address?
Applied machine learning frequently forces a difficult compromise:
- Black-box models (like deep neural networks or gradient-boosted trees) capture complex nonlinear interactions and yield strong predictions, but they are opaque, prone to subtle overfitting, and fail legal mandates for explainability (e.g., GDPR's "right to explanation").
- Interpretable statistical models (such as Generalized Linear Models, or GLMs) offer clear parameter transparency and well-grounded uncertainty quantification, but they struggle when relationships are fundamentally nonlinear and unknown a priori.
While symbolic regression uses genetic programming to find mathematical expressions, it often lacks formal probabilistic uncertainty measures and is susceptible to overfitting. The authors introduce a unified Bayesian framework that generates and selects nonlinear parametric features automatically, yielding both high predictive performance and transparent mathematical descriptions.
Methods
The authors introduce Bayesian Generalized Nonlinear Models (BGNLM):
- Hierarchical Feature Generation: Starting from raw covariates, new candidate features $F_j(x, \alpha_j)$ are built iteratively using three operations:
- Projections: Neural-net-like affine transformations followed by a nonlinear activation function $g \in \mathcal{G}$ (e.g., sigmoid, tanh, power functions).
- Modifications: Unary nonlinear transformations of single features $g(F_k)$.
- Multiplications: Products of existing features ($F_k \times F_l$), representing high-order interactions.
- Complexity Priors: To prevent combinatorial explosion and overfitting, features are penalized based on their operations count ($oc$) or depth, using modified AIC ($a = e^{-2}$) or BIC ($a = e^{-\log n}$) geometric penalties.
- Inference via GMJMCMC: Exploring the model space uses the Genetically Modified Mode Jumping MCMC algorithm. GMJMCMC maintains a population of candidate features, uses mode jumping MCMC (large jumps, local discrete optimization, and small randomizations) to sample models, and iteratively evolves feature populations by pruning low-posterior features and breeding new ones.
- Extensions:
- BGNLMM: Incorporates latent Gaussian processes (e.g., AR(1), random walks, Ornstein-Uhlenbeck) via Integrated Nested Laplace Approximations (INLA) to handle spatio-temporal dependencies.
- Fully Bayesian BGNLM: Treats internal feature parameters $\alpha$ as latent variables sampled alongside structural parameters.
Raw Covariates ──► Feature Transformations ──► Complexity Prior Penalties ──► GMJMCMC Search & BMA
(Projection / Mod / Mul) (Operations Count, Depth) (Posterior Probabilities)
Datasets
The authors evaluated BGNLM across diverse classification, regression, and scientific inference benchmarks:
- Binary Classification: Breast Cancer Wisconsin (Diagnostic) (30 covariates, $n=569$) and Spambase (58 covariates, $n=4601$).
- Metric Regression: Abalone Shell Age dataset (8 physical measurements predicting shell ring counts/age, $n=4177$).
- Model Inference / Symbolic Recovery: Open Exoplanet Catalogue ($n=223$ complete observations) used to rediscover Kepler's Third Law and the Planetary Mass Law.
- Epigenetic Analysis: Arabidopsis thaliana DNA methylation dataset ($n=500$ base-pairs) combining Poisson response modeling with latent Gaussian processes.
- Appendices: Near-Earth Asteroid (NEO) classification ($n=20,766$) and simulated complex logic regression structures ($n=1000$, 50 binary covariates).
Key Insights and Ideas
- Interpretable Parsimony from Occam's Razor Priors: Penalizing feature complexity via operations count naturally favors simple modifications and pairwise interactions over deeply nested projections. Most high-probability features remained at depths $d \le 2$.
- Analytical Law Discovery: Unlike black-box neural networks, BGNLM successfully reconstructed the exact analytical relationship for Kepler's third law ($a \propto (P^2 M_h)^{1/3}$) from noisy exoplanet data, delivering calibrated posterior probabilities rather than a single point estimate.
- Model Averaging Over Multiple Architectures: By running parallel GMJMCMC chains, the algorithm averages across diverse topologies, reducing predictive variance compared to neural networks whose performance varied widely across random seeds.
Key Results
- Abalone Age Regression: Parallel BGNLM with a BIC penalty achieved the lowest Root Mean Squared Error (1.9573), outperforming Random Forests (2.0352) and deep neural networks (2.1466).
- Breast Cancer Classification: Parallel BGNLM tied for the best median accuracy (0.9742), exceeding XGBoost (0.9531) and Random Forest (0.9343) while using fewer than 15 features.
- Kepler’s Third Law: When run with 64 threads, BGNLM achieved a statistical power of 1.00 and a False Discovery Rate (FDR) of 0.01 in isolating $(P^2 M_h)^{1/3}$ and its close physical proxies. In contrast, standard genetic symbolic regression (
gplearn) achieved at best 0.36 power with an FDR of 0.64, even when restricted to favorable covariate subsets.
Limitations and Future Work
- Computational Cost: Because marginal likelihoods must be approximated across many candidate models, GMJMCMC is computationally heavy and currently limited to hundreds of variables and thousands of samples.
- Continuous Cutoff Optimization: Tree-based methods (XGBoost, Random Forests) outperformed BGNLM on datasets like Spambase because tree algorithms optimize continuous split thresholds efficiently. Emulating this in BGNLM requires incorporating explicit indicator/step functions into the transformation set $\mathcal{G}$.
- Fully Bayesian Convergence: Estimating nested internal weights ($\alpha$) across all layers in a fully Bayesian MCMC framework converges very slowly. Future work will investigate stochastic gradient MCMC and data subsampling to scale BGNLMs to massive datasets.
Summary updated