Scaling Probabilistic Circuits via Data Partitioning

Jonas Seng, Florian Peter Busch, Pooja Prasad, Devendra Singh Dhami, Martin Mundt, Kristian Kersting · DOI

Abstract

Probabilistic Circuits (PCs) offer a powerful framework for tractable density estimation but face significant scaling challenges on massive datasets. This work introduces Federated Circuits (FCs), a novel framework that unifies horizontal, vertical, and hybrid Federated Learning (FL) by mapping PC structural constraints to data partitioning schemes. By leveraging a communication-efficient "one-pass" training algorithm, FCs enable the scaling of tractable probabilistic models to large-scale distributed datasets while maintaining exact inference capabilities.

Introduction

Probabilistic Circuits (PCs) are a class of deep generative models that guarantee tractable inference for complex queries, such as marginalization and conditioning. Despite their mathematical elegance, scaling PCs to real-world, massive datasets is difficult due to strict structural requirements like smoothness and decomposability. Simultaneously, the field of Federated Learning (FL) remains fragmented, with separate approaches for horizontal (different samples), vertical (different features), and hybrid data partitioning.

This paper addresses these challenges by introducing Federated Circuits (FCs). The core insight is that the structural components of PCs—specifically sum and product nodes—naturally correspond to horizontal and vertical data partitioning strategies. This unification allows for a scalable, distributed density estimation framework that is both communication-efficient and mathematically rigorous.

The Federated Circuits Framework

The FC framework bridges the gap between PC structure and FL paradigms through a direct mapping:

  • Sum Nodes (Horizontal FL): Sum nodes, which represent mixtures of distributions, are used to aggregate models trained on disjoint sets of samples sharing the same features.
  • Product Nodes (Vertical FL): Product nodes, which combine distributions over disjoint sets of variables, are used to aggregate models trained on the same samples but with different features.
Mapping data partitioning to PC structural components. Hybrid FL is achieved by combining sum and product nodes.

FedPCs and One-Pass Training

A practical implementation of this framework, termed FedPCs, utilizes PCs as the "leaf" models on individual client machines. Unlike traditional FL algorithms like FedAvg that require multiple iterative communication rounds, FedPCs employ a "one-pass" training algorithm. Clients train their local PC models independently, and the server performs a single aggregation step to determine the weights of the global mixture. This approach drastically reduces network overhead and bypasses the communication bottlenecks typical of iterative FL.

Experimental Evaluation

The authors evaluated FedPCs across a diverse range of datasets, including large-scale image data (ImageNet, ImageNet32, CelebA) and various tabular benchmarks (MNIST, Income, Credit Fraud).

Key Results

  • Efficiency and Scalability: On the MNIST dataset, FedPCs achieved a 14x speedup (0.07x runtime) compared to a centralized model while maintaining nearly identical log-likelihood. Furthermore, increasing the number of clients actually improved density estimation performance on ImageNet32, as the aggregate model became more expressive without increasing local compute burdens.
  • Performance Benchmarks: FedPCs outperformed state-of-the-art PC libraries such as EiNets and PyJuice in density estimation tasks on ImageNet and CelebA.
  • Classification Accuracy: In federated classification tasks, FCs (using both PCs and Decision Trees as leaves) performed as well as or better than specialized neural architectures like TabNet and tree-based methods like FedTree, particularly in complex hybrid partitioning scenarios.

Discussion and Conclusion

The Federated Circuits framework demonstrates that the mathematical constraints required for tractable inference in PCs are exactly the properties needed for efficient data partitioning in a federated setting. By treating FL as a distributed density estimation problem, FCs provide a unified solution for horizontal, vertical, and hybrid scenarios.

While the "one-pass" approach offers significant communication efficiency, future work is needed to address the local computational requirements for extremely large-scale models. Additionally, establishing formal differential privacy guarantees for FCs remains a critical area for exploration. Overall, FCs represent a significant step forward in scaling tractable probabilistic models to the massive, distributed datasets of the modern era.

Summary updated

BibTeX
@misc{seng2025scaling,
  author = {Jonas Seng and Florian Peter Busch and Pooja Prasad and Devendra Singh Dhami and Martin Mundt and Kristian Kersting},
  title = {{Scaling Probabilistic Circuits via Data Partitioning}},
  year = {2025},
  eprint = {2503.08141},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.08141},
}
Figure