Probabilistic Circuits (PCs) have long been the "clean" alternative in generative modeling. They allow for exact, tractable inference for complex queries that would be impossible for standard GANs or Diffusion models. However, PCs have historically struggled to scale to the massive, high-dimensional datasets where deep learning thrives.
This paper from researchers at UCLA introduces Latent Variable Distillation (LVD), a clever method to bridge the gap between the tractability of PCs and the raw expressive power of modern Transformers. By using "less tractable" models (like BERT or Masked Autoencoders) to provide supervision for the PC’s latent variables, LVD breaks the performance plateau of traditional PC training. This approach achieves competitive results on ImageNet and WikiText while remaining significantly faster to train than previous methods.
The Optimization Bottleneck
Probabilistic Circuits are a unified framework for models that support efficient computation of marginals, conditionals, and other probabilistic queries. Theoretically, as you add more parameters to a PC, its expressive power should increase.
In practice, however, researchers observe a frustrating optimization bottleneck: as PCs get larger, their performance immediately plateaus. Because PCs can be viewed as latent variable models with deep, nested hierarchies, the landscape of the marginal likelihood becomes incredibly complex. Standard optimizers (like Expectation-Maximization) get stuck in poor local optima, failing to exploit the "extra room" provided by a larger architecture.
As seen in the scaling plots, while standard PCs flatline as they grow, LVD-trained PCs continue to improve, finally exhibiting the scaling law behavior expected in deep learning.
Methods: Latent Variable Distillation
The core idea behind LVD is that instead of letting the PC figure out its latent space from scratch, a powerful "teacher" model provides a roadmap.
- Materializing Latent Variables: The hidden "choices" within the PC are made explicit. For example, in an image model, a latent variable might represent which "type" of patch is being generated.
- Inducing Assignments (Distillation): A pre-trained deep generative model (the teacher) extracts features from the data. For text, the authors use BERT embeddings of suffixes; for images, they use a Masked Autoencoder (MAE) to get patch features. These features are then clustered using K-means, and each data point is assigned a "latent label" based on its cluster.
- Parameter Learning: Instead of optimizing the difficult marginal likelihood, the model optimizes a lower bound using these induced assignments. This effectively turns a massive, unsupervised problem into a series of smaller, supervised ones.
- Efficient Decomposition: Because the latent assignments provide structure, the PC can be decomposed into independent sub-circuits. This allows for massive parallelization, reducing training time from days to hours.
Crucially, the "teacher" model doesn't need to be tractable itself. It acts as a black box that provides a semantically meaningful clustering of the data to guide the PC. By using BERT or MAE, the latent variables in the PC gain semantic meaning (e.g., consistently representing "blue sky patches" or "verb phrases"), which drastically smooths the optimization landscape.
Key Results
The authors evaluated LVD on standard benchmarks for both language (WikiText-2) and image modeling (CIFAR-10, ImageNet32, and ImageNet64).
- Performance Boost: On ImageNet32, LVD achieved a bits-per-dimension (bpd) of 4.39, significantly outperforming previous state-of-the-art tractable models like HCLT (4.82).
- Competitive with Deep Models: The LVD-trained PCs achieved performance competitive with popular "less tractable" models like RealNVP (4.28) and Glow (4.09), narrowing the gap between tractable and non-tractable generative modeling.
- Training Speed: A 500M parameter model that would normally take over a day to converge was trained in just 10 hours on a single NVIDIA A5000 GPU.
Limitations and Future Work
While LVD represents a massive leap forward, the authors identify a few areas for improvement:
- Data Hunger: In the current implementation, each sub-circuit is trained only on a subset of the data (the samples in its cluster). This makes the model relatively data-hungry.
- Parameter Tying: Future work could explore tying parameters across different sub-circuits to improve sample efficiency.
- Heuristic Clustering: Using K-means on embeddings is a heuristic approach. There may be more principled ways to align the teacher's latent space with the PC's structure.
Overall, this paper provides a highly promising path forward for tractable AI, proving that formal probabilistic guarantees do not have to be sacrificed for the sake of scale.
Summary updated