SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.17394 · 2023

PSP: Pre-Training and Structure Prompt Tuning for Graph Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2310.17394.json · badge: /api/ran/2310.17394.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
gqq1210/psp canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_abmae Ran
ran, honoured the contract we drafted
gqq1210/psp/PSP_node/utils.py
pointer only (licence: NONE) · get_code("c97e70c963420d2c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gqq1210/psp 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.

compute_mae Ran
ran, violated the contract we drafted
gqq1210/psp/PSP_node/utils.py
pointer only (licence: NONE) · get_code("0e3120ea9f280401")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gqq1210/psp 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.

index2mask Ran
ran; our contract draft was wrong, not the code
gqq1210/psp/PSP_graph/utils.py
pointer only (licence: NONE) · get_code("77707dee73264190")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gqq1210/psp 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.

mask_select_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gqq1210/psp/PSP_graph/utils.py
pointer only (licence: NONE) · get_code("7c196fe6327b70d4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gqq1210/psp 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.

moco Ran
ran; our contract draft was wrong, not the code
gqq1210/psp/PSP_graph/gcn.py
pointer only (licence: NONE) · get_code("22169d5fb6b00432")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gqq1210/psp 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.

parse_index_file Ran
ran, honoured the contract we drafted
gqq1210/psp/PSP_graph/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from DSL-Lab/Specformer, is pointer only (licence: GPL-3.0) · get_code("c1d6392f89c5e495")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gqq1210/psp 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.

pre_train Ran
ran; our contract draft was wrong, not the code
gqq1210/psp/PSP_graph/prompt_layer.py
pointer only (licence: NONE) · get_code("7b4f240b0253de27")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gqq1210/psp 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.

pre_train Ran
ran; our contract draft was wrong, not the code
gqq1210/psp/PSP_node/prompt_layer.py
pointer only (licence: NONE) · get_code("45f92c4d959958ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gqq1210/psp 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.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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, 1 later) and 7 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
parse_index_file 53 other papers
45 dated earlier, 1 the same month, 7 later · 1 only as an assembly brick
1603.08861 (2016-03)
Revisiting Semi-Supervised Learning with Graph Embeddings
1611.07308 (2016-11)
Variational Graph Auto-Encoders
1710.10568 (2017-10)
Stochastic Training of Graph Convolutional Networks with Variance Reduction
and 50 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-23.

Repositories linked to this paper

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

Abstract

Graph Neural Networks (GNNs) are powerful in learning semantics of graph data. Recently, a new paradigm "pre-train and prompt" has shown promising results in adapting GNNs to various tasks with less supervised data. The success of such paradigm can be attributed to the more consistent objectives of pre-training and task-oriented prompt tuning, where the pre-trained knowledge can be effectively transferred to downstream tasks. Most existing methods are based on the class prototype vector framework. However, in the few-shot scenarios, given few labeled data, class prototype vectors are difficult to be accurately constructed or learned. Meanwhile, the structure information of graph is usually exploited during pre-training for learning node representations, while neglected in the prompt tuning stage for learning more accurate prototype vectors. In addition, they generally ignore the impact of heterophilous neighborhoods on node representation and are not suitable for heterophilous graphs. To bridge these gaps, we propose a novel pre-training and structure prompt tuning framework for GNNs, namely PSP, which consistently exploits structure information in both pre-training and prompt tuning stages. In particular, PSP 1) employs a dual-view contrastive learning to align the latent semantic spaces of node attributes and graph structure, and 2) incorporates structure information in prompted graph to construct more accurate prototype vectors and elicit more pre-trained knowledge in prompt tuning. We conduct extensive experiments on node classification and graph classification tasks to evaluate the effectiveness of PSP. We show that PSP can lead to superior performance in few-shot scenarios on both homophilous and heterophilous graphs. The implemented code is available at https://github.com/gqq1210/PSP.

For agents

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

get_harvested_code_for_paper("2310.17394")
get_code_for_paper("2310.17394")
have("2310.17394")

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

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

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

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

Connect an agent — have() is free.