TL;DR
This paper introduces CRAFT, a novel method that combines Sequential Monte Carlo (SMC) with normalizing flows to efficiently sample from complex probability distributions. CRAFT improves upon existing methods by directly training normalizing flows to transport between annealing temperatures, leading to more accurate and stable sampling, especially in challenging scenarios like lattice field theory.
What Problem Does This Paper Address?
Sampling from complex, high-dimensional probability distributions is a fundamental challenge in many scientific fields, including machine learning, physics, and statistics. Estimating the normalizing constant of these distributions is particularly difficult. Traditional methods like Markov Chain Monte Carlo (MCMC) can struggle with multi-modal distributions or require extensive tuning. Sequential Monte Carlo (SMC) offers an alternative, but can suffer from high variance in its estimates, especially in high dimensions. Variational inference with normalizing flows (NFs) provides a flexible way to model distributions, but can exhibit mode-seeking behavior and struggle with topological mismatches between simple base distributions and complex targets. This paper aims to bridge these gaps by developing a method that leverages the strengths of both SMC and NFs to achieve more robust and efficient sampling.
Methods
CRAFT builds upon existing work in Annealed Flow Transport Monte Carlo (AFT) and Stochastic Normalizing Flows (SNFs). The core idea is to use normalizing flows to "transport" samples between successive temperature steps in an SMC sampler.
- Sequential Monte Carlo (SMC) with Normalizing Flows: CRAFT integrates normalizing flows directly into the SMC framework. At each temperature step, a normalizing flow $T_k$ is used to transform samples from the previous temperature's distribution to approximate the distribution at the current temperature.
- KL Divergence Objective: Instead of relying on traditional variational bounds (like ELBO), CRAFT trains the normalizing flows by minimizing a sum of KL divergences between the pushforward of the previous temperature's distribution and the current temperature's distribution. This approach is designed to be more stable and less prone to mode-seeking.
- Particle MCMC Integration: CRAFT can be used as a component within Particle MCMC (PIMC) algorithms, providing a fast and accurate proposal mechanism. This allows for consistent estimation of expectations even with a moderate number of particles.
- Addressing the "Sample Replenishment Problem": The paper highlights a key challenge in training flows for sequential samplers, termed the "sample replenishment problem." CRAFT addresses this by using multiple passes over the annealing schedule during training, allowing the flows to adapt more effectively to the available particles.
Datasets
The paper evaluates CRAFT on several synthetic and benchmark datasets:
- Log Gaussian Cox Process (LGCP): Used for comparing CRAFT with AFT and SNFs, particularly in high-dimensional settings (e.g., 1024-dimensional).
- Variational Autoencoder (VAE) latent space: A 30-dimensional example used for comparing CRAFT with SNFs.
- Lattice $\phi^4$ theory: A challenging example from quantum field theory (specifically, a 2D $\phi^4$ model on a 14x14 lattice) used to demonstrate CRAFT's effectiveness in a physically relevant, multi-modal setting, particularly when integrated into Particle MCMC.
Key Insights and Ideas
- Direct KL Divergence Training is More Stable: Minimizing KL divergences between successive temperature steps, rather than a global ELBO, proves more robust and less prone to mode collapse, especially when MCMC kernels are involved.
- CRAFT Solves the Sample Replenishment Problem: By allowing multiple training passes over the annealing schedule, CRAFT effectively mitigates the issue of overfitting to a limited set of particles, a limitation of single-pass methods like AFT.
- Particle MCMC Benefits Greatly from CRAFT: Integrating CRAFT as a proposal mechanism in Particle MCMC significantly improves sampling efficiency and accuracy, particularly for complex targets like those found in lattice field theory.
- Symmetries are Crucial for Performance: Incorporating symmetries of the target distribution into the normalizing flows (e.g., using equivariant convolutional layers) can lead to substantial improvements in performance and efficiency.
Key Results
- Outperforms AFT: CRAFT consistently outperforms the practical AFT method across various particle numbers, even when AFT is given significantly more MCMC steps.
- Outperforms SNFs: CRAFT converges to better normalizing constant estimates than Stochastic Normalizing Flows (SNFs) on both VAE and LGCP examples, attributing this to CRAFT's better handling of resampling and its training objective.
- Effective in Lattice Field Theory: When used within Particle MCMC, CRAFT-based samplers achieve impressively accurate results on a challenging 2D $\phi^4$ lattice field theory example, outperforming standard SMC, VI, and even direct HMC in terms of error reduction over time.
- Faster Convergence: CRAFT generally shows faster convergence to accurate estimates compared to baseline methods.
Limitations and Future Work
- Computational Cost: While CRAFT is more efficient than some alternatives, training normalizing flows can still be computationally intensive, especially for very high-dimensional problems.
- Hyperparameter Tuning: Although CRAFT is presented as easier to tune than AFT, some hyperparameters (e.g., number of particles, annealing schedule, learning rates) still require careful selection.
- Future Work: The paper suggests exploring the use of CRAFT in other domains requiring high-accuracy expectations, such as Bayesian inference and reinforcement learning. Further investigation into distributed and parallel computation for scaling CRAFT to even larger problems is also mentioned. The paper also hints at future work on learning model parameters using CRAFT.
Summary updated