SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.15520 · 2024

GTC: GNN-Transformer Co-contrastive Learning for Self-supervised Heterogeneous Graph Representation

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 2 no recorded run), 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/2403.15520.json · badge: /api/ran/2403.15520.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
phd-lanyu/gtc canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran, honoured the contract we drafted
phd-lanyu/gtc/code/self_tools/adj_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from TianxiangZhao/GraphSmote, is pointer only (licence: NONE) · get_code("18557871f0c93b3f")
How it ran

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

encode_onehot Ran
ran, honoured the contract we drafted
phd-lanyu/gtc/code/self_tools/data_tools.py
pointer only (licence: NONE); the stored copy get_code serves, from zxlearningdeep/InfoMGF, is pointer only (licence: NONE) · get_code("6c897974e5ceb4aa")
How it ran

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

gelu Ran
ran, honoured the contract we drafted
phd-lanyu/gtc/code/module/transformer_model.py
pointer only (licence: NONE); the stored copy get_code serves, from dongqifu/vcr-graphormer, is pointer only (licence: NONE) · get_code("be4a5b4fd2623b72")
How it ran

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

normalize_adj Ran
ran; our contract draft was wrong, not the code
phd-lanyu/gtc/code/self_tools/data_tools.py
pointer only (licence: NONE); the stored copy get_code serves, from songw-sw/x-fnc, is pointer only (licence: NONE) · get_code("21b0199200507ff0")
How it ran

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

normalize_features Ran
ran; our contract draft was wrong, not the code
phd-lanyu/gtc/code/self_tools/adj_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from WtaoZhao/GraphGLOW, is pointer only (licence: NONE) · get_code("39cba20da9f36113")
How it ran

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

preprocess_features Ran
ran, honoured the contract we drafted
phd-lanyu/gtc/code/self_tools/data_tools.py
pointer only (licence: NONE) · get_code("2c7fd193a4fb9c0f")
How it ran

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

evaluate_for_train Not yet run
unverified (harvested, no recorded run)
phd-lanyu/gtc/code/self_tools/evaluate.py
pointer only (licence: NONE) · get_code("f7de1237352ed49b")
How it ran

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

normalize_adj Not yet run
unverified (harvested, no recorded run)
phd-lanyu/gtc/code/self_tools/adj_utils.py
pointer only (licence: NONE) · get_code("65d2b8adf7c40867")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, phd-lanyu/gtc 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 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, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 6 later) and 1 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
gelu 17 other papers
12 dated earlier, 1 the same month, 3 later, 1 same year, order not determinable
1905.12790 (2019-05)
A Generalized Framework of Sequence Generation with Application to Undirected Sequence Models
1906.08237 (2019-06)
XLNet: Generalized Autoregressive Pretraining for Language Understanding
1909.05311 (2019-09)
Graph-Based Reasoning over Heterogeneous External Knowledge for Commonsense Question Answering
and 14 more not named here
accuracy 14 other papers
13 dated earlier, 1 later
1902.07153 (2019-02)
Simplifying Graph Convolutional Networks
1905.09550 (2019-05)
Revisiting Graph Neural Networks: All We Have is Low-Pass Filters
2002.07128 (2020-02)
Disease State Prediction From Single-Cell Data Using Graph Attention Networks
and 11 more not named here
normalize_adj 14 other papers
13 dated earlier, 1 later
1812.00971 (2018-12)
Learning to Learn How to Learn: Self-Adaptive Visual Navigation Using Meta-Learning
2003.06749 (2020-03)
Learning hierarchical relationships for object-goal navigation
2104.09807 (2021-04)
Visual Navigation with Spatial Attention
and 11 more not named here
normalize_features 4 other papers
3 dated earlier, 1 later
2009.13603 (2020-09)
Visual Pivoting for (Unsupervised) Entity Alignment
2112.14438 (2021-12)
Deformable Graph Convolutional Networks
2209.00891 (2022-09)
Multi-modal Contrastive Representation Learning for Entity Alignment
and 1 more not named here
encode_onehot 3 other papers
2 later, 1 same year, order not determinable
aaai_29668 (2024 (year only))
Robust Node Classification on Graph Data with Graph and Label Noise
2407.16863 (2024-07)
Balanced Multi-Relational Graph Clustering
2409.17386 (2024-09)
Beyond Redundancy: Information-aware Unsupervised Multiplex Graph Structure Learning
preprocess_features 3 other papers
1 dated earlier, 2 later
2312.14066 (2023-12)
Upper Bounding Barlow Twins: A Novel Filter for Multi-Relational Clustering
2407.16863 (2024-07)
Balanced Multi-Relational Graph Clustering
2410.14886 (2024-10)
Zero-shot Generalist Graph Anomaly Detection with Unified Neighborhood Prompts
normalize_adj 1 other paper
1 dated earlier
2305.18457 (2023-05)
Learning Strong Graph Neural Networks with Weak Information

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

Graph Neural Networks (GNNs) have emerged as the most powerful weapon for various graph tasks due to the message-passing mechanism's great local information aggregation ability. However, over-smoothing has always hindered GNNs from going deeper and capturing multi-hop neighbors. Unlike GNNs, Transformers can model global information and multi-hop interactions via multi-head self-attention and a proper Transformer structure can show more immunity to the over-smoothing problem. So, can we propose a novel framework to combine GNN and Transformer, integrating both GNN's local information aggregation and Transformer's global information modeling ability to eliminate the over-smoothing problem? To realize this, this paper proposes a collaborative learning scheme for GNN-Transformer and constructs GTC architecture. GTC leverages the GNN and Transformer branch to encode node information from different views respectively, and establishes contrastive learning tasks based on the encoded cross-view information to realize self-supervised heterogeneous graph representation. For the Transformer branch, we propose Metapath-aware Hop2Token and CG-Hetphormer, which can cooperate with GNN to attentively encode neighborhood information from different levels. As far as we know, this is the first attempt in the field of graph representation learning to utilize both GNN and Transformer to collaboratively capture different view information and conduct cross-view contrastive learning. The experiments on real datasets show that GTC exhibits superior performance compared with state-of-the-art methods. Codes can be available at https://github.com/PHD-lanyu/GTC.

For agents

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

get_harvested_code_for_paper("2403.15520")
get_code_for_paper("2403.15520")
have("2403.15520")

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

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

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

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

Connect an agent — have() is free.