Event-aware TSF: Non-stationary Forecasting
- EventTSF is a forecasting approach for non-stationary time series where both endogenous extreme events and exogenous textual events shape predictions.
- It leverages methods such as the Extreme-Adaptive Transformer with sparse attention and a multimodal autoregressive diffusion framework to capture dynamic regime shifts.
- This framework enhances forecasting accuracy and efficiency across domains like hydrology, finance, and traffic by incorporating event-aware mechanisms.
Event-aware Non-stationary Time Series Forecasting (EventTSF) denotes forecasting settings in which the underlying temporal distribution is non-stationary and future behavior is materially shaped by events. In the recent literature represented by two arXiv formulations, “event” is used in two distinct but related senses: as an endogenous extreme event within the time series itself, and as an exogenous natural-language event aligned to temporal segments. The first formulation emphasizes rare but consequential extremes in hydrologic streamflow and introduces the Extreme-Adaptive Transformer (Exformer) (Shrestha et al., 2 Jul 2026). The second formulation treats textual events as an additional modality and proposes an autoregressive diffusion framework, also named EventTSF, for integrating historical time series with future event embeddings (Ge et al., 19 Aug 2025). Taken together, these works situate EventTSF at the intersection of non-stationary modeling, event conditioning, multimodal learning, sparse attention, and uncertainty-aware generative forecasting.
1. Scope and formal problem settings
A central premise of EventTSF is that non-stationarity is not merely background drift but is structurally linked to events. In the hydrologic extreme-event formulation, one observes a multivariate time series whose marginal distribution and autocovariance may drift over time, together with a small subset of time steps
where extremeness is defined by thresholding an outlier score. The construction proceeds by computing an outlier score and assigning
then aggregating step labels to patch-level indicators after forming patches of size . The forecasting task is to learn
while minimizing prediction error under both normal and extreme regimes (Shrestha et al., 2 Jul 2026).
In the multimodal textual-event formulation, the observed data consist of a univariate time series and a sequence of non-overlapping textual event embeddings , where each 0 describes the corresponding time segment 1. The joint dataset is 2, and the problem assumes
3
Given the last 4 historical pairs 5 and future event embeddings 6, the model forecasts the next 7 values through
8
This formulation treats events as explicit external context rather than latent anomalies within the series (Ge et al., 19 Aug 2025).
| Aspect | Extreme-event formulation | Textual-event formulation |
|---|---|---|
| Event source | Thresholded outlier labels from 9 | Natural-language embeddings 0 |
| Core assumption | Normal and extreme regimes differ | 1 |
| Forecast input | Historical time series only | Historical pairs plus future event embeddings |
The coexistence of these formulations clarifies that EventTSF is not tied to a single modality or a single event ontology. Instead, it encompasses forecasting under evolving temporal distributions where event information changes the predictive structure.
2. Endogenous event modeling with the Extreme-Adaptive Transformer
Exformer is an encoder-only Transformer designed to explicitly model temporal dependencies involving both normal and extreme events (Shrestha et al., 2 Jul 2026). Its starting point is the observation that standard self-attention treats all time points uniformly and may therefore underrepresent rare extreme patterns, especially in highly skewed hydrologic streamflow distributions.
The architecture first decomposes the raw input sequence 2 into seasonal and trend components, 3 and 4. The seasonal component is passed to the Exformer encoder, while the trend component is forecasted linearly. The encoder uses a dimension-invariant embedding to produce a multi-channel patch representation, where 5 is the patch length, 6, and each temporal patch 7 receives a binary label 8. Across 9 layers, Extreme-Adaptive Attention computes queries, keys, and values from flattened patch embeddings, after which layer outputs are concatenated, projected from length 0 to forecast horizon 1, and recombined with the trend forecast.
Its core innovation is a sparse attention mechanism with three components. Local attention captures short-term temporal dependencies for normal queries within a window of size 2. Stride attention captures periodic temporal dependencies for normal queries using stride step 3. Extreme attention is reserved for extreme queries and selectively models event-aware dependencies between normal and extreme streamflow patterns; operationally, the score definition in the details enforces 4 for the extreme component. For a single head, these score matrices are defined through masked forms of 5, with masking to 6 outside the corresponding admissible pattern.
Two masks organize these patterns. A binary mask 7 from DozerAttention encodes the union of the Local and Stride patterns, and an extreme-aware mask 8 enforces label matching. The final extreme-adaptive score uses 9 when 0 and 1 when 2, followed by softmax over the unmasked entries. A notable design point is that there is no learned gating vector; the label-aware mask dynamically switches the sparse attention pattern on a per-query basis. This makes the regime distinction explicit rather than implicit.
The event labels themselves are obtained by fitting a Gaussian Mixture Model to the distribution of 3, producing an outlier score 4, then thresholding at percentile 5. Those labels are pooled from the time-step level 6 to the patch level 7 and are used both to construct 8 and to gate between the normal and extreme attention components.
3. Multimodal EventTSF with autoregressive diffusion and flow matching
The multimodal EventTSF framework addresses settings in which non-stationary dynamics are intertwined with events in other modalities such as texts (Ge et al., 19 Aug 2025). It identifies three fundamental issues: the difficulty of fine-grained synchronization between time-varying discrete textual events and continuous time series, the inherent temporal uncertainty introduced by textual semantics, and the misalignment between textual event embeddings and multi-resolution temporal patterns.
Its forecasting process is autoregressive over segments 9. At each segment, the model injects one future event embedding 0 and emits the next segment 1. The generative core is a diffusion-like flow matching scheme. For segment 2, define
3
and the linear interpolation
4
Its instantaneous velocity is
5
The model learns a neural velocity field
6
where 7 is a learnable latent summarizing previous segments. The corresponding flow matching objective is
8
To handle event-induced uncertainty, the framework does not fix the number of ODE integration steps. Instead it adaptively controls them using the event semantics:
9
The technical description states that large 0 means more fine-grained steps when an event demands higher precision. In this sense, uncertainty handling is implemented through adaptive numerical integration rather than through a stochastic variance schedule.
Training and inference are both segmentwise. During training, the model samples 1, constructs 2, predicts the velocity, accumulates 3, and updates 4 via a cross-attention of the denoiser output with 5. During inference, it first encodes the first 6 historical segments noise-free to obtain 7, then generates each future segment from Gaussian noise using the event-conditioned integration schedule.
4. Architectural mechanisms for event awareness
The two EventTSF formulations differ substantially in how event awareness is operationalized. Exformer is a sparse-attention encoder that separates normal-regime sparse attention from extreme-regime sparse attention, while the multimodal EventTSF framework is a generative autoregressive model whose denoiser is a multimodal U-shaped diffusion transformer, denoted M-U-DiT (Ge et al., 19 Aug 2025).
M-U-DiT comprises an encoder stack of 8 down-sampling Transformer blocks 9, a single bottleneck block 0, and a decoder stack of 1 up-sampling Transformer blocks 2 with skip-connections from encoder outputs. The noisy segment 3 and previous latent 4 are first fused through cross-attention,
5
The model also constructs global conditioning vectors
6
which are added to the block inputs. Standard attention is given by
7
with MultiHead defined as a concatenation of 8 parallel attention heads.
This contrasts with Exformer’s event mechanism, which is discrete and mask-based rather than continuous and cross-modal. A common misconception is that event-aware forecasting necessarily implies external multimodal conditioning. The literature here shows otherwise: Exformer derives event labels from the series itself, whereas EventTSF uses textual embeddings as explicit exogenous conditioning. Another misconception is that event awareness must be implemented with learned soft gating. Exformer explicitly states that there is no learned gating vector; the switch between Local+Stride and Extreme attention is performed by a label-aware mask (Shrestha et al., 2 Jul 2026).
5. Objectives, optimization, and empirical validation
Exformer is trained end-to-end with a weighted mean-squared error that emphasizes extreme targets:
9
where 0 upweights errors on extreme steps to counter class imbalance, and 1 in 2 was found effective. Training uses Adam with learning rate 3, batch size 4, and 5 weight decay 6, with early stopping on a held-out validation set (Shrestha et al., 2 Jul 2026).
Its experiments use four real-world hydrologic streamflow datasets—Ross, Saratoga, UpperPen, and SFC—each containing 15-minute streamflow and rainfall measurements over three decades, with a 3-day forecast horizon of 7 points. It is compared against nine baselines, including Informer, FEDformer, DAN, NEC+, PFformer, iTransformer, NLinear, and DLinear, and evaluated in RMSE and MAPE. The reported 3-day forecasting results are: Ross, 4.20 / 0.05 versus PFformer 4.21 / 0.10; Saratoga, 1.61 / 0.07 versus PFformer 1.69 / 0.10; UpperPen, 0.96 / 0.04 versus PFformer 1.01 / 0.06; and SFC, 15.12 / 0.12 as second best RMSE while PFformer attains 14.98 / 0.18. Exformer achieves lowest RMSE on 3 of 4 sites and best MAPE on all four; ablation shows that removing the Extreme component degrades MAPE by up to 50%. Its attention complexity is reported as 8, with approximately 9 fewer FLOPs than PFformer and approximately 0 less memory.
The multimodal EventTSF model uses 1 summed over all 2 in a batch, with AdamW, learning rate 3, weight decay 4, a OneCycleLR schedule, warmup over 20% of steps, batch size 5, early stopping on validation every 5 epochs, and dropout decaying from 6 to 7 (Ge et al., 19 Aug 2025). Evaluation spans 8 synthetic and real-world datasets, including Atmospheric Physics, Traffic–Public Events, Temperature–Rainfall for Houston, SF, and NY, Electricity–Extreme Weather, and Traffic–News, against 12 baselines from both diffusion-based and deterministic families.
The reported results are broad rather than site-by-site: EventTSF improves average forecasting accuracy by +10.7% across all metrics and is 8 faster in training efficiency than the second-best model, especially for long horizons with sublinear scaling. For probabilistic forecasting, CRPS decreases by 92.0% on Synthetic, from 0.5769 to 0.0462, and by 59.6% on Atmospherics. For deterministic forecasting, MAE decreases by 82.5% on Synthetic, from 0.3141 to 0.0552, and MSE decreases by 94.4% on Atmospherics. Ablation results report that removing 9 increases WQL by 516%, replacing M-U-DiT increases MSE by 18.5%, and disabling event-driven timesteps increases CRPS by 15.3%.
6. Interpretation, applications, and emerging research directions
The two formulations suggest complementary views of event awareness. Exformer argues that explicitly separating normal-regime sparse attention from extreme-regime attention avoids diluting rare extreme-event signals among the much more numerous normal-to-normal interactions, while still honoring local and seasonal temporal structure (Shrestha et al., 2 Jul 2026). The multimodal EventTSF framework argues that robust forecasting in non-stationary environments requires fine-grained temporal–textual synchronization, event-controlled uncertainty handling, and multiresolution cross-modal fusion (Ge et al., 19 Aug 2025).
The application profiles are correspondingly different. Exformer is validated in hydrologic streamflow forecasting, where extreme peaks matter for flood monitoring, water resource management, and early warning systems. The same source further states that the paradigm can generalize beyond hydrology to financial risk forecasting such as crashes, meteorological extremes such as heat waves, and domains in which non-stationary series are punctuated by critical rare events. The multimodal EventTSF framework is evaluated in settings where event text is available, including public-event-aware traffic, meteorology, electricity under extreme weather, and traffic with multi-hundred-word news.
A plausible implication is that EventTSF is best understood not as a single model family but as a problem class unified by regime dependence and event conditioning. One branch uses internally derived event labels to restructure attention over the observed sequence; the other uses externally supplied event embeddings to condition a generative forecasting process. Both reject the assumption that non-stationarity can be handled adequately by single-modality, event-agnostic sequence models. In that respect, EventTSF marks a shift from generic temporal modeling toward forecasting systems in which the semantics, rarity, and timing of events become first-class components of the predictive architecture.