On Sampling with Approximate Transport Maps

Louis Grenioux, Alain Oliviero Durmus, Eric Moulines, Marylou Gabrié

Introduction

Sampling from high-dimensional, complex probability distributions is a fundamental challenge in Bayesian inference and physical simulations. Normalizing Flows (NFs) have emerged as a powerful solution, learning bijective transport maps between a simple base distribution (e.g., a Gaussian) and a complex target. However, in practice, NFs are rarely perfect. This paper investigates how to best utilize these approximate maps, comparing two dominant strategies: Flow-MCMC, which uses the NF for global proposals, and Neutra-MCMC, which uses the NF to reparameterize the target space for local samplers.

The Robustness of Reparameterization

A key finding of this work is the trade-off between global proposal efficiency and reparameterization robustness. Flow-MCMC methods, such as independent Metropolis-Hastings (IMH) or importance resampling (i-SIR), rely on the NF to provide high-quality global jumps. While highly effective when the flow is accurate, their performance—measured by Sliced Total Variation—degrades sharply as the flow quality decreases.

In contrast, Neutra-MCMC (using samplers like MALA or HMC in the latent space) proves remarkably resilient. Even with imperfect flows, the reparameterization often provides enough pre-conditioning to assist local samplers. As shown in Figure 3, while Flow-MCMC methods exhibit a narrow "sweet spot" of high performance, Neutra-MCMC maintains more consistent results across varying levels of flow imperfection.

Performance comparison across flow quality (t). Flow-MCMC methods (center plot) show high sensitivity to flow imperfection, while Neutra-MCMC (right plot) is more robust. The left panels visualize how the transport map aligns the latent and data spaces.

Scaling to High Dimensions and Multimodality

The choice between these strategies also depends heavily on the dimensionality and the multimodal nature of the target distribution.

The Multimodality Crossover

For multimodal targets in moderate dimensions, Flow-MCMC is the superior choice. It can execute "global jumps" between isolated modes that local samplers, even those enhanced by Neutra-reparameterization, often fail to traverse. This is because NFs frequently fail to completely erase energy barriers in the latent space; a "no-man's land" often remains between modes, trapping local samplers.

Dimension Sensitivity

However, Flow-MCMC faces a significant hurdle in high dimensions. The acceptance rate of global proposals typically crashes unless the flow's error vanishes at a rate of $1/d$. Neutra-MCMC scales much more gracefully for unimodal targets, maintaining performance in spaces up to $d=512$ where Flow-MCMC performance drops significantly.

Comparison of mode recovery and dimensional scaling. Flow-MCMC (i-SIR) successfully recovers multiple modes in the 4 Gaussians test (left/center), while Neutra-MCMC excels in scaling to high dimensions on the Banana distribution (right).

Conclusion

This systematic comparison reveals that there is no universal "best" strategy for NF-enhanced sampling. Flow-MCMC is essential for exploring multimodal landscapes in moderate dimensions, such as those found in molecular dynamics (e.g., alanine dipeptide). Conversely, Neutra-MCMC is the preferred tool for high-dimensional unimodal problems or when the available transport map is of lower quality. Future research into hybrid "neutra-flow" approaches and training objectives specifically tailored for MCMC mixing times may further bridge these gaps.

Summary updated

BibTeX
@inproceedings{grenioux2023sampling,
  author = {Louis Grenioux and Alain Oliviero Durmus and Eric Moulines and Marylou Gabrié},
  title = {{On Sampling with Approximate Transport Maps}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=NfH2HRL8u6},
}
Figure