Annealed importance sampling is a method for directly approximating the partition function
Partition Ratios
Note that to compare two models, we can check the ratio of their likelihoods, which is equivalent to
Knowing the ratio of the partition functions is enough to compare models, and if we ever need its actual value, we can find it with
if we knew the ratio and the partition for the other distribution.
Importance Sampling
We can directly find the ratio using ๐ช Importance Sampling:
Thus, the ratio is
where
Annealing
However, often times
Annealed importance sampling bridges the gap between
To sample from them, we define transition functions
which can be constructed using any ๐ฏ Markov Chain Monte Carlo method.
Then, we can sample
The importance weight of our sample is
With