NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Conditionally Tractable Density Estimation using Neural Networks

Hailiang Dong, Chiradeep Roy, Tahrima Rahman, Vibhav Gogate, Nicholas Ruozzi

Abstract

This paper introduces a hybrid modeling framework that bridges the gap between the representational power of deep neural networks and the formal guarantees of Tractable Probabilistic Models (TPMs). By partitioning variables into a small "complex" set (cutset) and a larger "tractable" set (leaf variables), the proposed Parameter Generation Neural Network (PGNN) captures non-linear dependencies in continuous data while enabling efficient, accurate inference through cutset sampling.

Introduction: The Expressivity-Tractability Trade-off

In machine learning, there is a persistent tension between model expressivity and tractability. Deep generative models, such as Variational Autoencoders (VAEs), offer immense expressive power but often function as "black boxes" where exact probability calculations or complex reasoning are intractable. Conversely, Tractable Probabilistic Models (TPMs) allow for exact, high-speed queries but frequently struggle with the "wiggly" nature of continuous real-world data, often relying on simplistic assumptions like Gaussian mixtures.

The authors address this gap by proposing a model that handles complex, non-linear relationships in continuous variables without sacrificing the ability to perform reliable Marginal Maximum A Posteriori (MMAP) inference.

Methods: The Parameter Generation Neural Network (PGNN)

The core innovation is a "conditionally tractable" generative model. The approach involves splitting random variables into two distinct groups:

  1. The Cutset ($\mathbf{X}$): A small subset capturing the most complex dependencies, modeled using a standard mixture of Gaussians.
  2. The Leaf Variables ($\mathbf{Y}$): The remaining variables, modeled as a Gaussian Bayesian Network (GBN).

The Parameter Generation Neural Network (PGNN) serves as the bridge. Instead of using fixed parameters for the GBN, the PGNN takes values from the cutset $\mathbf{X}$ as input and dynamically predicts the weights ($w$), biases ($b$), and variances ($\sigma$) for the GBN.

The PGNN architecture consists of Building Blocks (BBlocks) and Headers that dynamically generate parameters for the tractable model.

This structure ensures conditional tractability: once the values of $\mathbf{X}$ are known, the distribution over $\mathbf{Y}$ becomes a simple, tractable Gaussian. For unknown $\mathbf{X}$, the model employs cutset sampling, which is significantly more accurate than standard "blind" sampling because it leverages the underlying GBN structure.

Experimental Evaluation

The model was evaluated on two primary benchmarks:

  • MNIST Image Completion: Predicting missing portions of handwritten digits (e.g., top half given the bottom half).
  • UCI Repository: Ten diverse real-world datasets (e.g., air quality, energy, Parkinson’s symptoms) used to benchmark MMAP inference.

Key Results

The PGNN demonstrated superior performance across both benchmarks. On the UCI datasets, the model achieved the lowest average Root Mean Square Error (RMSE) compared to established competitors like Sum-Product Networks (SPNs) and RNADE.

Image completion results on MNIST. The PGNN (ours) generates sharp, plausible completions even when the predicted digit differs from the original, avoiding the blurriness seen in baseline models.

On the MNIST dataset, the model produced "plausible" completions. Even in cases where it predicted a different digit (e.g., completing a 4 as a 9), the resulting images remained sharp and valid, whereas baseline models often produced blurry, unimodal "average" images. Furthermore, the PGNN proved more efficient to deploy, requiring significantly fewer hyperparameters to tune than RNADE.

Discussion and Insights

A significant finding of this research is that Log-likelihood (LL) can be a deceptive metric for continuous data. High LL scores do not always correlate with low RMSE. In continuous space, LL is unbounded and can be inflated by models that fit a few points extremely tightly while failing to capture the overall data structure.

By using neural networks as "parameter factories" rather than direct predictors, the authors maintain mathematical rigor and interpretability. For variable selection, the team found that Principal Component Analysis (PCA) is a highly effective heuristic for identifying which variables should belong to the cutset.

Limitations and Future Work

The model's primary limitation is the "Missing Cutset" problem: tractability is reduced if cutset variables are missing, necessitating slower sampling methods. Additionally, the "Header" blocks in the architecture scale quadratically with the number of variables, which may pose challenges for high-dimensional data like high-resolution video. Future research will focus on applying this framework to temporal data and developing more robust training methods to prevent parameter overfitting.

Summary updated

BibTeX
@inproceedings{dong2022conditionally,
  author = {Hailiang Dong and Chiradeep Roy and Tahrima Rahman and Vibhav Gogate and Nicholas Ruozzi},
  title = {{Conditionally Tractable Density Estimation using Neural Networks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
}
Figure