Papers › Graph Neural Networks with Learnable Structural and Positional Representations

Graph Neural Networks with Learnable Structural and Positional Representations

15 Oct 2021ICLR 2022 4arXiv:2110.07875archive 2025-07-28

Vijay Prakash Dwivedi, Anh Tuan Luu, Thomas Laurent, Yoshua Bengio, Xavier Bresson

Graph neural networks (GNNs) have become the standard learning architectures for graphs. GNNs have been applied to numerous domains ranging from quantum chemistry, recommender systems to knowledge graphs and natural language processing. A major issue with arbitrary graphs is the absence of canonical positional information of nodes, which decreases the representation power of GNNs to distinguish e.g. isomorphic nodes and other graph symmetries. An approach to tackle this issue is to introduce Positional Encoding (PE) of nodes, and inject it into the input layer, like in Transformers. Possible graph PE are Laplacian eigenvectors. In this work, we propose to decouple structural and positional representations to make easy for the network to learn these two essential properties. We introduce a novel generic architecture which we call LSPE (Learnable Structural and Positional Encodings). We investigate several sparse and fully-connected (Transformer-like) GNNs, and observe a performance increase for molecular datasets, from 1.79% up to 64.14% when considering learnable PE for both GNN classes.

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="2110.07875")

Code

Syntology Ran 6 of 7 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 4 ran · our draft was wrong; 2 ran with no contract checked.

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

vijaydwivedi75/gnn-lspe 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

7 samples harvested; 6 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
2ran
1unverified

Licence: 0 of the 7 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 vijaydwivedi75/gnn-lspe. “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.

aggregate_max vijaydwivedi75/gnn-lspe/layers/pna_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 0cb93154c335108f · report
aggregate_mean vijaydwivedi75/gnn-lspe/layers/pna_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b19d1fdc25bad3bd · report
aggregate_min vijaydwivedi75/gnn-lspe/layers/pna_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · ff879af48e34176e · report
gpu_setup vijaydwivedi75/gnn-lspe/main_OGBMOL_graph_classification.py official repository ran · our draft was wrong MIT (permissive) · f72434c0dcd5d11b · report
imp_exp_attn vijaydwivedi75/gnn-lspe/layers/graphit_gt_lspe_layer.py official repository ran MIT (permissive) · 700de849477f93ce · report
scaling vijaydwivedi75/gnn-lspe/layers/graphit_gt_lspe_layer.py official repository ran MIT (permissive) · a3fb87a259b15eae · report
src_dot_dst vijaydwivedi75/gnn-lspe/layers/graphit_gt_lspe_layer.py official repository unverified MIT (permissive) · 9408c2ca6e799410 · report

Tasks

Graph RegressionKnowledge GraphsRecommendation Systems

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Graph Regression ZINC-500k GatedGCN-LSPE MAE 0.090 #18 of 36 Archive leaderboard report
Graph Regression ZINC-500k PNA-LSPE MAE 0.095 #20 of 36 Archive leaderboard report
Graph Regression ZINC-500k SAN-LSPE MAE 0.104 #23 of 36 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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