Introduction
Markov Chain Monte Carlo (MCMC) methods are fundamental tools in Bayesian inference and statistical physics, used to sample from complex, high-dimensional probability distributions. However, the efficiency of these methods is highly sensitive to the choice of the proposal distribution. A poor proposal leads to low acceptance rates and slow convergence. Adaptive MCMC aims to address this by tuning the proposal parameters during the sampling process. This paper establishes a rigorous theoretical framework for using Normalizing Flows (NFs)—expressive neural networks—as adaptive proposal distributions in the Independent Metropolis-Hastings (IMH) sampler.
The Challenge of Adaptive MCMC
The primary difficulty in adaptive MCMC is maintaining ergodicity. Traditional MCMC relies on the Markov property, where the next state depends only on the current state. When the proposal distribution is updated based on the chain's history, this property is lost. Without careful constraints, the chain might fail to converge to the target distribution.
While NFs are capable of transforming simple base distributions into complex ones, their use in adaptive IMH required formal proof of safety. The authors address this by demonstrating ergodicity under two critical conditions:
- Diminishing Adaptation: The magnitude of updates to the NF parameters must decrease over time, ensuring the transition kernel eventually stabilizes.
- Containment: The proposal distribution must maintain sufficient coverage over the target's support to prevent the sampler from becoming trapped in isolated regions.
Methodology: Normalizing Flows as Global Proposals
The authors focus on the Independent Metropolis-Hastings (IMH) sampler. Unlike local random walk methods, IMH proposes new states globally. Its performance is directly tied to how closely the proposal $\tilde{\pi}$ matches the target $\pi$.
The Adaptive Framework
The proposed algorithm utilizes a Normalizing Flow (e.g., RealNVP) to represent the proposal distribution. As the sampler progresses, the NF parameters $\theta$ are updated on-the-fly using stochastic gradient descent (SGD). Since direct samples from the target are unavailable, the NF is trained using a pseudo-likelihood objective based on the states already visited by the Markov chain.
This global adaptation allows the sampler to learn the overall structure of the target distribution, facilitating large jumps across the state space that are impossible for local samplers.
Experimental Evaluation
The method was benchmarked against several challenging distributions:
- Brownian Bridge: A 50-dimensional Gaussian process testing high-dimensional scaling.
- 2D Multimodal Mixture: A distribution with distant, narrow modes designed to trap local samplers.
- Neal’s Funnel: A benchmark with extreme curvature and varying scales, difficult for standard MCMC.
- 1D $\phi^4$ Field Theory: A 100-dimensional system from statistical mechanics exhibiting symmetry breaking and multimodality.
Key Findings
The adaptive NF sampler demonstrated significant improvements over traditional methods like Metropolis-Adjusted Langevin Algorithm (MALA) and the Haario-Saksman-Tamminen adaptive random walk.
Efficiency and Convergence
In high-dimensional tests like the Brownian Bridge, the adaptive NF achieved a substantially higher Effective Sample Size (ESS) per second. The ability to make global moves translates directly into faster exploration of the target space.
Handling Multimodality
A standout result was observed in the $\phi^4$ field experiment. While local samplers frequently became trapped in a single mode, the adaptive NF sampler successfully learned the global structure, recovering both modes and the correct 50/50 statistical weight between them.
Robustness to Geometry
On Neal's Funnel, the expressiveness of the NF allowed it to navigate the "neck" of the funnel—a region of high curvature where most samplers fail to mix effectively. The Kolmogorov-Smirnov (KS) statistics confirmed that the NF-based approach converged much closer to the true distribution than baselines.
Conclusion and Future Directions
This work bridges the gap between deep learning and rigorous statistical theory, providing a safe and efficient way to use Normalizing Flows in MCMC. While the computational cost per iteration is higher due to neural network training, the gains in statistical efficiency and the ability to handle complex, multimodal distributions make it a powerful tool for modern Bayesian inference. Future work may focus on ensuring heavy-tailed behavior in NF architectures and improving initial mode discovery to prevent mode collapse during the early stages of adaptation.
Summary updated