WhatIf-Bench: Benchmarking Intervention-Aware Time Series Forecasting
Organizations: Google · Mila - Quebec AI Institute · Université de Montréal · Université Laval
Abstract
Recent time series foundation models (TSFMs) can consume covariates in-context, extending zero-shot forecasting to problems driven by external factors. This enables scenario analysis: forecasting how a target responds to events that set covariates to chosen future values. Whether they can do this reliably is an open question. We introduce WhatIf-Bench, a benchmark measuring how well forecasters use covariates to forecast a target's response to future events. WhatIf-Bench is semi-synthetic: time series come from mechanistic simulators of data centers, power grids, road traffic, and water networks, with controlled covariate-target relationships grounded in each system. Each task presents a history of events intervening on covariates, then asks to forecast a future event that either replays seen values (Replay) or sets them to unseen ones (Novel). Varying the number of covariates, historical events, and event length yields 37,665 tasks. Evaluating TSFMs, frontier LLMs, and simple regression baselines, we find the LLMs reach the highest skill (improvement over a naive baseline), ahead of the best TSFMs. Every model forecasts well on Replay futures (48 to 85% skill) but drops to -7 to 50% on Novel futures, with the regression baselines falling the most. Skill on Novel futures also falls as events set more covariates jointly. More historical events raise skill on Novel futures across the board, but large differences remain. WhatIf-Bench reveals generalization to Novel futures as the core challenge, and offers a testbed toward arbitrary scenario analysis.
Figures & tables
| Benchmark | Data source | Includes covariates | Covariate effect known exactly | Evaluates arbitrary what-if scenarios | Systematic difficulty (# covariates, historical evidence) | Tasks with covariates |
| Monash ( Godahewa et al., 2021 ) | Real-world | ✗ | ✗ | ✗ | ✗ | 0 |
| GIFT-Eval ( Aksu et al., 2024 ) | Real-world | ✗ | ✗ | ✗ | ✗ | 0 |
| TSFM-Bench ( Li et al., 2025 ) | Real-world | ✗ | ✗ | ✗ | ✗ | 0 |
| TIME ( Qiao et al., 2026 ) | Real-world | ✗ | ✗ | ✗ | ✗ | 0 |
| fev-bench ( Shchur et al., 2025 ) | Real-world | ✓ | ✗ | ✗ | ✗ | 46 |
| Berthelier et al. (2026) | Semi-synthetic (toy relations) | ✓ | ✓ | ✗ | ✗ | – † |
| Benchmark composition | ||
| Simulator | Domain | # Targets |
| OpenDC ( Iosup et al., 2017 ) | Data center | |
| GridLAB-D ( Chassin et al., 2008 ) | Power grid | |
| SUMO ( Lopez et al., 2018 ) | Road traffic | |
| EPANET ( Rossman, 2000 ) | Water network | |
| Total | ||
| Model | wQL Skill | WAPE Skill | Inf. time / series (s) |
|---|---|---|---|
| Frontier LLMs | |||
| Claude-Opus-4.8 (High) | 72.5% | 72.5% | 270.13 |
| Claude-Opus-4.8 (Medium) | 70.3% | 70.3% | 206.29 |
| Gemini-3.1-Pro (High) | 70.0% | 70.0% | 355.28 |
| Gemini-3.1-Pro (Medium) | 58.2% | 58.2% | 97.35 |
| Numerical Foundation Models | |||
Appendix figures & tables56 assets
Supplementary material from the paper’s appendix.
Appendix
| Context / prediction length | |||
|---|---|---|---|
| Pair | EPANET, GridLAB-D | OpenDC | SUMO |
| / | / | / | |
| / | / | / | |
| / | / | / | |
| / | / | / | |
| Target | Primary covariate | Combination |
|---|---|---|
| cpu_demand_host-0 | coreSpeed_host-0 | multiplicative |
| cpu_usage_host-0 | coreSpeed_host-0 | multiplicative |
| power_draw_host-0 | coreSpeed_host-0 | additive |
| cpu_utilization_host-0 | coreCount_host-0 | additive |
| cpu_time_active_host-0 | coreCount_host-0 | multiplicative |
| cpu_demand_1019 | coreSpeed_host-0 | multiplicative |
| Target class | Secondary covariate | Weight | Effect ( or ) |
|---|---|---|---|
| CPU demand / usage (mult.) | core count, same host | ||
| memory size, same host ( ) | |||
| core speed, other host ( ) | |||
| core count, other host | |||
| memory size, other host | |||
| Active CPU time (mult.) | core speed, same host |
| Target | Primary covariate | Combination |
|---|---|---|
| actual_power | base_power | multiplicative |
| total_load | nominal_power | multiplicative |
| fan_power | power_pf | multiplicative |
| hvac_load | voltage_factor | multiplicative |
| hvac_power | duty_cycle | multiplicative |
| heating_demand | rate_of_heating | multiplicative |
| Target class | Secondary covariate group | Weight | Effect ( or ) |
|---|---|---|---|
| Power (mult.) | voltage_factor | ||
| breaker_amps | |||
| phi | |||
| other non-thermal | |||
| thermal | |||
| Demand (mult.) | thermal |
| Target | Primary covariate | Combination | ||
|---|---|---|---|---|
| pressure_j (junctions) | junction_j_base_demand | multiplicative | ||
| pressure_2 (tank) | tank_2_init_level | multiplicative | ||
| demand_9 (reservoir) | reservoir_9_base_head | multiplicative | ||
| demand_2 (tank) | tank_2_init_level | multiplicative | ||
| flowrate_p (pipes) | pipe_p_diameter | multiplicative | ||
| flowrate_9 (pump) | pump_9_setting | multiplicative |
| Target class | Weight | Ratio |
|---|---|---|
| Pressure | ||
| Demand | ||
| Flowrate | ||
| Velocity |
| Target | Primary covariate | Combination |
|---|---|---|
| meanMaxJamLengthInMeters_e2_e_{0,1} | minGap | additive |
| meanTimeLoss_e2_e_{0,1} | accel | additive |
| meanHaltingDuration_e2_e_{0,1} | offset | additive |
| meanVehicleNumber_e2_e_{0,1} | impatience | additive |
| speed_loop_e_{0,1}_near | decel | multiplicative |
| meanSpeed_e2_e_{0,1} | maxSpeed | multiplicative |
| minGap | accel | decel | maxSpeed | sigma | tau | length | speedDev | offset | width | height | lcStrategic | lcCooperative | lcSpeedGain | impatience | actionStepLength | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model | Imputed windows | % of windows |
|---|---|---|
| Claude-Opus-4.8 (High) | 16 | 0.04% |
| Claude-Opus-4.8 (Medium) | 2 | 0.01% |
| Gemini-3.1-Pro (High) | 10 | 0.03% |
| Gemini-3.1-Pro (Medium) | 0 | 0.00% |
| Replay | Novel | |||||||
|---|---|---|---|---|---|---|---|---|
| Simulator | Fewest | Most | Change | Worse | Fewest | Most | Change | Worse |
| OpenDC | 22/22 | 11/22 | ||||||
| GridLAB-D | 4/10 | 4/10 | ||||||
| EPANET | 6/33 † | 10/33 † | ||||||
| SUMO | 25/29 | 22/29 | ||||||
| Replay | Novel | |||||||
|---|---|---|---|---|---|---|---|---|
| Simulator | Fewest | Most | Change | Worse | Fewest | Most | Change | Worse |
| OpenDC | 17/22 | 14/22 | ||||||
| GridLAB-D | 4/10 | 3/10 | ||||||
| EPANET | 15/33 † | 13/33 † | ||||||
| SUMO | 29/29 | 27/29 | ||||||
| Replay | Novel | |||
|---|---|---|---|---|
| Model | Context | Events fewest most | Context | Events fewest most |
| Gemini-3.1-Pro (High) | ( ) | ( ) | ( ) | ( ) |
| Gemini-3.1-Pro (Medium) | ( ) | ( ) | ( ) | ( ) |
| Claude-Opus-4.8 (High) | ( ) | ( ) | ( ) | ( ) |
| Claude-Opus-4.8 (Medium) | ( ) | ( ) | ( ) | ( ) |
| TimesFM-3 | ( ) | ( ) | ( ) | ( ) |
| Model (# Tasks) | OpenDC (8,800) | GridLAB-D (4,000) | EPANET (13,265) | SUMO (11,600) | All (37,665) |
|---|---|---|---|---|---|
| Frontier LLMs | |||||
| Claude-Opus-4.8 (High) | 75.1% | 58.7% | 45.9% | 88.1% | 72.5% |
| Claude-Opus-4.8 (Medium) | 73.4% | 56.2% | 41.4% | 87.0% | 70.3% |
| Gemini-3.1-Pro (High) | 73.0% | 52.4% | 52.0% | 83.7% | 70.0% |
| Gemini-3.1-Pro (Medium) | 62.9% | 35.0% | 25.7% | 79.6% | 58.2% |
| Numerical Foundation Models | |||||
| wQL | WAPE | |||
|---|---|---|---|---|
| Model | vs. Naive | vs. Linear | vs. Naive | vs. Linear |
| Frontier LLMs | ||||
| Claude-Opus-4.8 (High) | 72.5% | 63.1% | 72.5% | 63.1% |
| Claude-Opus-4.8 (Medium) | 70.3% | 60.1% | 70.3% | 60.1% |
| Gemini-3.1-Pro (High) | 70.0% | 59.6% | 70.0% | 59.6% |
| Gemini-3.1-Pro (Medium) | 58.2% | 43.4% | 58.2% | 43.4% |
| Training | Features | Lags | Skill | Replay | Novel | Gap |
|---|---|---|---|---|---|---|
| Linear Regression | ||||||
| Plain (main text) | — | 26.2% | 49.0% | -6.7% | 55.7 | |
| Paired | — | 25.8% | 48.7% | -7.1% | 55.8 | |
| Paired | — | 30.7% | 52.3% | -0.6% | 52.9 | |
| Paired | — | 32.9% | 54.8% | 0.2% | 54.6 | |
| Paired | all | — | 28.9% | 52.5% | -6.5% | 59.0 |
| Model | wQL Win Rate | WAPE Win Rate | Inf. time / series (s) |
|---|---|---|---|
| Frontier LLMs | |||
| Claude-Opus-4.8 (High) | 63.2% | 68.6% | 270.13 |
| Claude-Opus-4.8 (Medium) | 60.1% | 65.5% | 206.29 |
| Gemini-3.1-Pro (High) | 58.4% | 63.4% | 355.28 |
| Gemini-3.1-Pro (Medium) | 46.0% | 50.9% | 97.35 |
| Numerical Foundation Models | |||
Time Series Forecasting
Time series forecasting predicts future values from ordered observations using statistical, neural, and probabilistic models to support decisions under uncertainty.
See all 839 papers