Abstract
Regression models are used for inference and prediction in a wide range of applications providing a powerful scientific tool for researchers and analysts from different fields. In many research fields the amount of available data as well as the number of potential explanatory variables is rapidly increasing. Variable selection and model averaging have become extremely important tools for improving inference and prediction. However, often linear models are not sufficient and the complex relationship between input variables and a response is better described by introducing non-linearities and complex functional interactions. Deep learning models have been extremely successful in terms of prediction although they are often difficult to specify and potentially suffer from overfitting. The aim of this paper is to bring the ideas of deep learning into a statistical framework which yields more parsimonious models and allows to quantify model uncertainty. To this end we introduce the class of deep Bayesian regression models (DBRM) consisting of a generalized linear model combined with a comprehensive non-linear feature space, where non-linear features are generated just like in deep learning but combined with variable selection in order to include only important features. DBRM can easily be extended to include latent Gaussian variables to model complex correlation structures between observations, which seems to be not easily possible with existing deep learning approaches. Two different algorithms based on MCMC are introduced to fit DBRM and to perform Bayesian inference. The predictive performance of these algorithms is compared with a large number of state of the art algorithms. Furthermore we illustrate how DBRM can be used for model inference in various applications.
Introduction
In the modern data landscape, researchers face a significant dilemma. Traditional statistical models, such as linear regression, offer high interpretability and rigorous uncertainty quantification but often fail to capture the complex, non-linear interactions inherent in real-world data. Conversely, deep learning models excel at predictive tasks by automatically learning these non-linearities; however, they are frequently criticized as "black boxes." These models are notoriously difficult to interpret, prone to overfitting on small datasets, and challenging to tune regarding architecture.
Deep Bayesian Regression Models (DBRM) address this gap by combining the flexible, hierarchical feature engineering of deep learning with the interpretability of Bayesian statistics. By utilizing specialized Markov Chain Monte Carlo (MCMC) algorithms to evolve non-linear features, DBRM creates parsimonious models that can outperform black-box neural networks while remaining human-readable.
Methodology
The DBRM Framework
The core of DBRM is the treatment of a regression model as a collection of features built recursively, mirroring the layers of a neural network. The model consists of a Generalized Linear Model (GLM) combined with a comprehensive non-linear feature space. These features are created by applying non-linear transformations—such as sigmoid, tanh, or custom physical functions—to affine combinations of previous features.
Bayesian Variable Selection and Latent Variables
Unlike fixed-architecture neural networks, DBRM employs a Bayesian prior that penalizes complexity. Deeper, more "expensive" features are only included in the final model if they significantly improve the fit. Furthermore, DBRM can incorporate latent Gaussian variables to handle complex correlation structures, such as spatial or temporal dependencies, which are often difficult to integrate into standard deep learning frameworks.
Search Algorithms: GMJMCMC and RGMJMCMC
To navigate the vast space of possible feature combinations, the authors developed two algorithms: Genetically Modified MJMCMC (GMJMCMC) and its reversible version (RGMJMCMC). These algorithms utilize "genetic" operators—mutation, crossover (multiplying features), and projection—to explore the model space and identify modes of high posterior probability. This allows the model to "evolve" an optimal architecture rather than requiring manual specification of layers or neurons.
Experimental Evaluation
The model was evaluated across several diverse domains to test both its predictive power and its capacity for scientific inference:
- Binary Classification: Tasks included identifying Near-Earth Object (NEO) asteroid hazards, diagnosing breast cancer from fine-needle aspirate images, and spam email detection.
- Scientific Inference: The model was applied to exoplanet data from the Open Exoplanet Catalogue to determine if it could rediscover fundamental physical laws.
- Simulated Data: Complex combinatorial structures and epigenetic methylation markers were used to test the inclusion of latent variables.
Key Insights
Parsimony and Interpretability
By favoring simpler models through Bayesian priors, DBRM often identifies a small set of highly predictive non-linear features. Because the output is essentially a GLM on these evolved features, the resulting model can be expressed as a readable formula. For example, in exoplanet tests, the model effectively "wrote down" the physical relationship $m_p \approx R^3 \times \rho$ rather than just providing a black-box prediction.
Scientific Discovery
DBRM successfully identified Kepler’s Third Law and planetary mass-density relationships from raw data. It achieved high "Power" (correct identification of the law) and low False Discovery Rates when run with sufficient parallel threads, demonstrating its utility as a tool for automated scientific discovery.
Uncertainty Quantification
Through Bayesian model averaging, DBRM provides a mathematically justified measure of prediction uncertainty. This is vital for high-stakes fields like medicine or space science, where understanding the limits of a model's knowledge is as important as the prediction itself.
Conclusion and Future Work
DBRM demonstrates competitive predictive performance against state-of-the-art methods like XGBoost, Random Forests, and deep neural networks while maintaining the benefits of a statistical framework. However, computational costs remain a challenge; MCMC is inherently more expensive than the stochastic gradient descent (SGD) used in standard deep learning. While parallelization (up to 64 threads) significantly improves performance, scaling to "Big Data" is an ongoing area of research. Future work will explore sub-sampling MCMC techniques and refined genetic operators to better handle nested non-linear projections and larger datasets.
Summary updated