Tempo-GENCO: Learning the Grid Solver of Tomorrow

#37
by 7shoe - opened

Tempo-GENCO: Learning the Grid Solver of Tomorrow

Carlo Siebenschuh, Brian Hsu: University of Chicago, Argonne National Laboratory:
siebenschuh@uchicago.edu

Static AC optimal power flow (AC-OPF) surrogates predict optimal operating states, while grid operators must anticipate uncertain future conditions. We introduce Tempo-GENCO, a 91k-parameter temporal adapter that extends a frozen 20M-parameter foundation model to probabilistic day-ahead forecasting from 72 hours of operating history. Training combines the energy score with a power-balance penalty. Experiments span grids with up to 2,000 buses on Aurora and NVIDIA systems. Detailed evaluation on four grids, using three training seeds, 72 test origins, and 64 trajectories per forecast, shows improved joint energy scores over climatology and a forecast-then-solve baseline. Overconfidence and increased physical residuals remain challenges. These results demonstrate that lightweight temporal adaptation can extend a static optimization surrogate without jointly training both components from scratch. Code is available on GitHub and as the Python package power-fm-foresight.

1. Introduction

Snapshot-based AC optimal power flow (AC-OPF) datasets cast neural optimization surrogates as graph-to-vector regression: given a network and its loads, predict the optimal operating state. But grid operators don't work from snapshots. They have to anticipate how demand will evolve and how contingencies will play out, with effects that ripple across both time and the network. We ask whether a geometric foundation model trained only on static grids can pick up this temporal capability through a lightweight adapter—one that consumes a history of operating states and jointly forecasts future conditions together with their AC-optimal states. Forecasts of this kind could help operators plan dispatch and reserves ahead of time, and flag congestion as it begins to emerge.

Since future conditions are uncertain, the target is really a distribution over optimal operating trajectories. For such forecasts to be useful, they need to express that uncertainty honestly while staying physically plausible, so we train with a proper scoring rule and evaluate calibration alongside forecast accuracy and constraint violations. Beyond the forecasting task itself, this probes how far GENCO's learned representations actually reach: whether the physical and operational structure it absorbed from static graphs gives it a useful foundation for temporal adaptation, even though the backbone was never trained to model dynamics.

2. Method

Predict the optimum, not its inputs.
A grid operator never sees demand alone but a sequence of operating points. At hour $t$ the realised demand $d_t$ fixes the optimal state through the AC optimal power flow (AC-OPF) map

xt∗  =  S(dt)  :=  arg⁡min⁡x∈X  c(x)s.t.F(x,dt)=0, x_t^{\ast} \;=\; S(d_t) \;:=\; \arg\min_{x\in\mathcal X}\; c(x) \quad\text{s.t.}\quad F(x, d_t) = 0,

where $F$ collects the AC power-balance equations, $\mathcal X$ the box and thermal limits, and $x=(|V|,\theta,P_g,Q_g)$. The day-ahead object of interest is the conditional law of tomorrow's trajectory $X_t^{\ast}=(x^{\ast}{t+1},\dots,x^{\ast}{t+24})$ given the history $H_t$ of the last $72$ solved hours and the calendar $c$. The classical pipeline forecasts the inputs and solves afterwards, i.e. it targets the push-forward $S_{#},\mathbb P(d_{t+1:t+24}\mid H_t,c)$ one scenario at a time; every scenario costs a nonconvex solve, forecast error is amplified through $S$ in a way the forecaster never sees, and the two stages are tuned to different objectives. We instead learn the push-forward end to end and sample the future optimum directly,

Tempoθ∘GENCO  :  (Ht,c)  ⟼  P^θ ⁣(Xt∗ | Ht,c)  ≈  {X^1,…,X^K}, \mathrm{Tempo}_{\theta}\circ\mathrm{GENCO}\;:\;(H_t, c)\;\longmapsto\; \widehat{\mathbb P}_{\theta}\!\left(X_t^{\ast}\,\middle|\,H_t, c\right) \;\approx\;\{\hat X_1,\dots,\hat X_K\},

so that the forecast uncertainty is already expressed in the coordinates an operator acts on (dispatch, voltages, branch loadings) rather than in a demand vector that still has to be pushed through a solver.

Tempo-GENCO data, forecasting and training workflow

Tempo-GENCO workflow. Top: ERCOT-driven data generation, AC-OPF labels, and forecast origins. Bottom: adapter sampling (orange) through frozen GENCO (blue), with $K$ draws scored by the energy score and a residual penalty during training.

Sampler and objective.
GENCO is the backbone model, a geometric surrogate $G$ of the AC-OPF map above that maps a demand graph to an approximate optimum in twelve correction steps. A $91$k-parameter adapter $\mathrm{Tempo}_\theta$ steers it: a recurrent encoder compresses $H_t$ into a per-node memory $m=\mathrm{Enc}_\theta(H_t)$, and one draw $k$ is

zk=Aθ(m,c) fk+Σθ(m,c) ηk,d^k=σ+ ⁣(σ+−1(dt−1)+δθ(m,c)+zkd),x^k=G(d^k;  Wθm,  zkx), z_k = A_\theta(m,c)\,f_k + \Sigma_\theta(m,c)\,\eta_k,\qquad \hat d_k = \sigma_+\!\big(\sigma_+^{-1}(d_{t-1}) + \delta_\theta(m,c) + z_k^{d}\big),\qquad \hat x_k = G\big(\hat d_k;\; W_\theta m,\; z_k^{x}\big),

with $f_k\sim\mathcal N(0,I_8)$ a factor shared by all buses and lead hours, $\eta_k\sim\mathcal N(0,I)$ diagonal noise, and $\sigma_+$ the softplus keeping demand positive around persistence. The memory enters $G$ as a write $W_\theta m$ into its input latent, and the innovations $z_k^{x}$ are added to its final readout; the backbone's own physics layers then return branch flows and the power-balance residual $r_k$ of each draw. The adapter is trained on $K$ draws per origin with the fair energy score and a residual penalty,

L(θ)  =  1K∑k∥X^k−Xt∗∥−12K(K−1)∑k≠l∥X^k−X^l∥⏟ESK  (strictly proper)  +  λ 1K∑k∥rk∥2, \mathcal L(\theta)\;=\; \underbrace{\frac1K\sum_{k}\|\hat X_k - X_t^{\ast}\| - \frac{1}{2K(K-1)}\sum_{k\neq l}\|\hat X_k-\hat X_l\|}_{\mathrm{ES}_K\;(\text{strictly proper})} \;+\;\lambda\,\frac1K\sum_k \|r_k\|^2 ,

in train-scaled coordinates, with $G$ frozen throughout. The energy score is a strictly proper scoring rule: its expectation is minimised only by the true conditional law, so it rewards calibration and sharpness jointly and penalises both

3. Results

3.1 Tempo-GENCO as a day-ahead forecaster

TL;DR: GENCO, a geometric foundation model for AC-OPF, can be turned into a day-ahead probabilistic forecaster through a thin temporal adapter.
We refer to the model as Tempo-GENCO. The adapter reads a history of solved network states, summarizes them via a recurrent unit, and writes that memory into GENCO's input latent before its twelve correction steps.
Tempo-GENCO then produces tomorrow's optimal dispatch and operating state. No external demand forecast is supplied. Tempo-GENCO samples its own future demand implicitly to build the future graph, but — as the controls show — the source of the forecasting capability comes from steering the frozen solver's latent state. A 91k-parameter write into the input latent is enough to re-aim a 20M-parameter physics solver at tomorrow's operating point.

Details: The adapter reads 72 hours of solved network states, to predict tomorrow's optimal power flow. We measure probabilistic forecast skill via the energy score (lower is better); calibration is assessed separately through interval coverage. The GENCO backbone is chosen according to the grid size. The temporal adapter is 91k parameters in size and is trained for at most six hours on a single accelerator tile while the backbone stays frozen.
Three baselines isolate the mechanism: First, climatology of solved training days usually offers a calibrated prediction but tends to lack sharpness to be operationally useful. Second, a classical pipeline of a ridge demand forecaster with block-bootstrapped uncertainty, pushed through a frozen GENCO. This pipeline separates temporal prediction (ridge) and neural surrogate optimization (GENCO). Third, a demand control where Tempo-GENCO is used to sample demand that is pushed through unconditioned GENCO. This isolates the source of the advantage: If the adapter's advantage were a better demand forecast, it would match it. In contrast, if it comes from latent conditioning, demand control should resemble the outcome of classical pipeline; as both lack conditioning. All modes share origins, targets, coordinate scales and the scorer.

Empirics: We ran experiments on four grids (14, 30, 57, 118 buses), three training seeds, 72 test origins and $K=64$ trajectories per forecast. Tempo-GENCO has the best joint energy score everywhere: 0.70–0.90 of climatology and from 0.93 down to 0.25 of the classical pipeline as the grid grows. The demand control is never better than the classical pipeline. These results are robust as spreads between seeds (2e-3 to 3e-2) are about an order of magnitude below the gaps. The advantage is largest on generator dispatch, where Tempo-GENCO beats climatology at every lead hour on every grid, and smallest on voltage, where it is about 2-3$\times$ sharper than climatology. However, it loses to it on case118 at every lead.

Tempo-GENCO day-ahead fan chart on case30

Figure 1. CAPTION 1

grid mode joint ES ES / C $\lvert V_i \rvert$ CRPS (p.u.) $\lvert V_i \rvert$ cov90 (%) $\lvert V_i \rvert$ width90 (p.u.) free $P_g$ MAE (MW) $\lvert \Delta P_i \rvert$ (MW)
case14 Climatology 0.490 1.00 0.00084 81 0.0038 5.91 0.000
Classical Pipeline 0.372 0.76 0.00068 61 0.0029 3.37 0.111
Demand Control 0.505 1.03 0.00086 16 0.0006 3.70 0.084
Tempo-GENCO 0.348 0.71 0.00077 46 0.0018 3.27 2.187
case30 Climatology 0.425 1.00 0.00207 81 0.0092 6.05 0.000
Classical Pipeline 0.497 1.17 0.00195 45 0.0055 3.45 0.050
Demand Control 0.634 1.49 0.00243 12 0.0014 3.77 0.037
Tempo-GENCO 0.303 0.71 0.00130 52 0.0033 3.15 1.113
case57 Climatology 0.461 1.00 0.00144 80 0.0063 13.48 0.000
Classical Pipeline 1.495 3.24 0.00304 34 0.0043 10.52 0.395
Demand Control 1.626 3.52 0.00318 10 0.0011 11.15 0.119
Tempo-GENCO 0.363 0.79 0.00141 27 0.0017 9.44 1.547
case118 Climatology 0.683 1.00 0.00134 81 0.0050 10.41 0.000
Classical Pipeline 2.227 3.26 0.00442 12 0.0030 14.67 3.792
Demand Control 2.450 3.59 0.00477 6 0.0012 14.59 2.769
Tempo-GENCO 0.578 0.85 0.00310 10 0.0019 7.59 5.455

Table 1. Day-ahead forecast skill on the v4 data generation. Joint ES uses train-derived coordinate scales and is comparable only within a grid; ES / C is the ratio to climatology. $\lvert V_i \rvert$ columns are over all buses: fair CRPS (Continuously Ranked Probability Score, ↓), empirical coverage of the nominal 90 % band, and mean band width (sharpness). Free $P_g$ MAE is the ensemble-mean error (↓) over the free generators. $\lvert \Delta P_i \rvert$ is the mean absolute nodal active-power residual of the raw samples. Tempo-GENCO and Demand Control on case14, case57 and case118 are means over three training seeds; case30 is the run shown in Figure 1. Bold marks the best value per column (closest to 90 % for coverage).

Discussion: These experiments indicate that GENCO's latent space can be conditioned for temporal data, even though no temporal indexing entered its pre-training corpus. In fact, linear probes for next state's prediction were not successful. Hence, the latent space is a control surface the temporal adapter leverages, not a representation of dynamics. Temporal adaption comes at a cost. First, in terms of physics: prediction accuracy may conflict with physical viability. Tempo-GENCO's power-balance residual is 13-30$\times$ that of the frozen solver's as a result of the forecasting requirement. The appendix A0 ablation (conditioning removed) and the $\lambda$ sweep trace the frontier between forecast skill and physical consistency. Second, calibration. Nominal 90% voltage intervals cover only 7–41$%$. While small ensembles (with three members) recover $46%$ on case30, at an improved skill, forecasts remain overconfident. Finally, the performance ceiling induced by the backbone. GENCO's approximation error grows with grid size by an order of magnitude (the error in $|V_{i}|$ grows from 5e-4 to 4.9e-3 p.u.) and on case118 exceeds climatology's entire voltage forecast error. Naturally, the adapter inherits this floor from its frozen backbone. The same mechanism, around 50$\times$ larger outside the pretraining load range (v3 data regime), explains why the adapter's relative gain is largest there.

Further experiments: Forecasting systems find strength in the number of models involved. We assemble deep ensembles and assess if they improve forecasting accuracy and physical viability. Moreover, we analyze how robust Tempo-GENCO is when temporal dynamics deviate.

Figure 2

Figure 2. CAPTION 2

Discussion

Our evaluation spans Aurora and NVIDIA systems but remains non-exhaustive. We focus on GENCO, one of several AC-OPF foundation models; GridSFM and LUMINA could, in principle, support analogous temporal adaptation.

Zero-shot transfer to unseen temporal regimes remains challenging, and forecasts remain overconfident despite explicitly modeling uncertainty—a familiar calibration problem in neural networks. Nevertheless, Tempo-GENCO demonstrates that temporal forecasting and neural optimization need not be learned jointly from scratch: a lightweight adapter can extend a frozen static surrogate to probabilistic prediction of future operating states.

Related Work

References and BibTeX citations

GridFM graphkit - A library to train, finetune and interact with a foundation model for the electric power grid. (Puech, et al., 2025).

@article{puech2025gridfmdatakitv1pythonlibraryscalable,
  title={gridfm-datakit-v1: A Python Library for Scalable and Realistic Power Flow and Optimal Power Flow Data Generation},
  author={Alban Puech and Matteo Mazzonelli and Celia Cintas and Tamara R. Govindasamy and Mangaliso Mngomezulu and Jonas Weiss and Matteo Baù and Anna Varbella and François Mirallès and Kibaek Kim and Le Xie and Hendrik F. Hamann and Etienne Vos and Thomas Brunschwiler},
  journal={arXiv preprint arXiv:2512.14658},
  year={2025},
  url={https://arxiv.org/abs/2512.14658}
}

GENCO - A Unified Neural Solver Embedded in a Development Framework for Steady-State Grid Analysis; (GEometric Neural Corrective Optimizer) (Puech et. al, 2026)

@article{puech2026gencounifiedneural,
  title={GENCO - A Unified Neural Solver Embedded in a Development Framework for Steady-State Grid Analysis},
  author={Alban Puech and Matteo Mazzonelli and Tamara R. Govindasamy and Mangaliso Mngomezulu and Héctor Maeso-García and Thomas Tolhurst and Javad Bayazi and Ali Moeini and Naomi Simumba and Celia Cintas and David Nelischer and Romeo Kienzler and Jonas Weiss and Anna Varbella and Florian Dörfler and Gabriela Hug and Martin Mevissen and Juan Bernabé-Moreno and François Mirallès and Hendrik F. Hamann and Etienne Vos and Thomas Brunschwiler},
  journal={arXiv preprint arXiv:2608.09921},
  year={2026},
  url={https://arxiv.org/abs/2608.09921}
}

IPOPT - On the implementation of an interior-point filter line-search
algorithm for large-scale nonlinear programming (Wächter, Biegler, 2005)

@article{wachter2006implementation,
  title={On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming},
  author={W{\"a}chter, Andreas and Biegler, Lorenz T},
  journal={Mathematical programming},
  volume={106},
  number={1},
  pages={25--57},
  year={2006},
  publisher={Springer}
}

PowerModels.jl - An Open-Source Framework for Exploring Power Flow Formulations (Coffrin, et al., 2017)

@inproceedings{coffrin2018powermodels,
  title={Powermodels. jl: An open-source framework for exploring power flow formulations},
  author={Coffrin, Carleton and Bent, Russell and Sundar, Kaarthik and Ng, Yeesian and Lubin, Miles},
  booktitle={2018 Power Systems Computation Conference (PSCC)},
  pages={1--8},
  year={2018},
  organization={IEEE}
}

ERCO: EIA's Hourly Electric Grid Monitor from the Electric Reliability Council of Texas, Inc. (ERCO)

@misc{eia_erco,
  author = {{U.S. Energy Information Administration}},
  title  = {Hourly Electric Grid Monitor: Electric Reliability Council of Texas ({ERCO})},
  url    = {https://www.eia.gov/electricity/gridmonitor/dashboard/electric_overview/balancing_authority/ERCO},
  note   = {Accessed: 2026-10-24}
}

Sign up or log in to comment