Robust Importance Sampling for Rare Events via Constrained Gaussian Mixtures

Pawel Lorek, Rafał Nowak, Rafał Topolnicki, Tomasz Trzcinski, Maciej ZiebaNeurIPS 2026

TL;DR

Estimating the probability of one-in-a-million events is notoriously difficult: naive random sampling misses them completely, while clever "importance sampling" techniques often backfire and blow up with infinite variance. This paper solves both headaches by breaking the problem into a "find-it-first, fit-it-later" pipeline and imposing a surprisingly clean mathematical speed-limit on how tightly Gaussian mixtures can shrink. The result is a rare-event estimator that stays rock-solid in high-dimensional, multi-modal spaces where standard methods catastrophically collapse.

What Problem Does This Paper Address?

Imagine trying to calculate the odds of a catastrophic bridge failure, a financial market crash, or a neural network suddenly misbehaving under tiny parameter noise. Mathematically, we have a Gaussian input $\mathbf{X} \sim \mathcal{N}(\boldsymbol{\mu}, \boldsymbol{\Sigma})$ and want to know the probability $I = \mathbb{P}(g(\mathbf{X}) > \gamma)$ when $I$ is tiny—say, $10^{-6}$ to $10^{-3}$.

Crude Monte Carlo (just rolling the dice millions of times) is hopeless here; you’ll burn your compute budget seeing nothing but normal behavior. The classic alternative is Importance Sampling (IS): instead of sampling from the original distribution $f$, you sample from a shifted "proposal" distribution $p$ that deliberately aims at the rare-event zone, then re-weight your samples by $f(\mathbf{x})/p(\mathbf{x})$ to keep the math unbiased.

As statistician Art Owen famously warned, IS is a double-edged sword. In rare-event regimes, learning a good proposal $p$ hits two walls:

  1. Cold start: If an event happens once in a million tries, initial random samples never hit the target zone, giving gradient- or KL-divergence-based optimizers zero learning signal.
  2. Covariance collapse (Infinite Variance): Even if you find the rare region and perfectly optimize your KL divergence, the proposal distribution often shrinks too tightly around the rare samples. If your proposal $p(\mathbf{x})$ decays faster in the tails than $f(\mathbf{x})^2$, the importance weights explode, yielding an estimator with infinite variance—worse than naive Monte Carlo!

Methods

The authors cleanly decouple finding the rare event from fitting its geometry, building safety directly into the parameterization of Gaussian Mixture Models (GMMs):

  • Stage 1: Coverage-First Initialization (CFI): Inspired by adaptive Cross-Entropy, CFI gradually nudges a GMM toward the rare region via intermediate thresholds (empirical quantiles). Crucially, unlike standard adaptive Cross-Entropy, CFI fits to "elite" high-scoring samples without likelihood-ratio weights, cheaply establishing overlap with $\{g(\mathbf{x}) > \gamma\}$ without weight degeneracy.
  • The Constrained GMM Safeguard (What's New): Extending a classic 1D/single-Gaussian rule to full-covariance mixtures, the authors prove (Theorem 1) that if every mixture component’s covariance $\boldsymbol{\Sigma}_k$ strictly exceeds half the nominal covariance ($\boldsymbol{\Sigma}_k \succ \frac{1}{2}\boldsymbol{\Sigma}$), the IS estimator is guaranteed to have finite variance, regardless of $g$'s geometry. They bake this into gradient descent via $\boldsymbol{\Sigma}_k = \mathbf{L}_k\mathbf{L}_k^\top + \beta\boldsymbol{\Sigma}$ (with $\beta = 0.5$, temporarily annealed downward only if CFI stalls).
  • Stage 2 & 3: Constrained-KL & Flow Refinement: Using the safe CFI distribution to generate training samples, they refine the constrained GMM via Forward or Reverse KL minimization (FKL-c / RKL-c). Optionally, they wrap a RealNVP normalizing flow (+F) around the GMM backbone to capture gnarly, non-Gaussian boundaries—trading away the formal finite-variance proof for extra empirical precision.
Unconstrained CFI-u collapses into ultra-narrow spikes and stalls before reaching the target threshold, while constrained CFI-c maintains healthy Gaussian tails and covers both rare modes.

Datasets

Because this is a simulation paper rather than a data-driven ML paper, evaluation is conducted on synthetic mathematical and neural reliability benchmarks spanning $I \in [10^{-6}, 10^{-3}]$ (no new benchmarks are introduced, though a higher-dimensional variant of an existing ResNet test is explored in the appendix):

  • Low-dimensional ($d=2$): A two-mode "Leaf" function ($g_1$) and two structural-reliability benchmarks with piecewise radial ($g_2$) and anisotropic ($g_3$) boundaries.
  • High-dimensional ($d=40, 62, 100$): The nonconvex 40D Powell function ($g_5$), a 100D linear scaling test ($g_6$), and a ResNet-18 benchmark ($g_7, d=62$) measuring how often layerwise Gaussian parameter perturbations push network loss past a failure threshold (using CIFAR-style model perturbations from prior literature).
  • Financial risk ($d=10$): Tail probabilities of sums of correlated lognormals ($g_{10}$), modeling correlated Black–Scholes assets.

Key Insights and Ideas

  • A "good" KL fit can be a terrible sampler: On a simple 1D toy problem $\mathbb{P}(X > 4)$, exact KL minimization picks variances of $0.0466$ (Forward KL) and $0.4306$ (Reverse KL)—both below the critical $0.5$ threshold! Because rare-event conditional distributions naturally concentrate in the tails, unconstrained fitting inevitably invites covariance collapse.
  • Componentwise tail floors beat defensive mixing: Classic "defensive IS" mixes in a fraction $\lambda$ of the original distribution $f$ to cap weights, which wastes samples near the origin. By instead flooring every GMM covariance above $\frac{1}{2}\boldsymbol{\Sigma}$, all components can migrate to the rare region while keeping heavy enough tails to stay safe.
  • Finite variance $\neq$ good finite-budget performance: The authors are refreshingly candid that Theorem 1 only prevents $\text{Var} = \infty$. Without good coverage from CFI, even a theorem-protected baseline can still suffer high variance on a fixed budget of $10^5$ samples.

Key Results

Across 20 independent runs per benchmark (at $R = 10^5$ simulator evaluations and $K=16$ GMM components):

  • Zero catastrophic failures: Unconstrained CFI-u failed 19–20 out of 20 times on five of the seven benchmarks (returning zero or non-finite estimates). Every constrained variant (CFI-c, +RKL-c/+FKL-c, and +F) achieved 0/20 failures across all benchmarks.
  • Massive variance reduction: On the 1D two-tailed toy problem $\mathbb{P}(|X|>4)$, CFI-c+FKL-c+F achieved a 5,810$\times$ variance reduction over Crude Monte Carlo (and 5,560$\times$ without the flow), outperforming Subset Simulation, Adaptive Multilevel Splitting, and Safe-ICE by orders of magnitude.
  • Outperforming defensive IS and baselines at scale: On the Leaf benchmark ($g_1$), constrained fRKL-c cut the Coefficient of Variation (CoV) by ~76% and boosted variance reduction by 17$\times$ compared to Hesterberg-style defensive IS. Across high-dimensional tests ($d=40, 62, 100$), the full CFI-c + KL + Flow pipeline consistently delivered the lowest CoV overall (e.g., 6.24e-03 on the 62D ResNet-18 test vs. 8.88e-03 for the best baseline).
Summary of top baseline, finite-variance constrained GMM, and flow-refined methods across all seven benchmarks.

Limitations and Future Work

  • Gaussian nominal assumption & Flow gap: Theorem 1 relies on the base distribution $f$ being Gaussian, and the formal finite-variance guarantee drops away once you attach the optional normalizing flow layer. Extending tail-safety proofs to non-Gaussian priors is an open task.
  • Quadratic scaling in dimension: Storing and estimating full $d \times d$ covariance matrices for $K$ components requires $\mathcal{O}(Kd^2)$ parameters and enough elite samples to fit them reliably. In ultra-high dimensions with tight simulation budgets, this becomes a bottleneck—making low-rank or structured covariance parameterizations a prime direction for future work.
  • Geometry bottlenecks: A finite GMM with a hard covariance floor can struggle to hug ultra-narrow, irregular rare-event manifolds, and CFI can still miss isolated modes or require many intermediate steps in extreme regimes.

Summary updated

Abstract

We study estimating rare-event probabilities $I = \mathbb{P}(g(\mathbf{X}) > \gamma)$ with $\mathbf{X} \sim \mathcal{N}(\boldsymbol{\mu}, \boldsymbol{\Sigma})$ and general $g : \mathbb{R}^d \to \mathbb{R}$. We address this problem through importance sampling, and propose a framework that substantially improves efficiency and robustness over baselines such as crude Monte Carlo, adaptive cross-entropy, variational-inference-based methods (including reverse- and forward-KL approaches), as well as Safe-ICE, Subset Simulation, and Sequential Monte Carlo, *drawing* on ideas from both rare-event estimation and cross-entropy optimization. The key contribution has two parts: first, we separate the problem into *coverage*, to overcome the cold-start barrier, and *fitting*, to refine proposals once a meaningful signal is available; second, we constrain the final GMM proposal so that it has finite importance-sampling variance (since coverage alone is not sufficient – without safeguards, importance sampling may still suffer from infinite variance). Together, these ingredients yield expressive proposals; finite variance does not by itself guarantee practical stability at a fixed sampling budget. Extensive experiments demonstrate substantial variance reduction, strong robustness across diverse benchmarks, and favorable cost–efficiency trade-offs, with the proposed approach often outperforming these baselines, particularly in high-dimensional and multimodal settings where competing methods frequently become unstable or fail. Our code is available at https://github.com/lorek/robust-cfi-is.
BibTeX
@inproceedings{lorek2026robust,
  author = {Pawel Lorek and Rafał Nowak and Rafał Topolnicki and Tomasz Trzcinski and Maciej Zieba},
  title = {{Robust Importance Sampling for Rare Events via Constrained Gaussian Mixtures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qj7n3ANylE},
}
Figure