Introduction
Learning the structure of a Bayesian network—identifying the causal or probabilistic dependencies between variables—is a cornerstone of machine learning. While tractable when all variables are observed, the task becomes significantly more complex when the network includes latent (hidden) variables. Traditional approaches, such as the Structural EM (SEM) algorithm, typically rely on a greedy search for a single "best" structure. However, this "winner-take-all" strategy often falls into local optima and fails to account for structural uncertainty, treating a single hypothesis as absolute truth.
Methodology: Structural Expectation Propagation
To address these limitations, we present Structural Expectation Propagation (SEP), a framework that treats the network structure itself as a random variable. SEP extends the standard Expectation Propagation (EP) algorithm to perform joint variational inference over the structure ($G$), latent variables ($U$), and parameters ($\Theta$).
The core of SEP lies in the use of Gated Factor Graphs. Gates act as probabilistic switches that activate different parent-child relationships based on the value of a structure variable. By approximating the joint posterior $p(G, U, \Theta | X)$ with a factorized distribution $q(G)q(U)q(\Theta)$, SEP iteratively updates beliefs through message passing. This local representation of parent selection allows the algorithm to remain tractable even as the space of possible graphs grows exponentially.
Experimental Setup
The performance of SEP was evaluated using both synthetic and real-world datasets:
- Synthetic Data: 100 network structures were generated with 50 observed variables and 2 to 5 latent variables. Sample sizes ranged from $N=100$ to $N=1,000$ to test scaling with data density.
- Clinical Allergy Data: Data from the Manchester Asthma and Allergy Study, comprising IgE antibody responses from 221 patients across 71 allergen components, was used to discover latent patient profiles and allergen clusters.
Key Insights
A central advantage of SEP is that uncertainty is treated as an asset. By maintaining a distribution over structures, the model avoids premature commitment to incorrect edges. Every local update is informed by global uncertainty, meaning parameter estimates are naturally weighted by the likelihood of the underlying structure. Furthermore, SEP handles missing data gracefully within its message-passing framework and can disambiguate multimodal posteriors by conditioning on high-confidence latent modes.
Results and Discussion
Experimental results demonstrate that SEP consistently outperforms Structural EM in terms of marginal likelihood and structural accuracy.
As shown in the performance plots, the gap between SEP and SEM is most pronounced at smaller sample sizes ($N=100$), where the ability to model uncertainty is most critical. In the clinical allergy study, SEP successfully identified meaningful allergen clusters and provided a probabilistic visualization that highlighted both certain relationships and areas of ambiguity. While SEP is more computationally intensive than SEM (e.g., 42 minutes vs. 16 minutes for medium-sized problems), the gain in accuracy and the provision of a full posterior distribution justify the additional cost.
Limitations and Future Work
The primary challenge for SEP is computational scaling as the number of potential parents per variable increases. Future research will focus on dynamically adapting the latent space, extending the framework to continuous data, and incorporating more sophisticated structure priors to enforce sparsity or hierarchy.
Summary updated