Abstract
Deep generative models often struggle with rare events due to the extreme scarcity of failure data. This paper introduces Calibrated Normalizing Flows (CALNF), a self-regularized framework designed to infer the latent factors behind rare failures by amortizing inference over both nominal and failure datasets. By searching a low-dimensional calibration space, CALNF avoids the pitfalls of overfitting and over-regularization, achieving state-of-the-art performance on tasks ranging from seismic inversion to real-world aviation crises.
Introduction
In high-stakes autonomous systems—such as self-driving vehicles, robotic surgery, or air traffic control—failures are infrequent but catastrophic. When a failure occurs, engineers typically possess vast amounts of "nominal" operational data but only a few samples of the failure state. Traditional machine learning models struggle to generalize from such limited evidence, often either overfitting to the specific noise of the failure sample or being overwhelmed by the prior distribution of normal operations.
A new study from researchers at MIT, Harvard, and the University of Michigan, presented at ICLR 2025, addresses this "data-constrained Bayesian inverse problem" by introducing a framework that learns the underlying mechanics of failure from extremely sparse data points.
The Regularization Dilemma
In rare event modeling, the goal is to infer hidden factors ($z$) that lead to an observed failure ($x$). Existing approaches using deep generative models like Normalizing Flows typically fall into two traps:
- Overfitting: With only a few failure points, a deep model will simply "memorize" the noise in those specific examples, failing to generalize to the broader failure mode.
- Underfitting: To prevent overfitting, researchers often use a strong prior (data from normal operations) to regularize the model. However, if the prior is too dominant, the model ignores the failure data entirely and predicts that the system is operating normally.
The challenge lies in finding a "Goldilocks" zone of regularization that allows the model to learn the shift from "normal" to "failure" without being led astray by limited samples.
Methodology: Calibrated Normalizing Flows (CALNF)
CALNF proposes a shared representation for both nominal and target (failure) distributions. The framework operates through four key mechanisms:
- Amortized Embedding: Instead of training exclusively on failure data, CALNF trains a single conditional normalizing flow on the full nominal dataset and multiple random subsamples of the failure data.
- One-Hot Labeling: Each failure subsample is assigned a unique "one-hot" label, while nominal data receives a zero label. This teaches the model a mapping from a low-dimensional "label space" to a family of possible posterior distributions.
- Calibration Label ($c^*$): After initial training, the model parameters are frozen. The algorithm then searches for an optimal "calibration label" ($c^*$) in a low-dimensional space that best represents the entire failure dataset. This implicit regularization via dimensionality prevents the model from fitting to high-dimensional noise.
- Self-Regularization: The loss function includes a term that encourages the distributions learned from different failure subsamples to be similar, reflecting the fact that they all originate from the same underlying failure process.
Experimental Evaluation
The researchers evaluated CALNF across several high-dimensional benchmarks, demonstrating its versatility in both synthetic and real-world scenarios:
- Seismic Waveform Inversion (SWI): In this 100-dimensional geophysics problem, the goal is to infer Earth's subsurface density from seismic sensors. CALNF was the only method capable of reconstructing the correct shape of the subsurface density profile from limited measurements.
- Aerial Vehicle Control (ALFA): Using real-world flight data from a UAV experiencing control surface failures (e.g., a stuck elevator), CALNF achieved an Evidence Lower Bound (ELBO) of 7.55, significantly outperforming the best KL-regularized baseline of 3.02.
- Air Traffic Disruptions: The authors modeled the 2022 Southwest Airlines scheduling crisis using a stochastic queuing model. CALNF successfully inferred hidden aircraft reserves from arrival/departure times, revealing that the crisis was driven by massive aircraft deficits at secondary hubs like Las Vegas and Phoenix—airports that were not directly impacted by the initial weather delays.
Key Insights and Results
The study highlights that sharing a "backbone" flow for both normal and failure data allows the model to leverage structural information from plentiful normal data to interpret sparse failure data. In anomaly detection tasks, CALNF achieved higher AUROC and AUCPR scores than supervised detectors, suggesting it generalizes better to unseen failure modes.
Limitations and Future Work
The primary trade-off for CALNF’s performance is its computational cost; training requires multiple evaluations of the joint likelihood per step, making it slower than simpler regularization methods. Furthermore, the framework assumes that failure events share some underlying structure with nominal operations. If a "black swan" event occurs that is radically different from the shared representation, the implicit regularization may fail. Future research aims to integrate large deviation theory to provide direct estimates of failure probability alongside posterior distributions.
Summary updated