Abstract
Recent research has developed several Monte Carlo methods for estimating the normalization constant (partition function) based on the idea of annealing. This means sampling successively from a path of distributions that interpolate between a tractable "proposal" distribution and the unnormalized "target" distribution. Prominent estimators in this family include annealed importance sampling and annealed noise-contrastive estimation (NCE). Such methods hinge on a number of design choices: which estimator to use, which path of distributions to use and whether to use a path at all; so far, there is no definitive theory on which choices are efficient. Here, we evaluate each design choice by the asymptotic estimation error it produces. First, we show that using NCE is more efficient than the importance sampling estimator, but in the limit of infinitesimal path steps, the difference vanishes. Second, we find that using the geometric path brings down the estimation error from an exponential to a polynomial function of the parameter distance between the target and proposal distributions. Third, we find that the arithmetic path, while rarely used, can offer optimality properties over the universally-used geometric path. In fact, in a particular limit, the optimal path is arithmetic. Based on this theory, we finally propose a two-step estimator to approximate the optimal path in an efficient way.
Introduction
In machine learning and statistics, we often work with "unnormalized" distributions—models where we know the relative shape of the data (like Energy-Based Models or Bayesian posteriors) but lack the scaling factor, known as the normalizing constant or partition function, that ensures total probability sums to one. Calculating this constant is notoriously difficult in high dimensions. Simple methods like Importance Sampling (IS) fail catastrophically if the "proposal" distribution doesn't perfectly overlap with the "target." To address this, researchers use annealing: creating a sequence of intermediate distributions that slowly bridge the gap between proposal and target.
Annealing Paths and Estimators
The authors introduce a unifying framework called Annealed Bregman Estimators (ABE) to analyze various techniques, including IS and Noise-Contrastive Estimation (NCE). A central design choice in annealing is the "path" of distributions. The paper evaluates $q$-mean paths, specifically comparing the industry-standard Geometric path ($q \to 0$) and the less common Arithmetic path ($q = 1$).
Key Theoretical Insights
The research provides several provable benefits regarding estimator and path selection:
- Estimator Efficiency: For any finite number of intermediate steps, NCE is strictly more efficient than IS. However, as the number of steps becomes infinite (the "infinitesimal limit"), the performance gap between NCE and IS vanishes.
- The Power of the Geometric Path: The geometric path is theoretically robust because it transforms the estimation error from an exponential function of the distance between distributions into a polynomial one. This reduction is what makes high-dimensional estimation tractable in many practical scenarios.
- Optimality of Arithmetic Paths: While basic arithmetic paths are often inefficient, the authors discovered that with a rough initial estimate of the normalizing constant (an "oracle"), a reparameterized arithmetic path can achieve constant error, regardless of the distance between distributions. This represents a significant theoretical upgrade over the geometric path's polynomial error.
Error Scaling and the Two-Step Estimator
As shown in the analysis of different path designs, the "oracle" arithmetic paths provide superior error scaling properties.
Based on this theory, the authors propose a practical two-step estimator. This algorithm first utilizes a geometric path to obtain a coarse estimate of the normalizing constant. This estimate is then used to parameterize an optimized arithmetic path for a much more accurate final result. Numerical validation on high-dimensional synthetic Gaussians confirms that this approach maintains low, stable errors even as the dimensionality and parameter distance increase.
Conclusion and Future Work
This work establishes a rigorous foundation for annealing, proving that while NCE is a safe estimator choice, the interpolation path is the most critical factor for efficiency. The discovery of constant-error arithmetic paths offers a powerful new tool for partition function estimation. Future research will need to account for errors introduced by Markov Chain Monte Carlo (MCMC) sampling and extend these proofs to more complex, non-parametric distribution families.
Summary updated