Annealing Flow Generative Models Towards Sampling High-Dimensional and Multi-Modal Distributions

Dongze Wu, Yao Xie

TL;DR Annealing Flow (AF) is a novel generative sampling method that combines Continuous Normalizing Flows with an annealing process to conquer high-dimensional, multi-modal distributions. By optimizing a dynamic Optimal Transport objective, AF achieves state-of-the-art mode exploration and sampling efficiency with significantly fewer intermediate steps than previous flow-based methods.

The Challenge of Complex Distributions

Sampling from complex probability distributions is a foundational task in Bayesian inference and physics-based machine learning. However, two major hurdles often impede progress:

  1. Multi-modality: Traditional Markov Chain Monte Carlo (MCMC) methods often get trapped in a single high-probability region (a mode) and fail to traverse the vast, low-probability "valleys" to discover other modes.
  2. High Dimensionality: As dimensions increase, the volume of the sample space grows exponentially. This makes it nearly impossible for standard samplers to locate the narrow, "needle in a haystack" regions of high probability.

While Normalizing Flows (NFs)—which learn to transform a simple Gaussian into a target distribution—offer a potential solution, they frequently suffer from mode collapse or require computationally expensive MCMC assistance during training to remain stable.

The Annealing Flow (AF) Approach

To make flow-based sampling more stable, efficient, and capable of exploring the entire probability landscape, the authors introduce Annealing Flow (AF). This method is built on three core components:

  • Annealing Procedure: Instead of attempting to map directly to the complex target distribution in one leap, AF defines a sequence of intermediate distributions. This sequence gradually transitions from a simple, easy-to-sample Gaussian to the complex target. This "warm-up" allows the model to discover modes early on when the distribution landscape is flatter and more forgiving.
  • Continuous Normalizing Flow (CNF): AF utilizes a Neural Ordinary Differential Equation (ODE) to model the transformation as a continuous velocity field. This enables a smooth, fluid-like movement of probability mass.
  • Dynamic Optimal Transport (OT) Objective: Rather than merely matching the final density, AF minimizes a cost function based on the Benamou-Brenier formulation of Optimal Transport. By incorporating Wasserstein-2 regularization, the model is forced to find the "shortest path" or most efficient trajectory to move samples between annealing steps.
Comparison of smooth flow trajectories in AF versus noisy diffusion paths.

A key theoretical insight provided by the authors is that the optimal velocity field learned by AF is equivalent to the difference in "scores" (gradients of the log-density) between consecutive annealing steps. This mathematical foundation explains why the method is so effective at capturing the target's underlying geometry.

The annealing process transitioning a simple unimodal distribution into a complex multi-modal target.

Experimental Validation

The researchers evaluated AF against a battery of challenging benchmarks to test its limits:

  • Synthetic Multi-modal Distributions: Gaussian Mixture Models (GMMs) with up to 10 modes arranged in complex patterns, such as circles, and the notoriously difficult "Funnel" distribution.
  • Extreme High-Dimensional Tests: An "Exp-Weighted Gaussian" designed with 1,024 widely separated modes in both 10-dimensional and 50-dimensional spaces.
  • Real-World Bayesian Inference: Bayesian Logistic Regression performed on eight standard datasets, including Diabetes, Cancer, Heart, and German credit data.

Key Insights and Results

AF demonstrated remarkable improvements over existing state-of-the-art methods across several dimensions:

Unprecedented Mode Discovery: In the grueling 50-dimensional test featuring 1,024 distinct modes, AF successfully captured all 1,024 modes. In stark contrast, standard MCMC approaches like Parallel Tempering found fewer than 10, and competing flow-based methods like CRAFT found roughly 473.

Efficiency Through Geometry: Because AF optimizes for the optimal transport path, it requires far fewer intermediate annealing steps. In experiments, AF succeeded with just 20 steps, while competing methods (CRAFT, LFIS) required 128 to 256 steps to achieve comparable results. Once trained, AF is incredibly fast, generating 10,000 independent samples in just 2.1 seconds for a 50D problem.

Stability and Independence: Unlike many recent flows that rely on score-matching—which can be unstable in low-density regions—AF’s dynamic OT objective provides a robust training signal. Furthermore, while modern "hybrid" flows often rely on MCMC kernels to correct the flow during training, AF achieves superior results with minimal to no MCMC assistance, establishing it as a highly effective, pure generative approach.

Limitations and Future Work

While AF shows remarkable performance, the authors note a few areas for future development. First, the "block-wise" training of the velocity fields presents an upfront offline computational cost, even though subsequent sampling is extremely fast. Second, the current iteration of AF requires the unnormalized analytical form of the target density. Future work could extend this to a "distribution-free" model that learns directly from datasets without prior knowledge of the target density. Finally, the authors highlight the potential of adapting these flows for adversarial attacks and differential privacy, where sampling from "least favorable" distributions is critical.

Summary updated

BibTeX
@inproceedings{wu2025annealing,
  author = {Dongze Wu and Yao Xie},
  title = {{Annealing Flow Generative Models Towards Sampling High-Dimensional and Multi-Modal Distributions}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=iT8qIzNSAl},
}
Figure