Abstract
Marginal MAP (MMAP) is a notoriously difficult mixed-inference task in graphical models, classified as NP^PP-complete. While sequential solvers have reached high levels of optimization, they fail to leverage modern multi-core architectures. This paper presents the first shared-memory parallel search algorithms for exact MMAP. By utilizing a shared cache table and a novel "virtual q-value" mechanism for decentralized thread coordination, the proposed SPRBFAOO and SPAOBB algorithms achieve significant speedups—up to 8-fold on 12-core machines—and solve previously intractable instances.
Introduction
In probabilistic graphical models, the Marginal MAP (MMAP) query asks for the most likely configuration of a specific subset of variables (the MAP variables) while marginalizing out the remaining uncertainty (the SUM variables). This task is significantly harder than standard maximization (MAP) or summation (SUM) alone because the operations do not commute, forcing highly constrained variable orderings and resulting in massive search spaces.
While exact solvers like AOBB and RBFAOO are highly optimized, they are strictly sequential. In an era of ubiquitous multi-core hardware, these algorithms leave substantial computational power unused. This research bridges the gap by introducing parallel AND/OR search algorithms specifically designed for the complexities of MMAP.
Methods
The authors introduce SPRBFAOO-MMAP (Shared-memory Parallel Recursive Best-First AND/OR search), where multiple threads explore the search space simultaneously. The approach relies on two key innovations:
- Shared Cache Table: All threads share a single cache to store and retrieve bounds for subproblems. This collaborative environment allows threads to reuse each other's work and prune the search space more effectively.
- Virtual q-values ($vq$): To prevent redundant exploration of the "best" nodes, the algorithm assigns a virtual q-value to each node. This value penalizes a node's heuristic cost estimate based on the number of threads currently working on it. This decentralized "traffic cop" mechanism encourages threads to diverge and explore other promising areas without heavy centralized locking.
Additionally, the authors developed SPAOBB-MMAP, a parallel depth-first branch-and-bound variant, and a master-slave architecture (SPRBFAOO2-MMAP) for parallelizing conditional likelihood computations.
Evaluation and Results
The algorithms were evaluated on 930 instances across three benchmark domains: pedigree (genetic linkage), pdb (protein design), and planning (dynamic Bayesian networks).
Performance and Scaling
The parallel algorithms demonstrated impressive scalability. On 12-core machines, SPRBFAOO and SPAOBB achieved up to an 8-fold speedup over their sequential counterparts. In some instances, shared caching even led to superlinear speedups, as a strong bound found by one thread could immediately prune massive subtrees for all others.
Solving Complex Instances
The parallel approach proved capable of solving difficult instances that sequential solvers could not complete within a 1-hour time limit. The decentralized SPRBFAOO approach significantly outperformed the master-slave variant, which suffered from lock overhead and poor load balancing.
Conclusion
This work demonstrates that parallelizing AND/OR search for MMAP is highly effective. The use of virtual q-values provides a lightweight, decentralized method for load balancing, while shared caching enables collaborative pruning. Future work will focus on extending these methods to distributed-memory environments to scale to even larger graphical models.
Summary updated