TL;DR Electricity forecasting often involves spatially related signals observed over regions, substations, and feeders, and Graph Neural Networks (GNNs) represent these relations through a graph. Building a complete GNN forecasting experiment is nonetheless laborious, because graph construction, model...
Authors: Eloi Campagne (CB), Yvenn Amara-Ouali (LMO, CELESTE) et al.
Published: 2026-11-11
Categories: cs.LG, cs.AI
arXiv: 2609.24609
License: nonexclusive-distrib-1.0
PDF: download · download markdown
:material-format-quote: Cite this paper
@misc{arxiv_2609_24609,
title = {GraphToolbox: A Configurable Framework for Controlled Benchmarking of Graph Neural Network Forecasting},
author = {Eloi Campagne (CB) and Yvenn Amara-Ouali (LMO and CELESTE) and Yannig Goude (EDF R\\&D) and Argyris Kalogeratos (CB and ENS Paris Saclay)},
year = {2026},
eprint = {2609.24609},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2609.24609}
}
GraphToolbox¶
A Configurable Framework for Controlled Benchmarking of Graph Neural Network Forecasting¶
Eloi Campagne 1,2,* Yvenn Amara-Ouali 2,3 Yannig Goude 2,3 Argyris Kalogeratos 1,*
Centre Borelli, École Normale Supérieure Paris-Saclay, Gif-sur-Yvette, France EDF Lab, Palaiseau, France Laboratoire de Mathématiques d'Orsay, Université Paris-Saclay, Orsay, France *Corresponding authors:
[email protected], [email protected]
Abstract. Electricity forecasting often involves spatially related signals observed over regions, substations, and feeders, and Graph Neural Networks (GNNs) represent these relations through a graph. Building a complete GNN forecasting experiment is nonetheless laborious, because graph construction, model selection, training, aggregation, and interpretation often require separate tools. We present GraphToolbox, an open-source Python framework that unifies these stages in one configuration-driven pipeline built on PyTorch Geometric. It offers data-driven graph construction, a single interface for most graph convolution operators of PyTorch Geometric and for recurrent graph cells, online expert aggregation, forecasting interpretability, and significance testing on forecasts. We use GraphToolbox to run a controlled benchmark: we compare architectural and modeling choices for French electricity load and net-load forecasting at regional and national levels under a common experimental protocol. On load, most evaluated graph convolutions outperform additive, recurrent, and foundation-model baselines. Pooled XGBoost, trained on the same inputs, has a lower RMSE than the best graph models, although the difference is not significant. Online expert aggregation and daily model updates improve accuracy further. On net-load, graph models outperform additive, recurrent, and XGBoost baselines, with further gains from forecasting the physical components separately. Statistical tests do not identify a single best convolution for load forecasting.
Keywords. Benchmarking, electricity load forecasting, expert aggregation, graph neural networks, open-source software, spatio-temporal modeling
1 Introduction¶
The operation of modern power systems rests on accurate short-term forecasts of electricity demand, which inform market decisions, unit commitment, and grid balancing. Historically, forecasters addressed this task at the level of an aggregated national signal, where generalized additive models (GAMs) and, more recently, boosting and deep learning methods have proven effective Fasiolo et al. 2021. Spatial dependencies between regions remain relevant when forecasts are aggregated at the national level. Electricity demand is distributed across interconnected regions, substations, and feeders whose components co-vary in ways that a single aggregated series cannot express. The decentralization of production, the integration of intermittent renewables, and the deployment of smart metering make this structure increasingly observable de Vilmarest et al. 2024.

Figure 1. Overview of the GraphToolbox pipeline. Solid arrows carry data from raw series to forecasts and diagnostics, while dashed boxes represent the configuration dictionaries that parameterize each stage. Swapping the graph, the convolution operator, or the training regime amounts to editing a configuration field. The badge of each module gives the subsection of Section 3 that describes it.
Graph Neural Networks build this structure into the model. By restricting information exchange to graph neighborhoods, they encode the assumption that spatial or statistical proximity governs load co-variation, an assumption that has driven their success in traffic forecasting and, increasingly, in power systems Guo et al. 2019, Campagne et al. 2026a. An empirical comparison nevertheless requires several methodological and software choices. A practitioner must first decide how to turn a collection of time series into a graph, then choose among a rapidly growing family of convolution operators, integrate those operators into a training loop with appropriate metrics, combine several models to gain robustness, and finally interpret the resulting predictions. A different library supports each of these steps, or none does, and the integration code is often specific to a single project.
GraphToolbox provides a common interface for these stages. The framework is an open-source Python package that organizes the entire forecasting workflow behind a small number of configuration dictionaries. Changing the graph, the convolution, or the aggregation strategy then requires modifying a configuration field while keeping the rest of the pipeline fixed. The same mechanism supports controlled comparisons, in which one choice varies (the convolution, the graph, the aggregation rule, the reconciliation, or the information given to the model) while the data, the split, and the training budget stay fixed.
Software contributions. The framework's contributions are:¶
- It provides 6 methods for constructing graphs from spatial coordinates or load measurements, and allows users to select a graph based on validation performance.
- It provides a common forecasting interface for 53 of the 65 convolutional operators available in PyTorch Geometric (PyG), as well as recurrent graph cells from PyTorch Geometric Temporal (PyG-T). This makes it possible to compare these architectures without implementing a separate forecasting model for each one.
- It combines the forecasts cached during an architectural sweep using online expert aggregation, and provides pairwise Diebold–Mariano tests, block-bootstrap intervals, and the Model Confidence Set for their statistical comparison.
- It offers forecasting interpretation through accumulated local effects and an additive graph model for feature attribution. It also visualizes edge attributions, obtained from attention weights or occlusion-based influence, on a geographical graph.
Empirical findings. We benchmark French electricity load and net-load forecasting across the 12 regions, evaluating the sum of the regional forecasts at the national level. The main findings are as follows.
- The 46 convolutions of the load sweep fall within 0.4 points of mean absolute percentage error (MAPE) of each other, and the significance tests single out no best operator. Message passing accounts for part of their advantage over the additive, recurrent and foundation references, and recurrent graph cells do not improve on them. XGBoost pooled over the regions and given the same inputs has a lower RMSE than the best operator, a difference that is not significant.
- Online aggregation outperforms the best individual convolution on both tasks and in every region for load forecasting, avoiding the need to choose an operator in advance. Updating one graph model daily also brings its accuracy in line with that of an additive model adapted through a Kalman filter.
- On net-load, forecasting load, wind and solar separately improves every evaluated operator, and the best decomposed graph model is more accurate than the additive and recurrent references in every month and at every half-hour of the day. Given the same inputs, pooled XGBoost stays 433 MW above the best direct graph model.
2 Related tools¶
PyG supplies convolution operators and the sparse primitives of message passing Fey and Lenssen 2019, and PyG-T adds recurrent spatio-temporal cells and models built from them Rozemberczki et al. 2021. GraphToolbox builds on these libraries without replacing their implementations. Users specify a convolution or recurrent cell in the configuration, and the framework incorporates it into a common forecasting model that covers graph construction, training, and prediction. GraphToolbox fixes how these blocks assemble into a forecasting experiment, which the lower-level libraries leave open.
Closest in spirit is Torch Spatiotemporal (tsl), which provides data processing and model prototyping for neural forecasting over sensor networks Cini and Marisca 2022. tsl and PyG-T remain general, supplying layers and data structures for arbitrary spatio-temporal signals, whereas Graph-Toolbox makes graph construction, architectural benchmarking, aggregation and interpretability explicit stages of one workflow. Toolkits built around global or foundation models forecast collections of series without a relational structure Ansari et al. 2024. Table 1 compares GraphToolbox with PyG-T and tsl on these stages.
We score a capability as built-in, partial, or absent by whether a released module provides it directly. The adapter row requires instantiating and training an arbitrary PyG operator without operator-specific code, which the compared libraries offer only for a curated subset of layers. Data-driven graph construction requires deriving the adjacency from the series, so a library that accepts only a supplied or coordinate graph scores absent. Rolling-origin evaluation requires an expanding-window trainer exposed as a module. For interpretability, we consider accumulated local effects, the additive graph model, and the visualization of edge weights on a map. GraphToolbox can display attributions obtained from an external explainer but does not fit that explainer itself. The final group of rows identifies functionality available as dedicated modules in PyG-T or tsl but not in GraphToolbox, including ready-to-use datasets, curated spatio-temporal architectures, and imputation. These features are planned for a future release.
Table 1. Design emphasis of GraphToolbox relative to PyG-T and tsl, scored against the released modules of each library as of September 2026. The comparison is limited to the main design goals of each library.
| Capability | GraphToolbox | PyG-T | tsl | |
|---|---|---|---|---|
| Shared foundation | ||||
| Built on PyG | ✔ | ✔ | ✔ | |
| GraphToolbox emphasis | ||||
| Adapter over arbitrary convs | ✔ | ∼ | ∼ | |
| Data-driven graph construction | ✔ | – | ∼ | |
| Empirical graph selection | ✔ | – | – | |
| Online expert aggregation | ✔ | – | – | |
| Forecasting interpretability | ✔ | – | – | |
| Forecast significance testing | ✔ | – | – | |
| Rolling-origin evaluation | ✔ | ∼ | ✔ | |
| Integrated hyperparameter search | ✔ | – | ∼ | |
| Complementary strengths | ||||
| Prebuilt benchmark datasets | † ∼ | ✔ | ✔ | |
| Curated ST model zoo | † ∼ | ✔ | ✔ | |
| Missing-data imputation | –† | – | ✔ |
✔: built-in capability, ∼: partial capability, –: no relevant capability, †: capability planned for the next GraphToolbox release.
3 Framework design¶
GraphToolbox consists of modules that mirror the stages of a forecasting experiment (Figure 1). The graph, the architecture and the training regime are configuration dictionaries consumed by fixed execution code, so one factor varies at a time without bespoke scripts. The four dictionaries of Figure 1 drive the whole load study of Section 5.
3.1 Data handling and graph construction¶
The DataClass reads training and test tables, applies the temporal split, and manages calendar encodings and lagged features. The GraphDataset turns the tables into graph snapshots and fits feature and target scalers on the training window only. A single field of its configuration sets the forecasting horizon.
The GraphBuilder implements the adjacency constructions proposed for load forecasting Campagne et al. 2025, 2026b, each returning positive edge weights that grow with the strength of the relation between two nodes. A spatial graph thresholds a Gaussian kernel of geodesic distance. Data-driven graphs use dynamic time warping (DTW) Salvador and Chan 2004, correlation and precision matrices, a spline distance between temperature-to-load responses, or GL3SR, which learns a Laplacian from graph signals under a smoothness criterion Humbert et al. 2021. GraphToolbox can evaluate candidate graphs by training the same forecasting model on each and selecting the one with the lowest validation error. Graph construction precedes model training, so approaches that jointly learn the graph and the forecaster, such as TimeGNN Xu et al. 2024, are not covered by this procedure.
3.2 Models and the convolution adapter¶
One meta-model, myGNN, expresses every static architecture: a linear encoder lifts node features to a fixed latent width, residual message-passing blocks in the pre-activation DeepGCN arrangement Li et al. 2019 refine this latent representation, and a linear read-out returns the multi-step forecast at
every node in one pass. Each block couples a convolution with layer normalization and a rectified linear activation, and multi-head convolutions split the latent width across heads so that the head count inflates neither capacity nor computation.
The user supplies the convolution itself by name. The meta-model receives a convolution class together with its keyword arguments and instantiates it through a ConvAdapter. The operators of PyG obey no common calling convention, some expecting scalar edge weights, others vector edge attributes, a relation type, or a positional input, and many expecting none of these. The adapter reads the constructor signature of the operator it is given, forwards only the arguments that operator accepts, and fills in the defaults it requires, whether a Chebyshev order, a relation count for the relational convolutions, or the small perceptrons that the isomorphism and edge convolutions expect. It then reads the forward signature, routes to the operator only the graph tensors it consumes, and supplies a neutral placeholder for any input the operator demands yet the forecasting graph does not carry. When an operator returns a width different from the latent one, as the multi-hop and signed convolutions do, a linear projection restores it. The few operators with CPU-only kernels run on the CPU, and the adapter moves their tensors between devices. The same path can expose the coefficients of the attention operators, which the interpretability module later renders as edge weights.
Swapping a graph convolutional network for an attention network or a Chebyshev filter is then the one-field change of Listing 1. The adapter implements each operator-specific case once, in one place. Argument routing occupies about 240 lines of adapter code, and the significance module a further 340. The supported families include degree-normalized spectral convolutions Kipf and Welling 2017, inductive neighborhood aggregators Hamilton et al. 2017, personalized propagation through APPNP Gasteiger et al. 2019, attention operators GATConv, GATv2Conv, and TransformerConv Veličković et al. 2018, Brody et al. 2022, Shi et al. 2021, and polynomial spectral filters Defferrard et al. 2016.
The ConvAdapterTemporal adapter extends this interface to the recurrent graph cells of PyG-T Rozemberczki et al. 2021. It reads the constructor signature to distinguish a step-recurrent cell, which consumes one time step at a time while carrying a graph-aware hidden state, from a windowed cell, which ingests the whole window and must be told the number of periods in advance. Its companion model, TemporalGNN, replaces the static meta-model for these cells. It separates the ordered lag sequence of the target from the static side features, unrolls that sequence through the cell into a hidden state, concatenates the static features to that state, and projects the result to the forecast horizon. A numerically verified fast unroll of the Chebyshev gated cell folds the input-side gate transforms over the whole sequence and computes the graph normalization once, reverting to the reference step loop whenever an equivalence check fails. Since this model exposes the attributes that the training loop reads, a recurrent cell trains, reconciles, and caches exactly as a static convolution does, so the benchmark of Section 5 can place the two families under one budget.
Table 2. Training-seed variability of the leading model of each study. National RMSE (MW), mean ± standard deviation over 5 seeds at the configuration of the main tables, against the run reported in Tables 6 and 7, trained separately from the 5.
| Task and model | 5 seeds | Reported run |
|---|---|---|
| Load, GatedGraphConv | 927 ± 31 | 881 |
| Net-load direct, FastRGCNConv | 1441 ± 58 | 1324 |
| Net-load decomposed, FastRGCNConv | 1229 ± 47 | 1168 |
from torch_geometric.nn.conv import GATConv
from graphtoolbox.models import myGNN
from graphtoolbox.training import Trainer
model = myGNN(
in_channels=ds_train.num_node_features,
num_layers=2, hidden_channels=256,
out_channels=48, # forecast horizon
conv_class=GATConv, # <- swap operator here
conv_kwargs={"heads": 2})
trainer = Trainer(model, ds_train, ds_val, ds_test,
batch_size=16, model_kwargs={"lr": 1e-3})
pred, target, edge_index, attn = trainer.train()
Listing 1. Swapping a convolution is a one-field change. The same Trainer and GraphDataset serve any operator exposed through ConvAdapter.
3.3 Training, optimization, and aggregation¶
The Trainer manages the optimization loop, early stopping, and the evaluation of the standard forecasting metrics, namely mean absolute error, its normalized variant, MAPE, root mean squared error (RMSE), and bias. Optimization relies on Adam Kingma and Ba 2015. A RollingTrainer extends this loop to a rolling-origin protocol, in which the training window expands to absorb each past test window before predicting the next. This protocol mirrors the retraining of a forecasting system in operation. An Optimizer built on Optuna Akiba et al. 2019 runs the hyperparameter search, so that the number of layers, the hidden width, the learning rate, the batch size, and even the graph become tunable through a declarative search space. A trial stops once its validation loss has not improved for a set number of epochs, and the pruner of the study abandons trials that fall behind the median of earlier ones. A seed fixes the sampler as well as the initialization and the batch order of every trial, and the trainer accepts the same seed, so a user can replay a search and the training runs it selects.
Because different architectures carry different inductive biases, their errors differ, and a combination can be more accurate than its best member. The framework provides a native Aggregation module that performs sequential expert aggregation either online or in batch, following the aggregation rules of the opera package Gaillard and Goude 2021, whose R and Python1 reference implementations informed our design. Its default rule is the parameter-free MLpol algorithm Gaillard et al. 2014, which maintains a weight per expert and updates it according to past forecasting performance, so that the aggregated prediction is a time-varying convex combination of the experts. The exponentially weighted average forecaster Vovk 1990, Cesa-Bianchi and Lugosi 2006 and Bernstein online aggregation Wintenberger 2017 are also available. A uniform average serves as a parameter-free reference, and an ensemble of independently initialized models supplies a first estimate of predictive spread. Forecasts can be aggregated across architectures or across random initializations of one architecture, either at the national level (top-level) or separately for each node (bottom-up).
3.4 Interpretability and visualization¶
The interpretability module provides feature- and edge-level diagnostics for individual forecasts. Accumulated local effects estimate the marginal influence of a feature while accounting for its correlation with other inputs, which makes them more reliable than partial dependence in the highly collinear setting of weather and calendar drivers Apley and Zhu 2020. For a graph model,
1 https://github.com/Dralliag/opera-python

Figure 2. Training time per epoch for the 10 convolutions in Table 6, evaluated on load and net-load with one layer, hidden width 64, and the DTW graph. Times are averaged over 20 epochs on an Apple M4 Pro CPU. The load runs use 125 input features, against 187 in the load sweep.
accumulated local effects are estimated by varying one feature at one node across quantile bins while keeping other inputs at their observed values. Changes are aggregated over all nodes, thereby including the effects propagated through message passing. The framework also visualizes edge attributions obtained from a user-run PyG explainer, from attention weights when available, or from occlusion. The latter measures how much the forecast at one node changes when another node's inputs are replaced by a baseline Ying et al. 2019. These diagnostics are correlational, and we make no claim that they establish a causal link between a connection and a prediction. They are also bounded by the attribution they are given, and Section 5 shows attention weights that reduce to one score per sending region on one graph and, on another, agree only moderately with the effect of a neighbor on the forecast. Beyond these post-hoc attributions, the package also includes an intrinsically interpretable model, an additive graph network that encodes each feature group with its own subnetwork and sums their contributions, so that a prediction decomposes into per-group terms, each of which can be read on its own. A visualization module places node errors, learned graphs, and edge weights on maps of the corresponding territory.
3.5 Significance testing¶
An accuracy ranking without a measure of its reliability leaves open whether a gap reflects a real difference or the noise of a finite test window. The evaluation module operates entirely on cached forecasts, allowing the statistical analysis to run on stored predictions without retraining the models. The Diebold–Mariano test Diebold and Mariano 1995 assesses pairwise predictive accuracy under a squared, absolute, or percentage loss, with a Newey-West long-run variance Newey and West 1987 and the small-sample correction of Harvey, Leybourne, and Newbold Harvey et al. 1997. A Holm-Bonferroni adjustment controls the family-wise error rate across the pairwise comparisons. A moving-block bootstrap Künsch 1989 quantifies the sampling uncertainty on a metric, with a default block of one day and 2000 resamples. Its blocks of consecutive steps preserve the autocorrelation of forecast errors that an ordinary resampling would destroy. To summarize an entire sweep, the module reports the Model Confidence Set Hansen et al. 2011, the subset of architectures that contains the best one with a prescribed probability.
These instruments address the sampling uncertainty of a metric on a finite test window, and they leave a second source untouched, the stochasticity of training itself. Because the sweeps of Section 5 report one run per architecture, we retrained the strongest operators over 5 seeds at their table configurations. Table 2 sets the resulting means against the entries of the main tables, which sit 46 to 117 MW below them. Two conclusions remain stable across seeds. At the seed mean, the graph models stay below the recurrent baseline, by 151 MW on load and by 305 and 517 MW for the direct and decomposed net-load models, which also stay below the regional GAM. For net-load, the paired improvement from direct to decomposed forecasting averages 212 MW with a standard deviation of 81 MW. The fine ordering within each architectural band is not stable, which is why we claim no unique best convolution.
3.6 Scale¶
On the French graph with 12 nodes, 9 of the 10 representative convolutions require between 140 and 270 ms per training epoch on load and between 190 and 340 ms on net-load (Figure 2), corresponding to approximately one minute for a full training run. Only the relational-attention RGATConv is an order of magnitude slower. We measured these timings on the CPU of a MacBook Pro with an Apple M4 Pro (12 cores), which outperforms the Metal Performance Shaders (MPS) backend at this graph size.
We repeat the measurement using the same code and hardware on WEAVE-UK, a dataset of half-hourly consumption from 500 low-voltage feeders operated by Scottish and Southern Electricity Networks. The observations cover 14–28 February 2024 and were released through the Weave data platform2 Campagne 2026. Inference per forecast window rises from under a millisecond to 14 ms for GraphSAGE, 40 ms for GAT and 71 ms for APPNP (Table 3). The correlation graph used for WEAVE in the absence of coordinates connects almost every pair of feeders, with 242,624 edges against 142 on the French graph, so the 40-fold increase in node count multiplies the number of edges by about 1700 and the latency by 47 to 144. Accuracy results for graph and non-graph models on these 500 feeders are reported in Campagne et al. 2026b. These measurements show that sweeps on graphs of this size remain feasible on a workstation. They do not characterize computational cost on graphs with thousands of nodes.
Table 3. Cost of the same code path at two graph scales, on the 12 French regions and on 500 WEAVE-UK feeders, measured on the Apple M4 Pro CPU at hidden width 64 and 2 layers. Parameter counts differ between the two columns because the input dimension does (187 features against 50). Inference time is the mean over 200 calls on one test window.
| Operator | 12 nodes | 500 nodes | |||
|---|---|---|---|---|---|
| params (k) | infer (ms) | params (k) | infer (ms) | ||
| GraphSAGE | 32.0 | 0.30 | 23.3 | 14.0 | |
| GAT | 24.4 | 0.44 | 15.6 | 40.2 | |
| APPNP | 15.5 | 0.49 | 6.8 | 70.7 |
4 Convolution coverage¶
We measure the breadth of the framework by the fraction of available operators it can run. We instantiate each of the 65 convolutions exported by torch_geometric.nn.conv in PyG 2.6.1 inside the two-layer meta-model and train it for one step on a complete homogeneous graph with random node features and edge weights. Table 4 reports the outcome by family. Of the 65 tested operators, 53 (81.5%) run without modification. A single operator, the fused attention kernel, requires an optional
dependency that is unavailable on some platforms. The remaining 11 presuppose heterogeneous graphs, hypergraphs, point-cloud inputs, or device-specific libraries, and therefore fall outside the homogeneous node-level regime that electricity forecasting occupies. This coverage test measures whether an operator instantiates and completes a training pass, and does not by itself certify forecasting accuracy. Of the 53 operators supported by the adapter, 46 enter the load-forecasting sweep and its significance analysis. We exclude 7 operators from the forecasting sweep: DNAConv, GPSConv, PointTransformerConv, SplineConv, WLConv, WLConvContinuous, and XConv. We report a representative subset, including the 10 static convolutions in Table 6 and the recurrent GConvGRU and DCRNN cells. Table 5 summarizes the neighbor-aggregation rules of the operators discussed in Section 5. Only 8 use edge weights directly; the others receive information from the dynamic-time-warping graph only through its connectivity.
Table 4. Coverage of PyG convolutional operators within the myGNN meta-model. Operator families follow Table 5, with one additional family for operators not discussed in Section 5. Skipped operators require heterogeneous graphs, hypergraphs, point-cloud inputs, or device-specific libraries.
| Operator family | Working | Examples |
|---|---|---|
| Propagation | 13 | GCN, SG, APPNP |
| Attention | 10 | GAT, GATv2 |
| Gating and modulation | 3 | GatedGraph, FiLM |
| Relational and edge-conditioned | 9 | RGCN, NN, GMM |
| Point-cloud and dynamic graphs | 4 | Edge, GravNet |
| Other aggregators | 14 | SAGE, GIN, PNA |
| Working total | 53 | (81.5%) |
| Optional dependency | 1 | FusedGAT |
| Skipped (out of scope) | 11 | see caption |
| Tested total | 65 |
5 Controlled benchmark¶
Each comparison in this section changes a single choice of one pipeline configuration: the convolution among the 46 operators of the sweep, the graph against the identity graph, the aggregation rule, the reconciliation, recurrent against static cells, and, on net-load, the weather information and the decomposition of the target. Within each task, apart from the hyperparameter search on 3 operators, the data, the 2019 test year, the graph and the architecture stay fixed, so that we can attribute a difference between two rows to the choice that separates them. Both targets are forecast for the 12 French regions and scored on their national sum. Writing for the national target at half-hour of the test year, ̂ for its forecast and for the number of half-hours, the tables report
RMSE is expressed in megawatts, and the rows within each sweep are ordered by this metric. We also report MAPE for load and sMAPE for net-load. The latter is bounded by 200% and remains defined near zero target values. We assess differences using two-sided paired Diebold–Mariano tests on squared errors over the test year, with a significance threshold of < 10−5. Load is positive and relatively smooth, whereas net-load can change sign and reflects fluctuations in wind and solar production.
The references, except for persistence and the two foundation models, are fitted once on the training years, like the graph models. Persistence repeats the value of the previous day at the
Table 5. Operators named in Section 5, grouped by aggregation mechanism. Each operator is used within the residual block of the meta-model. A check mark indicates whether it uses edge weights. The graphs considered here have a single edge type and no edge attributes. Relational operators therefore use one relation, while GMMConv receives constant edge coordinates.
| Operator | Aggregation of the neighbors | |||
|---|---|---|---|---|
| Propagation | ||||
| GCNConv | (Kipf and Welling 2017) | degree-normalized sum | ✔ | |
| SGConv | (Wu et al. 2019) | 𝐾 steps, then one linear map | ✔ | |
| SSGConv | (Zhu and Koniusz 2021) | mean of 𝐾 propagation steps | ✔ | |
| APPNP | (Gasteiger et al. 2019) | personalized-PageRank propagation | ✔ | |
| GCN2Conv | (Chen et al. 2020) | propagation with initial residual | ✔ | |
| ARMAConv | (Bianchi et al. 2022) | rational spectral filter | ✔ | |
| PANConv | (Ma et al. 2020) | sum over paths up to a set length | ||
| Attention | ||||
| GATConv | (Veličković et al. 2018) | attention ranked by the sender | ||
| GATv2Conv | (Brody et al. 2022) | attention ranked per receiver | ||
| SuperGATConv | (Kim and Oh 2021) | attention with edge self-supervision | ||
| RGATConv | (Busbridge et al. 2019) | attention per relation type | ||
| Gating and modulation | ||||
| GatedGraphConv | (Li et al. 2016) | GRU update from summed messages | ✔ | |
| ResGatedGraphConv (Bresson and Laurent 2017) | messages scaled by edge gates | |||
| FiLMConv | (Brockschmidt 2020) | messages modulated by the receiver | ||
| Relational and edge-conditioned | ||||
| (Fast)RGCNConv | (Schlichtkrull et al. 2018) | one weight matrix per relation type | ||
| GMMConv | (Monti et al. 2017) | Gaussian kernels of edge coordinates | ||
| FeaStConv | (Verma et al. 2018) | soft assignment to weight matrices | ||
| Other aggregators | ||||
| LEConv | (Ranjan et al. 2020) | weighted node–neighbor differences | ✔ | |
| PNAConv | (Corso et al. 2020) | mean, maximum and sum combined | ||
| GENConv | (Li et al. 2023) | softmax-weighted mean |
same half-hour. Chronos-Bolt and Chronos-2, two time-series foundation models of the Chronos family Ansari et al. 2024, forecast without training on these data. ARIMA-X fits one seasonal autoregressive integrated moving average model with exogenous covariates per half-hour, and XGBoost Chen and Guestrin 2016 fits one model per half-hour of the horizon, either on the samples of all regions pooled or per region. A multilayer perceptron (MLP) is fitted per region, and a long short-term memory (LSTM) network Hochreiter and Schmidhuber 1997 is conditioned on the covariates. The additive references fit one model per half-hour on weather and calendar covariates, nationally on the aggregate or per region with the regional forecasts summed. Besides the GAMs, TAM Allioux and Goude 2026 fits the regional version with a temperature-weekend tensor and one smoothing parameter per effect selected by generalized cross-validation, and reads no lagged target. XGBoost and the MLP read the inputs of the graph models and follow the search spaces and seeds of Campagne et al. 2026b, which score 10 configurations on 2018.
5.1 Load forecasting¶
The first task forecasts French electricity load at the granularity of the 12 administrative regions supplied by the transmission operator, using half-hourly RTE open data Réseau de Transport d'Électricité RTE 2024 enriched with calendar features and Météo-France SYNOP weather observations Météo-France 2024. The nodes of the graph are the regions, each positioned at the spatial coordinates of a major city of that region. A model reads its features at midnight and returns load

Figure 3. GatedGraphConv against pooled XGBoost on the 12 French regions, 2019 test set: RMSE of GatedGraphConv divided by that of XGBoost (seed 42) over the half-hours of each month, in blue where the graph model is more accurate.
forecasts for the 48 half-hours of the day that follows. The 48 half-hourly load lags predate that origin, whereas the weather of the forecast day enters as its observed values. Every model in the comparison that uses weather shares this perfect-forecast assumption, which makes all errors lower than those of an operational forecast built on numerical weather predictions. The sweep holds the graph at the dynamic-time-warping (DTW) construction and the architecture at 2 layers of width 64 for every operator, so every row of Table 6 comes from the same implementation, configured once per operator. We run the optimizer of the framework separately on 3 operators, searching their model and graph over 100 trials each, which we score on the 2018 validation year. The search selects the spatial graph for APPNP, the spline-distance graph for LEConv, and the identity graph for GATConv, which removes message passing between regions. On the 2019 test set, it lowers the RMSE of APPNP from 1093 to 971 MW and that of GATConv from 923 to 896 MW, whereas LEConv does not improve (932 against 939 MW), so a configuration selected on one validation year does not always transfer to the next.
Table 6 collects the benchmark on the 2019 test set. Across the 46 evaluated convolutions, MAPE ranges from 1.20% to 1.60%, with a median of 1.31%. GatedGraphConv has the lowest RMSE at 881 MW, and GCNConv the lowest MAPE at 1.20%.
Every operator in Table 6 improves on the additive, recurrent and foundation references: the national and regional additive models reach 1228 and 1200 MW, the LSTM 1078 MW, Chronos-2 1647 MW, and TAM 1062 MW. The gap of TAM to the graph models ranges from 130 MW at the weakest listed operator to 181 MW at the best. The second gap is significant, whereas the first is not ( = 1.5 × 10−4, against a threshold of 10−5). XGBoost given the same inputs as the graph models is more accurate. Pooled over the regions, it reaches 805 MW in Table 6 (its seed-42 run, used below, reaches 804 MW), 76 MW below the best operator, a difference that is not significant, and 122 MW below the mean of the 5 seeds of GatedGraphConv (Table 2). Averaging the forecasts of these 5 seeds lowers the RMSE of GatedGraphConv to 824 MW, which does not differ significantly from pooled XGBoost. Fitted per region, it reaches 872 MW, and the MLP fitted per region 944 MW, within the band of the sweep. Region by region, GatedGraphConv is the more accurate of the two (Figure 3). Its RMSE over the test year is lower in each of the 12 regions, significantly in 10 of them, and in 114 of the 144 region-months, 24 of the 30 exceptions falling between June and September. Its national RMSE is nevertheless higher, because its regional errors compensate less when summed. Were these errors uncorrelated, the national RMSE would be 458 MW for GatedGraphConv against 589 MW for
XGBoost (seed 42), and their correlation, 0.27 on average against 0.16, raises it to 881 and 804 MW. Averaging 5 seeds leaves the first quantity at 458 MW and lowers the national RMSE to 824 MW.
This comparison alone cannot establish the benefit of spatial message passing, since the graph models also differ from the baselines in their inputs, parameter sharing across nodes, and multi-step prediction architecture. Isolating message passing requires holding everything else fixed. We retrain the same 10 operators in dedicated paired runs at a strictly common configuration on the DTW and identity graphs, so these runs are not directly comparable to the entries of Table 6. Averaging their individual RMSEs gives 951 MW on the DTW graph and 984 MW on the identity graph. The median paired reduction is 23 MW, and 8 of the 10 operators improve. The effect is architecturedependent, with the identity graph improving 2 operators. Message passing thus contributes to the improvement over the references, although it does not explain the entire gap. A companion study using GraphToolbox separates the effects of parameter sharing and neighbor information by comparing graph models with independent per-node networks and a shared network without message passing Campagne et al. 2026b. On 500 low-voltage feeders, parameter sharing alone explains 78 to 84% of the performance gap between the independent per-node model and the graph model.
Online expert aggregation over the whole sweep lowers the MAPE from 1.11% for a uniform average to 1.03% for the MLpol mixture, at a national RMSE of 789 MW, 92 MW below the best single convolution. MLpol sets its weights each day from the losses of the previous test days, so it forecasts online, whereas the uniform average, like weights fixed on the validation year, stays offline. The mixture and pooled XGBoost do not differ significantly. The block-bootstrap intervals of Table 6 and Figure 6 do not resolve the ordering inside the sweep, and neither do statistical tests: a Model Confidence Set at the 90% level, computed on the same cached forecasts, retains 34 of the 46 operators, including the 10 listed in the table, and a Holm-corrected Diebold–Mariano test separates none of those 10 from the best. The mixture is nevertheless significantly more accurate than the best single convolution, despite the overlap of their marginal bootstrap intervals. The mixture moves its weight across operators during the year (Figure 4). From January to April, GatedGraphConv carries 27% of the weight on average, and from June to October RGATConv and GATv2Conv carry 18% and 16%. The cumulative error of the mixture stays below that of the best single operator from 18 February onward. Aggregation therefore removes the need to identify the best operator in advance, although it still requires running the whole sweep. Run region by region, the bottom-up mixture selects different experts (Figure 5). GatedGraphConv carries the largest weight in 7 of the 12 regions, PNAConv leads in Bretagne and Occitanie, and in every region the mixture is more accurate than the best single operator of that region, by 1.9% to 9.7% of that operator's RMSE.
As an alternative to combining fixed models, GraphToolbox can update a single model during forecasting. Each day, the rolling trainer produces a forecast and then performs a small number of Adam steps using mini-batches drawn partly from the preceding 7 days and partly from the full training history. The graph and feature scalers remain fixed. We initialize the procedure from the 5 GatedGraphConv checkpoints in Table 2, select the learning rate (3 × 10−5) and daily update count (30) on 2018, and run the updates through 2018 before evaluating on 2019. This aligns the historical information available to the graph model with that of the refitted TAM. Daily updates reduce mean RMSE from 927 ± 31 to 752 ± 34 MW. The regional TAM adapted each day through a Kalman filter, following Obst et al. 2021 with its two variances tuned on 2018, reaches 751 MW. None of the 5 updated GatedGraphConv runs differs significantly from this reference. Averaging their forecasts further reduces RMSE to 678 MW.
Minimum-trace (MinT) reconciliation Wickramasuriya et al. 2019 combines regional predictions with a national forecast while enforcing coherence between them. GraphToolbox estimates reconciliation weights from the 2018 validation errors, using either their variances or their full

Figure 4. Online MLpol aggregation of the 46 load-forecasting operators on the 2019 test year. (a) Daily weights of the 5 operators with the largest average weights. (b) Cumulative RMSE since 1 January for MLpol, uniform averaging, and the best individual operator. The first days are omitted for readability.

Figure 5. Bottom-up MLpol aggregation across the 12 French regions in 2019. For each region, the 3 experts with the highest mean weights are shown, with the largest in bold. The map color indicates the highest-weighted expert. Operator names omit the suffix Conv.
covariance shrunk toward its diagonal. The national forecast can be generated within the framework or supplied externally. An XGBoost model fitted on the aggregate series using lagged load, calendar information, and national means of the forecast-day covariates (including weather) reaches 1198 MW. Reconciling GatedGraphConv with this forecast lowers RMSE from 881 to 844 MW, a significant improvement. Using instead the national sum of pooled XGBoost, the strongest reference in Table 6, whose seed-42 run reaches 804 MW, gives 802 MW with diagonal covariance and 747 MW with full covariance estimated by the shrinkage method of Schäfer and Strimmer 2005. Both improve significantly on the original GatedGraphConv forecast, but neither differs significantly from the
national XGBoost forecast. Reconciliation with TAM, the strongest additive baseline, yields 818 and 784 MW with diagonal and full covariance, respectively, also significant improvements. TAM uses forecast-day calendar and weather information without load lags, whereas pooled XGBoost uses the graph model's inputs. Reconciliation therefore does not introduce information beyond the common day-ahead forecasting setting. The final blocks of Tables 6 and 7 summarize these results.

Figure 6. National RMSE of the 46 operators of the load sweep on the 2019 test set, with blockbootstrap standard errors. Filled markers belong to the 90% Model Confidence Set. Solid lines mark the two aggregates of the sweep, dashed lines 3 references of Table 6.
Table 6. French national load, 2019 test set. MAPE and RMSE (MW) for 10 of the 46 operators of the load sweep, which are not the 10 most accurate (Figure 6 reports all 46), ordered by RMSE. Forecasts are not reconciled except in the final block, where MinT combines GatedGraphConv regional forecasts with the national forecast from pooled XGBoost, the strongest reference, using diagonal or full error covariance estimated on 2018. Uncertainties for GNN rows are block-bootstrap standard errors from one training run (see Table 2). Baseline results are point estimates, averaged over 3 seeds for pooled XGBoost and 10 for the MLP. The reproducibility section identifies results reused from previous studies and those obtained for this paper.
| Model | MAPE (%) | RMSE (MW) | Model | MAPE (%) | RMSE (MW) | |
|---|---|---|---|---|---|---|
| Baselines | Static GNN sweep (GraphToolbox) | |||||
| Persistence (1 day) | 5.78 | 4507 | GatedGraphConv | 1.22 ± 0.03 | 881 ± 29 | |
| Chronos-Bolt | 2.99 | 2408 | GATv2Conv | 1.22 ± 0.03 | 881 ± 30 | |
| ARIMA-X | 2.51 | 1706 | ARMAConv | 1.24 ± 0.03 | 887 ± 32 | |
| Chronos-2 | 1.78 | 1647 | ResGatedGraphConv | 1.22 ± 0.03 | 890 ± 36 | |
| GAM (national) | 1.69 | 1228 | SGConv | 1.24 ± 0.03 | 898 ± 33 | |
| GAM (regional) | 1.67 | 1200 | RGATConv | 1.22 ± 0.03 | 899 ± 34 | |
| LSTM | 1.46 | 1078 | RGCNConv | 1.23 ± 0.03 | 910 ± 43 | |
| TAM (regional) | 1.59 | 1062 | GATConv | 1.25 ± 0.03 | 923 ± 36 | |
| MLP (regional) | 1.31 | 944 | GCNConv | 1.20 ± 0.03 | 925 ± 46 | |
| XGBoost (regional) | 1.15 | 872 | LEConv | 1.30 ± 0.03 | 932 ± 39 | |
| XGBoost (pooled) | 1.11 | 805 | ||||
| Expert aggregation | GatedGraphConv reconciled by MinT onto XGBoost (pooled) | |||||
| Uniform average | 1.11 ± 0.03 | 832 ± 38 | Diagonal covariance | 1.11 ± 0.03 | 802 ± 26 | |
| MLpol (bottom-up) | 1.06 ± 0.03 | 803 ± 38 | Full covariance | 1.03 ± 0.03 | 𝟕𝟒𝟕 ± 𝟐𝟓 | |
| MLpol (top-level) | 𝟏.𝟎𝟑 ± 𝟎.𝟎𝟑 | 789 ± 38 |
The framework also runs T-GCN, A3T-GCN, DCRNN, and GConvGRU Zhao et al. 2020, Bai et al. 2021, Li et al. 2018, Seo et al. 2018, either one-shot, updating once on the stacked lag channels as a static convolution does, or unrolled over the ordered lags. With one-shot forecasting, GConvGRU
and DCRNN achieve RMSEs of 954 and 1002 MW, respectively. GConvGRU sits at the median of the static convolution sweep (949 MW) and DCRNN 53 MW above it, and both are less accurate than its best operator (881 MW).
5.2 Net-load forecasting¶

Figure 7. Net-load forecasts on the 2019 test year. (a) National RMSE of direct (open markers) and decomposed (filled markers) forecasts for the 10 operators in Table 7, compared with pooled XGBoost (3-seed mean), TAM, and the regional GAM. (b) National RMSE by half-hour for the best direct and decomposed models (FastRGCNConv), regional GAM, and LSTM. (c) Monthly national RMSE for the same four forecasts, with line styles as in panel (b). LSTM results are averaged over 5 seeds.
The second task forecasts national net-load, the demand that remains once solar and wind generation are subtracted, which is the quantity a system operator must balance. This target is harder than gross load, because it changes sign and inherits the volatility of renewable production. The percentage error is meaningless for series that pass through zero, such as solar generation at night, so the pipeline restricts that metric to strictly positive series and reports RMSE and a symmetric percentage error elsewhere.
Each net-load model receives, besides the net-load lags of the previous day, the trajectories of temperature, wind speed, and cloud cover over the 48 half-hours of the forecast day, with the power-weighted versions of wind and cloud cover used by the additive references. On the same 2019 test set (Table 7), the 10 convolutions, all at the same validation-selected configuration (1 layer of width 64), occupy a band from 2.19% to 2.52% sMAPE, with FastRGCNConv achieving the lowest RMSE at 1324 MW, and the uniform average of the direct sweep reaches 1220 MW.
Persistence, the zero-shot Chronos-Bolt at 3676 MW, and ARIMA-X at 2933 MW trail far behind, and Chronos-2 reaches 2344 MW. Among the fitted baselines, pooled and region-specific XGBoost achieve 1757 and 1938 MW, respectively. The national GAM reaches 1763 MW, the LSTM 1746 MW, the regional GAM 1723 MW, regional TAM 1659 MW, and the regional MLP 1473 MW. All direct convolutions outperform the additive, recurrent, and XGBoost references, with a margin of at least 118 MW. The best convolution improves on pooled XGBoost, which uses the same inputs, by 433 MW. The MLP lies within the direct convolution range. Unlike the graph models, the additive references use weather covariates at each forecast half-hour without lagged net-load. Without the wind and cloud-cover trajectories, the best direct graph model reaches 2094 MW, above every fitted baseline, so its advantage over the additive references requires these inputs.
Net-load also decomposes into physical components, net-load = load − wind − solar. Forecasting each component with its own GNN and recombining the forecasts, using the same configuration and training budget per model, improves the forecasts of all 10 convolutions and lowers RMSE
by 211 MW on average. FastRGCNConv reaches 1.91% and 1168 MW, and the uniform average of the decomposed forecasts 1.78% and 1098 MW. The best decomposed forecast is significantly more accurate than the best direct one. It is 491 MW below TAM, 555 MW below the regional GAM and 578 MW below the recurrent model, and all three differences are significant (for the recurrent model, against each of the 5 LSTM seeds). The same decomposition lowers the RMSE of pooled XGBoost to 1678 MW, still 510 MW above the decomposed FastRGCNConv, and every decomposed graph model is more accurate than the MLP. The decomposition also costs three models for one forecast, so the comparison is not matched on total training compute.
The decomposition narrows the spread of the 10 operators, from 1324–1541 MW for the direct forecasts to 1168–1297 MW (Figure 7a). Across operators, the RMSE of the wind component ranges from 786 to 853 MW, against 796 to 904 MW for load and 342 to 428 MW for solar, and the squared wind RMSE makes up 40% to 45% of the sum of the squared component RMSEs, which approximates its share of the recombined error when the component errors are independent. Over the day, the error of the best decomposed forecast concentrates in the half-hours between 7:00 and 20:00, which carry 67% of its squared error, and that forecast has a lower RMSE than both references at each of the 48 half-hours (Figure 7b). Averaged over these daytime half-hours, the recurrent model has the largest error, 1964 MW against 1849 MW for the regional GAM and 1298 MW for the decomposed FastRGCNConv, although it is ahead of the GAM during the rest of the day. The advantage over the references holds throughout the year: in each of the 12 months, the best direct and decomposed forecasts have a lower RMSE than both the regional GAM and the recurrent model, and the decomposition improves the direct forecast in every month except March (Figure 7c).
Reconciliation onto the national TAM forecast with the same diagonal weights lowers the RMSE of the direct FastRGCNConv forecast from 1324 to 1238 MW, a significant gain, whereas that of the decomposed forecast moves from 1168 to 1162 MW, a difference that is not significant. Reconciliation with the full error covariance gives 1236 and 1160 MW. With the national sum of the MLP fitted per region, the most accurate reference at 1398 MW for the seed used here, reconciliation gives 1269 MW for the direct forecast with either covariance, a gain that is significant with the diagonal one, and 1152 and 1151 MW for the decomposed forecast, differences that are not significant.
Unrolled over the 48 lags and given the same weather trajectories, GConvGRU reaches 1848 MW, above every direct convolution of Table 7 and above the regional GAM, so the static sweep keeps the advantage on net-load.
5.3 Interpretability diagnostics¶
Figure 8 plots the attention weights and occlusion influences that the interpretability module computes for GATs trained on French load (2 layers of width 64, 1 head), whose national RMSEs, from 1100 to 1238 MW, keep them outside the benchmark as diagnostic models. GATConv scores the edge from to by LeakyReLU( +), where depends on the sender and on the receiver. When the scores entering region fall on the same branch of the LeakyReLU, cancels in the softmax and the weight depends on only through its neighborhood, the static attention identified by Brody et al. 2022. The DTW graph connects every pair of regions except Grand Est and Nouvelle-Aquitaine, so the 10 regions connected to all others have the same neighborhood and the fitted GATConv gives them identical weights, to within 4 × 10−8 on every test day. Their relative deviation −1 from the uniform weight 1/ , where is the in-degree of , self-loop included, then depends on the sender only. A GATv2, whose scoring function allows rankings specific to the receiver, still has 94% of the variance of these deviations explained by the sender (panel c). Passing the DTW weights to the attention as an edge attribute makes the attention weights specific to each pair, and they then follow the DTW weights (Spearman correlation 0.85 for GATConv and 0.81 for GATv2) without lowering the RMSE (1157 and 1107 MW, against 1155 and 1100 MW without them).
Table 7. French national net-load, 2019 test set. sMAPE and RMSE (MW) for direct and decomposed GNNs and their aggregations. Direct and decomposed models use the same per-model configuration and training budget. All models use observed weather from the target day. Uncertainties are blockbootstrap standard errors computed from a single training run (see Table 2). Baseline point estimates are averaged over 3 seeds for pooled XGBoost, 5 for the LSTM and 10 for the MLP. Best values are in bold. The last block reconciles FastRGCNConv by MinT with the national sum of the MLP fitted per region (seed 42), the most accurate reference, using the diagonal or the full error covariance estimated on 2018.
| Model | sMAPE (%) | RMSE (MW) | Model | sMAPE (%) | RMSE (MW) |
|---|---|---|---|---|---|
| Baselines | Direct GNN, one model on net-load | ||||
| Persistence (1 day) | 8.89 | 5636 | FastRGCNConv | 2.19 ± 0.06 | 1324 ± 33 |
| Chronos-Bolt | 5.70 | 3676 | GMMConv | 2.35 ± 0.07 | 1401 ± 36 |
| ARIMA-X | 5.04 | 2933 | RGATConv | 2.35 ± 0.07 | 1415 ± 39 |
| Chronos-2 | 3.43 | 2344 | SuperGATConv | 2.38 ± 0.07 | 1421 ± 36 |
| XGBoost (regional) | 3.13 | 1938 | PANConv | 2.37 ± 0.08 | 1435 ± 43 |
| GAM (national) | 2.92 | 1763 | GCN2Conv | 2.46 ± 0.07 | 1460 ± 36 |
| XGBoost (pooled) | 2.89 | 1757 | GATConv | 2.43 ± 0.08 | 1461 ± 42 |
| LSTM | 2.83 | 1746 | FiLMConv | 2.52 ± 0.07 | 1509 ± 41 |
| GAM (regional) | 2.86 | 1723 | GatedGraphConv | 2.52 ± 0.07 | 1524 ± 39 |
| XGBoost (pooled, decomposed) | 2.72 | 1678 | ResGatedGraphConv | 2.47 ± 0.08 | 1541 ± 49 |
| TAM (regional) | 2.79 | 1659 | |||
| MLP (regional) | 2.48 | 1473 | |||
| Direct GNN, expert aggregation | Decomposed GNN, one model per component | ||||
| MLpol (top-level) | 2.04 ± 0.06 | 1230 ± 34 | FastRGCNConv (best) | 1.91 ± 0.05 | 1168 ± 31 |
| MLpol (bottom-up) | 2.03 ± 0.06 | 1224 ± 33 | MLpol (top-level) | 1.80 ± 0.05 | 1109 ± 33 |
| Uniform average | 2.01 ± 0.06 | 1220 ± 35 | MLpol (bottom-up) | 1.80 ± 0.05 | 1101 ± 32 |
| Uniform average | 𝟏.𝟕𝟖 ± 𝟎.𝟎𝟓 | 𝟏𝟎𝟗𝟖 ± 𝟑𝟑 | |||
| FastRGCNConv reconciled by MinT onto MLP (regional) | |||||
| Direct, diagonal | 2.11 ± 0.06 | 1269 ± 33 | Decomposed, diagonal | 1.90 ± 0.05 | 1152 ± 31 |
| Direct, full | 2.11 ± 0.06 | 1269 ± 33 | Decomposed, full | 1.90 ± 0.05 | 1151 ± 31 |
The spatial graph links 14 pairs of nearby regions, so the neighborhoods differ and each of its 28 directed edges receives its own weight. An attention weight sets the share of a neighbor's message in the aggregate, whereas the effect of that neighbor on the forecast also depends on how much its message varies and on how the following layers transform the aggregate. We therefore set each weight against an occlusion influence, the mean absolute change in the forecast of region when the inputs of region are replaced by their test-year mean. We train the GATv2 on this graph with 3 seeds (42, 0, and 1) and average both quantities over the 3 trainings. A neighbor then moves the forecast by 27 to 146 MW and a region two edges away by about 10 MW, against 662 MW for the region's own inputs. Within the neighborhood of , we compare both quantities with the uniform share through − 1, where = − 1 is the number of neighbors of other than itself and the share of in the attention or in the influence. Over the 24 edges entering the 8 regions with several neighbors, the year-mean deviations of attention and influence have a Spearman correlation of 0.69 (panel b), from 0.26 in winter to 0.81 in summer. The attention rankings are reproducible across trainings, with correlations of 0.93 to 0.97 between seeds, whereas the influence rankings vary more (0.03 to 0.89), which is why we compare them on the mean over trainings. The attention of this model thus favors, on average, the neighbors with the larger effect on a region's forecast, while the effect of a given neighbor remains uncertain from one training to the next.
We examine feature attribution on net-load using the additive graph model with the same weather information as the models in Table 7. At 1833 MW RMSE, it is less accurate than every

Figure 8. Attention of GATs on French regional load, 2019 test set. (a) GATv2 on the spatial graph, averaged over 3 training seeds: one arrow per directed edge, colored by the seasonal attention deviation \(m_i s_{ij} - 1\) of the receiving region i and with a width proportional to the occlusion influence of the sending region on the forecast of i. Grey arrows enter the 4 regions with a single neighbor, whose attention share is 1 by construction. (b) Year-mean attention deviation against influence deviation for the 24 edges entering regions with several neighbors, averaged over the 3 seeds, with bars spanning the seeds, \(\rho\) the Spearman correlation, and the dashed line marking equality. (c) GATv2 on the DTW graph: cell (i, j) is the year-mean deviation \(d_i \alpha_{ij} - 1\) of the weight that region i (row) gives to region j (column). White cells are the two absent edges, and nearly identical rows show that the weight depends mostly on the sender.
direct convolution in that table and is used only for interpretation. Its additive structure decomposes the national prediction into an intercept and feature-group contributions, shown in Figure 9 for 4–10 February 2019. Over the test year, the standard deviations of these contributions are 6.7 GW for net-load lags, 4.0 GW for calendar variables, 3.8 GW for other covariates, 3.4 GW for temperature, 2.9 GW for cloud cover, and 2.6 GW for wind. To compute the accumulated local effect of one trajectory value, we vary that value in one region while keeping all other inputs at their observed levels. The resulting standard deviation is below 14 MW for each wind value and 7 MW for each cloud-cover value. Each weather group thus acts through many correlated inputs, each with a small effect. The largest effects among net-load lags occur in the final 2 hours before forecast origin, reaching 320 MW. The most influential temperature values occur in the afternoon of the target day. This decomposition gives the additive terms of the fitted model, whereas attention weights describe only how a node aggregates its neighbors. Its attributions remain associational.

Figure 9. Feature-group contributions to the national net-load forecast of the additive graph model during 4–10 February 2019, the week with the highest standard deviation of observed national wind production. Contributions are centered by their means over the 2019 test year, and the baseline contains those means and the intercept. Their sum therefore equals the forecast minus the baseline.
6 Discussion and limitations¶
We draw four methodological conclusions from the benchmark. The evaluated graph models are shallow, with 2 message-passing layers for load and 1 for net-load, which keeps their computational cost modest. This design is consistent with over-smoothing analyses that predict a loss of nodespecific signal as depth grows Oono and Suzuki 2020, so a user should select depth on validation data like any other hyperparameter. Online expert aggregation improves on the best individual operator under the paired predictive-accuracy test, both at the national level and when applied bottom-up. Updating one graph model daily reduces RMSE by 175 MW on average across 5 runs, compared with a 51 MW difference between the listed load convolutions. MinT reconciliation also improves the best load operator when combined with each tested national forecast, with larger gains for more accurate national forecasts. It improves the best direct net-load forecast when reconciled with TAM. GraphToolbox makes these alternatives available within the same experimental pipeline.
A number of limitations remain. The benchmark covers two tasks in one territory over one test year, so its findings hold in that protocol. Its fixed configuration also conditions the ranking of the operators, since the search run on 3 of them lowers the RMSE of APPNP by 122 MW and of GATConv by 27 MW and raises that of LEConv by 7 MW, and XGBoost receives a search over 10 configurations that the graph models do not. GraphToolbox is at version 0.3.1, and its public interface may still evolve. It targets homogeneous node-level graphs and therefore excludes heterogeneous graphs and point-cloud operators. The interpretability tools inherit the known caveats of attention-based and perturbation-based attribution, and Section 5 measures this limitation through an occlusion influence that varies across training seeds, so that we compare attention and influence using the mean over several training runs. The significance analysis conditions on a single training run per architecture, so its intervals and tests quantify variability over the test window and not across retraining. The seed study of Section 3 measures the second source separately, and the two would be better quantified jointly. The package ships with continuous integration and a test suite.
7 Conclusion¶
GraphToolbox unifies graph construction, architectural benchmarking, online aggregation and interpretability behind one configuration-driven interface on PyG. It supports 53 convolutional operators without modifying their implementations. In the controlled benchmark on French load, aggregation reaches 1.03% MAPE, while the identity-graph ablation isolates a smaller contribution from message passing, positive for 8 of the 10 operators. On net-load, the graph models have
a lower RMSE than the additive, recurrent and XGBoost baselines, and physical decomposition lowers it further. Pooled XGBoost given the same inputs has a lower RMSE than the best operator without a significant difference, and the significance analysis identifies no unique best architecture. A daily update lowers the 5-run mean RMSE of GatedGraphConv from 927 to 752 MW, and MinT reconciliation onto the pooled XGBoost forecast lowers that of its reported run from 881 to 747 MW. We release the package under GPL-3.0 with documentation and examples.
Reproducibility and disclosure¶
The source code, documentation, and the example notebooks underlying Section 5 are publicly available from the package page on the Python Package Index, https://pypi.org/project/Graph Toolbox/, and installable with pip, with a lock file fixing the interpreter and every library version, the random seeds pinned, and the hardware of the benchmarks stated. A reproducibility guide maps each result to its runner. We computed the forecasts in the tables with version 0.3.0, and the interpretability diagnostics, the reconciliations and the daily updates with version 0.3.1, whose training code is unchanged. The repository carries the script that fits every baseline of Table 6 and Table 7, and the cached forecasts of both sweeps and of the identity-graph ablation, so that a user can rerun the bootstrap, the Diebold–Mariano tests and the Model Confidence Set on stored predictions, and the trained weights come as a release asset. Since the tables report one fixed set of checkpoints, retraining a row reproduces it only up to the seed spread of Table 2. The French load and net-load data come from RTE open data Réseau de Transport d'Électricité RTE 2024 and Météo-France SYNOP observations Météo-France 2024, and cover January 2015 to December 2019 at half-hourly resolution over the 12 regions. The WEAVE-UK series of Table 3 come from the Weave platform, in the processed release of Campagne 2026. In Table 6, the persistence and Chronos-Bolt rows come from a prior study on the same data Campagne et al. 2025, and the two additive models from Campagne et al. 2026b, the national one fitted on the aggregate load and the regional one fitted per region and summed. The TAM rows of both tables come from the TAM package Allioux and Goude 2026, with the variables of the regional GAM and a temperature-weekend tensor, the regional model being selected over the national one on the 2018 validation year. We produced everything else for this paper with the scripts of the repository. E. Campagne designed the software and the experiments and wrote the manuscript. Y. Amara-Ouali, Y. Goude, and A. Kalogeratos contributed through review and supervision. The authors declare no competing interests.
Acknowledgment¶
The authors used Claude Opus 5.5 to assist with scripts for the experiments in Section 5, figuregeneration code, and language editing. All reported numerical results were checked against the corresponding output files. The authors take responsibility for the article's content.
References¶
Akiba T, Sano S, Yanase T, Ohta T, Koyama M (2019) Optuna: A next-generation hyperparameter optimization framework. ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, URL http: //dx.doi.org/10.1145/3292500.3330701.
Allioux Y, Goude Y (2026) TAM: Time series Additive Model (v1.5.0). Zenodo, https://doi.org/10.528 1/zenodo.23507593, URL http://dx.doi.org/10.5281/zenodo.23507593, with foundational WeaKL research by Nathan Doumèche, and tensorisation and adaptive model contributions by Éloi Bedek.
Ansari AF, Stella L, Turkmen C, Zhang X, Mercado P, Shen H, Shchur O, Rangapuram SS, Pineda Arango S, Kapoor S, et al. (2024) Chronos: Learning the language of time series. Trans. Mach. Learn. Res.
- Apley DW, Zhu J (2020) Visualizing the effects of predictor variables in black box supervised learning models. J. Roy. Statist. Soc. Ser. B 82(4):1059–1086.
- Bai J, Zhu J, Song Y, Zhao L, Hou Z, Du R, Li H (2021) A3T-GCN: Attention temporal graph convolutional network for traffic forecasting. ISPRS Int. J. Geo-Inf. 10(7):485.
- Bianchi FM, Grattarola D, Livi L, Alippi C (2022) Graph neural networks with convolutional ARMA filters. IEEE Trans. Pattern Anal. Mach. Intell. 44(7):3496–3507.
- Bresson X, Laurent T (2017) Residual gated graph ConvNets. Preprint arXiv:1711.07553.
- Brockschmidt M (2020) GNN-FiLM: Graph neural networks with feature-wise linear modulation. International Conference on Machine Learning.
- Brody S, Alon U, Yahav E (2022) How attentive are graph attention networks? International Conference on Learning Representations.
- Busbridge D, Sherburn D, Cavallo P, Hammerla NY (2019) Relational graph attention networks. Preprint arXiv:1904.05811.
- Campagne É (2026) Graph neural networks for electricity load forecasting. Zenodo dataset, https://doi.or g/10.5281/zenodo.21977576.
- Campagne E, Amara-Ouali Y, Goude Y, Kalogeratos A (2026a) Leveraging graph neural networks to forecast electricity consumption. Machine Learning and Principles and Practice of Knowledge Discovery in Databases, URL http://dx.doi.org/10.1007/978-3-032-25308-8\_22.
- Campagne E, Amara-Ouali Y, Goude Y, Zehavi I, Kalogeratos A (2025) Graph neural networks for electricity load forecasting. Preprint arXiv:2507.03690.
- Campagne E, Amara-Ouali Y, Goude Y, Zehavi I, Kalogeratos A (2026b) A diagnostic protocol for GNNs in electricity load forecasting: Separating parameter sharing from neighborhood access. Preprint arXiv:2610.35074.
- Cesa-Bianchi N, Lugosi G (2006) Prediction, Learning, and Games (Cambridge University Press).
- Chen M, Wei Z, Huang Z, Ding B, Li Y (2020) Simple and deep graph convolutional networks. International Conference on Machine Learning.
- Chen T, Guestrin C (2016) XGBoost: A scalable tree boosting system. ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, URL http://dx.doi.org/10.1145/2939672.2939785.
- Cini A, Marisca I (2022) Torch Spatiotemporal. https://github.com/TorchSpatiotemporal/tsl.
- Corso G, Cavalleri L, Beaini D, Liò P, Veličković P (2020) Principal neighbourhood aggregation for graph nets. Advances in Neural Information Processing Systems.
- de Vilmarest J, Browell J, Fasiolo M, Goude Y, Wintenberger O (2024) Adaptive probabilistic forecasting of electricity (net-) load. IEEE Trans. Power Syst. 39(2):4154–4163.
- Defferrard M, Bresson X, Vandergheynst P (2016) Convolutional neural networks on graphs with fast localized spectral filtering. Advances in Neural Information Processing Systems.
- Diebold FX, Mariano RS (1995) Comparing predictive accuracy. J. Bus. Econ. Statist. 13(3):253–263.
- Fasiolo M, Wood SN, Zaffran M, Nedellec R, Goude Y (2021) Fast calibrated additive quantile regression. J. Amer. Statist. Assoc. 116(535):1402–1412.
- Fey M, Lenssen JE (2019) Fast graph representation learning with PyTorch Geometric. ICLR Workshop on Representation Learning on Graphs and Manifolds.
- Gaillard P, Goude Y (2021) opera: Online prediction by expert aggregation. R package version 1.2.0, https: //CRAN.R-project.org/package=opera.
- Gaillard P, Stoltz G, Van Erven T (2014) A second-order bound with excess losses. Conference on Learning Theory.
- Gasteiger J, Bojchevski A, Günnemann S (2019) Predict then propagate: Graph neural networks meet personalized PageRank. International Conference on Learning Representations.
- Guo S, Lin Y, Feng N, Song C, Wan H (2019) Attention based spatial-temporal graph convolutional networks for traffic flow forecasting. AAAI Conference on Artificial Intelligence.
-
Hamilton W, Ying Z, Leskovec J (2017) Inductive representation learning on large graphs. Advances in Neural Information Processing Systems.
-
Hansen PR, Lunde A, Nason JM (2011) The model confidence set. Econometrica 79(2):453–497.
- Harvey D, Leybourne S, Newbold P (1997) Testing the equality of prediction mean squared errors. Int. J. Forecasting 13(2):281–291.
- Hochreiter S, Schmidhuber J (1997) Long short-term memory. Neural Comput. 9(8):1735–1780.
- Humbert P, Le Bars B, Oudre L, Kalogeratos A, Vayatis N (2021) Learning Laplacian matrix from graph signals with sparse spectral representation. J. Mach. Learn. Res. 22(195):1–47.
- Kim D, Oh A (2021) How to find your friendly neighborhood: Graph attention design with self-supervision. International Conference on Learning Representations.
- Kingma DP, Ba J (2015) Adam: A method for stochastic optimization. International Conference on Learning Representations.
- Kipf TN, Welling M (2017) Semi-supervised classification with graph convolutional networks. International Conference on Learning Representations.
- Künsch HR (1989) The jackknife and the bootstrap for general stationary observations. Ann. Statist. 17(3):1217– 1241.
- Li G, Müller M, Thabet A, Ghanem B (2019) DeepGCNs: Can GCNs go as deep as CNNs? IEEE/CVF International Conference on Computer Vision, URL http://dx.doi.org/10.1109/ICCV.2019.00936.
- Li G, Xiong C, Qian G, Thabet A, Ghanem B (2023) DeeperGCN: Training deeper GCNs with generalized aggregation functions. IEEE Trans. Pattern Anal. Mach. Intell. 45(11):13024–13034, URL http://dx.doi.o rg/10.1109/TPAMI.2023.3306930.
- Li Y, Tarlow D, Brockschmidt M, Zemel R (2016) Gated graph sequence neural networks. International Conference on Learning Representations.
- Li Y, Yu R, Shahabi C, Liu Y (2018) Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. International Conference on Learning Representations.
- Ma Z, Xuan J, Wang YG, Li M, Liò P (2020) Path integral based convolution and pooling for graph neural networks. Advances in Neural Information Processing Systems.
- Météo-France (2024) SYNOP observational weather data. https://donneespubliques.meteofrance.fr, ground weather station observations.
- Monti F, Boscaini D, Masci J, Rodolà E, Svoboda J, Bronstein MM (2017) Geometric deep learning on graphs and manifolds using mixture model CNNs. IEEE Conference on Computer Vision and Pattern Recognition.
- Newey WK, West KD (1987) A simple, positive semi-definite, heteroskedasticity and autocorrelation consistent covariance matrix. Econometrica 55(3):703–708.
- Obst D, de Vilmarest J, Goude Y (2021) Adaptive methods for short-term electricity load forecasting during COVID-19 lockdown in France. IEEE Trans. Power Syst. 36(5):4754–4763, URL http://dx.doi.org/10.11 09/TPWRS.2021.3067551.
- Oono K, Suzuki T (2020) Graph neural networks exponentially lose expressive power for node classification. International Conference on Learning Representations.
- Ranjan E, Sanyal S, Talukdar PP (2020) ASAP: Adaptive structure aware pooling for learning hierarchical graph representations. AAAI Conference on Artificial Intelligence, number 4, URL http://dx.doi.org/10. 1609/aaai.v34i04.5997.
- Réseau de Transport d'Électricité (RTE) (2024) éCO2mix: Open data on french electricity generation and consumption. https://www.rte-france.com/donnees-publications/eco2mix-donnees-temps-reel/ telecharger-indicateurs, regional half-hourly load and net-load data.
- Rozemberczki B, Scherer P, He Y, Panagopoulos G, Riedel A, Astefanoaei M, Kiss O, Beres F, López G, Collignon N, Sarkar R (2021) PyTorch Geometric Temporal: Spatiotemporal signal processing with neural machine learning models. ACM International Conference on Information and Knowledge Management.
- Salvador S, Chan P (2004) FastDTW: Toward accurate dynamic time warping in linear time and space. KDD Workshop on Mining Temporal and Sequential Data.
-
Schäfer J, Strimmer K (2005) A shrinkage approach to large-scale covariance matrix estimation and implications for functional genomics. Statist. Appl. Genet. Mol. Biol. 4(1):Article 32, URL http://dx.doi.org/10.2202 /1544-6115.1175.
-
Schlichtkrull M, Kipf TN, Bloem P, van den Berg R, Titov I, Welling M (2018) Modeling relational data with graph convolutional networks. European Semantic Web Conference.
- Seo Y, Defferrard M, Vandergheynst P, Bresson X (2018) Structured sequence modeling with graph convolutional recurrent networks. International Conference on Neural Information Processing, URL http: //dx.doi.org/10.1007/978-3-030-04167-0\_33.
- Shi Y, Huang Z, Feng S, Zhong H, Wang W, Sun Y (2021) Masked label prediction: Unified message passing model for semi-supervised classification. International Joint Conference on Artificial Intelligence.
- Veličković P, Cucurull G, Casanova A, Romero A, Liò P, Bengio Y (2018) Graph attention networks. International Conference on Learning Representations.
- Verma N, Boyer E, Verbeek J (2018) FeaStNet: Feature-steered graph convolutions for 3D shape analysis. IEEE/CVF Conference on Computer Vision and Pattern Recognition.
- Vovk VG (1990) Aggregating strategies. Annual Workshop on Computational Learning Theory.
- Wickramasuriya SL, Athanasopoulos G, Hyndman RJ (2019) Optimal forecast reconciliation for hierarchical and grouped time series through trace minimization. J. Amer. Statist. Assoc. 114(526):804–819, URL http://dx.doi.org/10.1080/01621459.2018.1448825.
- Wintenberger O (2017) Optimal learning with Bernstein online aggregation. Mach. Learn. 106(1):119–141, URL http://dx.doi.org/10.1007/s10994-016-5592-6.
- Wu F, Zhang T, de Souza AH, Fifty C, Yu T, Weinberger KQ (2019) Simplifying graph convolutional networks. International Conference on Machine Learning.
- Xu N, Kosma C, Vazirgiannis M (2024) TimeGNN: Temporal dynamic graph learning for time series forecasting. Complex Networks & Their Applications XII, 87–99, Studies in Computational Intelligence (Springer), URL http://dx.doi.org/10.1007/978-3-031-53468-3\_8.
- Ying Z, Bourgeois D, You J, Zitnik M, Leskovec J (2019) GNNExplainer: Generating explanations for graph neural networks. Advances in Neural Information Processing Systems.
- Zhao L, Song Y, Zhang C, Liu Y, Wang P, Lin T, Deng M, Li H (2020) T-GCN: A temporal graph convolutional network for traffic prediction. IEEE Trans. Intell. Transp. Syst. 21(9):3848–3858.
- Zhu H, Koniusz P (2021) Simple spectral graph convolution. International Conference on Learning Representations.