Training opposing directed models using geometric mean matching

Jörg Bornschein, Samira Shabanian, Asja Fischer, Yoshua Bengio

Abstract

Efficient unsupervised training and inference in deep generative models remains a challenging problem. One basic approach, called Helmholtz machine, involves training a top-down directed generative model together with a bottom-up auxiliary model used for approximate inference. Recent results indicate that better generative models can be obtained with better approximate inference procedures. Instead of improving the inference procedure, we here propose a new model which guarantees that the top-down and bottom-up distributions can efficiently invert each other. We achieve this by interpreting both the top-down and the bottom-up directed models as approximate inference distributions and by defining the model distribution to be the geometric mean of these two. We present a lower-bound for the likelihood of this model and we show that optimizing this bound regularizes the model so that the Bhattacharyya distance between the bottom-up and top-down approximate distributions is minimized. This approach results in state of the art generative models which prefer significantly deeper architectures while it allows for orders of magnitude more efficient approximate inference.

Introduction

In deep generative modeling, a central challenge is the "inference gap"—the difficulty of determining latent features that correspond to observed data. Standard architectures like Variational Autoencoders (VAEs) and Helmholtz Machines employ a top-down generative model ($p$) and a bottom-up inference model ($q$). However, these two components often diverge during training, requiring increasingly complex inference procedures to maintain performance.

The Bidirectional Helmholtz Machine (BiHM) addresses this by redefining the model's joint distribution as the geometric mean of the top-down and bottom-up models: $$p^*(x, h) \propto \sqrt{p(x, h)q(x, h)}$$ This formulation inherently regularizes the system, forcing the two models to remain consistent by minimizing the Bhattacharyya distance between them.

Methodology

The BiHM leverages Importance Sampling for training. Unlike VAEs, which typically use the reparameterization trick to backpropagate through stochastic layers, BiHMs treat samples as fixed during gradient updates. This makes the architecture particularly well-suited for discrete latent variables, such as those found in Sigmoid Belief Networks, where traditional backpropagation is challenging.

By defining the model as a bridge between generation and inference, the training process pressures the generator to produce data that the inference model can easily interpret, and vice versa. This "bidirectional" constraint acts as a powerful regularizer.

Experimental Results

The model was evaluated on binarized MNIST, the Toronto Face Database (TFD), and several UCI binary datasets.

Performance and Efficiency

On binarized MNIST, the BiHM achieved a state-of-the-art log-likelihood of approximately -84.3, surpassing other non-autoregressive models. A key advantage is evaluation efficiency: because the models are well-aligned, high-quality likelihood estimates can be obtained with as few as 10 to 100 samples, compared to the 10,000+ samples often required by competing methods.

Figure 1: (A) Generated samples, (B) reconstructions, and (C) testset log-likelihood vs. number of evaluation samples for BiHM compared to RWS and VAE.

Architectural Depth

Unlike previous Helmholtz-style models like Reweighted Wake-Sleep (RWS), which often perform best with shallow architectures, BiHMs thrive on depth. The best-performing MNIST models utilized up to 12 latent layers, suggesting that the geometric mean matching effectively coordinates deep hierarchical representations.

Qualitative Evaluation and Inpainting

The model produces crisp, recognizable samples and demonstrates strong performance on inpainting tasks, where it must predict missing portions of an image based on learned latent structures.

Figure 3: Qualitative results for image inpainting across various MNIST digits.

Conclusion

The Bidirectional Helmholtz Machine offers a novel perspective on the relationship between generation and inference. By enforcing consistency through a geometric mean formulation, it enables the training of deeper, more efficient generative models. Future work may extend this framework to continuous data and semi-supervised learning tasks.

Summary updated

Abstract

Efficient unsupervised training and inference in deep generative models remains a challenging problem. One basic approach, called Helmholtz machine, involves training a top-down directed generative model together with a bottom-up auxiliary model used for approximate inference. Recent results indicate that better generative models can be obtained with better approximate inference procedures. Instead of improving the inference procedure, we here propose a new model which guarantees that the top-down and bottom-up distributions can efficiently invert each other. We achieve this by interpreting both the top-down and the bottom-up directed models as approximate inference distributions and by defining the model distribution to be the geometric mean of these two. We present a lower-bound for the likelihood of this model and we show that optimizing this bound regularizes the model so that the Bhattacharyya distance between the bottom-up and top-down approximate distributions is minimized. This approach results in state of the art generative models which prefer significantly deeper architectures while it allows for orders of magnitude more efficient approximate inference.
BibTeX
@inproceedings{bornschein2016training,
  author = {Jörg Bornschein and Samira Shabanian and Asja Fischer and Yoshua Bengio},
  title = {{Training opposing directed models using geometric mean matching}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
  url = {https://openreview.net/forum?id=SJ-wZj-ubr},
}
Figure