Skip to main content
QUICK REVIEW

[Paper Review] GibbsNet: Iterative Adversarial Inference for Deep Graphical Models

Alex Lamb, Devon Hjelm|arXiv (Cornell University)|Dec 12, 2017
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

GibbsNet proposes a novel iterative adversarial inference framework for deep graphical models that combines the sampling efficiency of directed models with the expressive prior of undirected models. By training a GAN-like discriminator to distinguish between real data and samples from a short Markov chain, it learns a joint distribution $p(x,z)$ with a complex, data-driven prior $p(z)$, enabling high-quality unconditional generation, inpainting, and joint image-attribute modeling without task-specific pretraining.

ABSTRACT

Directed latent variable models that formulate the joint distribution as $p(x,z) = p(z) p(x \mid z)$ have the advantage of fast and exact sampling. However, these models have the weakness of needing to specify $p(z)$, often with a simple fixed prior that limits the expressiveness of the model. Undirected latent variable models discard the requirement that $p(z)$ be specified with a prior, yet sampling from them generally requires an iterative procedure such as blocked Gibbs-sampling that may require many steps to draw samples from the joint distribution $p(x, z)$. We propose a novel approach to learning the joint distribution between the data and a latent code which uses an adversarially learned iterative procedure to gradually refine the joint distribution, $p(x, z)$, to better match with the data distribution on each step. GibbsNet is the best of both worlds both in theory and in practice. Achieving the speed and simplicity of a directed latent variable model, it is guaranteed (assuming the adversarial game reaches the virtual training criteria global minimum) to produce samples from $p(x, z)$ with only a few sampling iterations. Achieving the expressiveness and flexibility of an undirected latent variable model, GibbsNet does away with the need for an explicit $p(z)$ and has the ability to do attribute prediction, class-conditional generation, and joint image-attribute modeling in a single model which is not trained for any of these specific tasks. We show empirically that GibbsNet is able to learn a more complex $p(z)$ and show that this leads to improved inpainting and iterative refinement of $p(x, z)$ for dozens of steps and stable generation without collapse for thousands of steps, despite being trained on only a few steps.

Motivation & Objective

  • Address the limitation of fixed priors in directed models like VAEs, which restrict model expressiveness.
  • Overcome the slow sampling and training difficulties of undirected models such as DBMs and Boltzmann machines.
  • Enable joint modeling of images and attributes, as well as conditional generation and inpainting, within a single unified framework.
  • Develop a training procedure that ensures the stationary distribution of the Markov chain matches the data distribution, even with only a few sampling steps during training.
  • Achieve stable, high-quality generation and inference without mode collapse, despite training on minimal sampling steps.

Proposed method

  • Define a Markov chain that alternates between sampling $x$ from $p(x|z)$ and $z$ from $q(z|x)$, simulating Gibbs sampling with learned transition operators.
  • Train a joint discriminator $D(z,x)$ to distinguish between real data pairs $(z_{ ext{real}}, x_{ ext{real}})$ and generated pairs from the unclamped chain.
  • Use a GAN-style objective to update the generator and inference networks, ensuring the chain’s stationary distribution matches the data distribution.
  • Train the encoder $q(z|x)$ and generator $p(x|z)$ using a joint adversarial objective, avoiding explicit modeling of $p(z)$.
  • Apply the chain for inference and sampling by alternating between $x$ and $z$ updates, with the final sample drawn after a few steps.
  • Use continuous and discrete boundary-seeking GANs to train on mixed-modality data (e.g., images and binary attributes), enabling joint distribution learning.

Experimental results

Research questions

  • RQ1Can a Markov chain with a few sampling steps achieve high-quality generation and inference when trained via adversarial objectives?
  • RQ2Can the prior $p(z)$ be implicitly shaped by the data and model dynamics, rather than being fixed a priori?
  • RQ3Does the proposed iterative adversarial training procedure lead to a stationary distribution that matches the data distribution?
  • RQ4Can the same model perform unconditional generation, inpainting, and joint image-attribute modeling without task-specific fine-tuning?
  • RQ5How does the model's performance compare to existing methods like ALI and Non-Equilibrium Thermodynamics in terms of sample quality and sampling efficiency?

Key findings

  • GibbsNet achieves an Inception Score of 5.69 on CIFAR-10 for unconditional generation, outperforming ALI (5.41) and matching or exceeding Non-Equilibrium Thermodynamics after 1000 steps with only 20 steps.
  • Inpainting results show GibbsNet produces higher-quality and more consistent reconstructions than ALI, even when both models use identical $p(x|z)$ and $q(z|x)$ architectures.
  • The model achieves an Inception Score of 6.15 on inpainting tasks, demonstrating strong performance on conditional generation without explicit training for this task.
  • The learned latent space $p(z)$ is complex and disentangled, enabling better downstream classification when using $q(z|x)$ as a feature extractor.
  • Despite being trained on only a few steps of the Markov chain, GibbsNet generates stable samples without collapse for thousands of steps during inference.
  • Joint modeling of images and 40 binary attributes on CelebA is successfully achieved using a single model, with discrete BGANs for attribute generation and continuous BGANs for image generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.