Rethinking Probabilistic Circuit Parameter Learning

Anji Liu, Zilei Shao, Guy Van den Broeck

TL;DR

Probabilistic Circuits (PCs) are powerful generative models, but training them efficiently on large datasets has been a long-standing challenge. This paper introduces anemone, a novel mini-batch Expectation-Maximization (EM) algorithm that uses a theoretically grounded adaptive learning rate to prevent distribution drift. Across language, image, and genomic datasets, anemone dramatically accelerates convergence speed (up to 8x faster) while achieving superior final log-likelihood compared to standard optimizers.

What Problem Does This Paper Address?

Probabilistic Circuits (PCs) excel at exact and efficient probabilistic inference (such as computing marginal probabilities), making them a highly tractable alternative to deep generative models. However, learning their parameters effectively at scale is difficult.

The gold standard, full-batch Expectation-Maximization (EM), requires scanning the entire dataset before making a single parameter update—making it completely impractical for large datasets. While practitioners use mini-batch EM variants or gradient-based optimizers like Adam to speed things up, these methods consistently underperform in final log-likelihood compared to full-batch EM. The authors tackle this gap, revealing that existing mini-batch methods fail to properly regularize distribution changes, causing the model to "overfit" to individual mini-batches and drift away from the true data distribution.

Methods

The authors re-evaluate full-batch EM through the lens of a regularized first-order Taylor approximation of the log-likelihood, where a Kullback–Leibler (KL) divergence term acts as a regularizer to penalize large deviations from the current joint distribution.

To adapt this to the mini-batch setting, they introduce anemone ("an EM one"). By increasing the weight on the KL divergence term, anemone compensates for the reduced information in a mini-batch. This results in a closed-form update rule that implicitly applies an adaptive learning rate to each parameter based on its top-down probability (TD-prob)—effectively updating only the parameters that strongly influence the current batch's likelihood while leaving others stable.

Additionally, the paper introduces a momentum update scheme tailored for parameter flows and a post-update global parameter normalization algorithm that enforces local normalization constraints without disrupting the optimization dynamics.

Datasets

The authors evaluated their method across three distinct domains using four widely used PC architectures (HCLTs, PDHCLTs, HMMs, and Monarch HMMs):

  • DNA Sequence Modeling: Genomic data from the UK Biobank (Chromosome 6 dataset).
  • Image Modeling: ImageNet32, preprocessed using both lossy YCoCg and lossless YCoCg-R color space transformations.
  • Language Modeling: WikiText-103, tokenized using the standard GPT-2 tokenizer.

Key Insights and Ideas

  • The Geometry of Distributions Matters: Standard gradient-based optimizers like Adam use an $L_2$ regularization penalty, which constrains movement in the parameter space. EM uses a KL divergence penalty, which constrains movement in the distribution space. Because proximity in parameter space doesn't equal proximity in distribution space, EM-style updates respect the model's underlying probabilistic geometry much better.
  • Overfitting the Mini-batch: Vanilla mini-batch EM updates all parameters uniformly. If a mini-batch only activates a specific mode (e.g., the left peak of a mixture model), a uniform update will erroneously alter parameters for unrepresented modes. Anemone solves this by scaling updates based on a node's "relative importance" to the current sample.
  • Synergy with Momentum: Interestingly, adding momentum to standard mini-batch EM provides almost no benefit. However, when combined with anemone's adaptive learning rates, momentum significantly boosts the final log-likelihood, showing a powerful algorithmic synergy.

Key Results

  • Faster and Better: Anemone consistently outperformed full-batch EM, mini-batch EM, and Adam across all datasets and architectures, achieving higher final log-likelihoods.
  • Massive Speedups: As shown in the training curves, anemone converges significantly faster, requiring roughly 8x fewer epochs to reach the same validation log-likelihood thresholds as full-batch EM on the BioBank dataset.
  • Robustness to OOM: While Adam suffered from Out-Of-Memory (OOM) errors on larger model configurations (like HCLT 1024 on ImageNet32), anemone remained highly memory-efficient and stable.
Log-Likelihood convergence curves over epochs

Limitations and Future Work

  • Hyperparameter Tuning: Although anemone eliminates some of the instability of standard mini-batch EM, it introduces a learning rate parameter ($\alpha$ or $\eta$) and momentum ($\beta$) that still require tuning or scheduling (e.g., cosine decay) for optimal performance.
  • Structural Constraints: The method relies on the PC being smooth and decomposable. While these are standard assumptions for tractable PCs, extending these regularized mini-batch updates to unconstrained or looser circuit structures remains an open question.

Summary updated

BibTeX
@inproceedings{liu2026rethinking,
  author = {Anji Liu and Zilei Shao and Guy Van den Broeck},
  title = {{Rethinking Probabilistic Circuit Parameter Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=GP4CwozHGi},
}
Figure