An Adaptive Resample-Move Algorithm for Estimating Normalizing Constants

M. Fraccaro, Ulrich Paquet, Ole WintherarXiv 2016 · DOI · arXiv

Abstract

The estimation of normalizing constants is a fundamental step in probabilistic model comparison. Sequential Monte Carlo methods may be used for this task and have the advantage of being inherently parallelizable. However, the standard choice of using a fixed number of particles at each iteration is suboptimal because some steps will contribute disproportionately to the variance of the estimate. We introduce an adaptive version of the Resample-Move algorithm, in which the particle set is adaptively expanded whenever a better approximation of an intermediate distribution is needed. The algorithm builds on the expression for the optimal number of particles and the corresponding minimum variance found under ideal conditions. Benchmark results on challenging Gaussian Process Classification and Restricted Boltzmann Machine applications show that Adaptive Resample-Move (ARM) estimates the normalizing constant with a smaller variance, using less computational resources, than either Resample-Move with a fixed number of particles or Annealed Importance Sampling. A further advantage over Annealed Importance Sampling is that ARM is easier to tune.

Introduction

In probabilistic modeling, calculating the normalizing constant $Z$ (or Bayesian evidence) is essential for model comparison. Standard Sequential Monte Carlo (SMC) tools estimate $Z$ by evolving a set of particles through intermediate distributions. However, these algorithms typically use a fixed number of particles at every step. This is inefficient: some transitions between distributions are "easy" and require few particles, while others are "hard" (high variance) and require many more to maintain accuracy. A fixed-particle approach either wastes resources on the easy steps or introduces significant errors during the hard ones.

Methodology: The ARM Algorithm

The authors propose Adaptive Resample-Move (ARM), which dynamically scales the particle set based on the variance of the approximation. The core innovation is a "generate-loop" that adaptively expands the particle set whenever the current approximation is deemed poor.

Theoretical analysis (Theorem 1) shows that under ideal conditions, the optimal way to minimize estimate variance for a fixed budget is to make the number of particles at each step proportional to the square root of the variance of the weight updates. Since this variance is unknown ahead of time, ARM uses the Effective Sample Size (ESS) as a real-time gauge. If the ESS ratio falls below a threshold (e.g., 0.7), the algorithm triggers a "generate" step, adding more particles and moving them via MCMC kernels until the distribution is sufficiently well-represented.

Conceptual overview of the ARM algorithm's adaptive particle augmentation.

Several variants of particle generation were explored, including standard ARM (replication and movement), ARM-anticipate (weight-based replication), and ARM-reseed (independent sampling to escape local optima).

Experimental Evaluation

The algorithm was evaluated on two high-dimensional machine learning challenges:

  • Gaussian Process Classification (GPC): Evaluated using the USPS 3-vs-5 digits dataset. This is a challenging benchmark due to highly correlated posteriors.
  • Restricted Boltzmann Machines (RBMs): Evaluated using the MNIST handwritten digits dataset. Calculating the partition function for RBMs is notoriously difficult, often requiring extensive annealing schedules in standard methods.

Key Results and Insights

ARM demonstrates significant advantages in efficiency and scalability. Unlike Annealed Importance Sampling (AIS), which requires carefully tuning an annealing schedule, ARM is largely self-tuning via the target ESS and maximum particle limit.

Comparison of ARM against baselines on Gaussian Process Classification tasks.

In GPC tasks, ARM achieved lower variance in its estimates of $\log Z$ compared to AIS, even when AIS was augmented with advanced Riemannian Manifold Hamiltonian Monte Carlo (RMHMC) kernels. For RBMs, ARM produced accurate estimates in less than a minute, whereas state-of-the-art AIS baselines required significantly more computational resources. Furthermore, for a model with $N$ variables, ARM's complexity of $O(tHN^2)$ scales better than AIS, which typically requires a number of intermediate steps $K \gg N$ to maintain accuracy.

Conclusion

Adaptive Resample-Move provides a robust and efficient alternative for estimating normalizing constants by distributing computational resources unevenly across the sequence of distributions. While its success depends on the quality of the MCMC kernel and it remains susceptible to the "ESS trap" (where major modes are missed entirely), its adaptive nature makes it inherently more scalable and easier to tune than traditional fixed-budget methods. Future work may explore more sophisticated reseed strategies and parallelized implementations to further exploit its adaptive particle sets.

Summary updated

Abstract

The estimation of normalizing constants is a fundamental step in probabilistic model comparison. Sequential Monte Carlo methods may be used for this task and have the advantage of being inherently parallelizable. However, the standard choice of using a fixed number of particles at each iteration is suboptimal because some steps will contribute disproportionately to the variance of the estimate. We introduce an adaptive version of the Resample-Move algorithm, in which the particle set is adaptively expanded whenever a better approximation of an intermediate distribution is needed. The algorithm builds on the expression for the optimal number of particles and the corresponding minimum variance found under ideal conditions. Benchmark results on challenging Gaussian Process Classification and Restricted Boltzmann Machine applications show that Adaptive Resample-Move (ARM) estimates the normalizing constant with a smaller variance, using less computational resources, than either Resample-Move with a fixed number of particles or Annealed Importance Sampling. A further advantage over Annealed Importance Sampling is that ARM is easier to tune.
BibTeX
@misc{fraccaro2016adaptive,
  author = {M. Fraccaro and Ulrich Paquet and Ole Winther},
  title = {{An Adaptive Resample-Move Algorithm for Estimating Normalizing Constants}},
  year = {2016},
  eprint = {1604.01972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1604.01972},
}
Figure