[Paper Review] Maximum A Posteriori Inference in Sum-Product Networks
This paper presents a novel exact and approximate MAP inference solver for Sum-Product Networks (SPNs), demonstrating that MAP inference can be reduced to a simpler problem called MAX in linear time. The proposed exact solver efficiently handles SPNs with up to 1,000 variables and 150k arcs within ten minutes, while the approximate solver achieves superior speed-accuracy trade-offs on real-world datasets, outperforming existing methods.
Sum-product networks (SPNs) are a class of probabilistic graphical models that allow tractable marginal inference. However, the maximum a posteriori (MAP) inference in SPNs is NP-hard. We investigate MAP inference in SPNs from both theoretical and algorithmic perspectives. For the theoretical part, we reduce general MAP inference to its special case without evidence and hidden variables; we also show that it is NP-hard to approximate the MAP problem to $2^{n^ε}$ for fixed $0 \leq ε< 1$, where $n$ is the input size. For the algorithmic part, we first present an exact MAP solver that runs reasonably fast and could handle SPNs with up to 1k variables and 150k arcs in our experiments. We then present a new approximate MAP solver with a good balance between speed and accuracy, and our comprehensive experiments on real-world datasets show that it has better overall performance than existing approximate solvers.
Motivation & Objective
- To address the lack of efficient MAP inference methods in SPNs despite their widespread use in applications like NLP and computer vision.
- To theoretically establish the NP-hardness of approximating MAP to within 2^n^ϵ for any fixed 0 ≤ ϵ < 1.
- To develop an exact MAP solver that efficiently handles large SPNs with pruning, heuristics, and optimization techniques.
- To design an approximate MAP solver based on top-K parse tree exploration for better speed-accuracy balance.
- To empirically validate both solvers on real-world datasets, demonstrating superior performance over existing approaches.
Proposed method
- Reduces general MAP inference to a special case called MAX, which has no evidence or hidden variables, via a linear-time transformation.
- Uses network polynomials and their derivatives to compute marginal probabilities during exact inference, enabling efficient pruning in the exact solver.
- Implements an exact MAP solver using exhaustive search with pruning, heuristic selection, and optimization techniques to reduce search space.
- Develops an approximate MAP solver by finding the top-K parse trees of the SPN, prioritizing high-probability variable assignments.
- Applies optimization techniques such as pruning and caching to accelerate both exact and approximate solvers.
- Employs a time budget of 10 minutes for exact solvers and 50 minutes for approximate solvers in experiments, with termination at time limit if no output.
Experimental results
Research questions
- RQ1Can general MAP inference in SPNs be reduced to a simpler problem without evidence or hidden variables?
- RQ2Is it NP-hard to approximate MAP inference within a factor of 2^n^ϵ for any fixed 0 ≤ ϵ < 1?
- RQ3Can an exact MAP solver be designed to efficiently handle SPNs with up to 1,000 variables and 150k arcs?
- RQ4Can an approximate MAP solver be developed that balances speed and accuracy better than existing methods?
- RQ5Does the proposed approximate solver outperform existing solvers on real-world datasets in terms of both speed and solution quality?
Key findings
- The paper proves that MAP inference in SPNs is NP-hard to approximate within a factor of 2^n^ϵ for any fixed 0 ≤ ϵ < 1, indicating strong theoretical limits on approximation.
- The exact MAP solver successfully handles SPNs with up to 1,000 variables and 150,000 arcs within 10 minutes on real-world datasets.
- The approximate solver based on top-K parse trees achieves better overall performance than existing approximate methods in terms of speed and accuracy.
- On the '20 Newsgroup' dataset, the AMAP solver failed to terminate within 50 minutes, highlighting the computational challenge of large-scale MAP inference.
- The winning counts in Figure 5 show that the proposed approximate solver (FC+O+S) outperforms all other solvers on most datasets, including 1000 wins on 'MSWeb' and 'Book'.
- The exact solver's running time remains well below the 10-minute limit on all datasets except 'Book', 'EachMovie', and 'WebKB', where it reaches the time limit on some instances.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.