Cyclical Kernel Adaptive Metropolis

Jianan Canal Li, Yimeng Zeng, Wentao Guo · DOI

Abstract: We propose cKAM, cyclical Kernel Adaptive Metropolis, which incorporates a cyclical stepsize scheme to allow control for exploration and sampling. We show that on a crafted bimodal distribution, existing Adaptive Metropolis type algorithms would fail to converge to the true posterior distribution. We point out that this is because adaptive samplers estimate the local/global covariance structure using the past history of the chain, which leads to adaptive algorithms being trapped in a local mode. We demonstrate that cKAM encourages exploration of the posterior distribution and allows the sampler to escape from a local mode while maintaining the high performance of adaptive methods.

Introduction: The Challenge of Multimodality

Bayesian inference is a cornerstone of modern probabilistic modeling, but it frequently encounters significant obstacles when dealing with "multimodal" distributions—landscapes characterized by multiple peaks separated by regions of low probability. If a sampler becomes sequestered in a single local mode, the resulting posterior estimates will be fundamentally flawed.

Traditional Adaptive Metropolis (AM) algorithms attempt to optimize efficiency by "learning" the covariance structure of the target distribution from the chain's history. However, this history-dependence creates a trap: once a sampler identifies a mode, it tunes its step size to explore that specific peak efficiently. This optimization makes it increasingly unlikely for the sampler to take the large, "high-energy" leaps necessary to discover distant modes. While Kernel Adaptive Metropolis (KAM) improved upon this by adapting to local geometry via Reproducing Kernel Hilbert Spaces, it remains susceptible to the "escape problem" in disjointed landscapes.

Methodology: Cyclical Schedules and Local Adaptation

To address the local mode trap, the researchers introduced Cyclical Kernel Adaptive Metropolis (cKAM). The algorithm breaks the sampling process into repeating cycles, each consisting of two distinct phases designed to balance exploration and exploitation.

  1. Exploration Phase: The algorithm utilizes the standard KAM proposal but employs a larger, adaptive step size. Crucially, it restricts its memory to the history of the current cycle. This "forgetting" mechanism prevents the sampler from being tethered to previously discovered modes, effectively acting as a "warm restart" to probe new regions of the posterior.
  2. Sampling Phase: Upon identifying a potential mode, the algorithm transitions to a sampling phase. It employs a cyclical cosine step-size decay to gradually refine its focus. To mitigate the computational overhead of kernel gradients, cKAM switches to a simpler Random Walk (RW) proposal using a "fuzzy" estimate of the local covariance learned during the exploration phase.
Cyclical step-size schedule of cKAM vs KAM.

Experimental Evaluation

The performance of cKAM was evaluated against several benchmarks:

  • 2D Bimodal Distribution: Two distant Gaussian modes designed specifically to trap standard adaptive samplers.
  • 2D Gaussian Mixture: Five components with increasing standard deviations to test handling of varying local scales.
  • 32-Dimensional Gaussian Mixture: A high-dimensional hyper-cube containing $5^{32}$ modes, testing scalability and robustness against the "curse of dimensionality."

Key Results and Discussion

The empirical results highlight cKAM's superior ability to navigate complex posteriors. In the 2D bimodal "counter-example," traditional adaptive samplers (AM, RBAM, KAM) failed to discover both modes, typically converging to only one. In contrast, cKAM successfully identified and transitioned between both modes.

Convergence on the bimodal counter-example.

Key insights from the study include:

  • The Power of Forgetting: By resetting history at the start of each cycle, cKAM avoids the global history bias that keeps other samplers stuck.
  • Efficiency through Fuzzy Covariance: Amortizing the cost of kernel computations by using exploration-phase estimates for the sampling-phase Random Walk significantly improves speed without sacrificing accuracy.
  • High-Dimensional Robustness: In the 32D experiment, cKAM remained stable and outperformed most competitors, whereas standard AM became unstable due to the curse of dimensionality.

Conclusion

cKAM demonstrates that cyclical schedules, while popular in optimization for deep learning, are equally potent for controlling the exploration-exploitation trade-off in MCMC. By alternating between high-energy exploration and refined sampling, cKAM provides a robust framework for Bayesian inference in the presence of multimodality. Future work will focus on rigorous theoretical convergence analysis and integration with mini-batched MCMC algorithms to handle large-scale datasets.

Summary updated

BibTeX
@misc{li2022cyclical,
  author = {Jianan Canal Li and Yimeng Zeng and Wentao Guo},
  title = {{Cyclical Kernel Adaptive Metropolis}},
  year = {2022},
  eprint = {2206.14421},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.14421},
}
Figure