A distribution can look very different from one neighborhood to another. One region might follow a curve; another might contain a separate cluster. I wanted to explore a way for a probabilistic circuit to use that local geometry directly, while keeping the inference guarantees that make circuits useful.

In Geometry-Aware Probabilistic Circuits via Voronoi Tessellations, Sriraam Natarajan and I study this question. The starting idea is easy to picture: divide the input space into neighborhoods and let different circuit components specialize in them.

The difficult part begins when we ask the resulting model a probability question.

A neighborhood for each expert

In a standard probabilistic circuit, a sum node combines child distributions using mixture weights that do not change with the input. The child distributions still respond to the observation; it is the mixing coefficients that are fixed. Different experts can therefore contribute differently without an explicit geometric gate.

We add such a gate using a Voronoi tessellation. Place several centroids in input space. Each point belongs to the cell of its nearest centroid. At a gated sum node, that cell selects the corresponding expert, apart from ties on cell boundaries.

This makes specialization explicit. We can look at the regions and see which expert handles which neighborhood. Moving a centroid changes its region of responsibility.

But selecting an expert for a fully observed point is not the same as integrating over all possible points. That difference is where the inference problem lives.

Why a diagonal boundary matters

Consider two variables whose expert distribution factorizes. Without geometric restrictions, integrating their joint density separates into two one-dimensional integrals. This is the kind of decomposition that makes circuit inference efficient.

Now keep that expert fixed and restrict it to a region above a diagonal line. For a given horizontal coordinate, the allowed vertical coordinates depend on where we are horizontally. The expert still factorizes, but its integration region does not.

General Voronoi cells have oblique boundaries like this. They couple variables that a circuit's product nodes try to separate. Simply adding input-dependent routing therefore breaks the usual recursive integration rule—even if the underlying experts are simple.

There is also a normalization issue. Cutting each expert down to its selected cell generally changes its total mass. Mixture weights summing to one do not, by themselves, make the gated output integrate to one. We must account for the partition function: the integral of that output.

Try routing and bounding

The toy below separates two questions: which centroid owns a point, and how much probability mass lies inside its cell. The centroids stay fixed, and a uniform expert has density one throughout the unit square. Move the query to inspect routing, or refine the grid to tighten bounds for the same cell.

Interactive illustration

Route a point. Bound one cell’s mass.

Two fixed centroids divide the unit square. A uniform expert q(x, y) = 1 makes probability mass equal to area. Refine the grid without changing the geometry.

0.35
0.35
Grid refinement: boxes per side
A fixed two-centroid Voronoi partition with a refining gridThe query at (0.35, 0.35) routes to centroid A. Filled grid boxes lie wholly inside cell A. Hatched boxes cross its boundary. Cell A has mass between 0.3906 and 0.6250. Its polygon area is 0.5086. Query movement does not alter these bounds.AB011
Inside A (filled)Boundary (hatched)Outside A (unfilled)

Query routes to centroid A. Centroids remain fixed at A = (0.28, 0.32) and B = (0.72, 0.70).

Inner mass bound Z⁻
0.3906
Outer mass bound Z⁺
0.6250
Cell A: polygon area Z
0.5086

Inside A, normalize the truncated expert by its mass: 1.6000 ≤ pA(x, y) ≤ 2.5600. The lower density bound uses Z⁺; the upper density bound uses Z⁻.

The grid bounds concern this fixed cell and fixed uniform expert. Refining the grid tightens the same problem; moving the query changes only its route. This differs from the paper’s nonuniform circuit experiments.

One-cell teaching example, not a full VT-PC or a reproduced experiment. Polygon clipping gives the area for this uniform toy, up to floating-point rounding. General nonuniform cell integrals do not become exact this way.

This is a one-cell teaching example, not a full circuit or a reproduced experiment. For this uniform expert, mass equals geometric area, so polygon clipping supplies a reference value. That shortcut does not evaluate general nonuniform cell integrals. Moving the query neither retrains an expert nor changes the tessellation or its bounds.

One route: compute a certificate

Our first route keeps general Voronoi geometry and accepts that exact integration is difficult. Instead of returning an unsupported estimate, it computes lower and upper bounds.

Put an axis-aligned box inside a cell and another around it. Because the density is nonnegative, the inner box's probability mass cannot exceed the cell's mass, and the outer box's mass cannot be smaller. Integrating over boxes is compatible with the underlying decomposable circuit: at the leaves, we evaluate interval probabilities.

We then combine these local quantities through the circuit's sums and products. This yields bounds on the partition function, with related constructions for marginal and conditional queries.

For a fixed, exactly evaluated unnormalized output, dividing by the partition function reverses the direction of its bounds:

f(x)Z+≤p(x)≤f(x)Z−,Z−>0.\frac{f(x)}{Z^+}\leq p(x)\leq\frac{f(x)}{Z^-},\qquad Z^->0.
Normalization reverses the bounds

This is a useful detail to remember when looking at a picture of inner boxes. An inner box gives a lower bound on mass. That is not automatically a lower bound on the normalized density. Conditional bounds similarly need a positive lower bound on their denominator.

The paper also develops an anytime refinement scheme: subdivide uncertain boxes, classify the smaller boxes, and tighten the interval. With the required containment and coverage maintained, refinement does not invalidate the certificate. Its convergence argument assumes the unresolved boundary region shrinks away.

There are practical limits. Certificates can be loose, and subdivision can become expensive as dimension grows. A truncated domain certifies the integral on that domain unless omitted tails are separately accounted for. Finite refinement should not be described as recovering exact inference.

Another route: align the geometry

Our second route changes which geometry the model can represent. Hierarchical Factorized Voronoi circuits, or HFV-PCs, organize gating around the same variable partitions used by the experts.

Instead of an arbitrary cell spanning every variable, the gating region factors into regions over disjoint blocks. Its expert factors over those same blocks. The restrictions can then be carried recursively through the circuit, down to univariate intervals where integration is tractable.

The alignment must hold through the hierarchy. Splitting a large oblique cell into two still-intractable oblique pieces would not solve the problem.

Under this construction, partition functions, marginals, and conditionals are exact and tractable. The paper's complexity bound includes the number of joint cell combinations: for binary factorization it is proportional to circuit size times the square of the number of cells per factor.

That guarantee comes with a representational tradeoff. HFV cannot express arbitrary oblique regions across different variable blocks at a given node. We gain a dependable integration structure by restricting the gate, rather than making general Voronoi integration easy.

Learning with soft gates

Hard nearest-centroid assignments are awkward to optimize with gradients. During training, we use soft weights based on distance. A small inverse temperature spreads responsibility across experts; increasing it concentrates responsibility on the closest centroid.

For fixed centroids and a fixed point away from cell boundaries, the soft assignment approaches the hard one exponentially as inverse temperature increases. The rate depends on the distance margin between the nearest centroid and its runner-up. Near a boundary, that margin becomes small.

This explains why sharpening the gate can work, but it is not a proof that training reaches a global optimum. Nor does a large finite temperature make every soft model exact. At inference time, hard gating gives HFV its exact construction; general VT models still use certificates.

What we tested, and what remains

We evaluated eight synthetic distributions with explicit geometry: four in two dimensions and four in three. Each had 10,000 training, 5,000 validation, and 5,000 test samples. Comparisons used EinsumNet and HCLT families, with results averaged across three trials and checkpoints selected using validation performance.

The VT variants used Voronoi routing at root sum nodes. The paper reports certified test log-likelihood lower bounds, which often exceeded the baselines' exact log-likelihoods. The reported experiments used box approximations without the anytime refinement procedure. HFV variants were broadly comparable to the baselines in this shallow, low-dimensional setting.

These results are a proof of concept for local geometric specialization, not evidence that the method scales unchanged to high-dimensional real-world data. Continual learning, learned embeddings, and controlled generation are directions discussed in the paper, not demonstrated outcomes of these experiments.

What I like about the result is the choice it makes explicit. We can preserve richer geometry and report uncertainty in the inference calculation, or align the geometry and recover exact computation. In both cases, the guarantee has to come from the construction—not from how convincing the picture looks.

Sources and further reading

Read the paper and appendix for the definitions, bounds, proofs, and full experimental setup. This work is by Sahil Sidheekh and Sriraam Natarajan.