Arbitrarily Conditioned Hierarchical Flows for Spatiotemporal Events
Keyan Chen, Qiwei Yuan, Zhitong Xu, Bin Shen, Shandian Zhe · 2026
Read Arbitrarily Conditioned Hierarchical Flows for Spatiotemporal Events by Keyan Chen, Qiwei Yuan, Zhitong Xu, Bin Shen, Shandian Zhe (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-01226.txt.
Introduction
Keyan Chen and four co-authors present ARCH, a model for events spread across space and time, such as crimes, quakes, or disease cases. Standard point process models lean on strong assumptions and usually predict one event at a time, in order. That limits them on broader tasks, like working backward from effects to causes, rebuilding a full path, or filling in missing event locations.
ARCH uses a hierarchical flow matching design with a history encoder and a generative decoder. A hybrid masking scheme lets the model condition on any chosen set of observed events, not just the past. It stays expressive while still giving exact, accurate values for conditional intensities, the measure of how likely an event is at each place and moment. One model thus covers forecasting, inverse inference, and partial path recovery. Tests on synthetic and real data beat prior methods on both prediction and inference tasks.
Catalog record
| CREATOR | Keyan Chen, Qiwei Yuan, Zhitong Xu, Bin Shen, Shandian Zhe |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 51 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.01226
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Arbitrarily Conditioned Hierarchical Flows for Spatiotemporal Events Keyan Chen, Qiwei Yuan, Zhitong Xu, Bin Shen, Shandian Zhe Abstract Events in spatiotemporal systems are ubiquitous, yet modeling their complex distributions remains challenging. Existing point process models often rely on strong structural assumptions and are typically limited to autoregressive, event-by-event prediction. As a result, they struggle to support broader inference tasks such as inverse inference, trajectory reconstruction, and recovery of missing event locations. We introduce Arbitrarily Conditioned Hierarchical Flows (ARCH), a hierarchical flow matching framework for spatiotemporal event modeling. ARCH is expressive enough to capture complex event distributions while enabling tractable and accurate computation of conditional intensities, which quantify instantaneous event risk. Built on a history-encoder-generative-decoder architecture, ARCH introduces a hybrid masking strategy for flexible conditioning on arbitrary observed events. This enables a unified treatment of forecasting, inverse inference, and partial trajectory recovery within a single framework. Experiments on synthetic and real-world datasets show that ARCH consistently outperforms existing baselines across both prediction and conditional inference tasks. 1 Introduction Spatiotemporal events arise in many domains, including weather phenomena, natural disasters, epidemics, and crime. Their distributions are often highly complex, while observations are typically sparse, making learning and inference over such events particularly challenging. Existing spatiotemporal point process models often rely on strong structural assumptions, such as the independent-increment property of Poisson processes, additive interaction structures in Hawkes-process-like models ( 30 ; 35 ; 36 ) , and parametric distribution families ( 25 ) . More recent approaches have explored diffusion-based event generation ( 32 ) , which substantially improves expressive power for capturing complex distributions. However, this flexibility often comes at the cost of losing tractable or well-calibrated conditional intensities, a central quantity for quantifying instantaneous event risk. Furthermore, existing methods are typically limited to autoregressive, event-by-event inference, making them ill-suited for broader tasks such as inverse inference, event trajectory reconstruction, and recovery of missing event locations. To overcome these bottlenecks, we propose ARCH, a hierarchical flow matching framework for spatiotemporal event modeling. Our method is flexible enough to capture complex event distributions from data while also enabling efficient and accurate computation of conditional intensities. In addition, it supports arbitrarily conditioned inference, allowing a broad range of tasks, including forecasting, inverse inference, missing-event imputation, and partial trajectory recovery. The major contributions of our work are summarized as follows: • Model. We propose a hierarchical flow matching framework that first generates the event time and then, conditioned on the event time, generates the event spatial location. This decomposed generation procedure not only retains the flexibility needed to capture complex distributions, but also enables tractable and accurate computation of the conditional intensity, which quantifies instantaneous event risk. Specifically, we leverage the Picard–Lindelöf theorem and the order-preserving property of one-dimensional ODEs to compute the conditional intensity of the event-time flow, and then solve the companion log-probability ODE for the event-location flow, combining the two to obtain the final conditional event intensity. • Hybrid Masked Training. To support a variety of inference tasks, we employ a history encoder and a generative decoder for each flow. We further introduce a hybrid masking strategy that enables parallel autoregressive generation, randomly conditioned inference, batched trajectory recovery, and future trajectory forecasting. During training, masks are continuously sampled, and the model is trained to recover the target velocity field for masked events conditioned on partially observed events. In this way, a broad range of inference tasks is covered, with training and inference unified within a single framework. • Experiments. On three real-world benchmark datasets, ARCH achieves strong performance across a broad range of tasks, including next-event prediction, initial-event inference, missing-event imputation, and partial-trajectory recovery. ARCH also supports joint multi-step forecasting, achieving performance comparable to or better than its autoregressive variant and diffusion-based autoregressive baselines. On synthetic datasets generated from different spatiotemporal point processes, ARCH more effectively recovers the conditional intensity and achieves lower relative L_{2} errors than competing structured spatiotemporal point process models. 2 Preliminaries Flow matching ( 16 ) learns a continuous-time vector field that transports a simple source distribution to a target data distribution through an ordinary differential equation (ODE). Let \mathbf{x}_{0}\sim p_{0} denote a random sample from a tractable source distribution, typically a standard Gaussian, and let \mathbf{x}_{1}\sim p_{\mathrm{data}} denote a data sample. The goal is to construct a time-dependent probability path \{p_{t}\}_{t\in[0,1]} that smoothly connects p_{0} and p_{\mathrm{data}} , and to learn a velocity field \mathbf{v}_{\theta}(\mathbf{x},t) such that samples evolve according to the ODE: \displaystyle\frac{d\mathbf{x}(t)}{dt}=\mathbf{v}_{\theta}(\mathbf{x}(t),t),\qquad t\in[0,1]. (1) If the learned velocity field matches the true velocity field associated with the probability path, then integrating the ODE from an initial noise sample \mathbf{x}(0)=\mathbf{x}_{0} transports \mathbf{x}_{0} to a sample \mathbf{x}(1) distributed according to p_{\mathrm{data}} . A common choice in flow matching is to define a conditional probability path between paired samples (\mathbf{x}_{0},\mathbf{x}_{1}) . One simple and widely used example is the linear flow, which interpolates between source and target as \mathbf{x}_{t}=(1-t)\mathbf{x}_{0}+t\mathbf{x}_{1} where t\in[0,1] . Under this construction, the corresponding conditional velocity is constant along the path: \mathbf{u}_{t}(\mathbf{x}_{1}\mid\mathbf{x}_{0})=\frac{d\mathbf{x}_{t}}{dt}=\mathbf{x}_{1}-\mathbf{x}_{0} . Flow matching trains \mathbf{v}_{\theta} to match this target velocity field along sampled intermediate points. In practice, one samples a data point \mathbf{x}_{1}\sim p_{\mathrm{data}} , a noise sample \mathbf{x}_{0}\sim p_{0} , and a time t\sim\mathrm{Uniform}(0,1) , constructs the interpolated point \mathbf{x}_{t} , and minimizes the regression loss \displaystyle\mathcal{L}_{\mathrm{FM}}(\theta)=\mathbb{E}_{t,\mathbf{x}_{0},\mathbf{x}_{1}}\left[\left\|\mathbf{v}_{\theta}(\mathbf{x}_{t},t)-(\mathbf{x}_{1}-\mathbf{x}_{0})\right\|^{2}\right]. (2) More generally, other probability paths can be used, with corresponding target velocities derived from the chosen transport construction. After training, generation is performed by first drawing the initial state \mathbf{x}(0)\sim p_{0} from the source distribution, and then solving the learned ODE ( 1 ) forward in time. The final state \mathbf{x}(1) is taken as a generated sample. In practice, the ODE is solved numerically using a standard solver, such as Euler or higher-order Runge-Kutta methods. Thus, once the velocity field has been learned, sampling reduces to deterministic transport from noise to data through the learned continuous-time dynamics. 3 Methodology Consider a sequence of spatiotemporal events \Gamma=\left[(s_{1},{\bf x}_{1}),\ldots,(s_{N},{\bf x}_{N})\right] , where s_{1}<\cdots<s_{N} , each s_{n}\in\mathbb{R}_{+} denotes the timestamp of event n , and {\bf x}_{n}\in\mathbb{R}^{d} denotes its spatial location. In typical applications, d\leq 3 . Given a collection of observed event sequences \mathcal{D} , our goal is to learn the underlying distribution governing the generation of such sequences, while supporting a broad range of inference tasks, including forecasting future events, inverse inference of initial events, imputing missing event times or locations, and reconstructing partial event trajectories. 3.1 Hierarchical Flow-Matching Framework We propose a hierarchical flow-matching framework that flexibly captures complex event distributions while also enabling tractable and accurate computation of conditional intensities, which quantify instantaneous event risk and play a central role in event modeling tasks such as risk monitoring, survival analysis, hotspot discovery, and intervention planning 6 ; 7 ; 2 . The overall architecture is illustrated in Appendix Figure 2 . To illustrate the framework, consider generating a future event {\bf e}=(s,{\bf x}) given the history sequence {\mathcal{H}}=[(s_{1},{\bf x}_{1}),\ldots,(s_{M},{\bf x}_{M})]. Instead of constructing a single flow that simultaneously generates the event time s\in\mathbb{R}_{+} and spatial location {\bf x}=(x_{1},\ldots,x_{d})\in\mathbb{R}^{d} , we introduce two flows, {\mathcal{G}}_{1} and {\mathcal{G}}_{2} : {\mathcal{G}}_{1} generates s conditioned on {\mathcal{H}} , while {\mathcal{G}}_{2} generates {\bf x} conditioned on the generated time s and {\mathcal{H}} . This yields the decomposition