Decomposable probabilistic circuits #
A probabilistic circuit over Boolean variables is a circuit whose input units compute functions of one variable, and whose other units compute products of their children or weighted sums of their children. It is decomposable when the children of every product reach disjoint sets of variables. The manuscript of #8623 allows weights and input functions of either sign Anonymous, Section 10.2.
Here a probabilistic circuit over a commutative ring R is a circuit over
Cslib.Circuits.Probabilistic.signature R, with three kinds of units:
- a leaf
leaf g, withg : Bool → R, reads one wirezand computesg false * (1 - z) + g true * z, the affine function agreeing withgon0and1; - a product
mulof two wires; - a weighted sum
sum a bof two wires,a * u + b * v.
Products and weighted sums of larger fan-in are trees of binary units, so a circuit with s edges
has at most s units. In the manuscript the leaves read input variables; here a leaf may read any
wire, which only strengthens the simulation. The circuit computes a function on the Boolean cube
(Cslib.Circuits.Probabilistic.interpretation at the Boolean points).
Each unit is computed by a small arithmetic circuit, with at most five gates
(Cslib.Circuits.Probabilistic.toArith). Decomposable products become syntactically multilinear
multiplications, so syntactically multilinear circuits simulate decomposable probabilistic circuits
with linear overhead. A decomposable probabilistic circuit computing a nonzero multiple of a Boolean
function on the cube, over a field, gives a syntactically multilinear circuit computing its
multilinear representative (Cslib.Circuits.Probabilistic.exists_syntacticallyMultilinear), as in
the proof of Corollary 5 of the manuscript.
Main definitions #
Cslib.Circuits.Probabilistic.signature: leaves, products and weighted sums.Cslib.Circuits.Probabilistic.interpretation: their values.Cslib.Circuits.Probabilistic.toArith: the arithmetic circuit of a probabilistic circuit.
Main results #
Cslib.Circuits.Probabilistic.isSyntacticallyMultilinear_toArith: the arithmetic circuit of a decomposable probabilistic circuit is syntactically multilinear.Cslib.Circuits.Probabilistic.eval_toArith_X: it computes the multilinear extension of the function of the probabilistic circuit on the cube.Cslib.Circuits.Probabilistic.exists_syntacticallyMultilinear: syntactically multilinear circuits simulate decomposable probabilistic circuits computing nonzero multiples of Boolean functions.
References #
The model #
The units of a probabilistic circuit over R: a leaf reading one wire with values given by a
function Bool → R, a product of two wires, and a weighted sum of two wires.
Whether a unit is a product is decidable, so decomposability is decidable.
A leaf reads one wire; products and weighted sums read two.
The probabilistic signature: leaves, products and weighted sums.
The values of the units in an R-algebra: a leaf g computes
g false * (1 - z) + g true * z, a product multiplies and a weighted sum adds with weights.
The values of the units in R. On the Boolean points of R, a probabilistic circuit computes
its function on the cube.
A leaf at a Boolean point takes the value of its function.
The arithmetic circuit #
Simulation by syntactically multilinear circuits #
The arithmetic circuit of a probabilistic circuit: every unit replaced by its arithmetic circuit.
The arithmetic circuit of a decomposable probabilistic circuit is syntactically multilinear: its multiplications come from decomposable products and from multiplications by constants.
A decomposable probabilistic circuit computes the multilinear extension of its function. The polynomial computed by its arithmetic circuit at each output is the multilinear extension of the function the probabilistic circuit computes on the cube.
Syntactically multilinear circuits simulate decomposable probabilistic circuits. Over a
field, if a decomposable probabilistic circuit with s units computes on the cube a nonzero
multiple k of a Boolean function, then the function has a syntactically multilinear circuit with
at most 5 s + 2 gates computing its multilinear representative. This is the reduction in the
proof of Corollary 5 of the manuscript Anonymous, Section 10.2.