In-n-Out: Calibrating Graph Neural Networks for Link Prediction

Erik Nascimento, Diego Mesquita, Samuel Kaski, Amauri H Souza
3/7/2024
cs.LG

No confident code implementation found for this paper.

Abstract

Deep neural networks are notoriously miscalibrated, i.e., their outputs do not reflect the true probability of the event we aim to predict. While networks for tabular or image data are usually overconfident, recent works have shown that graph neural networks (GNNs) show the opposite behavior for node-level classification. But what happens when we are predicting links? We show that, in this case, GNNs often exhibit a mixed behavior. More specifically, they may be overconfident in negative predictions while being underconfident in positive ones. Based on this observation, we propose IN-N-OUT, the first-ever method to calibrate GNNs for link prediction. IN-N-OUT is based on two simple intuitions: i) attributing true/false labels to an edge while respecting a GNNs prediction should cause but small fluctuations in that edge's embedding; and, conversely, ii) if we label that same edge contradicting our GNN, embeddings should change more substantially. An extensive experimental campaign shows that IN-N-OUT significantly improves the calibration of GNNs in link prediction, consistently outperforming the baselines available -- which are not designed for this specific task.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{nascimento2024innout,
  title  = {In-n-Out: Calibrating Graph Neural Networks for Link Prediction},
  author = {Erik Nascimento and Diego Mesquita and Samuel Kaski and Amauri H Souza},
  year   = {2024},
  eprint = {2403.04605},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.04605v2}
}

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/2403.04605.svg)](https://codeofpaper.com/paper/2403.04605)

Discussion