Abstract
Probabilistic forecasting of irregular and sparse time series is critical in domains like healthcare and climate science. While existing models achieve high expressivity using normalizing flows, they often suffer from marginalization inconsistency—where joint forecasts contradict individual variable predictions. We present MOSES (Marginalization Consistent Mixture of Separable Flows), a novel architecture that guarantees mathematical consistency by combining a correlated source distribution (Mixture of GPs) with univariate, separable transformations. MOSES provides reliable joint and marginal predictions, significantly outperforming inconsistent state-of-the-art models in marginal density estimation across multiple real-world clinical and climate datasets.
Introduction
In fields like healthcare and meteorology, data is inherently messy. Sensors fail, patients are tested at irregular intervals, and different variables (e.g., heart rate vs. blood glucose) are recorded asynchronously. This results in irregular time series with significant missingness. While point predictions are common, high-stakes decision-making requires full probabilistic forecasts to quantify uncertainty.
The challenge lies in "joint" forecasting—predicting the distribution of multiple variables simultaneously. Existing expressive models, such as ProFITi, utilize complex Normalizing Flows to achieve high accuracy but suffer from marginalization inconsistency. For example, a weather model might provide a joint probability for rain and wind, but if the probability of rain derived from that joint forecast differs from a standalone rain forecast, the model is inconsistent. This lack of coherence erodes trust and limits the model's utility for diverse queries.
Methodology: The MOSES Architecture
The authors propose MOSES to resolve this inconsistency through a "reversed" approach to normalizing flows. Traditional flows use simple source distributions and complex, non-separable transformations to model interactions. MOSES instead utilizes a rich, correlated source distribution and simple, separable transformations.
The architecture consists of four primary components:
- Separable Encoder: Uses self-attention for observed data and cross-attention for specific queries (variable and time).
- Mixture of Gaussian Processes (GPs): MOSES employs a mixture of several latent multivariate GPs with full covariance matrices, allowing it to capture complex inter-variable interactions.
- Separable Normalizing Flows: Unlike standard flows that transform variables jointly, MOSES applies univariate transformations (Linear Rational Splines) to each dimension independently.
- Analytical Consistency: Because the flows are separable and the base distributions are GPs (which are naturally consistent), the entire mixture is mathematically guaranteed to remain marginalization consistent.
Experimental Setup and Datasets
The model was evaluated on four real-world datasets characterized by high sparsity and irregularity:
- USHCN: Climate data (temperature and precipitation) from 1,218 stations over 150 years.
- Physionet’12: Medical records of 12,000 ICU patients tracking 37 vital signs.
- MIMIC-III & MIMIC-IV: Large-scale clinical databases with readings for approximately 100 variables from ICU stays.
Key Results and Discussion
MOSES demonstrates near-zero marginalization inconsistency, whereas previous state-of-the-art models like ProFITi exhibit inconsistency scores orders of magnitude higher. While non-consistent models can be slightly more accurate for joint predictions due to fewer structural constraints, they often fail when predicting single variables (marginal prediction).
In joint prediction tasks (njNLL), MOSES performs comparably to ProFITi. However, in marginal prediction (mNLL), MOSES vastly outperforms ProFITi across all datasets. Furthermore, MOSES consistently beats other marginalization-consistent baselines, such as standard GPs or Gaussian Mixture Models, proving that the addition of separable flows significantly enhances the model's ability to handle non-Gaussian real-world data.
Conclusion
MOSES provides a reliable framework for practitioners who need to ask varied questions of the same model. By ensuring that a sub-query (e.g., "What is the heart rate?") returns the same result whether asked in isolation or as part of a larger panel, MOSES establishes a new standard for trust and coherence in probabilistic time series forecasting. Future work will focus on enhancing flexibility, such as allowing mixture weights to depend on query time, without sacrificing these essential consistency guarantees.
Summary updated