Abstract
Sampling from high-dimensional discrete distributions is a fundamental challenge in Bayesian inference and machine learning. Traditional methods like Gibbs sampling often struggle with slow mixing in complex, multi-modal landscapes. This paper proposes a novel framework that leverages SurVAE Flows to map discrete combinatorial spaces into continuous latent spaces. By performing MCMC in this "Gaussianized" latent domain and pushing samples back to the discrete space, the method achieves significant improvements in sampling efficiency and mode coverage across diverse tasks, including image denoising and variable selection.
Introduction
Sampling from high-dimensional discrete distributions is a cornerstone of Bayesian inference, statistical physics, and machine learning. However, it is notoriously difficult. The "gold standard" for continuous sampling, Hybrid Monte Carlo (HMC), relies on gradient information to navigate the probability landscape efficiently. Discrete spaces lack these gradients, forcing researchers to rely on slower methods like Gibbs sampling or random walk Metropolis-Hastings, which struggle to "mix" (move between distant modes) in complex or high-dimensional settings.
The authors aim to bridge this gap by creating a continuous, differentiable proxy for discrete spaces, allowing them to leverage the power of transport-based sampling.
Methodology: Gaussianizing Discrete Spaces
The core of the approach is a multi-stage transformation process designed to turn a "spiky" discrete distribution into a smooth, "round" Gaussian latent space:
- Surjective Mapping (Dequantization): The authors use a surjective transformation to lift the discrete space into a continuous embedding. This "variational dequantization" represents a discrete point as a region in continuous space by adding learned noise.
- Normalizing Flows: Once in the continuous domain, a bijective normalizing flow maps the complex continuous distribution into a standard Gaussian latent space.
- Latent MCMC: Instead of sampling in the difficult discrete space, a Metropolis-Hastings (MH) chain is run in the smooth latent space.
- Push-Forward: Samples from the latent space are pushed back through the inverse transformations to land exactly on the target discrete distribution.
While using flows to augment MCMC exists for continuous variables, this paper specifically adapts SurVAE Flows to handle the discrete-to-continuous transition. This ensures that the MCMC step acts as a safety net, correcting the flow’s errors to ensure unbiased sampling from the true target distribution.
Experimental Evaluation
The authors evaluated their method on several diverse tasks, ranging from toy models to high-dimensional real-world datasets:
- Binarized MNIST: Used within an Ising model framework for image denoising. The Flow-augmented MCMC achieved an Effective Sample Size (ESS) per minute roughly 15x higher than Gibbs sampling.
- UCI Repository Datasets: Tested on Quantized Logistic Regression (Iris, Wine, Breast Cancer), achieving competitive or superior log-likelihoods compared to baselines.
- Synthetic High-Dimensional Data: In Bayesian Variable Selection tasks with up to 400 dimensions, the proposed method maintained a high ESS (~141), while Gibbs sampling effectively collapsed (ESS ~1.46).
Key Insights and Discussion
The "aha moment" of this research is that MCMC performance depends almost entirely on the geometry of the distribution. By learning a map that simplifies the geometry, even basic algorithms can outperform sophisticated discrete samplers. Furthermore, unlike Gibbs sampling, which is inherently sequential, the training and sampling of flows can be heavily parallelized on GPUs, offering massive practical speedups.
However, the method does involve a "learning phase" to train the flows, which may be overhead for very simple problems. Future work involves incorporating domain-specific symmetries and invariances directly into the SurVAE layers to further improve efficiency in structured combinatorial domains.
Summary updated