Graph as Point Set
Abstract
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.
Benchmark Results
Tested on 1 dataset
Tables show presented results in global context (best 3 papers + GCN + MLP).
Classic
| # | Model | MAE ↓ | Paper |
|---|---|---|---|
| 1 | TIGT | 0.0140
±0.0010 | |
| 2 | FloydNet | 0.0160 | |
| 3 | GSSC | 0.0190
±0.0010 | |
| 7 | CIN | 0.0210
±0.0010 best reported | best at pub: CIN++: Enhancing Topological Message Passing (2023) Difference within reported uncertainty; not counted as underperformance. |
| 10 | SSWL+ | 0.0220
±0.0020 | This paper |
| 11 | GRIT | 0.0230
±0.0010 best reported | best at pub: Enhancing Graph Neural Networks with Quantum Computed Encodings (2023) best today: What Can We Learn from State Space Models for Machine Learning on Graphs? (2024) Difference within reported uncertainty; not counted as underperformance. |
| 21 | SUN | 0.0240
±0.0030 | This paper |
| 19 | SignNet | 0.0240
±0.0030 | This paper |
| 24 | DRFWL | 0.0250
±0.0030 | This paper |
| 22 | Graphormer | 0.0250 best reported | best at pub: Enhancing Graph Neural Networks with Quantum Computed Encodings (2023) best today: FloydNet: A Learning Paradigm for Global Relational Reasoning (2026) |
| 33 | ESAN | 0.0290
±0.0030 | This paper |
| 31 | NGNN | 0.0290
±0.0010 | This paper |
| 61 | PST | 0.0630
±0.0030 | This paper |
| 69 | GIN | 0.0880
±0.0020 | |
| 86 | PSDS | 0.1620
±0.0070 | This paper |
