Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learning
Not on the map. Why?
Abstract (arXiv)
In this paper, we provide a theory of using graph neural networks (GNNs) for multi-node representation learning (where we are interested in learning a representation for a set of more than one node, such as link). We know that GNN is designed to learn single-node representations. When we want to learn a node set representation involving multiple nodes, a common practice in previous works is to directly aggregate the single-node representations obtained by a GNN into a joint node set representation. In this paper, we show a fundamental constraint of such an approach, namely the inability to capture the dependence between nodes in the node set, and argue that directly aggregating individual node representations does not lead to an effective joint representation for multiple nodes. Then, we notice that a few previous successful works for multi-node representation learning, including SEAL, Distance Encoding, and ID-GNN, all used node labeling. These methods first label nodes in the graph according to their relationships with the target node set before applying a GNN. Then, the node representations obtained in the labeled graph are aggregated into a node set representation. By investigating their inner mechanisms, we unify these node labeling techniques into a single and most general form -- labeling trick. We prove that with labeling trick a sufficiently expressive GNN learns the most expressive node set representations, thus in principle solves any joint learning tasks over node sets. Experiments on one important two-node representation learning task, link prediction, verified our theory. Our work explains the superior performance of previous node-labeling-based methods, and establishes a theoretical foundation of using GNNs for multi-node representation learning.
Key facts. Cited by 148 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 25; 2023: 38; 2024: 47; 2025: 27; 2026: 8.
148 papers.
Sort:
By area:
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
- 2022How Powerful are Spectral Graph Neural Networkscited by 169
- 2022How Powerful are K-hop Message Passing Graph Neural Networkscited by 90
- 2024Position: Graph Foundation Models are Already Herecited by 84
- 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
- 2022What's Behind the Mask: Understanding Masked Graph Modeling for Graph Autoencoderscited by 82
- 2024GFT: Graph Foundation Model with Transferable Tree Vocabularycited by 82
- 2022Graph Neural Networks for Link Prediction with Subgraph Sketchingcited by 81
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generationcited by 78
- 2023Evaluating Graph Neural Networks for Link Prediction: Current Pitfalls and New Benchmarkingcited by 69
- 2023Neural Common Neighbor with Completion for Link Predictioncited by 64
38 more
- 2024A Diffusion Model Framework for Unsupervised Neural Combinatorial Optimizationcited by 58
- 2024GOFA: A Generative One-For-All Model for Joint Graph Language Modelingcited by 56
- 2022Boosting the Cycle Counting Power of Graph Neural Networks with I2-GNNscited by 55
- 2022Neighborhood-aware Scalable Temporal Network Representation Learningcited by 54
- 2025Position: Graph Learning Will Lose Relevance Due To Poor Benchmarkscited by 52
- 2022GAP: Differentially Private Graph Neural Networks with Aggregation Perturbationcited by 46
- 2024Text-space Graph Foundation Models: Comprehensive Benchmarks and New Insightscited by 44
- 2022Linkless Link Prediction via Relational Distillationcited by 39
- 2022OOD Link Prediction Generalization Capabilities of Message-Passing GNNs in Larger Test Graphscited by 38
- 2024Fully-inductive Node Classification on Arbitrary Graphscited by 36
- 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databasescited by 35
- 2023A Theory of Link Prediction via Relational Weisfeiler-Leman on Knowledge Graphscited by 32
- 2022MLPInit: Embarrassingly Simple GNN Training Acceleration with MLP Initializationcited by 31
- 2023Graph Positional Encoding via Random Feature Propagationcited by 30
- 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Treescited by 30
- 2023Revisiting Link Prediction: A Data Perspectivecited by 29
- 2022Algorithm and System Co-design for Efficient Subgraph-based Graph Representation Learningcited by 28
- 2022Bring Your Own View: Graph Neural Networks for Link Prediction with Personalized Subgraph Selectioncited by 26
- 2022Inductive Logical Query Answering in Knowledge Graphscited by 25
- 2024Pard: Permutation-Invariant Autoregressive Diffusion for Graph Generationcited by 25
- 2023A Multi-Task Perspective for Link Prediction with New Relation Types and Nodescited by 23
- 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphscited by 23
- 2025How Expressive are Knowledge Graph Foundation Models?cited by 22
- 2022Generalized Laplacian Positional Encoding for Graph Representation Learningcited by 21
- 2023Double Equivariance for Inductive Link Prediction for Both New Nodes and New Relation Typescited by 21
- 2022Geodesic Graph Neural Network for Efficient Graph Representation Learningcited by 19
- 2023Pure Message Passing Can Estimate Common Neighbor for Link Predictioncited by 18
- 2024Efficient Neural Common Neighbor for Temporal Graph Link Predictioncited by 18
- 2023LPFormer: An Adaptive Graph Transformer for Link Predictioncited by 17
- 2023On Strengthening and Defending Graph Reconstruction Attack with Markov Chain Approximationcited by 16
- 2023Expressive Sign Equivariant Networks for Spectral Geometric Learningcited by 15
- 2023GraphGPT: Generative Pre-trained Graph Eulerian Transformercited by 15
- 2025Improving Equivariant Networks with Probabilistic Symmetry Breakingcited by 15
- 2024PageRank Bandits for Link Predictioncited by 14
- 2021Neural Predicting Higher-order Patterns in Temporal Networkscited by 13
- 2023An Efficient Subgraph GNN with Provable Substructure Counting Powercited by 13
- 2023Confidence-Based Feature Imputation for Graphs with Partially Known Featurescited by 13
- 2023Pitfalls in Link Prediction with Graph Neural Networks: Understanding the Impact of Target-link Inclusion & Better Practicescited by 13
50 most cited of 148 All 148 (JSON)
- 2026Edge-Level Automorphism in GNNs: A Quantitative Framework and Effective Designs For Link Prediction28 Sep 2026
- 2026Reification as a Transferable Vocabulary: Zero-Shot Link Prediction with Vanilla GNNs10 Sep 2026
- 2026A Survey on GNN-based Link Prediction: Techniques, Applications, and Challenges29 Apr 2026
- 2026LineGraph2Road: Structural Graph Reasoning on Line Graphs for Road Network Extraction26 Feb 2026
- 2026Rethinking Diffusion Models with Symmetries through Canonicalization with Applications to Molecular Graph Generation16 Feb 2026
- 2026THOR: Inductive Link Prediction over Hyper-Relational Knowledge Graphs5 Feb 2026
- 2026Plain Transformers are Surprisingly Powerful Link Predictors2 Feb 2026
- 2026UltRAG: a Universal Simple Scalable Recipe for Knowledge Graph RAG28 Jan 2026
- 2025Enhancing Logical Expressiveness in Graph Neural Networks via Path-Neighbor Aggregation11 Nov 2025
- 2025Ground-Truth Subgraphs for Better Training and Evaluation of Knowledge Graph Augmented LLMs6 Nov 2025
- 2025Flock: A Knowledge Graph Foundation Model via Learning on Random Walks1 Oct 2025
- 2025Implicit Hypergraph Neural Network16 Aug 2025
38 more
- 2025A Scalable Pretraining Framework for Link Prediction with Efficient Adaptation6 Aug 2025
- 2025Graph Neural Networks Powered by Encoder Embedding for Improved Node Learning15 Jul 2025
- 2025Subgraph Generation for Generalizing on Out-of-Distribution Links15 Jul 2025
- 2025GNNs Meet Sequence Models Along the Shortest-Path: an Expressive Method for Link Prediction9 Jul 2025
- 2025Understanding Generalization in Node and Link Prediction1 Jul 2025
- 2025Bridging Theory and Practice in Link Representation with Graph Neural Networks30 Jun 2025
- 2025HYPER: A Foundation Model for Inductive Link Prediction with Knowledge Hypergraphs14 Jun 2025
- 2025Learning Efficient and Generalizable Graph Retriever for Knowledge-Graph Question Answering11 Jun 2025
- 2025Efficient Text-Attributed Graph Learning through Selective Annotation and Graph Alignment8 Jun 2025
- 2025Symmetry-Aware GFlowNets3 Jun 2025
- 2025A Benchmark Dataset for Graph Regression with Homogeneous and Multi-Relational Variants29 May 2025
- 2025SEMMA: A Semantic Aware Knowledge Graph Foundation Model26 May 2025
- 2025OCN: Effectively Utilizing Higher-Order Common Neighbors for Better Link Prediction26 May 2025
- 2025Open Your Eyes: Vision Enhances Message Passing Neural Networks in Link Prediction13 May 2025
- 2025Prediction of Usage Probabilities of Shopping-Mall Corridors Using Heterogeneous Graph Neural Networks10 Apr 2025
- 2025Heuristic Methods are Good Teachers to Distill MLPs for Graph Link Prediction8 Apr 2025
- 2025Improving Equivariant Networks with Probabilistic Symmetry Breaking27 Mar 2025
- 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphs26 Feb 2025
- 2025Understanding the Design Principles of Link Prediction in Directed Settings20 Feb 2025
- 2025Position: Graph Learning Will Lose Relevance Due To Poor Benchmarks20 Feb 2025
- 2025How Expressive are Knowledge Graph Foundation Models?18 Feb 2025
- 2025Using Random Noise Equivariantly to Boost Graph Neural Networks Universally4 Feb 2025
- 2025Enhancing Graph Representation Learning with Localized Topological Features15 Jan 2025
- 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Trees21 Dec 2024
- 2024Towards Graph Foundation Models: A Study on the Generalization of Positional and Structural Encodings10 Dec 2024
- 2024Generalizing Weisfeiler-Lehman Kernels to Subgraphs3 Dec 2024
- 2024Can GNNs Learn Link Heuristics? A Concise Review and Evaluation of Link Prediction Methods22 Nov 2024
- 2024GFT: Graph Foundation Model with Transferable Tree Vocabulary9 Nov 2024
- 2024Reconsidering the Performance of GAE in Link Prediction6 Nov 2024
- 2024PageRank Bandits for Link Prediction3 Nov 2024
- 2024Long-context Protein Language Modeling Using Bidirectional Mamba with Shared Projection Layers29 Oct 2024
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation28 Oct 2024
- 2024Towards Graph Foundation Models: Training on Knowledge Graphs Enables Transferability to General Graphs16 Oct 2024
- 2024Towards Stable, Globally Expressive Graph Representations with Laplacian Eigenvectors13 Oct 2024
- 2024PROXI: Challenging the GNNs for Link Prediction2 Oct 2024
- 2024LinkThief: Combining Generalized Structure Knowledge with Node Similarity for Link Stealing Attack against GNN1 Oct 2024
- 2024On the Impact of Feature Heterophily on Link Prediction with Graph Neural Networks26 Sep 2024
- 2024KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning19 Sep 2024
50 newest of 148 All 148 (JSON)
- 2024A Diffusion Model Framework for Unsupervised Neural Combinatorial Optimizationcited by 58
- 2024Pard: Permutation-Invariant Autoregressive Diffusion for Graph Generationcited by 25
- 2026Rethinking Diffusion Models with Symmetries through Canonicalization with Applications to Molecular Graph Generationcited by 5
- 2023Diffusion Probabilistic Models for Structured Node Classificationcited by 3
- 2024Sub-graph Based Diffusion Model for Link Predictioncited by 0
- 2026Rethinking Diffusion Models with Symmetries through Canonicalization with Applications to Molecular Graph Generation16 Feb 2026
- 2024Sub-graph Based Diffusion Model for Link Prediction13 Sep 2024
- 2024A Diffusion Model Framework for Unsupervised Neural Combinatorial Optimization3 Jun 2024
- 2024Pard: Permutation-Invariant Autoregressive Diffusion for Graph Generation6 Feb 2024
- 2023Diffusion Probabilistic Models for Structured Node Classification21 Feb 2023
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generationcited by 78
- 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databasescited by 35
- 2024KnowFormer: Revisiting Transformers for Knowledge Graph Reasoningcited by 5
- 2025Learning Efficient and Generalizable Graph Retriever for Knowledge-Graph Question Answeringcited by 5
- 2025Learning Efficient and Generalizable Graph Retriever for Knowledge-Graph Question Answering11 Jun 2025
- 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation28 Oct 2024
- 2024KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning19 Sep 2024
- 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databases26 Mar 2023
- 2024Mixture of Link Predictors on Graphscited by 10
- 2025A Scalable Pretraining Framework for Link Prediction with Efficient Adaptationcited by 2
- 2025A Scalable Pretraining Framework for Link Prediction with Efficient Adaptation6 Aug 2025
- 2024Mixture of Link Predictors on Graphs13 Feb 2024
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
- 2022How Powerful are Spectral Graph Neural Networkscited by 169
- 2022How Powerful are K-hop Message Passing Graph Neural Networkscited by 90
- 2024Position: Graph Foundation Models are Already Herecited by 84
- 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
- 2022What's Behind the Mask: Understanding Masked Graph Modeling for Graph Autoencoderscited by 82
- 2024GFT: Graph Foundation Model with Transferable Tree Vocabularycited by 82
- 2022Graph Neural Networks for Link Prediction with Subgraph Sketchingcited by 81
- 2023Evaluating Graph Neural Networks for Link Prediction: Current Pitfalls and New Benchmarkingcited by 69
- 2023Neural Common Neighbor with Completion for Link Predictioncited by 64
- 2024GOFA: A Generative One-For-All Model for Joint Graph Language Modelingcited by 56
12 most cited of 136 All 136 (JSON)
- 2026Edge-Level Automorphism in GNNs: A Quantitative Framework and Effective Designs For Link Prediction28 Sep 2026
- 2026Reification as a Transferable Vocabulary: Zero-Shot Link Prediction with Vanilla GNNs10 Sep 2026
- 2026A Survey on GNN-based Link Prediction: Techniques, Applications, and Challenges29 Apr 2026
- 2026LineGraph2Road: Structural Graph Reasoning on Line Graphs for Road Network Extraction26 Feb 2026
- 2026THOR: Inductive Link Prediction over Hyper-Relational Knowledge Graphs5 Feb 2026
- 2026Plain Transformers are Surprisingly Powerful Link Predictors2 Feb 2026
- 2026UltRAG: a Universal Simple Scalable Recipe for Knowledge Graph RAG28 Jan 2026
- 2025Enhancing Logical Expressiveness in Graph Neural Networks via Path-Neighbor Aggregation11 Nov 2025
- 2025Ground-Truth Subgraphs for Better Training and Evaluation of Knowledge Graph Augmented LLMs6 Nov 2025
- 2025Flock: A Knowledge Graph Foundation Model via Learning on Random Walks1 Oct 2025
- 2025Implicit Hypergraph Neural Network16 Aug 2025
- 2025Graph Neural Networks Powered by Encoder Embedding for Improved Node Learning15 Jul 2025
12 newest of 136 All 136 (JSON)