Papers › Graph as Point Set

Graph as Point Set

5 May 2024arXiv:2405.02795archive 2025-07-28

Xiyuan Wang, Pan Li, Muhan Zhang

Graph is a fundamental data structure to model interconnections between entities. Set, on the contrary, stores independent elements. To learn graph representations, current Graph Neural Networks (GNNs) primarily use message passing to encode the interconnections. In contrast, this paper introduces a novel graph-to-set conversion method that bijectively transforms interconnected nodes into a set of independent points and then uses a set encoder to learn the graph representation. This conversion method holds dual significance. Firstly, it enables using set encoders to learn from graphs, thereby significantly expanding the design space of GNNs. Secondly, for Transformer, a specific set encoder, we provide a novel and principled approach to inject graph information losslessly, different from all the heuristic structural/positional encoding methods adopted in previous graph transformers. To demonstrate the effectiveness of our approach, we introduce Point Set Transformer (PST), a transformer architecture that accepts a point set converted from a graph as input. Theoretically, PST exhibits superior expressivity for both short-range substructure counting and long-range shortest path distance tasks compared to existing GNNs. Extensive experiments further validate PST's outstanding real-world performance. Besides Transformer, we also devise a Deepset-based set encoder, which achieves performance comparable to representative GNNs, affirming the versatility of our graph-to-set method.

PaperPDFCodeCode 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="2405.02795")

Code

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

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

GraphPKU/GraphAsSet officialmentioned on GitHubpytorch 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

27 samples harvested; 20 ran; 1 honoured the contract we drafted; 7 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.

1ran · honoured contract
4ran · our draft was wrong
15ran
7unverified

Licence: 27 of the 27 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 GraphPKU/GraphAsSet. “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.

BatchNorm GraphPKU/GraphAsSet/PST.py official repository ran no licence file found · pointer only · 940703b780d57034 · report
DirCFConv GraphPKU/GraphAsSet/PST.py official repository ran no licence file found · pointer only · 227dca0b1ddd8a86 · report
GaussianGaussian GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · c743aa96864dc381 · report
GaussianSmearing GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · a23408f1e809e4da · report
IdEncoding GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · f9c8f5c4b824c8c5 · report
InstanceNorm GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · e4a9148d065dfe3f · report
LayerNorm GraphPKU/GraphAsSet/PST.py official repository ran no licence file found · pointer only · 1de67bb52895024c · report
MLP GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · b63c020d3cb4419d · report
MLPEncoding GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · a669c0ab6a140900 · report
MultiEmbedding GraphPKU/GraphAsSet/PST.py official repository ran no licence file found · pointer only · 09974265ed73cca2 · report
NoneNorm GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · f9b995922ba2b15d · report
Set2Vec GraphPKU/GraphAsSet/PST.py official repository ran no licence file found · pointer only · 4ecd1c09b35d2866 · report
SinEncoding GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · 2ca2fc1fb0f470ef · report
VMean GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · 671376fabd3398eb · report
VNorm GraphPKU/GraphAsSet/PST.py official repository ran fingerprinted no licence file found · pointer only · c25b516cf38d203b · report
createemb GraphPKU/GraphAsSet/PST.py official repository ran · our draft was wrong no licence file found · pointer only · b4ea68a7c46241fb · report
maskedMax GraphPKU/GraphAsSet/PST.py official repository ran · our draft was wrong no licence file found · pointer only · 7fc5dce859b3a9ed · report
maskedMean GraphPKU/GraphAsSet/PST.py official repository ran · our draft was wrong no licence file found · pointer only · d6cc090e909513c3 · report
maskedSum GraphPKU/GraphAsSet/PST.py official repository ran · our draft was wrong no licence file found · pointer only · eadfb092195ff0c6 · report
maskednone GraphPKU/GraphAsSet/PST.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 8575a32db62b46c6 · report
Imod GraphPKU/GraphAsSet/PST.py official repository unverified no licence file found · pointer only · b81dc93e9346681b · report
PST GraphPKU/GraphAsSet/PST.py official repository unverified no licence file found · pointer only · c793a8c825a61eb6 · report
PermEquiLayer GraphPKU/GraphAsSet/PST.py official repository unverified no licence file found · pointer only · 71379d4107f0e6eb · report
QInputEncoder GraphPKU/GraphAsSet/PST.py official repository unverified no licence file found · pointer only · f104731798499118 · report
Set2Set GraphPKU/GraphAsSet/PST.py official repository unverified no licence file found · pointer only · 7d53b92370ae668a · report
sv2el GraphPKU/GraphAsSet/PST.py official repository unverified no licence file found · pointer only · 73e5dc6a7e9a564f · report
svMix GraphPKU/GraphAsSet/PST.py official repository unverified no licence file found · pointer only · 0f3d8abf4d3866c5 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSETSet TransformerSoftmaxTransformer

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