Abstract
Semi-structured regression models enable the joint modeling of interpretable structured and complex unstructured feature effects. The structured model part is inspired by statistical models and can be used to infer the input-output relationship for features of particular importance. The complex unstructured part defines an arbitrary deep neural network and thereby provides enough flexibility to achieve competitive prediction performance. While these models can also account for aleatoric uncertainty, there is still a lack of work on accounting for epistemic uncertainty. In this paper, we address this problem by presenting a Bayesian approximation for semi-structured regression models using subspace inference. To this end, we extend subspace inference for joint posterior sampling from a full parameter space for structured effects and a subspace for unstructured effects. Apart from this hybrid sampling scheme, our method allows for tunable complexity of the subspace and can capture multiple minima in the loss landscape. Numerical experiments validate our approach’s efficacy in recovering structured effect parameter posteriors in semi-structured models and approaching the full-space posterior distribution of MCMC for increasing subspace dimension. Further, our approach exhibits competitive predictive performance across simulated and real-world datasets.
Introduction
In high-stakes fields like medicine, practitioners require the "best of both worlds": the predictive power of Deep Neural Networks (DNNs) and the transparency of classical linear models. This hybrid approach is known as Semi-Structured Regression (SSR). However, SSR models face two major hurdles. First, there is an optimization asymmetry; massive DNNs easily overfit and can "steal" explanatory power from the smaller, interpretable linear components. Second, most SSR models fail to quantify epistemic uncertainty—they provide predictions but cannot reliably state how sure the model is about its own parameters. Standard Bayesian methods like Hamiltonian Monte Carlo (HMC) provide these "confidence bars" but are computationally prohibitive for modern neural networks.
Methodology: Semi-structured Subspace Inference
The researchers propose a new Bayesian approximation that simplifies the search space for the neural network without sacrificing the precision of the interpretable components. The core innovation lies in a Hybrid Sampling scheme.
Instead of sampling every weight in a massive DNN, the method identifies a low-dimensional "subspace" (typically 2 to 16 dimensions) within the millions of parameters. To find this subspace, the model identifies multiple "valleys" of low error in the loss landscape and connects them using a quadratic Bézier curve, allowing it to capture multiple possible solutions (modes) in a single training pass.
Crucially, the method treats the two parts of the model differently: it uses HMC to sample the interpretable parameters in their full space while simultaneously sampling the DNN weights only within the subspace.
As shown in the figure above, treating both parts of the model with a naïve subspace approach leads to overconfident and incorrect results. By sampling the interpretable part in its full space, the proposed method accurately recovers the true posterior distribution.
Experimental Results
The method was evaluated across synthetic data, UCI benchmarks, and a real-world medical dataset (ISIC 2020 Melanoma dataset) containing over 33,000 skin lesion records.
On standard benchmarks, the approach consistently outperformed popular approximations like Laplace Redux and Deep Ensembles, approaching the accuracy of the "gold standard" HMC. In the melanoma study, the model provided a nuanced view of how age affects cancer risk. By integrating high-resolution images with patient metadata, it demonstrated that the perceived "effect" of age is smaller when visual evidence is accounted for, providing the uncertainty bounds to support this finding.
Key Insights and Efficiency
- Dimensionality vs. Quality: Increasing the subspace dimension from 2 to 12 drastically improves uncertainty estimates, bringing them nearly in line with full-space MCMC.
- Solving Asymmetry: The sampling-based approach naturally balances the influence of the linear part and the DNN, preventing the latter from overpowering interpretable features.
- Computational Efficiency: Training time scales linearly with the subspace dimension. The overhead for adding subspace inference is minimal (approximately 0.04 seconds per epoch) compared to standard non-Bayesian models.
Conclusion
Bayesian Semi-structured Subspace Inference provides a scalable path toward reliable uncertainty quantification in hybrid models. While the memory footprint of the projection matrix remains a consideration for extremely large networks, the ability to recover well-calibrated posteriors for interpretable parameters makes it a powerful tool for transparent and reliable machine learning.
Summary updated