Skip to main content
QUICK REVIEW

[Paper Review] Partition Functions from Rao-Blackwellized Tempered Sampling

David Carlson, Patrick Stinson|arXiv (Cornell University)|Mar 7, 2016
Bayesian Methods and Mixture ModelsComputer Science44 references8 citations
TL;DR

This paper introduces Rao-Blackwellized Tempered Sampling (RTS), a novel method for estimating partition functions in complex, multimodal distributions using simulated tempering. By leveraging the multinomial distribution of inverse temperatures during MCMC sampling, RTS computes partition function estimates via Rao-Blackwellized marginal probability estimates, achieving higher accuracy than Annealed Importance Sampling (AIS) with minimal computational cost, especially in training Restricted Boltzmann Machines (RBMs).

ABSTRACT

Partition functions of probability distributions are important quantities for model evaluation and comparisons. We present a new method to compute partition functions of complex and multimodal distributions. Such distributions are often sampled using simulated tempering, which augments the target space with an auxiliary inverse temperature variable. Our method exploits the multinomial probability law of the inverse temperatures, and provides estimates of the partition function in terms of a simple quotient of Rao-Blackwellized marginal inverse temperature probability estimates, which are updated while sampling. We show that the method has interesting connections with several alternative popular methods, and offers some significant advantages. In particular, we empirically find that the new method provides more accurate estimates than Annealed Importance Sampling when calculating partition functions of large Restricted Boltzmann Machines (RBM); moreover, the method is sufficiently accurate to track training and validation log-likelihoods during learning of RBMs, at minimal computational cost.

Motivation & Objective

  • To develop an efficient and accurate method for estimating partition functions in highly multimodal distributions common in machine learning.
  • To exploit the structure of simulated tempering—specifically the multinomial distribution of inverse temperatures—to derive a low-cost partition function estimator.
  • To enable real-time tracking of training and validation log-likelihoods during RBM learning with minimal computational overhead.
  • To provide a method that is both theoretically grounded and empirically superior to existing approaches like AIS and RAISE in challenging settings.

Proposed method

  • Augment the target distribution with a discrete inverse temperature variable βk ∈ {β1, ..., βK}, creating a tempered joint distribution over x and β.
  • Use simulated tempering to sample from the joint distribution, enabling efficient exploration of multiple modes in multimodal posteriors.
  • Estimate the marginal probability p(βk) along the MCMC chain using Rao-Blackwellization, which averages the conditional probabilities of βk given x.
  • Compute the partition function ratio as a quotient of Rao-Blackwellized estimates: ZK / Z1 ≈ (cK / c1) × (r1 / rK), where ck are empirical counts and rk are prior weights.
  • Apply a smoothing update rule to stabilize estimates during training: ZK^(t+1) = ZK^(t) × (r1/rK × cK^(t)/c1^(t))^α with α ∈ (0.05, 0.5).
  • Use a non-uniform prior r_k ∝ exp(2βk) to reduce gradient variance in training, while maintaining accurate log-partition estimates.

Experimental results

Research questions

  • RQ1Can the multinomial distribution of inverse temperatures in simulated tempering be exploited to estimate partition functions with minimal additional cost?
  • RQ2How does the accuracy of the proposed RTS estimator compare to established methods like AIS and RAISE in estimating partition functions for RBMs?
  • RQ3Can RTS provide sufficiently accurate and stable estimates to track training and validation log-likelihoods during RBM learning in real time?
  • RQ4What is the impact of different prior distributions over inverse temperatures on the variance and bias of the partition function estimates?
  • RQ5Can the method be extended or combined with control variates or generalized ensembles to further improve performance?

Key findings

  • RTS provides more accurate partition function estimates than Annealed Importance Sampling (AIS) when computing log-partition functions for large Restricted Boltzmann Machines.
  • The method enables accurate tracking of training and validation log-likelihoods during RBM learning with minimal computational cost, using only 2000 parallel chains and 25 Gibbs sweeps per update.
  • In experiments with a 784-10 RBM on MNIST, RTS achieved stable and accurate estimates of log Zk, with cK estimates closely matching the true rK values in the final iteration.
  • The use of a non-uniform prior r_k ∝ exp(2βk) reduced gradient estimate variance without significantly degrading log Z accuracy.
  • Smoothing the partition function estimate via a convex combination (α = 0.2) significantly reduced noise from small sample sizes, improving stability during training.
  • Despite extensive exploration, no alternative prior or bias correction method consistently outperformed the uniform prior in terms of RMSE on the partition function estimator.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.