Diverging Flows: Detecting Extrapolations in Conditional Generation
Constantinos Tsakonas, Serena Ivaldi, Jean-Baptiste Mouret
TL;DR
Diverging Flows tackles the safety-risks of extrapolation in conditional flow models by embedding a geometric mechanism that makes off-manifold inputs diverge rather than follow efficient transport paths. The method jointly learns predictive densities and an extrapolation indicator through contrastive vector-field regularization, adversarial negative mining, and a DOT-based detection score calibrated with split conformal prediction. Empirical results across synthetic manifolds, ERA5 weather data, and cross-domain style transfer demonstrate robust detection of extrapolations (high AUROC) without sacrificing predictive fidelity, latency, or generative quality. The work offers a practical, single-model solution for trustworthy flow-based regression and generation in high-stakes domains such as climate science, robotics, and medicine.
Abstract
The ability of Flow Matching (FM) to model complex conditional distributions has established it as the state-of-the-art for prediction tasks (e.g., robotics, weather forecasting). However, deployment in safety-critical settings is hindered by a critical extrapolation hazard: driven by smoothness biases, flow models yield plausible outputs even for off-manifold conditions, resulting in silent failures indistinguishable from valid predictions. In this work, we introduce Diverging Flows, a novel approach that enables a single model to simultaneously perform conditional generation and native extrapolation detection by structurally enforcing inefficient transport for off-manifold inputs. We evaluate our method on synthetic manifolds, cross-domain style transfer, and weather temperature forecasting, demonstrating that it achieves effective detection of extrapolations without compromising predictive fidelity or inference latency. These results establish Diverging Flows as a robust solution for trustworthy flow models, paving the way for reliable deployment in domains such as medicine, robotics, and climate science.
