Variational Walkback: Learning a Transition Operator as a Stochastic Recurrent Net

Anirudh Goyal, Nan Rosemary Ke, Surya Ganguli, Yoshua Bengio

TL;DR

This paper introduces Variational Walkback (VW), a method for directly learning a stochastic transition operator that can generate high-quality data samples through repeated application. Unlike traditional undirected models that require restrictive "symmetric" weights or directed models limited to finite-time processes, VW enables the training of asymmetric, biologically plausible recurrent networks capable of sculpting complex, non-equilibrium data distributions.

Introduction & Motivation

In generative modeling, researchers traditionally navigate between two primary paradigms:

  1. Directed Models (e.g., VAEs): These are typically feedforward architectures that operate over a fixed, finite number of steps. While powerful, they do not naturally capture the recurrent, iterative nature of biological systems.
  2. Undirected Models (e.g., Boltzmann Machines): These rely on an "energy function" to define a probability distribution. However, they are bound by a condition known as detailed balance, which mathematically forces the network's weights to be symmetric. This is not only biologically unrealistic but also highly restrictive for model expressivity.

The critical gap lies in learning a transition operator—a rule for moving from one state to the next—that is not tethered to a rigid energy function. The challenge is training such an operator so that its "stationary distribution" (where the system settles after many steps) accurately matches the distribution of real-world data, such as images.

Methods: The Variational Walkback Approach

The authors propose treating the generative process as a stochastic recurrent network, trained via a novel method called Variational Walkback.

Forward and reverse processes in Variational Walkback
  • The "Walkback" Concept: To train the model, the process begins with a real data point. The model then "walks away" from it by repeatedly applying the transition operator while gradually increasing noise (a "heating" or destruction process). This creates a trajectory that drifts off the data manifold. The training objective forces the model to learn how to "walk back"—reversing those steps to return to the original data point as quickly as possible.
  • Variational Lower Bound: While "walkback" has been used previously as a heuristic, this paper grounds the technique in a rigorous variational lower bound. The authors demonstrate that the gap in this bound is physically analogous to the "irreversibility" of the process and "heat dissipation" in thermodynamics.
  • Annealing Schedule: The model employs an aggressive temperature schedule (cooling during generation, heating during training) to help the Markov chain converge to the data distribution much faster than previous methods.
  • Tied Weights: Unlike deep feedforward models, the exact same transition operator (and the same weights) is applied at every step of the trajectory, making it a true recurrent neural network.

Key Insights

  • Breaking Symmetry: By abandoning strict energy-based models, VW allows for asymmetric weights. This represents a significant step toward more biologically plausible neural circuits, which are inherently highly recurrent and non-symmetric.
  • Hunting Spurious Modes: A persistent issue in generative models is "spurious modes"—regions where the model incorrectly believes data exists. Because the VW "heating" process uses the model's own transition operator to explore the space, it is uniquely equipped to find these false peaks and "destroy" them during training.
  • Physics Connection: The paper draws a compelling parallel between the "looseness" of a mathematical variational bound and the physical concept of heat dissipation in non-equilibrium statistical mechanics.
  • Stability Beyond Training: Remarkably, even though the model is trained on relatively short trajectories (e.g., 30 steps), the transition operator remains stable. It continues to generate sensible samples even when run for up to 100,000 steps, proving its stationary distribution truly aligns with the data.

Key Results

The authors evaluated VW on four standard image benchmarks: MNIST, CIFAR-10, SVHN, and CelebA.

CIFAR-10 performance comparison
  • CIFAR-10 Performance: VW achieved a highly competitive test set score of 4.40 bits/dim (using 30 steps). As shown in the results, this outperformed the Non-Equilibrium Thermodynamics (NET) model (5.40) and the Deep VAE (< 4.54) available at the time.
  • Efficiency: VW reached the data distribution significantly faster than previous iterative models. For instance, it required only 30 steps to produce quality samples, whereas the earlier NET model required 1,000 steps.
  • Qualitative Quality: The model successfully produced sharp, diverse samples across all datasets, effectively capturing complex face images in CelebA and diverse objects in CIFAR-10.

Limitations and Future Work

  • Latent Space Integration: The current iteration of VW operates directly in the "visible" pixel space. The authors suggest that incorporating latent layers (hidden variables) would enable the model to capture higher-level abstractions and improve mixing between different data modes.
  • Objective Function: The model currently relies on a log-likelihood-based objective. Replacing this with a GAN-like objective (utilizing a discriminator) could potentially eliminate the need to inject independent noise at every pixel step.
  • Computational Cost: While vastly more efficient than traditional MCMC methods, iterative sampling remains generally slower than one-shot feedforward generation seen in standard GANs or VAEs.

Summary updated

BibTeX
@inproceedings{goyal2017variational,
  author = {Anirudh Goyal and Nan Rosemary Ke and Surya Ganguli and Yoshua Bengio},
  title = {{Variational Walkback: Learning a Transition Operator as a Stochastic Recurrent Net}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=HJ-IZt-OWB},
}
Figure