Improving Graph Neural Networks on Multi-node Tasks with the Labeling Trick
Not on the map. Why?
Abstract (arXiv)
In this paper, we study using graph neural networks (GNNs) for textitmulti-node representation learning, where a representation for a set of more than one node (such as a link) is to be learned. Existing GNNs are mainly designed to learn single-node representations. When used for multi-node representation learning, a common practice is to directly aggregate the single-node representations obtained by a GNN. In this paper, we show a fundamental limitation of such an approach, namely the inability to capture the dependence among multiple nodes in the node set. A straightforward solution is to distinguish target nodes from others. Formalizing this idea, we propose labeling trick, which first labels nodes in the graph according to their relationships with the target node set before applying a GNN and then aggregates node representations obtained in the labeled graph for multi-node representations. Besides node sets in graphs, we also extend labeling tricks to posets, subsets and hypergraphs. Experiments verify that the labeling trick technique can boost GNNs on various tasks, including undirected link prediction, directed link prediction, hyperedge prediction, and subgraph prediction. Our work explains the superior performance of previous node-labeling-based methods and establishes a theoretical foundation for using GNNs for multi-node representation learning.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 45 of its 72 references that are in the map. First posted on arXiv 20 Apr 2023.
Builds on
45 of 72 references.
References · 45
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2017Inductive Representation Learning on Large Graphscited by 6,284
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2017Neural Message Passing for Quantum Chemistrycited by 3,460
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
- 2016Convolutional Neural Networks on Graphs with Fast Localized Spectral Filteringcited by 2,085
- 2016node2vec: Scalable Feature Learning for Networkscited by 1,913
- 2016Variational Graph Auto-Encoderscited by 1,373
- 2013Spectral Networks and Locally Connected Networks on Graphscited by 1,097
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 878
- 2018Link Prediction Based on Graph Neural Networkscited by 829
33 more
- 2015Gated Graph Sequence Neural Networkscited by 792
- 2018Hierarchical Graph Representation Learning with Differentiable Poolingcited by 786
- 2015Convolutional Networks on Graphs for Learning Molecular Fingerprintscited by 751
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
- 2019Provably Powerful Graph Networkscited by 385
- 2021Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Predictioncited by 273
- 2015A Review of Relational Machine Learning for Knowledge Graphscited by 264
- 2019Inductive Relation Prediction by Subgraph Reasoningcited by 237
- 2020Can Graph Neural Networks Count Substructures?cited by 235
- 2019Position-aware Graph Neural Networkscited by 203
- 2021Identity-aware Graph Neural Networkscited by 197
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 176
- 2019On the equivalence between graph isomorphism testing and function approximation with GNNscited by 172
- 2021Frame Averaging for Invariant and Equivariant Network Designcited by 166
- 2021Equivariant Subgraph Aggregation Networkscited by 154
- 2021From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awarenesscited by 154
- 2020Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learningcited by 148
- 2021Nested Graph Neural Networkscited by 136
- 2016Discriminative Embeddings of Latent Variable Models for Structured Datacited by 130
- 2022Understanding and Extending Subgraph GNNs by Rethinking Their Symmetriescited by 112
- 2021MagNet: A Neural Network for Directed Graphscited by 104
- 2020Expressive Power of Invariant and Equivariant Graph Neural Networkscited by 100
- 2022How Powerful are K-hop Message Passing Graph Neural Networkscited by 90
- 2019Inductive Matrix Completion Based on Graph Neural Networkscited by 85
- 2020Directed Graph Convolutional Networkcited by 73
- 2020Subgraph Neural Networkscited by 73
- 2023A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Testscited by 64
- 2022Ordered Subgraph Aggregation Networkscited by 57
- 2020The expressive power of kth-order invariant graph networkscited by 34
- 2023A Theory of Link Prediction via Relational Weisfeiler-Leman on Knowledge Graphscited by 32
- 2021Learning over Families of Sets -- Hypergraph Representation Learning for Higher Order Taskscited by 13
- 2021Neural Predicting Higher-order Patterns in Temporal Networkscited by 13
- 2021Principled Hyperedge Prediction with Structural Spectral Features and Neural Networkscited by 7
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 0; 2026: 1.
4 papers.
- 2023Expressive Sign Equivariant Networks for Spectral Geometric Learningcited by 15
- 2023Learning Scalable Structural Representations for Link Prediction with Bloom Signaturescited by 4
- 2024Expressive Higher-Order Link Prediction through Hypergraph Symmetry Breakingcited by 2
- 2026Can Graph Learning Learn Circuits?cited by 0
- 2026Can Graph Learning Learn Circuits?9 Aug 2026
- 2024Expressive Higher-Order Link Prediction through Hypergraph Symmetry Breaking17 Feb 2024
- 2023Learning Scalable Structural Representations for Link Prediction with Bloom Signatures28 Dec 2023
- 2023Expressive Sign Equivariant Networks for Spectral Geometric Learning4 Dec 2023