Skip to main content
QUICK REVIEW

[Paper Review] Approximation Complexity of Maximum A Posteriori Inference in Sum-Product Networks

Diarmaid Conaty, Denis Deratani Mauá|arXiv (Cornell University)|Mar 17, 2017
Bayesian Modeling and Causal InferenceComputer Science24 references10 citations
TL;DR

This paper establishes the approximation complexity of maximum a posteriori (MAP) inference in sum-product networks (SPNs), proving that MAP inference is NP-hard to approximate within sublinear factors in height-2 SPNs, but a polynomial-time algorithm achieves a linear approximation factor. For height-3 or higher SPNs, it is NP-hard to approximate within any $2^{f(n)}$ factor for sublinear $f(n)$, and the max-product algorithm provides a $2^{c\cdot n}$ approximation for $c<1$. A modified algorithm is proposed that outperforms max-product in practice, especially in shallow networks.

ABSTRACT

We discuss the computational complexity of approximating maximum a posteriori inference in sum-product networks. We first show NP-hardness in trees of height two by a reduction from maximum independent set; this implies non-approximability within a sublinear factor. We show that this is a tight bound, as we can find an approximation within a linear factor in networks of height two. We then show that, in trees of height three, it is NP-hard to approximate the problem within a factor $2^{f(n)}$ for any sublinear function $f$ of the size of the input $n$. Again, this bound is tight, as we prove that the usual max-product algorithm finds (in any network) approximations within factor $2^{c \cdot n}$ for some constant $c &lt; 1$. Last, we present a simple algorithm, and show that it provably produces solutions at least as good as, and potentially much better than, the max-product algorithm. We empirically analyze the proposed algorithm against max-product using synthetic and realistic networks.

Motivation & Objective

  • To establish the computational complexity of approximating maximum a posteriori (MAP) inference in sum-product networks (SPNs).
  • To determine the tightest possible approximation bounds for MAP inference in SPNs of varying height.
  • To develop and evaluate a modified algorithm that improves upon the standard max-product algorithm for MAP inference.
  • To assess the performance of the proposed algorithm on both synthetic and real-world SPNs learned from UCI datasets.

Proposed method

  • Proves NP-hardness of MAP inference in height-2 SPNs via a reduction from the maximum independent set problem.
  • Demonstrates non-approximability within any sublinear factor in height-2 SPNs, showing this bound is tight via a polynomial-time linear-approximation algorithm.
  • Extends the hardness result to height-3 SPNs, proving NP-hardness of approximation within any $2^{f(n)}$ factor for sublinear $f(n)$.
  • Shows that the standard max-product algorithm achieves a $2^{c\cdot n}$ approximation for some constant $c<1$, establishing a tight upper bound.
  • Proposes a modified algorithm that replaces max-product’s sum-to-max operation with a more informed selection strategy, ensuring solutions at least as good as max-product.
  • Empirically evaluates the proposed algorithm against max-product on synthetic SPNs encoding maximum independent set instances and on deeper SPNs learned from UCI datasets using LearnSPN.

Experimental results

Research questions

  • RQ1What is the approximation complexity of MAP inference in SPNs of height 2?
  • RQ2Can the NP-hardness of MAP inference in SPNs be shown via a direct reduction from maximum independent set?
  • RQ3What are the tightest possible approximation bounds for MAP inference in SPNs of height 3 or more?
  • RQ4How does the performance of the proposed modified algorithm compare to max-product in terms of solution quality on synthetic and real-world SPNs?
  • RQ5Does the presence of evidence significantly affect the approximation complexity of MAP inference in SPNs?

Key findings

  • MAP inference in SPNs of height 2 is NP-hard to approximate within any sublinear factor of the input size, and this bound is tight, as a polynomial-time algorithm achieves a linear approximation factor.
  • For SPNs of height 3 or more, it is NP-hard to approximate MAP inference within any $2^{f(n)}$ factor for sublinear functions $f(n)$, and this bound is tight, as the max-product algorithm guarantees a $2^{c\cdot n}$ approximation for some $c<1$.
  • The proposed modified algorithm, called argmax-product, produces solutions that are never worse than those from max-product and can be significantly better, especially in shallow networks.
  • Empirical evaluation on synthetic SPNs encoding maximum independent set problems shows that argmax-product consistently outperforms max-product, with notable improvements in solution quality.
  • On deeper SPNs learned from real-world UCI datasets, the improvement of argmax-product over max-product is less pronounced but still non-negligible, with a mean ratio of solution probabilities of 1.12 and a standard deviation of 0.17 across test cases with 50% evidence.
  • The presence of evidence does not significantly alter the approximation complexity, as the performance gap between the two algorithms remains stable across different evidence settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.