TL;DR
This paper introduces Latent Jump Models (LJMs), a new framework for modeling time series characterized by sudden, unobserved shocks rather than smooth evolution. By utilizing a novel Scan-Parallel Variational Inference (SPVI) technique, the authors enable training that is one to two orders of magnitude faster than traditional sequential models, achieving state-of-the-art forecasting accuracy with significantly less computational effort.
What Problem Does This Paper Address?
Many real-world systems—from financial markets experiencing price shocks to power grids reacting to appliances switching on—don't evolve smoothly. Instead, they undergo abrupt changes at irregular intervals.
Current state-of-the-art models like Latent ODEs (Ordinary Differential Equations) or Latent SDEs (Stochastic Differential Equations) struggle here. They assume the latent state changes continuously. To capture a sharp "jump," these models must force a steep gradient or accumulate many tiny Gaussian perturbations. This is not only physically unintuitive but also computationally grueling, as numerical solvers must take many tiny, sequential steps to maintain accuracy. The result is a "sequential bottleneck" that makes training on long time series painfully slow.
Methods
The authors propose a two-part solution: a new model class and a high-speed inference algorithm.
- Latent Jump Models (LJMs): Instead of continuous noise, stochasticity is driven by a marked point process. Between events, the latent state follows simple, closed-form deterministic decay. At random event times, the state undergoes a learned, instantaneous jump. This treats shocks as "first-class citizens" in the model's dynamics.
- Scan-Parallel Variational Inference (SPVI): This is the core technical innovation. Standard time-series models are sequential: you must compute state $n$ before state $n+1$. SPVI breaks this chain.
- First, it uses an "exogenous" variational posterior, meaning event times and magnitudes are sampled based on the observations all at once, rather than depending on the previously sampled latent state.
- Second, the jump maps are structured as block-triangular and affine. This specific mathematical structure allows the entire state trajectory to be computed in parallel using associative prefix scans.
This shift moves the computational complexity from linear ($O(L)$) to logarithmic ($O(\log L)$) in terms of temporal depth, allowing the model to fully exploit modern GPU hardware.
Datasets
The authors evaluated LJMs against a suite of synthetic and real-world benchmarks:
- Synthetic Suite: Six datasets including "Damped Rotation" (smooth), "Cyclic Jumps" (periodic shocks), and "Piecewise-Deterministic Markov Processes" (PDMPs) with stochastic event times.
- REFIT: A real-world dataset of high-frequency electrical load measurements from 18 households. This is a classic "jumpy" dataset where appliances turning on/off create abrupt transitions.
- USHCN: The U.S. Historical Climatology Network dataset, featuring irregular daily and monthly climate records.
Key Insights and Ideas
- Jumps are Efficient: Modeling a shock as a single discrete event is far more efficient than trying to approximate it with a "steep" ODE. As shown in Figure 1, LJMs achieve better reconstructions with far fewer dynamics evaluations (NFE) than ODE or SDE baselines.
- Parallelism via Structure: The "aha moment" is realizing that by restricting the jump map to be affine within blocks, you can use parallel prefix scans—a staple of high-performance computing—to solve the latent recurrence.
- Non-linearity is Relocated, Not Removed: While the jump map is affine within a block, the coefficients of that map are arbitrary non-linear functions of lower blocks. This maintains high model expressivity while unlocking parallel computation.
Key Results
- Massive Speedups: LJMs trained 10x to 100x faster than sequential baselines. For example, on the USHCN climate data, LJM trained in just 7.5 minutes compared to 3.6 hours for the strongest baseline (NCDSSM-NL)—a 29x difference.
- Superior Accuracy on Jumpy Data: On the REFIT electrical load task, LJM reduced normalized forecasting error (CRPS) by 11–12% compared to SDE Matching and 13–17% compared to Neural Stochastic Flows.
- Computational Efficiency: In the "Cyclic Jumps" benchmark, LJM achieved lower error than Latent ODEs while using half the number of dynamics evaluations and training 7x faster.
Limitations and Future Work
- Identifiability: The authors note that latent events are a probabilistic representation; the model might use several small jumps to explain a single large physical event, making the "true" events hard to recover perfectly.
- Posterior Reactivity: Currently, the variational posterior samples all events in parallel before computing the state. This means posterior event times cannot "react" to the specific values of the sampled latent state during the training pass.
- Sequential Forecasting: While training is parallelized, forecasting into the future (beyond the observed data) still requires a sequential rollout, as future events depend on the evolving state. Extending parallelization to the forecasting phase remains an open challenge.
Summary updated