Valid Conformal Prediction for Dynamic GNNs

Ed Davis, Ian Gallagher, Daniel John Lawson, Patrick Rubin-Delanchy
5/29/2024
stat.MLcs.LG

No official code found. Best implementation: edwarddavis1/valid_conformal_for_dynamic_gnn (3 stars, last commit 2025-04-18).

Abstract

Dynamic graphs provide a flexible data abstraction for modelling many sorts of real-world systems, such as transport, trade, and social networks. Graph neural networks (GNNs) are powerful tools allowing for different kinds of prediction and inference on these systems, but getting a handle on uncertainty, especially in dynamic settings, is a challenging problem. In this work we propose to use a dynamic graph representation known in the tensor literature as the unfolding, to achieve valid prediction sets via conformal prediction. This representation, a simple graph, can be input to any standard GNN and does not require any modification to existing GNN architectures or conformal prediction routines. One of our key contributions is a careful mathematical consideration of the different inference scenarios which can arise in a dynamic graph modelling context. For a range of practically relevant cases, we obtain valid prediction sets with almost no assumptions, even dispensing with exchangeability. In a more challenging scenario, which we call the semi-inductive regime, we achieve valid prediction under stronger assumptions, akin to stationarity. We provide real data examples demonstrating validity, showing improved accuracy over baselines, and sign-posting different failure modes which can occur when those assumptions are violated.

View on arXivView PDF

Code Implementations(1)

30Shell, PythonMay 28, 20241 years ago

Similar Papers

Cite this paper

@article{davis2024valid,
  title  = {Valid Conformal Prediction for Dynamic GNNs},
  author = {Ed Davis and Ian Gallagher and Daniel John Lawson and Patrick Rubin-Delanchy},
  year   = {2024},
  eprint = {2405.19230},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.19230v2},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.19230.svg)](https://codeofpaper.com/paper/2405.19230)

Discussion