Marginal MAP (MMAP) is a notoriously difficult inference query, remaining NP-hard even in models where other queries are tractable. This paper presents a novel approach to solving MMAP exactly by shifting from traditional search-based methods to iterative model transformation. By computing upper bounds for every edge in a Probabilistic Circuit (PC), the proposed algorithm prunes irrelevant components. This process, combined with circuit splitting, allows the solver to converge on the exact solution while often reducing the overall model size. Experimental results on 20 benchmark datasets demonstrate that this transformation-based approach significantly outperforms state-of-the-art search-based solvers on complex instances.
Introduction
Probabilistic Circuits (PCs) are a class of models designed for tractable inference, allowing queries like marginal probabilities or Most Probable Explanations (MPE) to be computed in linear time. However, Marginal MAP (MMAP) remains a significant challenge. MMAP seeks the most likely configuration for a subset of variables $Q$ given evidence $E$, while marginalizing over the remaining hidden variables $H$. Unlike MPE, MMAP is NP-hard even on PCs. Traditional solvers rely on branch-and-bound search through variable assignments. This research proposes an alternative: transforming the circuit itself until the MMAP solution becomes structurally apparent.
Methodology: Iterative Pruning and Splitting
The core of the proposed framework is the "Iter-Solve" algorithm, which specializes a general-purpose PC for a specific MMAP query through two primary operations:
- Edge Bounding and Pruning: The authors developed a method to calculate an upper bound on the maximum probability contribution of every edge in the circuit. If an edge's upper bound is lower than a known lower bound for the total query, it is "dead wood" and can be safely removed.
- Variable Splitting: To resolve non-determinism that hinders MMAP, the algorithm "splits" variables, a transformation that makes the circuit more deterministic but typically increases its size.
The solver alternates between these steps. While splitting expands the circuit, aggressive pruning often acts as a counter-force, leading to a state called Q-determinism where the MMAP solution can be extracted in a single bottom-up pass.
Experimental Results
The approach was evaluated on 20 real-world benchmark datasets, ranging from small (NLTCS) to large (Netflix, DNA) with up to 1,500 variables. The iterative solver demonstrated clear superiority on difficult instances. In a test of 200 instances, it solved 199 within a one-hour limit, whereas the leading search-based solver, MaxSPN, solved only 124.
Key Insights and Conclusion
A major finding is the "Pruning-Splitting Balance." Traditional PC compilation often suffers from exponential size blow-up during splitting. However, in the context of MMAP, pruning is so effective that it frequently results in a final circuit smaller than the original. This "specialization" of the model for a specific query simplifies the underlying reasoning task.
While the algorithm has higher overhead for trivial problems compared to simple search, its ability to handle complex dependencies makes it a powerful tool for exact inference. Future work may involve refining split heuristics and extending these transformation techniques to approximate inference or broader model classes.
Summary updated