Annealed Importance Sampling with q-Paths

Rob Brekelmans, Vaden Masrani, Thang Bui, Frank Wood, Aram Galstyan, Greg Ver Steeg, Frank Nielsen

TL;DR

This paper introduces $q$-paths for Annealed Importance Sampling (AIS), generalizing the standard geometric mixture path using the mathematical framework of power means and $\alpha$-divergences. By tuning a single path parameter $q$, researchers can discover intermediate paths that yield more accurate partition function estimates and tighter free-energy bounds than traditional methods.

What Problem Does This Paper Address?

Annealed Importance Sampling (AIS) is the gold standard for estimating intractable normalization constants—often called partition functions or marginal likelihoods—which are crucial in physics and probabilistic machine learning. AIS works by constructing a bridge of intermediate distributions that smoothly transition from a simple, tractable base distribution (like a standard Gaussian) to a complex target distribution.

Historically, this bridge has almost exclusively been built using a geometric mixture path (essentially a linear interpolation in log-space). While mathematically convenient, the geometric path is rarely optimal. Other paths, such as moment-averaged paths, have been proposed but often lack a closed-form expression, making them computationally impractical because you cannot easily sample from them using Markov Chain Monte Carlo (MCMC).

The authors set out to find a flexible, mathematically principled family of paths that possess closed-form expressions but offer different geometric properties than the standard geometric baseline.

Methods

The core innovation is the introduction of $q$-paths, which substitute the standard geometric average with the homogeneous power mean (also known as the Kolmogorov generalized mean).

By adjusting the order parameter $q$, you can traverse a continuous spectrum of paths:

  • $q = 1$ perfectly recovers the standard geometric mixture path.
  • $q = 0$ yields an arithmetic mixture path (a direct linear combination of the densities).

The authors connect these $q$-paths to information geometry and non-extensive thermodynamics. Specifically, they prove that a $q$-path minimizes the expected $\alpha$-divergence to the path's endpoints (where the divergence parameter $\alpha$ is linearly related to $q$).

Crucially, unlike other generalized paths, $q$-paths retain a closed-form expression for their unnormalized intermediate densities. This means they can be directly evaluated and used as energy functions for standard MCMC sampling algorithms like Hamiltonian Monte Carlo (HMC).

Datasets

Because this is a foundational methodology paper focused on information geometry, the authors evaluate their approach on synthetic, low-dimensional toy benchmarks where the true partition function ($Z_{\text{true}}$) is known exactly:

  1. Gaussian-to-Gaussian: Annealing between two distinct 1D Gaussian distributions: $\mathcal{N}(-4, 3)$ and $\mathcal{N}(4, 1)$.
  2. Student-$t$-to-Student-$t$: Annealing between two 1D Student-$t$ distributions (which natively belong to a $q$-exponential family).

Key Insights and Ideas

  • The Geometric Path is Not Unique: The machine learning community has treated the geometric mixture path as a default, but it is merely a single point ($q=1$) on a much broader continuum of valid paths.
  • Visualizing Path Topology: Changing $q$ drastically alters how the intermediate distributions behave. For example, when bridging two distant Gaussians at $q=0$, the intermediate steps form a bimodal mixture. At $q=1$, they remain unimodal but change variance. Tuning $q$ allows the path to better accommodate the landscape of the target distribution.
Figure 1: Intermediate densities between N(−4, 3) and N(4, 1) for various q-paths and 10 equally spaced β. The path approaches a mixture of Gaussians with weight β at q = 0. For the geometric mixture (q = 1), intermediate πβ stay within the exponential family since both π0, πT are Gaussian.
  • Drop-in Compatibility: Because $q$-paths have an explicit, closed-form formula, they can seamlessly replace geometric paths in existing AIS and Bidirectional Monte Carlo (BDMC) implementations without needing to solve implicit moment-matching equations.

Key Results

The authors used Bidirectional Monte Carlo (BDMC) to compute upper and lower bounds on the log partition function ratio.

  • Tighter Bounds: Paths with $q=0.9$ and $q=0.5$ consistently outperformed the standard geometric baseline ($q=1.0$), providing significantly tighter bounds, especially when the number of intermediate steps ($T$) was small.
BDMC lower and upper bound estimates
  • Lower Estimation Error: In a 100-step annealing setup ($T=100$), the $q=0.9$ path achieved the lowest absolute error ($|Z_{\text{est}} - Z_{\text{true}}|$) compared to both the arithmetic mixture ($q=0$) and the geometric baseline ($q=1$).
Partition function estimates for various q

Limitations and Future Work

While promising, this workshop paper leaves a few open questions:

  • Scalability: The experiments are strictly limited to simple 1D toy problems. Performance on high-dimensional, complex landscapes (like those found in deep generative models or complex physics simulations) remains unproven.
  • Hyperparameter Selection: There is currently no automated method for choosing the optimal $q$ or the optimal schedule for the path step $\beta$ ahead of time; it requires manual tuning or empirical exploration.
  • Broader Objectives: The authors suggest that extending $q$-paths to related objectives, such as the Thermodynamic Variational Objective (TVO), is a highly promising direction for future research.

Summary updated

BibTeX
@misc{brekelmans2020annealed,
  author = {Rob Brekelmans and Vaden Masrani and Thang Bui and Frank Wood and Aram Galstyan and Greg Ver Steeg and Frank Nielsen},
  title = {{Annealed Importance Sampling with q-Paths}},
  year = {2020},
  eprint = {2012.07823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.07823},
}
Figure