Linear Time Computation of Moments in Sum-Product Networks

02/15/2017
by   Han Zhao, et al.
0

Bayesian online algorithms for Sum-Product Networks (SPNs) need to update their posterior distribution after seeing one single additional instance. To do so, they must compute moments of the model parameters under this distribution. The best existing method for computing such moments scales quadratically in the size of the SPN, although it scales linearly for trees. This unfortunate scaling makes Bayesian online algorithms prohibitively expensive, except for small or tree-structured SPNs. We propose an optimal linear-time algorithm that works even when the SPN is a general directed acyclic graph (DAG), which significantly broadens the applicability of Bayesian online algorithms for SPNs. There are three key ingredients in the design and analysis of our algorithm: 1). For each edge in the graph, we construct a linear time reduction from the moment computation problem to a joint inference problem in SPNs. 2). Using the property that each SPN computes a multilinear polynomial, we give an efficient procedure for polynomial evaluation by differentiation without expanding the network that may contain exponentially many monomials. 3). We propose a dynamic programming method to further reduce the computation of the moments of all the edges in the graph from quadratic to linear. We demonstrate the usefulness of our linear time algorithm by applying it to develop a linear time assume density filter (ADF) for SPNs.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/17/2020

Low-stretch spanning trees of graphs with bounded width

We study the problem of low-stretch spanning trees in graphs of bounded ...
research
01/14/2020

Atomicity Checking in Linear Time using Vector Clocks

Multi-threaded programs are challenging to write. Developers often need ...
research
08/19/2021

Improved Linear-Time Algorithm for Computing the 4-Edge-Connected Components of a Graph

We present an improved algorithm for computing the 4-edge-connected comp...
research
03/05/2020

Linear time dynamic programming for the exact path of optimal models selected from a finite set

Many learning algorithms are formulated in terms of finding model parame...
research
09/04/2017

Making Bidirected Graphs Strongly Connected

We consider problems to make a given bidirected graph strongly connected...
research
06/30/2021

A Simple Linear-Time Algorithm for the Common Refinement of Rooted Phylogenetic Trees on a Common Leaf Set

Background. The supertree problem, i.e., the task of finding a common re...
research
06/01/2019

Smoothing Structured Decomposable Circuits

We study the task of smoothing a circuit, i.e., ensuring that all childr...

Please sign up or login with your details

Forgot password? Click here to reset