This paper, presented at IJCAI-22, introduces Exchangeability-Aware Sum-Product Networks (XSPNs), a new probabilistic model that bridges the gap between deep probabilistic circuits and relational modeling. XSPNs extend Sum-Product Networks by allowing leaf nodes to represent groups of "exchangeable" variables—where the joint probability depends on counts rather than individual identities. This allows the model to capture complex dependencies in relational data more accurately and compactly than standard SPNs while maintaining tractable inference.
The Challenge: Expressivity vs. Tractability
Probabilistic modeling often faces a trade-off between expressivity and tractability (the ease of calculating answers to queries). Sum-Product Networks (SPNs) are popular because they allow for exact, linear-time inference by exploiting local independence between variables.
However, in many real-world "relational" domains—like predicting workshop attendance or analyzing voting records—variables are not independent. Instead, they are exchangeable. For example, the probability that $k$ people attend a workshop might depend on the total number of attendees, but not on which specific individuals they are. Standard SPN learning algorithms struggle here; they try to force these dependencies into tree structures of independent factors, leading to models that are either massive and overfit or too simple to be accurate.
Methodology: The XSPN Framework
The authors propose a unified framework that combines SPNs with Mixtures of Exchangeable Variable Models (MEVMs).
The XSPN Architecture
Unlike a standard SPN where leaves are typically univariate (single variable) distributions, XSPNs allow for multivariate leaf nodes that represent partially exchangeable distributions. This structural change allows a single leaf to replace a complex subtree that would otherwise be required to model dependencies between exchangeable variables.
Structure Learning (LearnXSPN)
The authors extend the classic LearnSPN algorithm. At each recursive step, the algorithm now performs three checks:
- Independence: Can the variables be split into independent sets? (If yes, create a Product node).
- Clustering: Can the data be partitioned into similar subsets? (If yes, create a Sum node).
- Exchangeability: Are the variables interchangeable? If the algorithm detects exchangeability using a pairwise Pearson’s $\chi^2$ test, it stops recursing and creates an exchangeable leaf node.
Experimental Evaluation
The authors evaluated XSPNs across three categories: synthetic datasets designed with exchangeable properties (e.g., "counting" and "parity" problems), real-world relational data (student exam participation and legislative voting records), and 20 standard SPN benchmark datasets.
Key Results and Insights
- Superior Density Estimation: On real-world voting data (especially the German
bundestagset), XSPNs achieved significantly higher log-likelihoods, suggesting they captured the "party-line" voting dependencies that standard models missed. - Discovery vs. Definition: Unlike many statistical relational models that require a human expert to define exchangeable variables, XSPNs discover these relationships directly from the data.
- Extreme Compactness: Because an exchangeable leaf can represent a complex joint distribution using only a few parameters, XSPNs are much smaller than equivalent SPNs. For one dataset, the XSPN used only 52 parameters compared to the standard SPN's 363.
Conclusion and Future Work
XSPNs demonstrate that incorporating exchangeability into deep probabilistic circuits leads to more accurate and efficient models for relational data. While currently limited to discrete variables and relying on a pairwise heuristic for exchangeability detection, future work could extend this to continuous domains and explore alternative tractable statistics to capture different types of partial exchangeability.
Summary updated