arXiv:2610.30838cs.AIOct 2026

Manuscript Offprint

arXiv:2610.30838

Semi-Linear Gaussian Bayesian Networks: Enhancing Flexibility in Node Dependencies via penalized B-Splines

Aitor Oviedo-Madrid, Mabel Morales-Otero, Jose Gonzalez-Gomariz, Ruben Armañanzas

Abstract

Bayesian networks for continuous variables often rely on restrictive assumptions: linear Gaussian models lack flexibility to capture nonlinear dependencies, while non-parametric approaches provide greater flexibility at a high computational cost. This creates a gap for modeling scenarios where variables are approximately Gaussian but exhibit nonlinear relationships. We introduce Semi-Linear Gaussian Bayesian Networks (SLGBN), a novel class of continuous Bayesian networks designed to bridge this gap, preserving Gaussian conditional distributions while introducing nonlinear conditional mean functions. The proposed framework provides a unified probabilistic framework combining linear Gaussian and nonlinear Gaussian conditional models within the same Bayesian network Nonlinear conditional mean functions are estimated using generalized additive models (GAMs) with penalized B-splines. We present parameter estimation procedures for both types of nodes, as well as a greedy hill-climbing algorithm for learning the network structure under the SLGBN framework. To assess its performance, we compare SLGBN with other continuous Bayesian network models, including semiparametric Bayesian networks (SPBN) and Linear Gaussian Bayesian networks (LGBN). Experimental results evaluate both goodness of fit and the ability to recover the underlying network structure. The results show that, in the presence of nonlinear Gaussian relationships, SLGBN achieves better fit and improved structure recovery compared to alternative models, particularly when combined with the Extended Bayesian Information Criterion (EBIC*) score. Furthermore, by retaining Gaussian conditional distributions, SLGBN offers computational advantages over fully semiparametric approaches.

Keywords: Bayesian Networks; Structure Learning; Penalized B-splines; Greedy hill-climbing

1 Introduction

Bayesian networks are probabilistic graphical models that provide a compact representation of joint probability distributions. Their graphical structure encodes conditional independence relationships among variables, making them a powerful and interpretable tool for modeling complex multivariate systems [17]. Their ability to combine probabilistic reasoning with interpretable graphical representations has led to their widespread adoption in data mining and decision-support applications [13]. Despite these advantages, Bayesian networks also present important limitations, particularly when dealing with continuous variables.

Inference and learning in Bayesian networks with continuous variables is considerably more challenging than in the discrete case. Exact inference typically requires restrictive assumptions on the form of the conditional distributions, and structure learning becomes computationally demanding due to the need to estimate complex likelihood functions. As a consequence, continuous variables are commonly discretized to simplify learning and inference. While discretization can be effective in some settings, it may lead to information loss and can alter relevant features of the original data distribution [18].

To overcome these limitations, a growing body of research has focused on extending Bayesian networks to model continuous variables. Among continuous Bayesian networks, Linear Gaussian Bayesian Networks (LGBN) constitute one of the most widely used approaches. In this framework, each variable is modeled as a Gaussian distribution whose mean is a linear function of its parents. This assumption greatly simplifies inference and parameter estimation, making LGBN computationally attractive. Although linear Gaussian models often provide a reasonable approximation to real world data, they rely on strong assumptions of linearity and normality that are frequently violated in practice.

More flexible alternatives have been recently proposed. In particular, Semiparametric Bayesian Networks (SPBN) allow conditional distributions to vary between linear Gaussian forms and non-parametric estimates [2], commonly obtained via kernel density estimation (KDE). Since their introduction, SPBNs have motivated several extensions, including hybrid formulations [3] or transfer learning approaches [23], highlighting their current interest. These models have shown improved performance in capturing nonlinear dependencies and deviations from Gaussianity. However, this increased flexibility comes at the cost of significantly higher computational complexity and more challenging inference procedures.

Despite these advances, an important modeling gap remains. There are important scenarios where variables are approximately Gaussian but the relationships among them are nonlinear. In such scenarios, LGBNs are often too restrictive because of their linear conditional models, whereas fully semiparametric approaches may introduce unnecessary complexity. This motivates the need for models that preserve the computational advantages of Gaussian Bayesian networks while allowing nonlinear conditional relationships. Recent work has explored this direction by incorporating nonlinear regression models, such as spline-based regressors, into Bayesian network learning procedures [22]. However, these approaches primarily employ nonlinear models as components of structure learning algorithms rather than defining a unified probabilistic framework for continuous Bayesian networks.

In this paper, we introduce Semi-Linear Gaussian Bayesian Networks (SLGBN), a novel class of continuous Bayesian networks that bridges the gap between linear Gaussian and fully semiparametric models. SLGBN provides a unified probabilistic framework that combines linear Gaussian and nonlinear Gaussian conditional models within the same network while preserving Gaussian conditional distributions. Nonlinear conditional means are modeled using Generalized Additive Models (GAMs) with penalized B-splines, providing greater flexibility while retaining computational advantages over fully semiparametric models. To make the proposed framework applicable in practice, we derive parameter estimation procedures for both linear and nonlinear Gaussian nodes and develop a greedy hill-climbing algorithm for simultaneously learning the network structure and node types. Finally, we evaluate SLGBN on synthetic Bayesian networks and compare its performance with LGBN and SPBN models in terms of both goodness of fit and structure recovery. The main contributions of this work are summarized as follows:

• We introduce SLGBN, a novel class of continuous Bayesian networks that bridges the gap between linear Gaussian and fully semiparametric models.

• We define a unified probabilistic framework combining linear and nonlinear Gaussian conditional models while preserving Gaussian conditional distributions.

  • We derive parameter estimation procedures and develop a greedy hill-climbing algorithm for jointly learning network structure and node types.

  • We experimentally show that, for approximately Gaussian variables exhibiting nonlinear dependencies, SLGBN achieves improved goodness of fit and structure recovery while maintaining a favorable balance between modeling flexibility and computational complexity.