The Impact of Variable Ordering on Bayesian Network Structure Learning
Neville K Kitson, Anthony C Constantinou
TL;DR
This paper investigates how the arbitrary order of variables in data inputs can dramatically affect Bayesian network structure learning, often more than traditional factors like sample size or hyper-parameters. By evaluating 16 discrete networks across multiple algorithms (HC, Tabu, MMHC, H2PC, PC-Stable, GS, Inter-IAMB) and varying variable orders, the authors demonstrate that ordering can cause substantial swings in structural accuracy as measured by F1 on CPDAGs, with some networks showing differences exceeding 0.5. They show that HC is particularly vulnerable to order-induced, arbitrary orientation decisions early in learning, though ordering also influences other algorithms to varying degrees; constraint-based methods tend to be less sensitive, yet not immune. The findings raise questions about the validity of many comparative benchmarks and published results that overlook variable-order sensitivity, and they advocate for mitigations such as Bayesian Model Averaging or ordering-space searches, with potential extensions to continuous data and causal inference tasks. Overall, the work highlights a previously underappreciated source of variability in structure learning that has practical implications for causal discovery and intervention modelling.
Abstract
Causal Bayesian Networks provide an important tool for reasoning under uncertainty with potential application to many complex causal systems. Structure learning algorithms that can tell us something about the causal structure of these systems are becoming increasingly important. In the literature, the validity of these algorithms is often tested for sensitivity over varying sample sizes, hyper-parameters, and occasionally objective functions. In this paper, we show that the order in which the variables are read from data can have much greater impact on the accuracy of the algorithm than these factors. Because the variable ordering is arbitrary, any significant effect it has on learnt graph accuracy is concerning, and this raises questions about the validity of the results produced by algorithms that are sensitive to, but have not been assessed against, different variable orderings.
