Papers › GraphFormers: GNN-nested Transformers for Representation Learning on Textual Graph

GraphFormers: GNN-nested Transformers for Representation Learning on Textual Graph

6 May 2021NeurIPS 2021 12arXiv:2105.02605archive 2025-07-28

Junhan Yang, Zheng Liu, Shitao Xiao, Chaozhuo Li, Defu Lian, Sanjay Agrawal, Amit Singh, Guangzhong Sun, Xing Xie

The representation learning on textual graph is to generate low-dimensional embeddings for the nodes based on the individual textual features and the neighbourhood information. Recent breakthroughs on pretrained language models and graph neural networks push forward the development of corresponding techniques. The existing works mainly rely on the cascaded model architecture: the textual features of nodes are independently encoded by language models at first; the textual embeddings are aggregated by graph neural networks afterwards. However, the above architecture is limited due to the independent modeling of textual features. In this work, we propose GraphFormers, where layerwise GNN components are nested alongside the transformer blocks of language models. With the proposed architecture, the text encoding and the graph aggregation are fused into an iterative workflow, {making} each node's semantic accurately comprehended from the global perspective. In addition, a {progressive} learning strategy is introduced, where the model is successively trained on manipulated data and original data to reinforce its capability of integrating information on graph. Extensive evaluations are conducted on three large-scale benchmark datasets, where GraphFormers outperform the SOTA baselines with comparable running efficiency.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2105.02605")

Code

Syntology Ran 5 of 10 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 2 ran · our draft was wrong.

By repository: official repository: 10 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

microsoft/graphformers officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 5 ran; 2 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · violated contract
2ran · our draft was wrong
5unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from microsoft/GraphFormers. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

swish microsoft/GraphFormers/src/models/tnlrv3/modeling_decoding.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 0f786c407fb1ee4c · report
acc microsoft/GraphFormers/src/utils.py official repository ran · honoured contract fingerprinted MIT (permissive) · 5f6cca96082d0328 · report
dcg_score microsoft/GraphFormers/src/utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 43e79e8e0904d5d8 · report
gelu microsoft/GraphFormers/src/models/tnlrv3/modeling_decoding.py official repository ran · honoured contract fingerprinted MIT (permissive) · 40e9fee2e0b7e278 · report
str2bool microsoft/GraphFormers/src/utils.py official repository ran · violated contract MIT (permissive) · 7c508037b40522af · report
batch_list_to_batch_tensors microsoft/GraphFormers/src/models/tnlrv3/s2s_loader.py official repository unverified MIT (permissive) · 0185bc550948bb9e · report
create_mask_and_position_ids microsoft/GraphFormers/src/models/tnlrv3/modeling.py official repository unverified MIT (permissive) · 3c1f5f7bfb4716fa · report
get_random_word microsoft/GraphFormers/src/models/tnlrv3/s2s_loader.py official repository unverified MIT (permissive) · 8321d846789e75f1 · report
load_model microsoft/GraphFormers/src/models/tnlrv3/convert_state_dict.py official repository unverified MIT (permissive) · 91d5980aeafe04e4 · report
relative_position_bucket microsoft/GraphFormers/src/models/tnlrv3/modeling.py official repository unverified MIT (permissive) · 0fa0e6d25bc5b48e · report

Tasks

Language ModellingRecommendation SystemsRepresentation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections