Mini-Batch Class Composition Bias in Link Prediction

Kieran Maguire, Srinandan Dasmahapatra
4/28/2026
cs.LGcs.AI
gnn

No confident code implementation found for this paper.

Abstract

Prior work on node classification has shown that Graph Neural Networks (GNNs) can learn representations that transfer across graphs, when underlying graph properties are shared. For a fixed graph, one would then expect GNNs trained for link prediction to learn a representation consistent with that learnt for node classification.

Show full abstract

We show this intuition does not hold in the general case. Instead, we find popular link prediction models can learn a trivial mini-batch dependent heuristic, enabled by batch-normalisation layers, to solve the edge classification task. When correcting for this, we observe increased alignment of the network representation with node-class relevant features, suggesting the network has learnt a graph representation that better aligns with the underlying graph's properties. Our findings suggest that standard link prediction training may be leading us to overestimate link predictors' ability to learn a generalised representation of a graph that is consistent across tasks.

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{maguire2026minibatch,
  title  = {Mini-Batch Class Composition Bias in Link Prediction},
  author = {Kieran Maguire and Srinandan Dasmahapatra},
  year   = {2026},
  eprint = {2604.25978},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.25978v1}
}

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

Discussion