NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Arbitrarily Conditioned Hierarchical Flows for Spatiotemporal Events

Keyan Chen, Qiwei Yuan, Zhitong Xu, Bin Shen, Shandian Zhe

Here is a blog-style summary of the paper "Arbitrarily Conditioned Hierarchical Flows for Spatiotemporal Events".

TL;DR

The authors introduce ARCH (Arbitrarily Conditioned Hierarchical Flows), a novel framework that applies flow matching to spatiotemporal event modeling. Unlike traditional methods that are restricted to predicting the next event in a sequence, ARCH can handle arbitrary conditioning tasks—such as filling in missing data or inferring past events—while still accurately calculating instantaneous event risk (conditional intensity).

What Problem Does This Paper Address?

Spatiotemporal events—like earthquakes, crime flare-ups, and disease outbreaks—are notoriously difficult to model because they are highly complex yet sparsely observed. Traditional approaches rely on Spatiotemporal Point Processes (STPPs), which often make rigid structural assumptions (e.g., that event interactions are purely additive or follow strict parametric families).

While recent generative approaches like diffusion models offer massive improvements in expressive power, they come with a major catch: they lose the ability to calculate well-calibrated conditional intensities (the exact, instantaneous risk of an event happening at a specific time and place). Furthermore, almost all existing models are strictly autoregressive, meaning they can only predict the future given the past. They completely fall apart if you ask them to perform "inverse inference" (e.g., finding the origin of an outbreak) or recover missing historical data.

Methods

ARCH solves these bottlenecks by combining flow matching with a clever hierarchical architecture and a flexible masking strategy.

Instead of trying to model time and space simultaneously in a single high-dimensional flow, ARCH decomposes the joint probability of an event's time ($s$) and spatial location ($\mathbf{x}$) given its history ($\mathcal{H}$):

$$p(s, \mathbf{x} | \mathcal{H}) = p(s | \mathcal{H}) p(\mathbf{x} | s, \mathcal{H})$$

The framework uses two distinct flows:

  1. $G_1$ (Temporal Flow): Generates the inter-event time $s$ conditioned on history.
  2. $G_2$ (Spatial Flow): Generates the spatial location $\mathbf{x}$ conditioned on both history and the generated time $s$.

An overview of this architecture is shown below:

Overview of the ARCH framework for spatiotemporal event modeling

Tractable Intensity Calculation

By separating time and space, ARCH avoids the computationally brutal multi-dimensional numerical integration typically required to find the cumulative distribution function (CDF) of event risk. By leveraging the Picard–Lindelöf theorem and the order-preserving properties of 1D ordinary differential equations (ODEs), the authors prove that the temporal CDF remains invariant along the ODE trajectory. This allows them to compute exact hazard rates efficiently.

Hybrid Masking Strategy

To move beyond simple step-by-step forecasting, ARCH utilizes a history encoder and a generative decoder (both based on Transformers) trained with a mixture of three masking strategies:

  • Autoregressive Mask: For standard next-event prediction.
  • Random Condition Mask: For general imputation where arbitrary subsets of events are missing.
  • Consecutive Mask: For trajectory reconstruction and multi-step forecasting.
Illustration of the autoregressive, random condition, and consecutive masking strategies

Datasets

The authors evaluated ARCH on both synthetic and real-world datasets:

  • Synthetic Data: STHP-SYN (a spatiotemporal Hawkes process) and STSC-SYN (a spatiotemporal self-correcting process with strong inhibitory interactions).
  • Real-World Benchmarks:
  • Earthquake: Seismic activity and aftershocks in Japan (1990–2020).
  • COVID-19: Daily case counts across New Jersey counties.
  • Citibike: Bike-sharing trip data from New York City.

Key Insights and Ideas

  • The Power of 1D Invariance: The "aha moment" for maintaining tractable intensities lies in the 1D nature of time. Because one-dimensional ODEs preserve ordering, the cumulative probability doesn't shift over the flow's time horizon. This allows the model to compute exact temporal risks without expensive Monte Carlo approximations.
  • Breaking the Autoregressive Cage: By framing event modeling as a masked conditional generation problem rather than a sequential autoregressive problem, a single trained model can seamlessly transition between forecasting the future, interpolating the past, or performing backward inference.
  • Robustness to Model Misspecification: Traditional Hawkes processes struggle when events inhibit rather than excite future events. Because ARCH learns continuous velocity fields rather than assuming additive excitation, it easily adapts to both excitation-dominated and inhibition-driven dynamics.

Key Results

1. Intensity Recovery

On synthetic datasets, ARCH reconstructed the true underlying risk surfaces far more accurately than state-of-the-art point process models (AutoSTPP, DeepSTPP, NSTPP), achieving significantly lower relative $L_2$ errors.

Table 1: Relative L2 error of the conditional intensity on synthetic datasets. Best results are shown in bold.

As visualized in Figure 1, ARCH closely mirrors the ground-truth intensity shapes, whereas baseline models fail dramatically on the self-correcting (STSC-SYN) dataset due to structural misspecification.

Figure 1: Conditional intensity functions at representative time points on STSC-SYN. GT: ground-truth.

2. Predictive Performance

On real-world datasets, ARCH consistently achieved top-tier performance for next-event prediction, matching or outperforming specialized diffusion baselines (DSTPP) while uniquely retaining the ability to calculate exact event risks.

Table 2: Root-mean-square error (RMSE) and Euclidean distance for next-event time and location prediction. The best two results are highlighted in bold.

3. Inverse Inference & Trajectory Recovery

When tasked with inferring the very first events in a sequence based only on subsequent observations, ARCH vastly outperformed standard imputation methods like KNNImpute.

Table 3: Inverse inference of the initial events. KNNImp is short for KNNImpute.

Limitations and Future Work

While ARCH is highly flexible, the authors note a few limitations:

  • Fixed Event Counts: The model currently assumes that the number of target or missing events is known in advance. It cannot explicitly infer how many events occurred within a completely unobserved window.
  • Lack of Structural Priors: The framework is entirely data-driven. Incorporating physics-based or domain-specific structural priors could make the learned relationships more interpretable.

Future work will focus on extending ARCH to handle discrete event-mask generation, allowing it to automatically infer both the types and total counts of missing spatiotemporal events.

Summary updated

BibTeX
@inproceedings{chen2026arbitrarily,
  author = {Keyan Chen and Qiwei Yuan and Zhitong Xu and Bin Shen and Shandian Zhe},
  title = {{Arbitrarily Conditioned Hierarchical Flows for Spatiotemporal Events}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=A8CPCX5IjP},
}
Figure