SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2108.01099 · NeurIPS · 2021

Shift-Robust GNNs: Overcoming the Limitations of Localized Graph Training Data

Natalia Ponomareva, Qi Zhu, Jiawei Han, Bryan Perozzi

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run); 2 of them were also run on the host, not in the jail, by the peer-agreement lane that set their level, measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2108.01099.json · badge: /api/ran/2108.01099.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
gentlezhu/shift-robust-gnns canonical (classifier label)
classifier basis: classifier_2025
4 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_acc Ran
ran; our contract draft was wrong, not the code
gentlezhu/shift-robust-gnns/main_gnn.py
pointer only (licence: NONE) · get_code("a83401ad1b65df8d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gentlezhu/shift-robust-gnns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

l2diff Ran
ran; our contract draft was wrong, not the code
gentlezhu/shift-robust-gnns/main_gnn.py
pointer only (licence: NONE) · get_code("068341dbe8d5943b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gentlezhu/shift-robust-gnns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cmd Ran
ran; our contract draft was wrong, not the code
gentlezhu/shift-robust-gnns/toy_gnn.py
pointer only (licence: NONE) · get_code("b2d57a1e85430f2c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gentlezhu/shift-robust-gnns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pairwise_distances Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gentlezhu/shift-robust-gnns/toy_gnn.py
pointer only (licence: NONE) · get_code("449fa3a7ae8a84ad")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gentlezhu/shift-robust-gnns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

KMM Not yet run
unverified (harvested, no recorded run)
gentlezhu/shift-robust-gnns/toy_gnn.py
pointer only (licence: NONE) · get_code("55ef12fc8255746c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gentlezhu/shift-robust-gnns when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
pairwise_distances 5 other papers
4 dated earlier, 1 the same month
1812.07119 (2018-12)
Composing Text and Image for Image Retrieval - An Empirical Odyssey
1902.00640 (2019-02)
Particle Flow Bayes' Rule
2006.11149 (2020-06)
Compositional Learning of Image-Text Query for Image Retrieval
and 2 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

There has been a recent surge of interest in designing Graph Neural Networks (GNNs) for semi-supervised learning tasks. Unfortunately this work has assumed that the nodes labeled for use in training were selected uniformly at random (i.e. are an IID sample). However in many real world scenarios gathering labels for graph nodes is both expensive and inherently biased -so this assumption can not be met. GNNs can suffer poor generalization when this occurs, by overfitting to superfluous regularities present in the training data. In this work we present a method, Shift-Robust GNN (SR-GNN), designed to account for distributional differences between biased training data and a graph's true inference distribution. SR-GNN adapts GNN models to the presence of distributional shift between the nodes labeled for training and the rest of the dataset. We illustrate the effectiveness of SR-GNN in a variety of experiments with biased training datasets on common GNN benchmark datasets for semi-supervised learning, where we see that SR-GNN outperforms other GNN baselines in accuracy, addressing at least ∼40% of the negative effects introduced by biased training data. On the largest dataset we consider, ogb-arxiv, we observe a 2% absolute improvement over the baseline and are able to mitigate 30% of the negative effects from training data bias 1 . Recently, GNNs have emerged as a way to combine graph structure with deep neural networks. Surprisingly, most work on semi-supervised learning using GNNs for node classification [15,11,1] have ignored this critical problem, and even the most recently proposed GNN benchmarks [12] assume that an independent and identically distributed (IID) sample is possible for training labels.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2108.01099")
get_code_for_paper("2108.01099")
have("2108.01099")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2108.01099.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2108.01099.svg)](https://syntology.ai/paper/2108.01099)

Connect an agent — have() is free.