Adversarial Message Passing For Graphical Models

Theofanis KaraletsosarXiv 2016

Abstract

Bayesian inference on structured models typically relies on the ability to infer posterior distributions of underlying hidden variables. However, inference in implicit models or complex posterior distributions is hard. A popular tool for learning implicit models are generative adversarial networks (GANs) which learn parameters of generators by fooling discriminators. Typically, GANs are considered to be models themselves and are not understood in the context of inference. Current techniques rely on inefficient global discrimination of joint distributions to perform learning, or only consider discriminating a single output variable. We overcome these limitations by treating GANs as a basis for likelihood-free inference in generative models and generalize them to Bayesian posterior inference over factor graphs. We propose local learning rules based on message passing minimizing a global divergence criterion involving cooperating local adversaries used to sidestep explicit likelihood evaluations. This allows us to compose models and yields a unified inference and learning framework for adversarial learning. Our framework treats model specification and inference separately and facilitates richly structured models within the family of Directed Acyclic Graphs, including components such as intractable likelihoods, non-differentiable models, simulators and generally cumbersome models. A key result of our treatment is the insight that Bayesian inference on structured models can be performed only with sampling and discrimination when using nonparametric variational families, without access to explicit distributions. As a side-result, we discuss the link to likelihood maximization. These approaches hold promise to be useful in the toolbox of probabilistic modelers and enrich the gamut of current probabilistic programming applications.

Introduction

Bayesian inference involves updating beliefs about hidden variables based on observed data. Traditionally, this process requires a tractable likelihood function—a mathematical description of the data generation process. However, many modern models are "implicit," such as complex simulators or non-differentiable programs, where the likelihood is intractable. While we can sample from these models, we cannot easily compute their probability densities.

Standard Variational Inference (VI) often fails in these scenarios because it requires an explicit parametric form for the posterior. Generative Adversarial Networks (GANs) excel at handling implicit distributions but typically rely on a single global discriminator to evaluate the entire joint distribution. This global approach ignores the internal structure of the model and scales poorly to high-dimensional graphical models. This paper introduces Adversarial Message Passing (ADMP) to bridge this gap, treating GANs as a mechanism for Bayesian inference in structured models.

Methodology: Adversarial Message Passing

The ADMP framework decomposes the global inference problem into local sub-problems using a "divide and conquer" strategy.

Local Adversaries and Message Passing

Instead of a single global discriminator, ADMP introduces local discriminators for each factor in a graphical model. Each local adversary focuses on a small subset of variables, or a "clique." The learning rules are derived from message passing, where local discriminators are trained to distinguish between samples from the "prior" (generative model) and the "inference model" (variational posterior).

Local discrimination schemes for various graphical model structures.

Inverse Factorization

To perform efficient inference, the authors construct an "inverse" graph $q(X)$ that mirrors the dependency structure of the original generative model $p(X)$. By using the concept of Markov blankets, they ensure that the inference model remains computationally efficient while capturing necessary dependencies.

Mapping generative models to inference models via inverse factorization and local cliques.

Nonparametric Variational Families

ADMP utilizes neural networks that accept noise vectors as input, allowing for the representation of highly flexible, nonparametric posterior distributions. This avoids the restrictive assumptions of traditional VI, such as Gaussianity.

Key Insights

  • GANs as Ratio Estimators: A GAN's discriminator acts as a density ratio estimator. ADMP leverages these local ratios to calculate divergences, effectively sidestepping the need for explicit likelihoods.
  • Scalability through Locality: Discriminating small subsets of variables is significantly easier and more stable than global discrimination. This allows the framework to scale to complex, high-dimensional graphs.
  • Unified Framework: The paper demonstrates a deep connection between adversarial training and Maximum Likelihood (specifically the ELBO). Both minimize similar criteria but use different scoring mechanisms—one explicit and one learned.

Results and Discussion

The authors derived local versions of Jensen-Shannon and Kullback-Leibler divergences optimized via message passing, proving that local maximization leads to global convergence. The framework's flexibility was demonstrated on various structures, including state-space models and deep generative architectures (e.g., a two-layer stochastic model for MNIST).

While ADMP provides a robust framework for likelihood-free inference, it inherits the stability challenges of adversarial training. Future research will explore extensions to undirected models and applications to large-scale scientific simulators.

Summary updated

BibTeX
@misc{karaletsos2016adversarial,
  author = {Theofanis Karaletsos},
  title = {{Adversarial Message Passing For Graphical Models}},
  year = {2016},
  eprint = {1612.05048},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.05048},
}
Figure