Understanding the Distillation Process from Deep Generative Models to Tractable Probabilistic Circuits

Xuejie Liu, Anji Liu, Guy Van den Broeck, Yitao Liang

Introduction: The Expressivity vs. Tractability Trade-off In generative AI, researchers constantly navigate the trade-off between expressivity and tractability. Deep Generative Models (DGMs) like Variational Autoencoders (VAEs) and Diffusion Models are highly expressive, capable of modeling complex, high-dimensional data like high-resolution images. However, they are generally intractable, meaning exact computation of basic inference tasks—such as calculating marginal probabilities—is computationally infeasible.

Conversely, Probabilistic Circuits (PCs) are designed specifically for tractability, allowing for exact and efficient inference. Historically, PCs have struggled to scale to complex, real-world datasets. To bridge this gap, Latent Variable Distillation (LVD) was introduced, using an expressive DGM "teacher" to provide latent variable assignments to train a PC "student." While LVD showed promise, the underlying mechanics of why it worked—and why certain teacher-student pairings failed—remained poorly understood.

The Distillation Mystery: How the Student Beats the Teacher In standard neural network distillation, the student model is typically a smaller, slightly less accurate approximation of the teacher. However, this paper reveals a counterintuitive phenomenon: tractable PCs can actually outperform the DGMs they are distilled from.

By reframing LVD through the lens of Variational Inference (VI), the authors demonstrate that the performance gap between a teacher DGM and a student PC consists of two components: the "LVD gap" (loss incurred during distillation) and the "variational gap" (the inherent approximation error present in the teacher). Because PCs are tractable, they can compute exact likelihoods by marginalizing latent variables exactly. This mathematical advantage allows the PC student to close the variational gap that the teacher is fundamentally stuck with, effectively providing a "free lunch" for likelihood and enabling the student to surpass its master.

Methodology: Progressive Growing and Image-Specific Design To minimize distillation gaps and maximize PC performance, the authors introduce two major innovations:

  1. Progressive Growing Algorithm (LVD-PG): Previous LVD methods relied on "one-shot" discretization, such as running K-means clustering once on DGM features. This paper proposes an iterative, feedback-driven approach. The PC is trained on current clusters, and then the PC’s own feedback is used to re-assign samples to clusters they fit better. Furthermore, the algorithm identifies clusters with poor likelihood and dynamically "grows" the PC structure specifically for those samples using a metric called Circuit Flow.
  2. Image-Specific Design Guidelines: The researchers identified that PCs perform best when their inductive biases align with the teacher model. For image data, this involves implementing parameter tying (treating different image patches similarly) and utilizing an independent decoder to match the PC’s conditional independence assumptions.

Key Results: State-of-the-Art Tractable Modeling Evaluated on challenging image modeling benchmarks—CIFAR-10, ImageNet32, and ImageNet64—the proposed LVD-PG method set new records for Tractable Probabilistic Models (TPMs).

  • Unprecedented Likelihood: On ImageNet32, the PC achieved 4.06 bits-per-dimension (bpd). This outperforms several intractable models like Glow (4.09 bpd) and trails the state-of-the-art Variational Diffusion Model (3.72 bpd) by only 0.34 bpd.
  • Parameter Efficiency: LVD-PG achieves superior results with a fraction of the parameters. On CIFAR-10, a 12-million parameter LVD-PG model outperformed an 800-million parameter PC trained using the original LVD method.
  • Consistency: Across all tested datasets, LVD-PG consistently outperformed previous PC baselines, such as HCLT and EiNet, by a wide margin.

Limitations and Future Directions Despite achieving impressive likelihood metrics, the authors note a significant qualitative hurdle: sample quality. While LVD-PG models are mathematically accurate at predicting pixel probabilities, the images they generate often appear noisy or lack fine details compared to those produced by DGMs. This underscores a known phenomenon in generative modeling where high log-likelihood does not strictly correlate with high perceptual quality.

To address this, the authors suggest exploring hybrid models in future work. Such architectures could leverage PCs for high-level semantic reasoning—where exact tractability is highly beneficial—while employing neural networks as decoders to handle fine-grained, perceptual pixel generation.

Summary updated

BibTeX
@inproceedings{liu2023understanding,
  author = {Xuejie Liu and Anji Liu and Guy Van den Broeck and Yitao Liang},
  title = {{Understanding the Distillation Process from Deep Generative Models to Tractable Probabilistic Circuits}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=71Xv165a8g},
}
Figure