mlsanityData to 7 Oct 2026

Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learning

arXiv 2010.16103 ↗First posted 30 Oct 2020cs.LGcited by 148

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 3; 2022: 25; 2023: 38; 2024: 47; 2025: 27; 2026: 8.

148 papers.

Sort:

By area:

  1. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
  2. 2023One for All: Towards Training One Graph Model for All Classification Taskscited by 239
  3. 2022How Powerful are Spectral Graph Neural Networkscited by 169
  4. 2022How Powerful are K-hop Message Passing Graph Neural Networkscited by 90
  5. 2024Position: Graph Foundation Models are Already Herecited by 84
  6. 2023Towards Foundation Models for Knowledge Graph Reasoningcited by 83
  7. 2022What's Behind the Mask: Understanding Masked Graph Modeling for Graph Autoencoderscited by 82
  8. 2024GFT: Graph Foundation Model with Transferable Tree Vocabularycited by 82
  9. 2022Graph Neural Networks for Link Prediction with Subgraph Sketchingcited by 81
  10. 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generationcited by 78
  11. 2023Evaluating Graph Neural Networks for Link Prediction: Current Pitfalls and New Benchmarkingcited by 69
  12. 2023Neural Common Neighbor with Completion for Link Predictioncited by 64
38 more
  1. 2024A Diffusion Model Framework for Unsupervised Neural Combinatorial Optimizationcited by 58
  2. 2024GOFA: A Generative One-For-All Model for Joint Graph Language Modelingcited by 56
  3. 2022Boosting the Cycle Counting Power of Graph Neural Networks with I2-GNNscited by 55
  4. 2022Neighborhood-aware Scalable Temporal Network Representation Learningcited by 54
  5. 2025Position: Graph Learning Will Lose Relevance Due To Poor Benchmarkscited by 52
  6. 2022GAP: Differentially Private Graph Neural Networks with Aggregation Perturbationcited by 46
  7. 2024Text-space Graph Foundation Models: Comprehensive Benchmarks and New Insightscited by 44
  8. 2022Linkless Link Prediction via Relational Distillationcited by 39
  9. 2022OOD Link Prediction Generalization Capabilities of Message-Passing GNNs in Larger Test Graphscited by 38
  10. 2024Fully-inductive Node Classification on Arbitrary Graphscited by 36
  11. 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databasescited by 35
  12. 2023A Theory of Link Prediction via Relational Weisfeiler-Leman on Knowledge Graphscited by 32
  13. 2022MLPInit: Embarrassingly Simple GNN Training Acceleration with MLP Initializationcited by 31
  14. 2023Graph Positional Encoding via Random Feature Propagationcited by 30
  15. 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Treescited by 30
  16. 2023Revisiting Link Prediction: A Data Perspectivecited by 29
  17. 2022Algorithm and System Co-design for Efficient Subgraph-based Graph Representation Learningcited by 28
  18. 2022Bring Your Own View: Graph Neural Networks for Link Prediction with Personalized Subgraph Selectioncited by 26
  19. 2022Inductive Logical Query Answering in Knowledge Graphscited by 25
  20. 2024Pard: Permutation-Invariant Autoregressive Diffusion for Graph Generationcited by 25
  21. 2023A Multi-Task Perspective for Link Prediction with New Relation Types and Nodescited by 23
  22. 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphscited by 23
  23. 2025How Expressive are Knowledge Graph Foundation Models?cited by 22
  24. 2022Generalized Laplacian Positional Encoding for Graph Representation Learningcited by 21
  25. 2023Double Equivariance for Inductive Link Prediction for Both New Nodes and New Relation Typescited by 21
  26. 2022Geodesic Graph Neural Network for Efficient Graph Representation Learningcited by 19
  27. 2023Pure Message Passing Can Estimate Common Neighbor for Link Predictioncited by 18
  28. 2024Efficient Neural Common Neighbor for Temporal Graph Link Predictioncited by 18
  29. 2023LPFormer: An Adaptive Graph Transformer for Link Predictioncited by 17
  30. 2023On Strengthening and Defending Graph Reconstruction Attack with Markov Chain Approximationcited by 16
  31. 2023Expressive Sign Equivariant Networks for Spectral Geometric Learningcited by 15
  32. 2023GraphGPT: Generative Pre-trained Graph Eulerian Transformercited by 15
  33. 2025Improving Equivariant Networks with Probabilistic Symmetry Breakingcited by 15
  34. 2024PageRank Bandits for Link Predictioncited by 14
  35. 2021Neural Predicting Higher-order Patterns in Temporal Networkscited by 13
  36. 2023An Efficient Subgraph GNN with Provable Substructure Counting Powercited by 13
  37. 2023Confidence-Based Feature Imputation for Graphs with Partially Known Featurescited by 13
  38. 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)