Amortized Variational Sampling for Energy Based Models

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 138 papers47 conceptsfrozen 2026-10-04

Energy-Based Models (EBMs) are the "wild children" of probabilistic modeling. Unlike Variational Autoencoders (VAEs) or Generative Adversarial Networks (GANs), which use neural networks to transform noise into data, an EBM simply assigns a scalar value—an "energy"—to every possible input. Low energy means high probability; high energy means low probability.

This simplicity makes EBMs incredibly flexible. They can represent complex, multi-modal distributions without the architectural constraints of normalizing flows or the training instabilities of GANs. However, they suffer from a fundamental bottleneck: to train an EBM, you must be able to sample from it. Traditionally, this requires Markov Chain Monte Carlo (MCMC) methods like Langevin dynamics, which are slow, computationally expensive, and often fail to converge in high-dimensional spaces.

A growing body of research seeks to "tame" EBMs by replacing iterative MCMC with amortized sampling. Instead of starting a new random walk every time we need a sample, we train an auxiliary model to learn how to sample from the energy landscape.

The MCMC Bottleneck

To train an EBM, we typically want to minimize the energy of real data points and maximize the energy of "fake" points sampled from the model (the negative phase). The gradient of the log-likelihood involves an expectation over the model's distribution:

$$\nabla_\theta \mathcal{L} \approx \mathbb{E}_{x \sim p_{data}}[\nabla_\theta E_\theta(x)] - \mathbb{E}_{x \sim p_\theta}[\nabla_\theta E_\theta(x)]$$

The second term is the problem. In high dimensions, finding the "valleys" of low energy using MCMC is like trying to find a needle in a haystack by walking around randomly. If the sampler doesn't find the valleys, the model's energy landscape becomes "unanchored," leading to instability.

Cooperative Learning: The Teacher and the Student

The most prominent solution is to treat the EBM and a directed generator as a "cooperative" pair. Taesup Kim and Yoshua Bengio proposed a framework where a directed generator produces samples for the EBM's negative phase, effectively replacing MCMC.

In this setup, the EBM acts as a "teacher" that provides an energy landscape, and the generator acts as a "student" that learns to produce samples that the teacher likes. This idea was extended to 3D data by Jianwen Xie and colleagues in Generative VoxelNet, where a top-down generator learns to mimic the iterative MCMC process, allowing for high-quality 3D synthesis in a single forward pass.

Tian Han unified these ideas into the Divergence Triangle, which jointly trains a generator, an EBM, and an inference model. By coordinating these three, the framework bypasses MCMC entirely while maintaining the explicit probability modeling of the EBM.

Variational Shortcuts and Importance Sampling

Another way to avoid MCMC is to frame the sampling problem as a variational optimization. Yu Cheng introduced VGAN, which reinterprets GANs as a variational approximation to an EBM. By optimizing a variational lower bound, the model avoids the need to estimate the partition function (the normalization constant) directly.

Similarly, Debottam Dutta developed EVaLP to solve the "prior hole" problem in VAEs. Instead of a standard Gaussian prior, they use an energy-based prior trained via a minimax game between the energy function and a fast proxy sampler.

For autoregressive models like Transformers, Tong Che showed in E-ARM that you can use the model's own native generation process to create negative samples. These samples are then reweighted using importance sampling to estimate the gradients, significantly improving long-range coherence without adding new parameters. Fredrik Gustafsson applied a similar logic to regression, using a learned conditional proposal to estimate moments of the energy distribution at test time.

Adapting the Geometry of Sampling

If we must sample, can we make the sampler smarter? Yang Zitao introduced the Convex Potential Mirror Langevin Algorithm (CPMLA), which uses a learnable "mirror map" to adapt the sampling geometry to the data's intrinsic manifold. By warping the space in which the sampler moves, CPMLA reaches low-energy regions much faster than standard Langevin dynamics.

For discrete data, where gradients aren't directly available, researchers like Tobias Schröder have moved away from sampling altogether, using heat equations on graphs to define perturbations that allow for MCMC-free training.

Why It Works: Amortization as Efficiency

The intuition behind this entire research direction is amortization. MCMC is a "per-sample" cost—you pay it every time you want to learn or generate. Amortized sampling moves that cost to the training phase. By training a neural network to understand the energy landscape, we turn a slow, iterative search into a fast, direct mapping.

Whether through the "reward-policy" framing of Generalized Contrastive Divergence by Sangwoong Yoon or the bi-level optimization of BiDVL by Ge Kan, the goal is the same: to keep the expressive power of Energy-Based Models while stealing the speed of directed generative models.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_amortized_variational_sampling_for_energ_f4a65d45,
  title = {Amortized Variational Sampling for Energy Based Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/amortized-variational-sampling-for-energy-based-models/rdr_f4a65d45b48649358c99c50b2b2b1aab},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-03},
}

This exact version (version 1, frozen text):

@misc{lacuna_amortized_variational_sampling_for_energ_f4a65d45_v1,
  title = {Amortized Variational Sampling for Energy Based Models},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/amortized-variational-sampling-for-energy-based-models/rdr_f4a65d45b48649358c99c50b2b2b1aab/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-03},
}