A Unified Framework for Human-Allied Learning of Probabilistic Circuits

Athresh Karanam, Saurabh Mathur, Sahil Sidheekh, Sriraam Natarajan

Introduction

Probabilistic Circuits (PCs) have emerged as a powerful class of generative models capable of performing exact and efficient probabilistic inference. Despite their strengths, PCs typically rely on large datasets to capture the underlying distribution of a domain. In scenarios where data is scarce, noisy, or incomplete—common in fields like healthcare and engineering—purely data-driven PCs often struggle to generalize or fail to respect fundamental domain logic.

To address this, we present a unified framework for "Human-Allied Learning" in PCs. This approach allows researchers to integrate qualitative domain expertise directly into the model training process as differentiable constraints. By bridging the gap between raw data and human insight, we enable PCs to achieve superior performance and robustness.

The Human-Allied Learning Framework

The core of our approach is a penalty-based optimization framework. Rather than relying solely on maximum likelihood estimation (MLE), the objective function incorporates a penalty term for every violation of a predefined domain rule.

Differentiable Constraints

Knowledge is encoded as differentiable equality or inequality constraints. This flexibility allows for the integration of various types of expertise:

  • Monotonicity: Ensuring that an increase in one variable (e.g., BMI) consistently correlates with a change in another (e.g., disease risk).
  • Context-Specific Independence: Specifying that certain variables become independent under specific conditions.
  • Symmetry and Generalization: Encoding structural properties, such as permutation invariance in image data or rotational symmetry in physical manifolds.

Learning Algorithm

The framework employs an iterative learning strategy. It begins with a standard MLE solution and incrementally increases the "penalty weight" for constraint violations. This method ensures that the model remains grounded in the observed data while increasingly adhering to human-provided guidance.

Experimental Validation

We evaluated the framework across diverse benchmarks, ranging from synthetic manifolds to real-world clinical data.

Comparison of standard EinsumNet vs. EinsumNet with Generalization Constraints (GC) on a 3D Helix dataset.

In the 3D Helix experiment, the training set contained only half of a spiral. A standard data-driven model (EinsumNet) failed to predict the missing half. However, by introducing a Generalization Constraint (GC) based on the spiral's inherent symmetry, the model successfully reconstructed the entire shape, demonstrating the power of knowledge as a regularizer.

On the nuMoM2b clinical dataset, which tracks pregnancy outcomes, the inclusion of medical knowledge led to a dramatic improvement in predictive accuracy. The mean test log-likelihood jumped from -14573.9 to -7288.2. Furthermore, the model maintained high fidelity to the constraints, with violation degrees consistently remaining below 0.0001.

Discussion and Key Insights

Our results highlight several critical advantages of human-allied learning:

  1. Robustness to Noisy Advice: The framework is surprisingly resilient to imperfect human input. Even when a significant portion of the provided rules are noisy, the combination of data and constraints still outperforms data-only models.
  2. Synergistic Effects: Combining multiple types of constraints (e.g., independence and monotonicity) often yields better results than using them individually, suggesting the framework scales effectively with complex domain knowledge.
  3. Simplicity and Efficiency: By using simple differentiable penalty terms, we provide an accessible way for domain experts to guide model learning without requiring deep expertise in optimization theory.

Future Directions

While the current framework excels at parameter learning within a fixed architecture, future work will focus on Knowledge-Intensive Structure Learning. Using human insight to guide the construction of the PC's graph itself represents a significant next step. Additionally, extending these techniques to relational data—where entities have complex, multi-layered relationships—remains a promising area for exploration.

Summary updated

BibTeX
@inproceedings{karanam2025unified,
  author = {Athresh Karanam and Saurabh Mathur and Sahil Sidheekh and Sriraam Natarajan},
  title = {{A Unified Framework for Human-Allied Learning of Probabilistic Circuits}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i17.33955},
}
Figure