Sparse Probabilistic Circuits via Pruning and Growing

Meihua Dang, Anji Liu, Guy Van den Broeck

TL;DR

Researchers from UCLA have developed a novel "Prune and Grow" strategy to scale Probabilistic Circuits (PCs) to state-of-the-art performance. By identifying that the vast majority of parameters in large PCs are effectively useless, they introduced an iterative cycle that removes unimportant sub-networks using "circuit flows" and expands promising ones. This approach achieves superior density estimation on image and language datasets alongside massive model compression.

The Problem: Wasted Capacity in PCs

Probabilistic Circuits (PCs) are a class of generative models prized for their tractability. Unlike Variational Autoencoders (VAEs) or flow-based models, which often require approximations for complex queries, PCs allow for exact and efficient computation of likelihoods and marginals.

However, PCs have historically struggled to scale. Researchers noticed a "plateau" effect: simply making the models larger by adding more layers or nodes didn't necessarily improve performance. The authors discovered the culprit: wasted capacity.

Parameter Sparsity in PCs

In large, fully-connected PC structures, the vast majority of parameters have values near zero. This means most of the model's computational power is spent on connections that contribute almost nothing to the final probability distribution.

Methods: The Prune and Grow Cycle

To address this, the authors propose a two-step iterative framework to refine the model's structure:

The Prune and Grow Operations
  1. Pruning via "Circuit Flows": Instead of just cutting edges with small weights (which only provides local information), the authors use a metric called circuit flows. This quantifies the "generative significance" of an edge—essentially, how likely that edge is to be activated when sampling from the model. They provide a theoretical bound showing that pruning edges with low circuit flow minimizes the drop in log-likelihood while drastically reducing parameter count.
  2. Growing: To regain and improve capacity, the model is "grown" by copying its existing, high-performing components and injecting a small amount of Gaussian noise. This allows the model to explore a larger latent space while retaining the knowledge it already learned.

The Cycle: The authors typically prune 75% of the edges and then "grow" the model by a factor of four. This keeps the total parameter count stable while iteratively evolving a more efficient, sparse structure. Customized GPU kernels using the Juice.jl library make this computationally feasible.

Key Insights and Results

  • Sparsity is a Feature, Not a Bug: The discovery that up to 95% of parameters in state-of-the-art PCs are near-zero suggests that dense, fully-connected layers are fundamentally the wrong architecture for these models.
  • Global vs. Local Importance: Pruning by weight magnitude is common in neural networks, but in PCs, a small weight might be locally insignificant but globally vital. The "Circuit Flow" approach solves this by looking at the total probability mass passing through a node.
  • State-of-the-Art Performance: The "Sparse PC" achieved the best-reported bits-per-dimension (bpd) on all tested MNIST-family datasets, outperforming other PC learners (like HCLT and RatSPN) as well as competitive VAEs and flow-based models. On MNIST, it achieved 1.14 bpd. On the Penn Tree Bank language dataset, it achieved 1.35 bpd.
  • Extreme Compression: The pruning method can remove 80-98% of parameters with less than a 1% drop in log-likelihood.

Limitations and Future Work

While the results are impressive, the process still relies on an initial "Hidden Chow-Liu Tree" (HCLT) structure, meaning ultimate performance may be sensitive to this starting seed. Additionally, the iterative nature of pruning, growing, and re-training introduces computational overhead compared to a single training pass on a dense model. Future work will explore applying these sparse structures to even more complex high-dimensional data, such as high-resolution natural images or longer-range text dependencies.

Summary updated

BibTeX
@inproceedings{dang2022sparse,
  author = {Meihua Dang and Anji Liu and Guy Van den Broeck},
  title = {{Sparse Probabilistic Circuits via Pruning and Growing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=SBD7QLib-lM},
}
Figure