Real-world time series are often shaped by exogenous events whose effects are superimposed on the system's underlying temporal dynamics. Historical observations therefore entangle persistent dynamics with event-induced deviations, making it difficult to determine which patterns should be extrapolated and which should be attributed to specific event contexts. Existing event-aware forecasting methods can incorporate event information or model event-related variation, but typically treat historical event attribution and future event generation separately. We propose Loki (Lift Out, Kick In), a general event-aware forecasting framework built on a shared Event Response Function (ERF). The ERF models event effects according to event type and relative temporal position and is shared across the historical and forecast windows. Loki lifts out estimated event-induced deviations from historical observations before forecasting, then uses the same ERF to kick in responses to known future events. This formulation separates event-response modeling from temporal forecasting while coupling historical attribution and future generation through a shared mechanism. Across five forecasting benchmarks, Loki achieves the best standardized MAE on all five datasets, reducing error by approximately 2.2%-11.7% over the strongest non-Loki baseline. Ablations and controlled analyses further support the roles of Lift Out, Kick In, shared response modeling, and compatibility across forecasting backbones.
Figures & tables
Figure 1: Event-response carryover and Loki’s Lift Out–Forecast–Kick In mechanism.
Figure 2: Overall architecture of Loki. The center shows the Lift Out–Forecast–Kick In pipeline, while the left and right panels detail the forecasting backbone and the shared Event Response Function (ERF), respectively.
Dataset
Ride-Hailing
TaxiBJ
M5
Rossmann
Seoul Bike
Metrics
MAE
MSE
MAE
MSE
MAE
MSE
MAE
MSE
MAE
MSE
Endogenous-only
DLinear
0.1890
0.2271
0.1264
0.0563
0.1068
0.0309
0.3352
0.2702
0.6722
0.8312
PatchTST
0.1618
0.2171
0.1323
0.0698
0.1022
0.0298
0.2482
0.2069
0.5343
0.7825
SparseTSF
0.1804
0.2265
0.1357
0.0645
0.1026
0.0298
0.2753
0.2439
0.5616
0.6540
TimeMixer
0.1653
0.2212
0.1311
0.0677
0.1025
0.0304
0.2490
0.2019
0.5047
0.6679
Table 1: Forecasting performance across five datasets. Models are grouped by covariate availability and event-handling mechanism. The best results are highlighted in bold and the second best are underlined .
Dataset
Ride-Hailing
TaxiBJ
M5
Rossmann
Seoul Bike
Metrics
MAE
MSE
MAE
MSE
MAE
MSE
MAE
MSE
MAE
MSE
Only Backbone
0.1636
0.2175
0.1228
0.0592
0.1035
0.0307
0.1871
0.0830
0.3349
0.2628
Direct Fusion
0.1612
0.2129
0.1227
0.0594
0.1026
0.0301
0.1817
0.0796
0.3246
0.2425
Event Lookup
0.1644
0.2028
0.1591
0.1346
0.0988
0.0272
0.1469
0.0536
0.3207
0.2393
History-only
0.1680
0.2198
0.1180
0.0531
0.1084
0.0356
0.1890
0.0843
0.3151
0.2351
Future-only
0.1578
0.1992
0.1802
0.1425
0.0985
0.0280
0.1476
0.0540
0.3267
0.2458
Table 2: Ablation study of Loki across five datasets. Standardized MAE and MSE are reported (lower is better). The best results are highlighted in bold .
Ride-Hailing
M5
Injection
Method
History
Future effect
History
Future effect
Multiplicative
No recovery (reference)
0.3333
0.3284
0.1927
0.2493
Independent ERFs
0.0294
0.0245
0.0272
0.0173
Full Loki
0.0207
0.0228
0.0118
0.0155
Additive Loki
0.1149
0.1135
0.0469
0.0675
Additive
No recovery (reference)
0.3176
0.3138
0.1825
0.2003
Table 3: Controlled event-effect recovery under multiplicative, additive, and null injections on Ride-Hailing and M5. History restoration and future event-effect errors are reported as standardized MAE (lower is better). Multiplicative responses are converted to target increments using the pre-injection reference series for evaluation. The null setting measures spurious attribution when no artificial effect is injected. Best results within each non-null injection setting are highlighted in bold.
Figure 3: Event-regime analysis on Ride-hailing. Regimes are denoted as history → forecast, with Q and E indicating quiet and event-active windows. (a) Relative MAE reduction of Full Loki over the Backbone. (b) Marginal Kick In and Lift Out contributions, measured against History-only and Future-only, respectively.
Dataset
Ride-Hailing
M5
Metrics
MAE
MSE
MAE
MSE
PatchTST
0.1618
0.2171
0.1022
0.0298
+Loki
0.1618
0.2021
0.0988
0.0264
Improve
-0.005%
6.90%
3.35%
11.49%
SparseTSF
0.1804
0.2265
0.1026
0.0298
+Loki
0.1705
0.2033
0.0979
0.0263
Table 4: Compatibility of Loki with different forecasting backbones. Means over five training seeds; improvements use unrounded means.
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
Path
Backpropagation order
Kick In
L⟶Y⟶Sfut⟶ω
Backbone
L⟶Y⟶Y0⟶θ
Lift Out
L⟶Y⟶Y0BθX0⟶Shist⟶ω
Appendix
Table 5: Gradient paths from the forecasting loss. Arrows follow backpropagation to the backbone parameters θ or the shared ERF parameters ω .
Dataset
Ride-hailing
TaxiBJ
M5
Rossmann
Seoul Bike
Resolution
30 min
30 min
Daily
Daily
Hourly
# Observations
14,025,600
21,872,640
137,829
1,017,209
8,760
# Entities
200
1,024
70
1,115
1
# Targets
9
2
1
1
1
Appendix
Table 6: Statistics of the five benchmark datasets. Observations denote entity–time rows.
Dataset
ERF channels
Backbone context
Other known inputs
Ride-hailing
event and calendar signals
–
calendar, entity
TaxiBJ
holidays
temperature, wind, weather
calendar, grid
M5
SNAP, calendar events
price, promotion aggregates
calendar, entity
Rossmann
promotion, holidays
open status
calendar, store
Seoul Bike
holiday
weather, operating status
calendar
Appendix
Table 8: High-level covariate roles used by Loki across datasets.
Dataset
Event information
Environmental information
Ride-Hailing
Weather factor, two types of social activity, public holidays, traditional festivals, Western festivals
SNAP food-assistance indicators, including state-specific indicators; cultural, national, religious and sporting events; a second same-day event (cultural or religious)
Price index, promotion share
Rossmann
Promotions, public holidays, school holidays
Store operating status
Seoul Bike
Holidays
Temperature, humidity, wind speed, visibility, dew-point temperature, solar radiation, rainfall, snowfall, and service operating status
Appendix
Table 9: Event and environmental covariates across the five datasets. Operating status is included in environmental information.
Model
Event/environment scope
Ride-Hailing calendar
TaxiBJ / Seoul Bike calendar
M5 / Rossmann calendar
DLinear
Not used
No explicit input
No explicit input
No explicit input
PatchTST
Not used
No explicit input
No explicit input
No explicit input
SparseTSF
Not used
No explicit input
No explicit input
No explicit input
TimeMixer
Not used
No explicit input
No explicit input
No explicit input
iTransformer
Not used
No explicit input
No explicit input
No explicit input
TimeXer
History only
Day of week, time of day, week of year
No explicit input
No explicit input
Appendix
Table 10: Input scope and calendar information by model. Event/environment scope applies to the variables in Table 9 across all five datasets, subject to the filtering and encoding differences below. Calendar inputs follow the same historical/forecast scope as the corresponding row.
Model
Trainable parameters
Training time (min)
Inference time (ms/window)
DLinear
0.90M
2.3
0.07
PatchTST
1.66M
11.6
0.07
SparseTSF
245
3.1
0.07
TimeMixer
10.97M
30.1
0.38
iTransformer
0.48M
5.8
0.06
TimeXer
3.02M
24.8
0.14
Appendix
Table 11: Model size and computational cost on Ride-Hailing. M denotes one million parameters.
Table 12: Baseline implementation sources and key model configurations.
Regime
# Samples
Backbone
History-only
Future-only
Full Loki
Q → Q
4,492
0.14887±0.00016
0.15358±0.01121
0.14676±0.00024
0.14626±0.00027
E → Q
15,793
0.14803±0.00035
0.15313±0.01332
0.14570±0.00017
0.14451±0.00031
Q → E
1,269
0.15521±0.00029
0.15960±0.01081
0.14944±0.00054
0.14995±0.00063
E → E
14,046
0.18666±0.00027
0.19006±0.01513
0.17563±0.00030
0.17500±0.00036
Appendix
Table 17: Indicator-defined event-regime results on Ride-hailing. Standardized MAE values are reported as mean ± sample standard deviation across five seeds (2027–2031) . Lower MAE is better.
Figure 4: Prediction error across forecast distances. Curves show the multi-seed mean standardized MAE at each forecast step; shading indicates ±1 standard deviation. Each dataset uses its best-overall baseline throughout. Vertical dashed lines divide the forecast window into its first and second halves.
Figure 5: Error in changes between adjacent forecast steps. Lower standardized MAE between predicted and observed increments indicates more accurate recovery of local changes. Baselines are the same as in Figure 4 . Curves show the multi-seed mean, with shading indicating ±1 standard deviation.
Dataset
Relevant windows (%)
Relevant windows excluding weather (%)
Ride-Hailing
95.39
40.38
TaxiBJ
5.00
5.00
M5
0.00
0.00
Rossmann
67.89
67.89
Seoul Bike
4.11
4.11
Appendix
Table 21: Test-window coverage of future new events that can contribute to the historical ERF response. The last column excludes weather events when identifying relevant windows.
Model
Ride-Hailing
TaxiBJ
Rossmann
DLinear
33.4%
95.5%
19.9%
PatchTST
18.2%
93.1%
7.2%
SparseTSF
38.9%
94.6%
14.0%
TimeMixer
21.7%
98.0%
10.7%
iTransformer
20.0%
94.7%
6.3%
TimeXer
22.6%
97.1%
9.1%
Appendix
Table 26: Erroneous-extrapolation diagnostic rates. Each column uses the same eligible window–target pairs for all 19 models: 1,289 on Ride-Hailing, 1,182 on TaxiBJ and 10,695 on Rossmann.
Dataset
Selected pairs
DAG
TiDE
TFT
Loki
Ride-Hailing
67
6
1
0
2
TaxiBJ
63
18
15
0
0
Rossmann
32
0
2
0
0
Appendix
Table 27: Window–target pairs supporting historical-input contribution under controlled replacement. The selected pairs form a smaller, data-selected subset of the diagnostic sample in Table 26 .
Variant
Ride-Hailing prediction MAE
M5 prediction MAE
Loki
0.15696±0.00031
0.09583±0.00109
Random response initialization
0.15689±0.00035
0.09621±0.00172
Simplified temporal bases
0.15782±0.00012
0.09823±0.00230
Appendix
Table 29: Prediction MAE under response-initialization and temporal-basis variants. Values are multi-seed means ± sample standard deviations.
Dataset
Injection
Historical MAE
Zero-response future
before adjustment
effect MAE
Ride-Hailing
Multiplicative
0.3333±0.0054
0.3284±0.0046
Additive
0.3176±0.0050
0.3138±0.0045
M5
Multiplicative
0.1927±0.0083
0.2493±0.0288
Additive
0.1825±0.0091
0.2003±0.0230
Appendix
Table 32: No-recovery references for the injected effects. Values are standardized MAE, reported as means ± sample standard deviations across generated configurations. Both references are zero in the null control.
Time series forecasting predicts future values from ordered observations using statistical, neural, and probabilistic models to support decisions under uncertainty.