Abstract
Probabilistic Circuits (PCs) represent a class of generative models that provide the "holy grail" of machine learning: tractable and exact inference. However, despite their theoretical advantages, PCs have historically struggled to scale to the complexity of modern datasets, often hitting a performance plateau as model size increases. This paper introduces Latent Variable Distillation (LVD), a novel training technique that leverages the expressive power of "intractable" teacher models (such as Transformers and Masked Autoencoders) to guide the optimization of large-scale PCs. Our results demonstrate that LVD allows PCs to scale to nearly a billion parameters, achieving state-of-the-art performance on benchmarks like ImageNet and WikiText-2 while maintaining exact inference capabilities.
The Scaling Wall in Probabilistic Modeling
In generative AI, researchers typically face a trade-off between expressiveness and tractability. Deep generative models like Variational Autoencoders (VAEs) or Diffusion models are highly expressive but computationally "intractable" for many queries; calculating a simple marginal probability often requires expensive approximations.
Probabilistic Circuits (PCs) are designed to solve this by ensuring that queries like marginals and conditionals can be computed exactly and efficiently. However, they suffer from a significant "scaling wall." As the number of parameters in a PC increases, its performance (measured by log-likelihood) typically plateaus. Standard optimization algorithms, such as Expectation-Maximization (EM), struggle to navigate the massive, high-dimensional latent spaces of large PCs, leaving their theoretical capacity untapped.
Methodology: Latent Variable Distillation (LVD)
The core contribution of this work is Latent Variable Distillation (LVD). Instead of relying on unsupervised discovery of latent structures, LVD uses a pre-trained "teacher" model—which is expressive but less tractable—to provide explicit supervision for the PC’s latent variables.
The LVD pipeline consists of three primary stages:
- Materialization: The PC structure is defined with explicit latent variables (LVs) corresponding to specific data regions (e.g., image patches or text sequences).
- Induction (The Distillation Step): A teacher model (e.g., BERT for text or a Masked Autoencoder for images) generates embeddings for the training data. These embeddings are clustered (using K-means) to assign discrete "semantic labels" to the PC's latent variables. This process effectively tells the PC what each latent variable should represent, such as a specific linguistic structure or visual texture.
- Parameter Learning: With these labels assigned, the optimization problem simplifies into many smaller, independent tasks that can be solved efficiently in closed-form or via fast parallelized estimation.
Experimental Results and Scaling
The researchers evaluated LVD on standard benchmarks including WikiText-2 for language and ImageNet32 for images. The results confirm that LVD successfully overcomes the optimization bottleneck that previously hindered large-scale PCs.
Key Findings:
- Breaking the Plateau: As shown in the scaling plots, while standard PCs flatline, LVD-trained models show consistent performance improvements as they scale from 1 million to nearly 1 billion parameters.
- State-of-the-Art for Tractable Models: LVD significantly outperformed existing Tractable Probabilistic Model (TPM) baselines. On ImageNet32, LVD achieved 4.39 bits-per-dimension (bpd), a substantial improvement over the 4.82 bpd achieved by the previous best tractable models.
- Efficiency: By decomposing the learning task, LVD is remarkably efficient. A 500-million parameter PC was trained on CIFAR in just 10 hours on a single GPU—a feat that would be impossible or yield far worse results using traditional EM-based methods.
Conclusion
By bridging the gap between the raw expressive power of deep learning and the mathematical rigor of probabilistic circuits, Latent Variable Distillation opens a new path for building large-scale, reliable, and interpretable generative models. For the first time, these tractable models are becoming competitive with popular "black box" generative models while retaining the unique ability to perform exact probabilistic queries.
Summary updated