Introduction
Deep Generative Models (DGMs) have demonstrated remarkable success in generating complex graph structures, such as molecular graphs for drug discovery. However, most state-of-the-art models, including Graph Neural Networks and Diffusion models, are "intractable." While they can sample new graphs, they cannot efficiently compute exact likelihoods or perform precise probabilistic inference. This paper introduces Probabilistic Graph Circuits (PGCs), a novel class of deep generative models designed to bring mathematical tractability to graph data.
The Challenges of Graph Modeling
The authors identify four primary hurdles that make graph modeling particularly difficult:
- Combinatorial Complexity: The space of possible graphs grows astronomically with the number of nodes.
- Variable Size: Graphs do not have a fixed dimensionality; models must handle varying numbers of nodes and edges.
- Permutation Invariance: A graph's identity is independent of node indexing, yet most computational representations are sensitive to ordering.
- Semantic Validity: Domain-specific constraints, such as chemical valency, must be respected.
PGCs address these challenges by leveraging the properties of Probabilistic Circuits (PCs)—computational graphs composed of sum, product, and input units that represent valid probability distributions.
Methodology
To adapt PCs for graphs, the researchers introduced several key innovations:
Hybrid Architecture and Representation
The model utilizes a hybrid architecture consisting of a node-PC and an edge-PC. The node-PC models the distribution of atom types, while the edge-PC models the connectivity. Their outputs are combined at the root to capture essential correlations between node attributes and edge structures.
Handling Variable Size and Invariance
To manage variable graph sizes, PGCs use Marginalization Padding. By defining a maximum size $m$ and utilizing the efficient marginalization capabilities of PCs, unused nodes and edges can be mathematically ignored without computational overhead.
Regarding permutation invariance, the authors propose Invariance by Sorting ($\pi$PGCs). By transforming graphs into a canonical ordering (e.g., using Breadth-First Search or Reverse Cuthill-McKee) before processing, the model can learn structured patterns more effectively. While this approach provides a variational lower bound rather than an exact likelihood, it offers a powerful balance between expressivity and computational efficiency.
Experimental Results
PGCs were evaluated on standard molecular benchmarks, including QM9 (small organic molecules) and Zinc250k (larger drug-like molecules).
As shown in the results table, $\pi$PGC variants (such as RT-S and HCLT) achieve competitive performance compared to intractable models like GraphAF and MoFlow. Notably, on the Zinc250k dataset, the RT-S variant achieved the best score in Fréchet ChemNet Distance (FCD), indicating high chemical realism in its generated structures.
Key Insights
- Tractability Enables Control: Unlike black-box models, PGCs allow for conditional generation. A user can provide a molecular "scaffold" (subgraph) and the model can generate the remaining structure by applying standard probabilistic conditioning rules.
- The Importance of Permutation Sensitivity: Anomaly detection experiments revealed that models failing to account for permutation invariance often "hallucinate" anomalies, assigning low probability to valid graphs simply because their nodes were reordered.
- Sorting as a Learnability Hack: Canonical ordering makes adjacency matrices more structured, significantly easing the learning process for the probabilistic circuit.
Conclusion and Future Work
PGCs represent a significant step toward tractable graph modeling. While they show strong performance in generating realistic structures and performing exact inference, challenges remain. Specifically, the "validity gap" on larger datasets suggests a need for deeper integration between node and edge components. Future work will focus on optimizing software libraries for the hybrid variables required by graph data and exploring deeper architectural interactions to better capture complex chemical constraints.
Summary updated