Khaos Link Prediction

A graph convolutional network that gives the probability that a candidate pair of nodes is connected, for recommending missing links in citation, page-link and social graphs.

graph_link_prediction v1, from Khaos (a local-first library of pre-trained models for domain-specific tasks). This is the first release of the artifact.

Model

  • Architecture: LinkPredictor: 3 graph-convolution layers (hidden 128) and an MLP on the product and absolute difference of node embeddings
  • Parameters: 74,369
  • Format: ONNX (model.onnx) plus PyTorch weights (model.pt) and manifest.json
  • Training data: fletxcher/khaos-graph_link_prediction

Results

Measured on the held-out test split of the training dataset.

Metric Value
auroc_cora 0.8655
auroc_ogbn_arxiv 0.8761
auroc_pubmed 0.8622
auroc_reddit 0.9198
auroc_tolokers 0.8734
auroc_wikics 0.9213
auroc_wikipedia_chameleon 0.9438
auroc_wikipedia_crocodile 0.9381
auroc_citeseer 0.8153
auroc_weibo 0.8805
auroc_wikipedia_squirrel 0.9305
mean_auroc_seen 0.9000
mean_auroc_unseen 0.8754

Link prediction

AUROC and average precision per graph, against the Adamic-Adar heuristic computed from the visible edges.

Split Graph AUROC AP Adamic-Adar AUROC
test cora 0.865 0.882 0.621
test ogbn_arxiv 0.876 0.880 0.713
test pubmed 0.862 0.866 0.581
test reddit 0.920 0.923 0.329
test tolokers 0.873 0.874 0.800
test wikics 0.921 0.923 0.762
test wikipedia_chameleon 0.944 0.937 0.746
test wikipedia_crocodile 0.938 0.929 0.684
test_unseen_graph citeseer 0.815 0.817 0.627
test_unseen_graph weibo 0.880 0.864 0.841
test_unseen_graph wikipedia_squirrel 0.930 0.925 0.777

Training

{
  "epochs": 40,
  "batch": 32,
  "lr": 0.001,
  "architecture": "LinkPredictor"
}

Best epoch 12, trained in 1.3 minutes on a single consumer GPU (RTX 3050 8 GB).

Intended use

Ranking candidate links in a subgraph of at most about 64 nodes.

Limitations

  • Trained against uniformly random negatives, which are easier than real candidate sets.
  • Subgraph context only: no global graph information.

Usage

pip install khaos
khaos serve ./graph_link_prediction

License

This model was trained on data with research-only, share-alike or mixed terms (see the training dataset card for each source). Treat it as research use and check the upstream data licenses before any commercial use.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support