Saved in:
Bibliographic Details
Main Authors: Wang, Xiyuan, Li, Pan, Zhang, Muhan
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2304.10074
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912265929752576
author Wang, Xiyuan
Li, Pan
Zhang, Muhan
author_facet Wang, Xiyuan
Li, Pan
Zhang, Muhan
contents In this paper, we study using graph neural networks (GNNs) for \textit{multi-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 \text{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.
format Preprint
id arxiv_https___arxiv_org_abs_2304_10074
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Improving Graph Neural Networks on Multi-node Tasks with the Labeling Trick
Wang, Xiyuan
Li, Pan
Zhang, Muhan
Machine Learning
In this paper, we study using graph neural networks (GNNs) for \textit{multi-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 \text{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.
title Improving Graph Neural Networks on Multi-node Tasks with the Labeling Trick
topic Machine Learning
url https://arxiv.org/abs/2304.10074