[Paper Review] Hamiltonian Annealed Importance Sampling for partition function estimation
This paper proposes Hamiltonian Annealed Importance Sampling (HAIS), an efficient method for estimating partition functions in probabilistic models by combining annealed importance sampling with Hamiltonian dynamics. HAIS significantly improves sampling efficiency and convergence speed, enabling accurate log-likelihood estimation for diverse image models, with the bilinear generative model outperforming others despite fewer parameters.
We introduce an extension to annealed importance sampling that uses Hamiltonian dynamics to rapidly estimate normalization constants. We demonstrate this method by computing log likelihoods in directed and undirected probabilistic image models. We compare the performance of linear generative models with both Gaussian and Laplace priors, product of experts models with Laplace and Student's t experts, the mc-RBM, and a bilinear generative model. We provide code to compare additional models.
Motivation & Objective
- To address the intractability of partition function computation in probabilistic models, which hinders direct evaluation of model likelihood.
- To improve the efficiency and accuracy of log-likelihood estimation for both directed and undirected models of natural image patches.
- To enable direct, unbiased comparison of model performance using log likelihood, a fundamental metric often neglected due to computational challenges.
- To demonstrate that HAIS enables reliable and fast convergence in likelihood estimation across diverse model architectures.
Proposed method
- Extends annealed importance sampling (AIS) by incorporating Hamiltonian dynamics to generate longer, more efficient sampling trajectories.
- Introduces auxiliary momentum variables that are consistently propagated across intermediate distributions, unlike standard AIS where momenta are reset at each step.
- Uses a sequence of intermediate distributions transitioning from a simple prior to the target model, with Hamiltonian dynamics guiding transitions between them.
- Employs leapfrog integration to simulate Hamiltonian dynamics, preserving detailed balance and ensuring unbiased estimation of the partition function.
- Applies the method to estimate log likelihoods in linear generative models, product of experts (POE), mc-RBM, and bilinear models.
- Uses unbiased importance sampling estimates based on weighted samples from the full trajectory, with weights derived from energy differences across the annealing path.
Experimental results
Research questions
- RQ1Can Hamiltonian dynamics be effectively integrated into annealed importance sampling to improve sampling efficiency and convergence speed?
- RQ2How does HAIS compare to standard AIS with Gaussian or Hamiltonian transitions in estimating log likelihoods for image models?
- RQ3What is the impact of model architecture and prior distribution (e.g., Laplace, Student’s t) on log likelihood performance when using HAIS?
- RQ4Can HAIS reliably estimate log likelihoods for models with intractable normalization constants, including complex generative models?
Key findings
- HAIS achieved faster convergence than standard AIS with Gaussian or Hamiltonian transitions, requiring up to an order of magnitude fewer intermediate distributions.
- The bilinear generative model outperformed other models in log likelihood despite using fewer auxiliary variables, suggesting high model efficiency.
- Models with Student’s t priors or experts achieved over 7 nats higher log likelihood than those with Laplace priors, indicating strong performance gains from heavy-tailed distributions.
- The mcRBM performed poorly on 36-dimensional PCA data, likely because its strength in modeling long-range dependencies was underutilized in low-dimensional patches.
- The POE model with Laplace experts showed limited performance, likely due to weak sparsity, and failed to overfit the training data.
- HAIS estimates converged to true log likelihood in all tested models, validating its unbiased nature and reliability for model comparison.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.