Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learning
Muhan Zhang, Pan Li, Yinglong Xia, Kai Wang, Long Jin
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
88 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Identity-aware Graph Neural Networks cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Recipe for a General, Powerful, Scalable Graph Transformer cites What graph neural networks cannot learn: depth vs width
- How Powerful are Spectral Graph Neural Networks cites What graph neural networks cannot learn: depth vs width
- One For All: Towards Training One Graph Model For All Classification Tasks cites Identity-aware Graph Neural Networks
- One For All: Towards Training One Graph Model For All Classification Tasks cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- One For All: Towards Training One Graph Model For All Classification Tasks cites How Powerful are K-hop Message Passing Graph Neural Networks
- One For All: Towards Training One Graph Model For All Classification Tasks cites Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction
- How Powerful are K-hop Message Passing Graph Neural Networks cites Identity-aware Graph Neural Networks
- How Powerful are K-hop Message Passing Graph Neural Networks cites How Powerful are Spectral Graph Neural Networks
- How Powerful are K-hop Message Passing Graph Neural Networks cites What graph neural networks cannot learn: depth vs width
- Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction cites Identity-aware Graph Neural Networks
- Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction cites Inductive Relation Prediction by Subgraph Reasoning
- GFT: Graph Foundation Model with Transferable Tree Vocabulary cites One For All: Towards Training One Graph Model For All Classification Tasks
- GFT: Graph Foundation Model with Transferable Tree Vocabulary cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
Cited by top-tier papers88
- Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu et al.NeurIPS 2022 · 1,216 citations
- How Powerful are Spectral Graph Neural NetworksXiyuan Wang, Muhan ZhangICML 2022 · 309 citations
- One For All: Towards Training One Graph Model For All Classification TasksHao Liu, Jiarui Feng, Lecheng Kong, Ningyue Liang et al.ICLR 2024 · 253 citations
- How Powerful are K-hop Message Passing Graph Neural NetworksJiarui Feng, Yixin Chen, Fuhai Li, Anindya Sarkar et al.NeurIPS 2022 · 188 citations
- GFT: Graph Foundation Model with Transferable Tree VocabularyZehong Wang, Zheyuan Zhang, Nitesh V. Chawla, Chuxu Zhang et al.NeurIPS 2024 · 108 citations
Builds on9
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link PredictionZhaocheng Zhu, Zuobai Zhang, Louis-Pascal A. C. Xhonneux, Jian TangNeurIPS 2021 · 546 citations
- Inductive Relation Prediction by Subgraph ReasoningKomal K. Teru, Etienne G. Denis, William L. HamiltonICML 2020 · 493 citations
- What graph neural networks cannot learn: depth vs widthAndreas LoukasICLR 2020 · 336 citations
- Identity-aware Graph Neural NetworksJiaxuan You, Jonathan Michael Gomes Selman, Rex Ying, Jure LeskovecAAAI 2021 · 316 citations
Related papers
- Distance Encoding: Design Provably More Powerful Neural Networks for Graph Representation LearningPan Li, Yanbang Wang, Hongwei Wang, Jure LeskovecNeurIPS 2020 · 391 citations
- Why Propagate Alone? Parallel Use of Labels and Features on GraphsYangkun Wang, Jiarui Jin, Weinan Zhang, Yongyi Yang et al.ICLR 2022 · 13 citations
- Label Attentive Distillation for GNN-Based Graph ClassificationXiaobin Hong, Wenzhong Li, Chaoqun Wang, Mingkai Lin et al.AAAI 2024 · 14 citations
- GLASS: GNN with Labeling Tricks for Subgraph Representation LearningXiyuan Wang, Muhan ZhangICLR 2022 · 38 citations
- Structural Information Enhanced Graph Representation for Link PredictionLei Shi, Bin Hu, Deng Zhao, Jianshan He et al.AAAI 2024 · 21 citations
