Extreme Event Likelihoods with Guided Generative Models
Mirrored from NVIDIA Developer Blog for archival readability. Support the source by reading on the original site.
Extreme Event Likelihoods with Guided Generative Models
AI-Generated Summary
- Guided diffusion-based climate emulators, such as NVIDIA cBottle, enable efficient importance sampling of rare extreme weather events by steering generative models toward low-probability states and applying odds-ratio corrections to estimate their true likelihood under the baseline climate distribution.
- The odds-ratio diagnostic, which requires second-order derivatives through the generative model, quantifies the likelihood shift induced by guidance and allows reweighting of guided samples to accurately estimate rare event probabilities, demonstrated in tropical cyclone risk estimation with significant standard error reduction compared to traditional Monte Carlo methods.
- This methodological framework, implemented in NVIDIA Earth2Studio, holds promise for broader applications across domains where rare events are critical, and future work is focused on optimizing computational efficiency, improving density estimation stability, and extending guided sampling techniques to a wider range of extreme phenomena and attribution studies.
AI-generated content may summarize information incompletely. Verify important information. Learn more
Across science, engineering, and finance, many of the most important risks come from low-likelihood, high-impact events. Estimating the probability of these events with brute-force Monte Carlo sampling—running a model repeatedly with randomly drawn inputs to estimate the probability of rare outcomes—can require an excessive volume of model iterations, especially when each sample comes from an expensive, physics-based model.
Guided diffusion models offer a new way to navigate towards rare events, but guidance introduces a critical challenge: If a model oversamples the tail of a distribution, how can we still estimate the true likelihood of those samples?
In a new paper, Towards accurate extreme event likelihoods from diffusion model climate emulators, we explore this problem in climate science by guiding a diffusion-based climate emulator toward tropical storms and computing odds ratios from guided and unguided probabilities. In this post we will illustrate a minimal working example using a tropical cyclone case.
There’s a ton more work to do: New methods deserve to be tried, performance optimizations are needed, and the impact could be unlocking radical cost efficiencies for next-generation risk analytics in science and economics.
Read on to see how this works in practice, including a quick-start guide.
Guided diffusion for climate extremes
Extreme weather risk often depends on rare, localized events that are expensive to sample with traditional climate simulations. A tropical cyclone near a specific coastline, for example, may require very large ensembles before enough cases appear to estimate its likelihood with useful confidence. This creates a bottleneck for landfall risk analysis, climate attribution experiments, infrastructure planning, insurance modeling, and downstream impact studies.
Our work shows that diffusion-based climate emulators can do more than generate realistic atmospheric states. They can also provide useful probability estimates for those states. Using NVIDIA cBottle, a diffusion-based, climate-conditional weather state generator, we guide a diffusion model toward tropical cyclone states and compute an odds ratio between the guided and unguided distributions, enabling importance sampling of rare events.
This matters because guidance alone is not enough. If a model is steered toward rare events, it oversamples them by design. To use those samples for probability estimation, we need to know how much the guidance changed their likelihood. The odds ratio provides that correction, enabling importance sampling of rare events while still estimating their probability under the original climate distribution.
An implementation of this workflow is available in NVIDIA Earth2Studio, the open-source inference platform for AI climate and weather workflows, through the CBottleTCGuidance example.
From guided samples to odds ratios
The cBottle tropical cyclone guidance workflow generates atmospheric samples conditioned on user-specified tropical cyclone activity. In the Earth2Studio example, the guidance tensor marks a desired location near Florida and requests a sample during hurricane season.
Conceptually, the model compares two probabilities for a generated atmospheric state \(x\):
\(p_{\text{guided}}(x)\)
and
\(p_{\text{unguided}}(x)\)
The log-odds ratio is:
\(\log o(x) = \log p_{\text{unguided}}(x) – \log p_{\text{guided}}(x)\)
This value quantifies how much less likely the sample is under the unguided model than under the guided model.
For estimating probabilities under the unguided distribution using guided samples, the corresponding importance weight is:
\(o(x) = \frac{p_{\text{unguided}}(x)}{p_{\text{guided}}(x)} = \exp(\log o(x))\)
This is what enables importance sampling: generate more samples in the rare-event region, then reweight them to estimate their likelihood under the original climate distribution.
\(P_{IS}(\text{TC}) \approx \frac{1}{K} \sum_{i=1}^{K} I_{\text{TC}}(x_i) o(x_i), \quad \text{where } x_i \sim p_{\text{guided}}\)
Running guided tropical cyclone sampling in Earth2Studio
The Earth2Studio example uses the built-in CBottleTCGuidance diagnostic model. The setup loads the default cBottle TC guidance package, which downloads the checkpoint from NGC.
from earth2studio.models.dx import CBottleTCGuidance
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
# Load the default model package which downloads the checkpoint from NGC
package = CBottleTCGuidance.load_default_package()
The fast path is optimized for standard guided inference. Here, a single guidance point is placed near Florida, using latitude 27.0 degrees and longitude -82.0 degrees. The example then requests one timestamp during hurricane season.
lat = torch.tensor([27.0], device=device) # Near Florida lon = torch.tensor([-82.0], device=device) # Converted internally to [0, 360) times = [datetime(2005, 10, 11, 12)] model = CBottleTCGuidance.load_model(package, seed=0).to(device) # Create guidance tensor guidance, coords = model.create_guidance_tensor(lat, lon, times) guidance = guidance.to(device) # Run guided sampling guided_sample, guided_coords = model(guidance, coords)
The output, guided_sample, contains the generated atmospheric state.
This makes it straightforward to extract variables such as 10-meter zonal wind, mean sea-level pressure, or other generated fields for analysis and visualization. The example plots the 10-meter zonal wind component, u10m, over a Caribbean domain (Figure 1, below). This visualization helps verify that the generated state contains coherent tropical cyclone-like wind structure near the requested location.
Computing the log-odds ratio
Sampling a guided tropical cyclone is useful, but the main research contribution is the ability to estimate how likely that sample is under the guided distribution compared with the unguided base distribution.
The odds-ratio calculation requires estimating the divergence of the generative flow, which in turn needs second-order derivatives through the model. For that reason, the example reloads the model with allow_second_order_derivatives=True.
model = CBottleTCGuidance.load_model(
package,
seed=0,
sampler_steps=2,
allow_second_order_derivatives=True,
).to(device)
log_odds_ratio, forward_latents, latent_coords = model.calculate_odds_ratio(
guidance,
coords,
)
print(f"Log odds ratio: {log_odds_ratio:.4f}")
print(f"Forward latents shape: {tuple(forward_latents.shape)}"
The example reduces sampler_steps to speed up runtime. For higher-quality samples and more stable odds-ratio values, the default sampler settings should be used.
The returned log_odds_ratio tells you how much the guidance changed the likelihood of the generated sample. A negative value means the sample is much more likely under the guided distribution than under the unguided base model.
The forward_latents tensor provides the guided sample used by the odds-ratio computation.
Why this matters for climate science
The paper shows that diffusion model climate emulators can provide probabilistic information that has historically been unavailable in practical form for full atmospheric states.
This is important because many climate questions are fundamentally probabilistic. Researchers want to know how likely a tropical cyclone is near a specific coastline, how that likelihood changes under different sea surface temperatures, and whether guided generative models can produce rare events more efficiently than brute-force sampling.
By combining guided generation with odds-ratio diagnostics, it’s possible to sample rare events more often while still estimating their likelihood under the base climate distribution. In the paper, this enables importance sampling of tropical cyclone states and reduces standard error by 25% compared with simple Monte Carlo sampling.
Opportunities beyond climate
Although the example focuses on tropical cyclones, the idea is broader: Guide a generative model toward a rare but important part of the distribution, then compute how much the guidance changed the sample probability.
This pattern could be useful in domains where rare events dominate risk, including power grid resilience, aerospace stress testing, financial tail-risk estimation, materials discovery, robotics edge cases, and molecular simulation.
When naive sampling rarely finds the important event, guided generative sampling plus odds-ratio correction can make rare-event estimation more practical.
Future research directions
The current results are early but promising. More work is needed to make these methods faster, more accurate, and more broadly applicable.
Diffusion sampling can be computationally expensive, especially when odds-ratio calculations require second-order derivatives. Faster samplers, distillation, or fewer-step diffusion methods could make rare-event likelihood estimation more scalable. Better density estimation and more stable log-odds computations would improve confidence in downstream probability estimates. More precise guidance functions could also target different event types, intensities, and regions while preserving physical consistency.
Tropical cyclones are one example of extreme events. Similar methods could be explored for atmospheric rivers, heat waves, severe storms, drought conditions, and compound extremes. Guided probability estimates may also support new attribution-like experiments by comparing event likelihoods across different boundary conditions or climate states, when the diffusion emulator is trained on such different climates.
Getting started
Read the paper: Towards accurate extreme event likelihoods from diffusion model climate emulators, and explore the Earth2Studio example, 05_cbottle_tc_guidance.py.
For more background, see the cBottle paper, Climate in a Bottle, and the NVIDIA Earth2Studio GitHub repository.
Tags
About the Authors
Peter Manshausen is a research scientist in NVIDIA’s weather and climate simulation group, focusing on deep generative models of the atmosphere. He previously obtained his PhD in atmospheric physics from the University of Oxford, where he worked on the role of clouds in the climate system.
Mike Pritchard is the director of climate simulation research for NVIDIA Research, where he works on Earth-2. He leads a team of researchers who are exploring the potential of AI to advance weather and climate simulation. Mike previously served as a professor of Earth system sciences at the University of California, Irvine, where he led a research lab studying climate dynamics and next-generation atmospheric simulation algorithms starting in 2013.
Comments
More from NVIDIA Developer Blog
-
Serve Qwen3.8-2.4T-A95B, a 2.4T-Parameter Model, with Configurable Reasoning on NVIDIA GB300 NVL72
Aug 12
-
How to Choose Full-Stack Observability for NVIDIA AI Factories
Aug 12
-
NVIDIA JetPack 7.2.1 Adds Agentic Video Skills and T3000 Emulation
Aug 11
-
NVIDIA Nemotron 3.5 Lightning Delivers Fast, Accurate Specialized Task Execution for Long-Running Agents
Aug 11
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.