Score-Based Metropolis-Hastings Algorithms
Ahmed Aloui, Ali Hasan, Juncheng Dong, Zihao Wu, Vahid Tarokh
TL;DR
This work addresses the challenge of combining Metropolis-Hastings with score-based generative models, which traditionally lack an energy function and thus an accessible MH adjustment. It introduces Score Balance Matching (SBM), a learning objective that estimates the MH acceptance function $a(x',x)$ from an estimated score and data, ensuring detailed balance and enabling MH corrections for score-based samplers such as RW, MALA, and pCN. The authors show that SBM, especially with entropy regularization, yields more reliable and efficient sampling across multimodal and heavy-tailed distributions, and demonstrate improvements in diffusion-model-like tasks such as MNIST. By enabling MH adjustments within score-based frameworks, the paper broadens the toolkit for generative modeling and improves sampling quality and stability in challenging regimes.
Abstract
In this paper, we introduce a new approach for integrating score-based models with the Metropolis-Hastings algorithm. While traditional score-based diffusion models excel in accurately learning the score function from data points, they lack an energy function, making the Metropolis-Hastings adjustment step inaccessible. Consequently, the unadjusted Langevin algorithm is often used for sampling using estimated score functions. The lack of an energy function then prevents the application of the Metropolis-adjusted Langevin algorithm and other Metropolis-Hastings methods, limiting the wealth of other algorithms developed that use acceptance functions. We address this limitation by introducing a new loss function based on the \emph{detailed balance condition}, allowing the estimation of the Metropolis-Hastings acceptance probabilities given a learned score function. We demonstrate the effectiveness of the proposed method for various scenarios, including sampling from heavy-tail distributions.
