Structured Bayesian Networks: From Inference to Learning with Routes

Yujia Shen, Anchal Goyanka, Adnan Darwiche, Arthur Choi

Introduction

Probabilistic graphical models, specifically Bayesian Networks (BNs), are powerful tools for representing conditional independencies. However, they often struggle with "hard" constraints—logical rules that assign zero probability to certain states. In domains like route planning, these constraints are critical; for instance, a valid path must be "simple," meaning it does not visit the same intersection twice. Enforcing such Boolean domain constraints in standard BNs is computationally prohibitive.

Structured Bayesian Networks (SBNs) address this by integrating the high-level probabilistic structure of BNs with the logical rigor of Probabilistic Sentential Decision Diagrams (PSDDs). While SBNs have shown promise in parameter estimation, efficient exact inference—answering queries such as "what is the most likely path?"—has remained a challenge. This research introduces the first exact inference algorithm for SBNs by compiling them into joint PSDDs.

Methodology: Compilation and Tractability

The core of the proposed approach is the compilation of an SBN into a single, comprehensive joint PSDD. This process avoids on-the-fly probability calculations, which are often the bottleneck in constrained environments.

Overview of the relationship between a distribution, SDD, PSDD, and its underlying vtree.

Several technical innovations facilitate this compilation:

  1. Vtree Alignment: PSDDs are governed by a "vtree," a hierarchical variable ordering. To merge different SBN components, their vtrees must be compatible. The authors developed a "ctree" (cluster tree) algorithm to ensure global compatibility across the network.
  2. Normalization: Using tree rotation and swap operators, the authors re-normalize logical components (SDDs). This ensures that conditional distributions learned independently can be merged into a single joint model.
  3. Binary Hierarchical Maps (hmaps): To guarantee efficiency, the researchers defined "hmaps." By recursively partitioning a map into sub-regions, they proved that the resulting SBN has a joint PSDD of polynomial size.
  4. Structure Learning: A bottom-up clustering heuristic was developed to learn map structures from GPS data. By grouping intersections that frequently appear together in actual routes, the hierarchical structure reflects real-world traffic patterns.
The internal structure of a PSDD node, showing the integration of logical decomposition with probabilistic parameters.

Experimental Evaluation

The framework was evaluated using road network data from OpenStreetMap for downtown San Francisco, encompassing maps with up to 10,500 edges. Real-world GPS traces from the "Cabspotting" dataset and simulated routes from the Google Maps Directions API provided the basis for learning and testing.

Key Results

  • Inference Performance: On the largest map (10,500 edges), PSDD-based inference achieved a 10x speedup over traditional jointree message-passing algorithms.
  • Predictive Accuracy: The proposed heuristic for structure learning significantly outperformed random hierarchical decompositions, reducing "trip length" error by approximately 50%.
  • Driver Classification: An SBN-based classifier distinguished between taxi drivers and Google Maps-guided drivers with 100% accuracy, requiring fewer observed routes than standard baselines like Logistic Regression or Naive Bayes.

Discussion and Insights

The success of this approach stems from treating logic as a "first-class citizen." By utilizing PSDDs, the model inherently recognizes physically impossible routes, drastically pruning the search space. Furthermore, modeling urban environments as hierarchies (City -> District -> Neighborhood) provides the mathematical tractability needed for large-scale applications. PSDDs also exploit context-specific independence and determinism—where one choice necessitates another—allowing them to outperform traditional sparse tables in highly constrained road networks.

Limitations and Future Work

While the hmap subclass offers guaranteed polynomial-time tractability, arbitrary SBNs with overlapping constraints may still face exponential state-space growth during compilation. Additionally, the "simple path" assumption may not apply to all scenarios, such as delivery routes involving loops. Future research will explore extending these models to handle non-simple paths and dynamic constraints like real-time traffic fluctuations.

Summary updated

BibTeX
@inproceedings{shen2019structured,
  author = {Yujia Shen and Anchal Goyanka and Adnan Darwiche and Arthur Choi},
  title = {{Structured Bayesian Networks: From Inference to Learning with Routes}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33017957},
}
Figure