Mini-Batch Class Composition Bias in Link Prediction

· Source: cs.LG updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, long

Summary

A new analysis reveals that popular Graph Neural Network (GNN) models for link prediction, including BUDDY, ELPH, NEOGNN, NCN, GCN, and GraphSAGE, can learn a "trivial mini-batch dependent heuristic" due to batch normalization layers. This heuristic, enabled by the common practice of constructing mini-batches with approximately equal positive and negative edges, allows models to achieve high link prediction performance without learning robust, node-class relevant features. The study demonstrates that when this bias is corrected by randomizing the fraction of positive and negative edges per mini-batch, link prediction performance decreases, but the network's internal representations show increased alignment with node-class relevant features. This suggests that standard link prediction evaluations may overestimate a model's ability to learn generalized graph representations consistent across tasks.

Key takeaway

For research scientists developing or evaluating GNNs for link prediction, you should critically assess your mini-batching strategies. If your training uses fixed positive/negative edge ratios, your models might be learning superficial batch-dependent heuristics rather than robust graph representations. Implement bias-corrected mini-batching with randomized edge class proportions to ensure your models learn features that genuinely align with underlying graph properties and are more transferable across tasks.

Key insights

Batch normalization in GNNs for link prediction can create a mini-batch composition bias, hindering learning of true graph properties.

Principles

Method

Randomize the proportion of positive and negative edges within each mini-batch during training. This prevents models from exploiting fixed batch class distributions as a heuristic, encouraging learning of more robust features.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.