Manuscript Offprint

arXiv:2611.12436

Patching Up Circuit Learning via Parameter Sharing

Charles Bricout, Gennaro Gala, Viacheslav Borovitskiy, Antonio Vergari

Abstract

Probabilistic circuits (PCs) have emerged as generative models guaranteeing tractable probabilistic inference. However, tractability comes at the price of larger model sizes than in other generative models. As such, to scale PCs to high-dimensional data such as images, previous work has devised several parameter sharing techniques as well as fast evaluation protocols that consider learning PCs on independent image patches. In this work, we revisit this practice to highlight a surprising learnability issue: models that assume independence counterintuitively can yield better likelihoods than models that do not. To break this apparent bottleneck and to scale PCs further, we introduce a recursive parameter sharing construction (REPA) that fosters efficiency without assuming independence. We show empirically that REPA can greatly reduce time and memory consumption while yielding competitive likelihoods. Inspired by these results, we further generalize the approach to data modalities that do not inherently exhibit patch-structure (NOPA), such as tabular data, showing similar efficiency improvements, with marginal changes in likelihoods and sample quality on seven tabular datasets. Code available at https://github.com/april-tools/RePA.

1 Introduction

Probabilistic circuits (PCs) [16, 60, 9] have emerged as a staple framework for tractable probabilistic modeling, as they can guarantee the exact computation of probabilistic inference routines such as sampling, and computing marginals or conditionals in linear time. As such, they have been successfully used in a number of applications such as lossless compression [32], generative modeling of biomedical data [14], learning and generation under symbolic constraints [3, 38, 64], multi-token prediction in LLMs [24], time-series analysis [57, 63, 27], and recently they have been shown to be competitive for tabular data generation [53]. However, the structural constraints required for tractability imply PCs cannot easily incorporate the standard inductive biases (e.g., use convolutions or skip connections [29, 25]) employed by other generative models such as normalizing flows and diffusion models [46, 61]. As a consequence, to learn PCs of reasonable quality, one needs up to an order of magnitude more parameters than for their intractable counterparts such as flow and diffusion models [30, 61, 53, 40], which is possible by overparameterizing the circuit [51, 50, 45, 40].

Not surprisingly, this becomes critical for high-dimensional data like images: scaling PCs to billions of parameters remains an open challenge, demanding steep trade-offs between model accuracy and computational resources [50, 33, 36, 65]. To navigate these trade-offs, several recent papers construct smaller PCs over non-overlapping image patches [33, 36, 34, 65]. We call this the independent patch assumption (IPA). The joint distribution over a whole image is then recovered by multiplying the probabilities of the disjoint patches of the image, as they are assumed to be independent. This accelerates experimentation under the seemingly safe presumption that model quality, measured

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: REPA delivers faster, smaller and more accurate circuits compared to PCs that assume patch independence (IPA). This is shown here in terms of average step time (seconds), GPU memory, FLOPs and bpd (i.e. normalized negative log-likelihoods) on ImageNet32 for several tensorized PC architectures. REPA markers (yellow) that have no corresponding IPA markers (blue) are those for which IPA could not be trained on 40GB GPUs in under 2 days. See Fig. 14 for similar trends on CelebA and ImageNet64 and the precise PC configuration associated to each marker.

through likelihood or sampling quality, will strictly increase once the patch independence assumption is dropped. In this paper, we study this phenomenon and advance the research into scalable PCs by introducing forms of parameter sharing that can be applied to data modalities showing a patch-like structure as well as to those without it. Specifically we make the following contributions.

First, (C1) we show that the aforementioned presumption fails in practice: PCs trained on smaller independent patches can achieve equal or better likelihoods than those trained on larger patches, despite the latter being theoretically more expressive. We call this phenomenon the independent patch conundrum (Section 3). Similarly to previous works, this highlights how overparameterizing PCs can hinder learning [36, 13]. Differently from previous works, we identify an expressiveness-learnability trade-off that depends on the domain dimensionality rather than just the number of parameters in a circuit, and we investigate principled ways to circumvent this specific bottleneck.

To this end, we build a new PC architecture (C2) that systematically exploits parameter sharing throughout all layers. Specifically, we introduce recursive parameter sharing (REPA) as a way to share sub-circuits defined over a hierarchy of coarser patches (Section 4). It can naturally be trained end-to-end while drastically reducing parameter count. REPA generalizes the form of parameter sharing that arises when patches are assumed to be independent [36] and is orthogonal to other forms of parameter sharing that have been used in training more expressive circuits [21, 22, 65].

Furthermore, we (C3) execute a systematic evaluation (Section 6) of how IPA and REPA affect not only the quality of PCs as density estimators, but also their efficiency in terms of FLOPs, time and memory consumption, as illustrated in Fig. 1. Going beyond image data, we extend REPA to work on data modalities that do not exhibit any patch structure, such as tabular data, by exploiting the hierarchical structure of the PC (C4). This technique, called no patch sharing (NOPA), yields more efficient models in terms of memory and time at the cost of marginal changes in density estimation.

Finally, we (C5) evaluate the sample quality on tabular data and show that we get a minimal decrease in sample quality on tabular data when using NOPA. Overall, we provide a stepping stone towards more efficient PC architectures and highlight that there is still much to be done to realize expressive and tractable probabilistic models.

References (59)