Abstract
Sampling from high-dimensional distributions is a fundamental problem in statistical research and practice. However, great challenges emerge when the target density function is unnormalized and contains isolated modes. We tackle this difficulty by fitting an invertible transformation mapping, called a transport map, between a reference probability measure and the target distribution, so that sampling from the target distribution can be achieved by pushing forward a reference sample through the transport map. We theoretically analyze the limitations of existing transport-based sampling methods using the Wasserstein gradient flow theory, and propose a new method called TemperFlow that addresses the multimodality issue. TemperFlow adaptively learns a sequence of tempered distributions to progressively approach the target distribution, and we prove that it overcomes the limitations of existing methods. Various experiments demonstrate the superior performance of this novel sampler compared to traditional methods, and we show its applications in modern deep learning tasks such as image generation.
Introduction: The Challenge of Multimodality
Sampling from high-dimensional distributions with multiple isolated modes is a notorious "hard problem" in statistics. Standard Markov Chain Monte Carlo (MCMC) methods, such as Hamiltonian Monte Carlo (HMC), often struggle with these landscapes, frequently getting "trapped" in a single mode and failing to explore the global distribution.
Recent advancements have turned to Measure Transport—specifically Invertible Neural Networks or Normalizing Flows—to map a simple reference distribution (e.g., a Gaussian) to a complex target. However, as shown in Figure 1, standard neural samplers often suffer from "mode collapse" when dealing with multimodal targets.
The authors provide a rigorous theoretical explanation for this failure: when modes are separated by regions of low density, the standard objective function—Kullback–Leibler (KL) divergence—suffers from vanishing gradients. The model effectively "loses sight" of distant modes during training, halting progress before the full distribution is captured.
Methods: Introducing TemperFlow
To address these limitations, the authors propose TemperFlow, a framework that combines normalizing flows with the robustness of simulated tempering. TemperFlow introduces three key innovations:
- Tempered Distribution Flow: Instead of targeting the complex distribution directly, the algorithm learns a sequence of intermediate distributions $q_{\beta} \propto e^{-\beta E(x)}$. The inverse temperature $\beta$ evolves from near 0 (a flat, easily sampled distribution) to 1 (the true target).
- The $L^2$ Sampler: To overcome the vanishing gradient problem inherent in the standard KL-based approach (Algorithm 1), the authors employ a squared $L^2$ distance between densities. Theorem 4 in the paper demonstrates that the $L^2$ objective maintains a "non-vanishing gradient" property, allowing the transport map to "stretch" toward missing mass even without initial overlap.
- Adaptive Temperature Selection: TemperFlow automatically determines the temperature schedule, ensuring a smooth transition between distributions without manual tuning.
Experimental Evaluation
The authors evaluated TemperFlow against a variety of challenging benchmarks:
- Synthetic Bivariate Mixtures: In "Grid" experiments with 25 distinct modes, TemperFlow captured all modes perfectly, whereas Metropolis-Hastings and HMC missed the majority.
- High-Dimensional Copulas: In 64-dimensional spaces with 256 isolated modes, TemperFlow achieved significantly lower Wasserstein distance and Maximum Mean Discrepancy (MMD) than Parallel Tempering MCMC.
- Latent Space Image Generation: On datasets like Fashion-MNIST and CelebA, TemperFlow maintained diversity in generated images. For CelebA, while standard KL samplers collapsed to a single category (e.g., females without glasses), TemperFlow successfully captured all four latent categories (men/women, with/without glasses).
Key Insights and Efficiency
A critical advantage of TemperFlow is the shift of computational burden. While MCMC requires expensive iterations for every new sample, TemperFlow requires an upfront training cost. Once trained, generating thousands of independent samples is nearly instantaneous. For instance, in a 64D problem, generating 10,000 points takes only 0.016 seconds—orders of magnitude faster than MCMC variants.
Conclusion
TemperFlow represents a significant step forward in sampling from complex, multimodal distributions. By replacing the local sensitivity of KL divergence with a more global $L^2$ signal and utilizing an adaptive tempering schedule, it overcomes the fundamental limitations of previous neural transport methods. While the initial training phase presents an overhead, the resulting efficiency and robustness in high-dimensional mode capture make it a powerful tool for modern statistical and deep learning tasks.
Summary updated