                                  Relational Conformal Prediction for Correlated Time Series



reweights past residuals by learning attention scores with a                       Table 2: Performance on GPVAR.

Modern Hopfield Network (Ramsauer et al., 2021). These

baselines are representative of the current state-of-the-art in                       GPVAR-RNN                   GPVAR-STGNN

CP for time series forecasting; in particular, SPCI (based             Models ∆Cov PI-Width Winkler ∆Cov PI-Width Winkler

on quantile regression) and HopCPT (based on reweighting)               SCP      -0.02     1.67      2.14     -0.02    1.32      1.66

are representative of the main recent paradigms. Note that a          C O RNN -0.1±0.2 1.63±0.01 2.04±0.00 0.0±0.0 1.32±0.00 1.66±0.00

comparison with non-post-hoc methods would be problem-

                                                                       C O R EL 0.0±0.1 1.33±0.00 1.67±0.00 0.1±0.1 1.32±0.01 1.66±0.00

atic, as results heavily depend on the base predictors being

                                                                      w/ true A -0.1±0.1 1.32±0.00 1.66±0.00 0.0±0.2 1.32±0.01 1.66±0.00

used. We also include in our comparison a model called

C O RNN, where we use the same architecture as C O R EL

but remove message-passing layers and node embeddings.

C O RNN is an ablation of the introduced designs. Except              from the auto-regressive polynomial graph filter:

for HopCPT, which uses a custom procedure (Auer et al.,

2023), model selection is performed on a validation set by

                                                                                     Q

                                                                                   L X

optimizing the Winkler score.                                                      X

                                                                           Ht =              Θq,l Al−1 Xt−q ,

                                                                                   l=1 q=1

Results Tab. 1 reports the results across the datasets and               Xt+1 = a ⊙ tanh (Ht ) + b ⊙ tanh (Xt−1 ) + ηt ,           (19)

the base prediction models. The first observation is that

C O R EL outperforms the competitors in terms of Winkler

score in almost all cases. We observed a few exceptions               where parameters Θ ∈ RQ×L , a ∈ R, b ∈ R are kept fixed

only when the baseline is itself an STGNN, as it is already           across nodes and ηt ∼ N (0, σ 2 I) with σ = 0.4. We ran

expected to take care of modeling spatiotemporal dependen-            the simulation on a graph with 60 nodes and with a topol-

cies. However, note that the STGNN base model has access              ogy analogous to previous works (Cini et al., 2023b); more

to a pre-defined graph, which is not always available in prac-        details are provided in App. C. We use both a RNN and

tical applications. In terms of coverage, C O R EL achieves           STGNN as base point predictors. As shown by Zambon and

good results, with the exception of some cases in the CER-E           Alippi (2022), STGNNs can obtain a forecasting accuracy

dataset. However, we note that our model selection pri-               near the theoretical optimum in this dataset, which results

oritized the Winkler score which emphasizes the width of              in uncorrelated residuals. As such, we would expect stan-

the prediction bands besides the coverage. C O RNN, the               dard SCP to be sufficient when using an STGNN as base

simplified version of our approach, obtains good overall              model. The objective of this experiment is to show that

performance and is competitive against the state-of-the-art           C O R EL is effectively able to capture and leverage existing

but, despite providing good coverage, it is outperformed by           spatiotemporal dependencies.

C O R EL in most scenarios in terms of Winkler score. Among

the competitors, HopCPT provides competitive results in

METR-LA and CER-E but with a larger coverage gap. Ex-                 Results We compare C O R EL against standard SCP and

cept for SeqCP, the other baselines obtain good coverage in           the C O RNN variant. Moreover, we also compare perfor-

most settings at the expense of drastically wider PIs. Re-            mance against C O R EL with access to the true graph used

garding computational scalability, note that C O R EL shares          to generate the data. Results are shown in Tab. 2. When

most of the learnable parameters among time series and that           using an RNN as a point predictor (GPVAR-RNN) C O R EL

its training can be efficiently parallelized on a GPU. Further-       significantly outperforms both standard SCP and C O RNN.

more, besides learnable node embeddings V , C O R EL relies           Furthermore, C O R EL achieves results that closely match

only on a short window of the most recent observations as an          those obtained with direct access to the ground truth graph,

input at each time step. Conversely, SPCI requires training           which shows the effectiveness of the proposed architecture

a different model for each time series, and HopCPT requires           in capturing latent relational dependencies. Note that, given

computing attention scores w.r.t. the entire calibration set at       the injected Gaussian noise with σ = 0.4, the theoretical

each time step.                                                       optimum PI width to obtain (asymptotically) 90% marginal

                                                                      coverage is 1.315. C O R EL achieves essentially perfect cov-

5.2. Controlled Environment                                           erage with PI width close to the theoretical optimum, while

                                                                      C O RNN requires a substantially higher PI width to ob-

We evaluated the behavior of C O R EL in a controlled envi-           tain similar coverage. Finally, results obtained by using an

ronment by simulating a diffusion process on a graph. In              STGNN as baseline (GPVAR-STGNN) show (as expected)

particular, the experiment relied on the GPVAR benchmark              that the standard SCP is sufficient when the point-predictor

introduced by Zambon and Alippi (2022), with a setup analo-           captures all the relevant dependencies. We provide a visual-

gous to (Cini et al., 2023b). Data were generated recursively         ization of the learned graph in App. G.1.



                                                                  8

